/* Site overrides — loaded after style.css */

/* "Call us" button (.th-btn.style3): theme hover was near-black (--title-color).
   Use the palette's golden yellow instead, keeping the dark text readable. */
.th-btn.style3:focus,
.th-btn.style3:hover,
.th-btn.style3:active {
    background: var(--yellow-color);
    color: var(--title-color);
}

.th-btn.style3:focus::before,
.th-btn.style3:focus:after,
.th-btn.style3:hover::before,
.th-btn.style3:hover:after,
.th-btn.style3:active::before,
.th-btn.style3:active:after {
    background: var(--yellow-color);
    color: var(--title-color);
}

/* Scrolling header top bar (admin Settings -> Top Bar) */
.topbar-marquee {
    overflow: hidden;
}

.topbar-marquee .topbar-marquee-track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    animation: topbar-scroll 30s linear infinite;
}

.topbar-marquee .topbar-marquee-track ul {
    flex-shrink: 0;
    padding-right: 60px;
}

.topbar-marquee .topbar-marquee-track h4 {
    margin: 0;
    display: inline;
}

.topbar-marquee:hover .topbar-marquee-track {
    animation-play-state: paused;
}

@keyframes topbar-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Floating WhatsApp button, sits just above the scroll-to-top button */
.whatsapp-float {
    position: fixed;
    right: 30px;
    bottom: 115px;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 26px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: all 300ms linear;
}

.whatsapp-float:hover {
    background: #1eb956;
    color: #fff;
    transform: translateY(-3px);
}

/* Contact form: +91 phone prefix */
.phone-input-wrap {
    position: relative;
}

.phone-input-wrap .phone-prefix {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: #333;
    pointer-events: none;
    z-index: 2;
}

.phone-input-wrap .form-control {
    padding-left: 62px;
}

/* Cart toast notifications (assets/js/cart.js) — top-right cards */
#cart-toasts {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.cart-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #444;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid #eee9e2;
    border-left: 4px solid #2e9e5b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
    font-size: 13.5px;
    line-height: 1.4;
    width: 320px;
    max-width: calc(100vw - 32px);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.cart-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.cart-toast-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #e7f5ea;
    color: #2e9e5b;
    font-size: 14px;
}

.cart-toast-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.cart-toast-body strong {
    color: #02000f;
    font-size: 13px;
}

.cart-toast-close {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #b9b3aa;
    font-size: 18px;
    line-height: 1;
    padding: 2px 4px;
    cursor: pointer;
    border-radius: 6px;
    align-self: flex-start;
}

.cart-toast-close:hover {
    color: #444;
}

.cart-toast-error {
    border-left-color: #e84d4d;
}

.cart-toast-error .cart-toast-icon {
    background: #fbeaea;
    color: #e84d4d;
}

@media (max-width: 575px) {
    #cart-toasts {
        top: 16px;
        right: 16px;
        left: 16px;
        align-items: stretch;
    }

    .cart-toast {
        width: auto;
    }
}

/* Fly-to-cart animation (assets/js/cart.js) */
.cart-fly-img {
    position: fixed;
    z-index: 99998;
    pointer-events: none;
    object-fit: contain;
    border-radius: 12px;
    transition: transform 0.7s cubic-bezier(0.45, -0.25, 0.7, 1), opacity 0.7s ease-in;
    will-change: transform;
}

#cart-badge.pop,
.mbn-badge.pop {
    animation: cartBadgePop 0.4s ease;
}

@keyframes cartBadgePop {
    50% { transform: scale(1.5); }
}

/* Mini-cart quantity controls (layouts/partials/mini-cart.php) */
.mini-qty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 10px;
    vertical-align: middle;
}

.mini-qty-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e3e3e3;
    border-radius: 50%;
    background: #fff;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mini-qty-btn:hover {
    background: var(--theme-color, #f7a400);
    border-color: var(--theme-color, #f7a400);
    color: #fff;
}

.mini-qty-val {
    min-width: 16px;
    text-align: center;
    font-weight: 600;
}

/* Checkout UPI payment box (checkout.php / order-success.php) */
.checkout-upi-box {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 18px;
    margin-top: 10px;
}

.checkout-upi-box #upi-qr,
.checkout-upi-box .upi-qr {
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
}

.checkout-upi-id {
    font-size: 18px;
    font-weight: 700;
    color: var(--title-color, #1d2229);
    word-break: break-all;
}

@media (max-width: 575px) {
    .checkout-upi-paybtn { width: 100%; text-align: center; }
}

/* Customer account pages (account-login.php, account.php, ...) */
.account-form-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 32px;
    height: 100%;
}

.account-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
    color: #999;
}

.account-divider::before,
.account-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid #e5e5e5;
}

.google-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 100px;
    background: #fff;
    font-weight: 600;
    color: #1d2229;
    transition: all 0.2s ease;
}

.google-signin-btn:hover {
    border-color: #1d2229;
    color: #1d2229;
}

.otp-input {
    text-align: center;
    font-size: 22px;
    letter-spacing: 8px;
    font-weight: 700;
}

.btn-link-plain {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* Wishlist heart states + shop sidebar */
.wishlist-btn.active,
.wishlist-btn.active i {
    color: #e84d6f;
}

.shop-sidebar .widget {
    margin-bottom: 30px;
    background: #f7f7f5;
    border-radius: 12px;
    padding: 24px;
}

.shop-sidebar .widget_title {
    font-size: 20px;
    margin-bottom: 16px;
}

.shop-sidebar .widget_categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.shop-sidebar .widget_categories li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
}

.shop-sidebar .widget_categories li.active > a {
    font-weight: 700;
    color: var(--theme-color, #f7a400);
}

/* Logo sizing — the optimized bitmap logo has no intrinsic display size,
   so cap it everywhere it appears. */
.header-logo img,
.mobile-logo img {
    max-height: 64px;
    width: auto;
}

.footer-wrapper .about-logo img {
    max-height: 120px;
    width: auto;
}

.preloader .bounce img {
    max-height: 90px;
    width: auto;
}

/* Checkout order summary: product thumbnail beside the name */
.checkout-prod {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-prod img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #eee;
    background: #fff;
    object-fit: contain;
    flex-shrink: 0;
}

/* Header account dropdown (logged-in customers) */
.header-account {
    position: relative;
    display: inline-block;
}

.header-account-btn {
    position: relative;
}

.header-account-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2e9e5b;
    border: 2px solid #fff;
}

.account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 1000;
    text-align: left;
}

.header-account:hover .account-dropdown,
.header-account:focus-within .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.account-dropdown::before {
    /* invisible hover bridge between the icon and the panel */
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.account-dd-head {
    padding: 10px 14px;
    border-bottom: 1px solid #f0efe9;
    margin-bottom: 6px;
}

.account-dd-head strong {
    display: block;
    font-size: 15px;
    color: #1d2229;
}

.account-dd-head small {
    color: #8b8a84;
    font-size: 12px;
    word-break: break-all;
}

.account-dropdown a,
.account-dd-logout button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1d2229;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.account-dropdown a:hover,
.account-dd-logout button:hover {
    background: #f7f5ef;
    color: #1d2229;
}

.account-dropdown a i,
.account-dd-logout button i {
    width: 18px;
    text-align: center;
    color: #7a8f3f;
}

.account-dd-logout {
    border-top: 1px solid #f0efe9;
    margin-top: 6px;
    padding-top: 6px;
}

.account-dd-logout button i {
    color: #c94a4a;
}

/* Mobile shop: two product cards per row (Flipkart-style). The grids/sliders
   set 2-up columns; these rules shrink the card contents so nothing overflows
   the narrower cards. */
@media (max-width: 575px) {
    .five-column-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .th-product .product-content {
        padding: 0 12px 16px;
    }

    .th-product .product-title {
        font-size: 15px;
        line-height: 1.35;
        margin: 8px 0 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: calc(2 * 1.35em); /* equal card heights when names wrap */
    }

    .th-product .price {
        font-size: 13px;
    }

    .th-product .product-rating {
        font-size: 12px;
        margin-bottom: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }

    .th-product .star-rating {
        font-size: 11px;
    }

    /* "(N Reviews)" on its own line instead of wrapping mid-text */
    .th-product .product-rating .woocommerce-review-link {
        display: block;
    }

    .th-product .th-btn.th-btn-sm {
        padding: 10px 12px;
        min-width: 0;
        width: 100%;
        font-size: 13px;
    }
}

/* Home "Latest News" slider: room for the pagination dots under the cards */
#blogSlider1 {
    padding-bottom: 32px;
}

#blogSlider1 .blog-card {
    margin-bottom: 0;
}

/* The theme's .space padding (80px on mobile) doubles up around the slider —
   tighten the blog section on phones. */
@media (max-width: 767px) {
    #blog-sec.space {
        padding-top: 56px;
        padding-bottom: 40px;
    }
}

/* App-style bottom navigation (layouts/footer.php), phones/tablets only */
.mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5000;
    display: none;
    background: #fff;
    border-top: 1px solid #efece7;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.mobile-bottom-nav .mbn-item {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 7px 2px 5px;
    color: #6c6d71;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    border-radius: 10px;
}

.mobile-bottom-nav .mbn-item i {
    font-size: 18px;
}

.mobile-bottom-nav .mbn-item.active {
    color: var(--theme-color, #F8721F);
}

.mobile-bottom-nav .mbn-item.active i {
    transform: translateY(-1px);
}

.mobile-bottom-nav .mbn-badge.is-empty {
    display: none;
}

.mobile-bottom-nav .mbn-badge {
    position: absolute;
    top: 0;
    left: calc(50% + 5px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 10px;
    background: var(--theme-color, #F8721F);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

@media (max-width: 991px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* keep page content, WhatsApp and scroll-top clear of the bar */
    body {
        padding-bottom: 68px;
    }

    .whatsapp-float {
        bottom: 150px;
    }

    .scroll-top {
        bottom: 90px;
    }
}
