/*
Theme Name: GitaGhor Theme
Author: AI Assistant
Description: Custom WordPress theme for GitaGhor.
Version: 1.0
*/

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: #fcf8ee; /* Creamy background color from design */
}

/* Custom Utilities for things Tailwind can't perfectly replicate easily */
.nav-gradient {
    background: linear-gradient(135deg, #0b1a2e, #132a4a);
}

.book-shadow {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.text-brand-orange {
    color: #e57c13;
}
.bg-brand-orange {
    background-color: #e57c13;
}

/* WooCommerce Single Product Overrides */
.woocommerce div.product p.price, 
.woocommerce div.product span.price {
    color: #F28C28 !important;
    font-weight: 700 !important;
}

.woocommerce div.product form.cart .button {
    background-color: #F28C28 !important;
    color: #ffffff !important;
    border-radius: 0.75rem !important;
    padding: 0.85rem 1.5rem !important;
    font-weight: 700 !important;
    transition: all 0.2s ease-in-out !important;
}

.woocommerce div.product form.cart .button:hover {
    background-color: #e07b1a !important;
}

.woocommerce-message, 
.woocommerce-info {
    border-top-color: #F28C28 !important;
    background-color: #FFF6E6 !important;
    border-radius: 0.75rem;
}

.woocommerce-message::before, 
.woocommerce-info::before {
    color: #F28C28 !important;
}

/* WooCommerce Archive Product Grid Overrides */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: 1.25rem !important;
    margin-bottom: 3rem !important;
    list-style: none !important;
    padding: 0 !important;
}

@media (min-width: 640px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

.woocommerce ul.products li.product {
    background-color: #ffffff !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
    border: 1px solid #F0EAE0 !important;
    box-shadow: 0 2px 15px -3px rgba(0,0,0,0.07) !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 8px 25px -5px rgba(0,0,0,0.12) !important;
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #0D2238 !important;
    margin-bottom: 0.5rem !important;
}

.woocommerce ul.products li.product img {
    height: 14rem !important;
    width: 100% !important;
    object-fit: contain !important;
    background-color: #F9F6EE !important;
    border-radius: 0.75rem !important;
    padding: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product h3 {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #0D2238 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

.woocommerce ul.products li.product .price {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #F28C28 !important;
    margin-bottom: 0.75rem !important;
    text-align: center !important;
}

.woocommerce ul.products li.product .button {
    margin-top: auto !important;
    background-color: #F28C28 !important;
    color: #ffffff !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #e07b1a !important;
}

.woocommerce span.onsale {
    background-color: #E65100 !important;
    color: #ffffff !important;
    border-radius: 0.375rem !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    padding: 0.2rem 0.6rem !important;
    position: absolute !important;
    top: 1rem !important;
    left: 1rem !important;
    z-index: 10 !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.2 !important;
}

.woocommerce .woocommerce-result-count, 
.woocommerce .woocommerce-ordering {
    margin-bottom: 1.5rem !important;
}

.woocommerce .woocommerce-ordering select {
    background-color: #FAF4E8 !important;
    border: 1px solid #EAE3D2 !important;
    border-radius: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
    font-weight: 600 !important;
    color: #0D2238 !important;
}

/* WooCommerce Quantity Input Styling Override */
.woocommerce .quantity, 
.woocommerce div.product form.cart .quantity {
    display: inline-flex !important;
    align-items: center !important;
    border: 2px solid #EAE3D2 !important;
    border-radius: 0.75rem !important;
    background-color: #FAF4E8 !important;
    overflow: hidden !important;
    height: 2.85rem !important;
    margin-right: 0.75rem !important;
}

.woocommerce .quantity input.qty, 
.woocommerce div.product form.cart .quantity input.qty {
    width: 3rem !important;
    height: 100% !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    color: #0D2238 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
}

.woocommerce .quantity input.qty::-webkit-inner-spin-button,
.woocommerce .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Remove ugly spinners on Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Image Box Overflow Prevention Safety Net */
.bg-\[\#F9F6EE\] {
    overflow: hidden !important;
}

.bg-\[\#F9F6EE\] a {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    align-items: center !important;
    justify-content: center !important;
}

.bg-\[\#F9F6EE\] img {
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

/* Header Active Menu Navigation Items */
header nav ul li.current-menu-item > a,
header nav ul li.current_page_item > a,
header nav ul li.current-menu-ancestor > a,
header nav ul li.current-product-ancestor > a {
    color: #F28C28 !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #F28C28 !important;
    padding-bottom: 0.125rem !important;
}

/* Strict Custom Logo Dimension Overrides for WordPress */
.custom-logo-link,
a.custom-logo-link,
.header-logo-wrap a,
.footer-logo-wrap a {
    display: inline-flex !important;
    align-items: center !important;
    max-height: 44px !important;
    overflow: hidden !important;
}

.custom-logo-link img,
.custom-logo,
img.custom-logo,
.header-logo-wrap img,
.site-logo img {
    height: 44px !important;
    max-height: 44px !important;
    width: auto !important;
    max-width: 170px !important;
    object-fit: contain !important;
    display: block !important;
    border-radius: 9999px !important;
}

header .custom-logo-link img,
header .custom-logo,
header img.custom-logo,
header .header-logo-wrap img {
    height: 44px !important;
    max-height: 44px !important;
    width: auto !important;
    max-width: 170px !important;
}

footer .custom-logo-link,
footer a.custom-logo-link {
    max-height: 52px !important;
}

footer .custom-logo-link img,
footer .custom-logo,
footer img.custom-logo,
footer .footer-logo-wrap img {
    height: 50px !important;
    max-height: 50px !important;
    width: auto !important;
    max-width: 190px !important;
    border-radius: 9999px !important;
}

