/*
Theme Name: Gronthotori New Theme
Theme URI: https://gronthotori.com
Author: Ak Durjoy
Description: Custom E-commerce Theme for Gronthotori (Bookshop). v2.3 - responsive account access, reviewed password reset, customer admin.
Version: 2.3.0
Text Domain: gronthotori-new
*/

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */
:root {
    /* Brand (logo purple) */
    --gt-purple:        #4D2C91;
    --gt-purple-dark:   #371E6B;
    --gt-purple-soft:   #F3EFFC;
    --gt-purple-glass:  rgba(77, 44, 145, 0.96);

    /* Action colour: CTA */
    --gt-cta:           #C2570C;
    --gt-cta-dark:      #A34609;

    /* Ink / text */
    --gt-ink:           #1E1A2B;
    --gt-text:          #3A364A;
    --gt-muted:         #6B6680;

    /* Surfaces */
    --gt-paper:         #FAF8F4;
    --gt-paper-2:       #F4F0E8;
    --gt-card:          #FFFFFF;
    --gt-line:          #E8E3EE;

    /* Status */
    --gt-sale:          #B3261E;
    --gt-success:       #1E7B4B;
    --gt-whatsapp:      #25D366;
    --gt-messenger:     #0084FF;

    --gt-radius:        14px;
    --gt-radius-sm:     10px;
    --gt-shadow:        0 1px 2px rgba(30,26,43,.05), 0 6px 18px rgba(30,26,43,.06);
    --gt-shadow-hover:  0 2px 4px rgba(30,26,43,.06), 0 14px 30px rgba(55,30,107,.14);

    --theme-purple:       var(--gt-purple);
    --theme-purple-dark:  var(--gt-purple-dark);
    --theme-purple-light: var(--gt-purple-soft);
    --theme-purple-glass: var(--gt-purple-glass);
    --theme-orange:       var(--gt-cta);
}

/* =========================================================
   2. BASE
   ========================================================= */
body {
    font-family: 'Hind Siliguri', 'Noto Sans Bengali', 'Kalpurush', 'Nirmala UI', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    color: var(--gt-text);
    background: var(--gt-paper);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--gt-ink); }
a { color: var(--gt-purple); }
a:hover { color: var(--gt-purple-dark); }
img { max-width: 100%; height: auto; }
.gt-card, .gt-card *, .gt-btn, .gt-drawer *, .gt-sticky-buy, .gt-sticky-buy * { box-sizing: border-box; }

:focus-visible {
    outline: 2px solid var(--gt-purple);
    outline-offset: 2px;
    border-radius: 4px;
}
.skip-link {
    position: absolute; left: -9999px; top: 8px; z-index: 2000;
    background: var(--gt-purple); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { left: 8px; color: #fff; }

.text-purple { color: var(--gt-purple) !important; }
.text-footer-purple { color: #CDBDF2 !important; }
.btn-outline-purple {
    color: var(--gt-purple); border: 1.5px solid var(--gt-purple); background: transparent;
}
.btn-outline-purple:hover { background: var(--gt-purple); color: #fff; }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   3. BUTTONS
   ========================================================= */
.gt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    font-weight: 600; font-size: 14px; line-height: 1.2;
    padding: 10px 16px; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; text-decoration: none; transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.gt-btn--block { width: 100%; }
.gt-btn--sm { font-size: 13px; padding: 8px 12px; }
.gt-btn--primary { background: var(--gt-purple); color: #fff; }
.gt-btn--primary:hover { background: var(--gt-purple-dark); color: #fff; }
.gt-btn--cta { background: var(--gt-cta); color: #fff; }
.gt-btn--cta:hover { background: var(--gt-cta-dark); color: #fff; }
.gt-btn--ghost { background: transparent; color: var(--gt-purple); border-color: var(--gt-purple); }
.gt-btn--ghost:hover { background: var(--gt-purple); color: #fff; }
.gt-btn[disabled], .gt-btn.is-disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.gt-btn.is-loading { pointer-events: none; opacity: .75; }
.gt-btn.is-loading::after {
    content: ""; width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid currentColor; border-top-color: transparent; animation: gt-spin .7s linear infinite;
}
.gt-btn.is-added { background: var(--gt-success); border-color: var(--gt-success); color: #fff; }
@keyframes gt-spin { to { transform: rotate(360deg); } }

/* =========================================================
   4. SECTION TITLE
   ========================================================= */
.gt-home-section { margin-bottom: 36px; }
.gt-section-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 12px; margin-bottom: 18px;
}
.gt-section-title {
    position: relative; margin: 0; padding-bottom: 10px;
    font-size: 21px; font-weight: 700; color: var(--gt-ink); letter-spacing: -.1px;
}
.gt-section-title::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 40px; height: 3px; border-radius: 3px; background: var(--gt-purple);
}
.gt-link-all {
    font-size: 13.5px; font-weight: 600; color: var(--gt-purple); text-decoration: none;
    padding: 6px 2px; white-space: nowrap;
}
.gt-link-all:hover { color: var(--gt-purple-dark); text-decoration: underline; }

/* =========================================================
   5. PRODUCT CARD
   ========================================================= */
.gt-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--gt-card); border: 1px solid var(--gt-line);
    border-radius: var(--gt-radius); overflow: hidden;
    box-shadow: var(--gt-shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gt-card:hover { transform: translateY(-3px); box-shadow: var(--gt-shadow-hover); border-color: #D9CFEE; }
.gt-card__media {
    position: relative; display: block; aspect-ratio: 2 / 3; overflow: hidden;
    background: var(--gt-paper-2);
}
.gt-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gt-card:hover .gt-card__media img { transform: scale(1.035); }

.gt-badge {
    position: absolute; z-index: 2; top: 10px; left: 10px;
    font-size: 11.5px; font-weight: 700; line-height: 1; padding: 6px 9px; border-radius: 999px; color: #fff;
}
.gt-badge--sale { background: var(--gt-sale); }
.gt-badge--new  { background: var(--gt-purple); }
.gt-badge--out  { background: var(--gt-ink); }
.gt-badge + .gt-badge { top: 38px; }

.gt-card__wish {
    position: absolute; z-index: 3; top: 8px; right: 8px; width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--gt-ink);
    box-shadow: 0 2px 8px rgba(0,0,0,.14); cursor: pointer; font-size: 15px;
    transition: transform .15s, color .15s;
}
.gt-card__wish:hover { transform: scale(1.08); }
.gt-card__wish.is-active { color: var(--gt-sale); }

.gt-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 12px 14px; gap: 4px; }
.gt-card__title {
    margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--gt-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 2.8em;
}
.gt-card__title a { color: inherit; text-decoration: none; }
.gt-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.gt-card__author { font-size: 12.5px; color: var(--gt-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gt-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
.gt-price__now { font-size: 19px; font-weight: 700; color: var(--gt-ink); line-height: 1.1; }
.gt-price__now small { font-size: 14px; font-weight: 600; margin-right: 1px; }
.gt-price__old { font-size: 13px; color: var(--gt-muted); text-decoration: line-through; }
.gt-price__save { flex-basis: 100%; font-size: 12px; font-weight: 600; color: var(--gt-success); }

.gt-card__actions { margin-top: auto; padding-top: 10px; position: relative; z-index: 2; }

/* Horizontal rail */
.gt-rail-wrap { position: relative; }
.gt-rail {
    display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px;
    scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; scrollbar-color: #D9CFEE transparent;
}
.gt-rail::-webkit-scrollbar { height: 6px; }
.gt-rail::-webkit-scrollbar-thumb { background: #D9CFEE; border-radius: 10px; }
.gt-rail > .gt-card { flex: 0 0 160px; scroll-snap-align: start; }
@media (min-width: 576px) { .gt-rail > .gt-card { flex-basis: 178px; } }
@media (min-width: 992px) { .gt-rail > .gt-card { flex-basis: 196px; } }
.gt-rail-btn {
    position: absolute; top: 38%; z-index: 4; width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--gt-line); background: #fff; color: var(--gt-ink);
    box-shadow: var(--gt-shadow); display: none; align-items: center; justify-content: center; cursor: pointer;
}
.gt-rail-btn:hover { background: var(--gt-purple); color: #fff; border-color: var(--gt-purple); }
.gt-rail-btn--prev { left: -14px; }
.gt-rail-btn--next { right: -14px; }
@media (min-width: 992px) { .gt-rail-wrap:hover .gt-rail-btn { display: inline-flex; } }
.gt-empty { color: var(--gt-muted); font-size: 14px; padding: 8px 0; }

/* Grid */
.gt-grid {
    display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px)  { .gt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 992px)  { .gt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .gt-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.gt-page-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-bottom: 22px;
}
.gt-count-pill {
    background: var(--gt-purple-soft); color: var(--gt-purple); font-weight: 600; font-size: 12.5px;
    padding: 6px 14px; border-radius: 999px;
}
.gt-pagination { display: flex; justify-content: center; margin-top: 36px; }
.gt-pagination .page-numbers {
    display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center;
    padding: 0 12px; margin: 0 3px; border-radius: 999px; border: 1px solid var(--gt-line);
    background: #fff; color: var(--gt-ink); text-decoration: none; font-weight: 600; font-size: 14px;
}
.gt-pagination .page-numbers.current, .gt-pagination .page-numbers:hover {
    background: var(--gt-purple); border-color: var(--gt-purple); color: #fff;
}
.gt-pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; padding: 0; margin: 0; }

/* =========================================================
   6. HEADER & HEADER ICONS (UPDATED CLEAN DESIGN)
   ========================================================= */
.top-announcement-bar {
    background: var(--gt-purple-soft); color: var(--gt-ink); font-size: 12.5px; padding: 6px 0;
    border-bottom: 1px solid var(--gt-line);
}
.top-announcement-bar a { color: var(--gt-ink); text-decoration: none; margin-left: 10px; }
.top-announcement-bar a:hover { color: var(--gt-purple); text-decoration: underline; }
.top-announcement-layout {
    display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 8px;
}
.top-announcement-hotline { white-space: nowrap; font-size: 11.5px; }
.top-announcement-message { min-width: 0; overflow: hidden; text-align: center; }
.top-announcement-links { display: none; }
.announcement-marquee {
    white-space: nowrap; overflow: hidden; display: inline-block; box-sizing: border-box;
    color: var(--gt-purple-dark); font-weight: 600; animation: marquee-rtl 22s linear infinite;
}
.announcement-marquee:hover { animation-play-state: paused; }
@keyframes marquee-rtl { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }

.site-header {
    background: #fff; padding: 10px 0; position: sticky; top: 0; z-index: 1020;
    box-shadow: 0 1px 0 var(--gt-line), 0 6px 16px rgba(30,26,43,.04);
}
.custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.site-branding { min-width: 0; }
.custom-logo, .site-branding img {
    max-height: var(--gt-logo-h, 42px) !important; height: auto !important;
    width: auto !important; max-width: 180px !important; object-fit: contain !important;
}
.site-logo-text { font-size: 24px; font-weight: 800; color: var(--gt-purple); text-decoration: none; line-height: 1; }
.brand-divider { width: 2px; height: 26px; background: var(--gt-line); margin: 0 10px; }
.site-tagline { font-size: 10.5px; color: var(--gt-muted); margin: 0; line-height: 1.25; font-weight: 500; }
.site-header-actions { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }

/* Remove circles/borders & keep clean icons */
.header-icon-btn {
    width: auto; height: auto; border-radius: 0; border: none !important;
    display: inline-flex; align-items: center; justify-content: center; color: var(--gt-ink);
    text-decoration: none; position: relative; background: transparent !important; font-size: 22px;
    flex-shrink: 0; cursor: pointer; padding: 4px 6px; transition: color .18s;
}
.header-icon-btn:hover { background: transparent !important; color: var(--gt-purple) !important; border: none !important; }

/* Reward points button without border */
.header-points-btn {
    font-size: 18px; padding: 4px 6px; gap: 4px;
}
.header-points-value { font-size: 13px; font-weight: 700; color: var(--gt-ink); }

/* Animated Mobile View Offer Link beside Reward Icon */
.gt-mobile-header-offer {
    color: #ffffff !important;
    background: linear-gradient(135deg, #e53935, #c62828);
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.6);
    animation: offerPulse 2s infinite;
}

@keyframes offerPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.6);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(229, 57, 53, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
    }
}

.cart-badge, .wishlist-badge {
    position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px;
    background: var(--gt-cta); color: #fff; font-size: 10px; font-weight: 700;
    border-radius: 999px; display: flex; align-items: center; justify-content: center; border: 1.5px solid #fff;
}
.cart-badge:empty, .cart-badge[data-count="0"] { display: none; }

.btn-contact-us {
    background: var(--gt-purple); color: #fff !important; font-weight: 600; font-size: 13px;
    padding: 9px 16px; border-radius: 999px; text-decoration: none;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0;
}
.btn-contact-us:hover { background: var(--gt-purple-dark); }
.mobile-menu-btn {
    background: none; border: 1px solid var(--gt-line); color: var(--gt-ink);
    font-size: 22px; line-height: 1; padding: 5px 9px; border-radius: 10px;
}

.header-search-wrapper { max-width: 380px; width: 100%; }
.header-search-wrapper .form-control {
    font-size: 14px; padding: 8px 16px; border: 1.5px solid var(--gt-line);
    border-right: 0; border-radius: 999px 0 0 999px; background: var(--gt-paper);
}
.header-search-wrapper .form-control:focus {
    border-color: var(--gt-purple) !important; box-shadow: none !important; background: #fff;
}
.header-search-wrapper .btn {
    border: 1.5px solid var(--gt-line); border-left: 0; background: var(--gt-paper);
    color: var(--gt-purple); border-radius: 0 999px 999px 0; padding: 0 16px;
}
.header-search-wrapper .btn:hover { background: var(--gt-purple); color: #fff; border-color: var(--gt-purple); }
.header-search-wrapper:focus-within .btn, .header-search-wrapper:focus-within .form-control { border-color: var(--gt-purple); }

.third-header-bar { background: var(--gt-purple); color: #fff; position: relative; z-index: 1010; }
.third-bar-pages { background: #fff; border-bottom: 1px solid var(--gt-line); padding: 8px 0; }
.pages-nav-list { display: flex; align-items: center; justify-content: center; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.pages-nav-list a { color: var(--gt-ink); font-weight: 600; font-size: 14.5px; text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.pages-nav-list a:hover, .pages-nav-list .current-menu-item > a { color: var(--gt-purple); border-bottom-color: var(--gt-purple); }
.pages-nav-list a.text-danger { color: var(--gt-sale) !important; }
.category-nav-list { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 8px 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.category-nav-list::-webkit-scrollbar { display: none; }
.category-nav-item { position: relative; }
.category-nav-link {
    display: block; padding: 6px 14px; font-size: 13.5px; font-weight: 500; color: #fff;
    text-decoration: none; border-radius: 999px; background: rgba(255,255,255,.10); transition: background .18s;
}
.category-nav-link:hover { color: #fff; background: rgba(255,255,255,.22); }
.all-categories-btn { background: #fff !important; color: var(--gt-purple) !important; font-weight: 700; }
.all-categories-btn:hover { background: var(--gt-purple-soft) !important; }
.category-dropdown { display: none; position: absolute; top: 100%; left: 0; min-width: 190px; background: #fff; border-radius: 10px; box-shadow: var(--gt-shadow-hover); list-style: none; padding: 6px; margin: 4px 0 0; z-index: 1100; }
.category-nav-item:hover > .category-dropdown { display: block; }
.category-dropdown a { display: block; padding: 8px 12px; color: var(--gt-ink); text-decoration: none; border-radius: 6px; font-size: 14px; }
.category-dropdown a:hover { background: var(--gt-purple-soft); color: var(--gt-purple); }

/* Mobile offcanvas menu */
.offcanvas.offcanvas-purple-glass { background: var(--gt-purple-glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; }
.offcanvas-purple-glass .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,.15); }
.offcanvas-purple-glass .btn-close { filter: invert(1); }
.mobile-offcanvas-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-offcanvas-menu li { border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-offcanvas-menu li a, .mobile-offcanvas-menu .accordion-button {
    display: block; padding: 13px 20px; color: #F1ECFB; text-decoration: none; font-size: 15px; font-weight: 500;
    background: none; width: 100%; text-align: left; border: none; box-shadow: none !important;
}
.mobile-offcanvas-menu li a:hover, .mobile-offcanvas-menu .accordion-button:hover { color: #fff; background: rgba(255,255,255,.14); }
.mobile-offcanvas-menu .accordion-button::after { display: none; }
.mobile-offcanvas-menu .accordion-body { background: rgba(55,30,107,.6); padding: 0; }
.mobile-offcanvas-menu .accordion-body a { padding-left: 36px; font-size: 14px; }

/* Mobile bottom nav */
.mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; background: #fff; z-index: 1030;
    display: flex; align-items: center; justify-content: space-around;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gt-line);
    box-shadow: 0 -4px 16px rgba(30,26,43,.07);
}
.mobile-bottom-nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--gt-muted); text-decoration: none; font-size: 11px; font-weight: 500;
    flex: 1; position: relative; background: none; border: 0; cursor: pointer;
}
.mobile-bottom-nav-item i { font-size: 20px; margin-bottom: 1px; }
.mobile-bottom-nav-item.active, .mobile-bottom-nav-item.active i { color: var(--gt-purple) !important; font-weight: 700; }
.mobile-bottom-nav-badge {
    position: absolute; top: -3px; left: 54%; min-width: 17px; height: 17px; padding: 0 4px;
    background: var(--gt-cta); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
}
.mobile-bottom-nav-badge[data-count="0"] { display: none; }
@media (max-width: 991.98px) { body { padding-bottom: 64px; } }

@media (min-width: 992px) {
    .top-announcement-layout {
        grid-template-columns: minmax(155px, .8fr) minmax(220px, 1.3fr) minmax(390px, 1.8fr);
        gap: 12px;
    }
    .top-announcement-links {
        display: flex; align-items: center; justify-content: flex-end; gap: 7px;
        white-space: nowrap; font-size: 11px;
    }
    .top-announcement-bar a { margin-left: 0; }
}

@media (max-width: 575.98px) {
    .site-header { padding: 8px 0; }
    .site-header > .container > .d-flex { gap: 6px !important; }
    .site-branding { gap: 5px; }
    .site-branding .custom-logo, .site-branding img { max-width: 108px !important; max-height: 36px !important; }
    .site-logo-text { font-size: 19px; }
    .site-tagline { max-width: 78px; font-size: 8px; line-height: 1.2; }
    .site-header-actions { gap: 4px !important; }
    .site-header-actions .header-icon-btn { font-size: 18px; }
    .mobile-menu-btn { padding: 4px 7px; font-size: 20px; }
    .top-announcement-hotline { font-size: 10px; }
    .top-announcement-bar { font-size: 11px; padding: 5px 0; }
}

@media (max-width: 991.98px) {
    .site-header-actions .header-icon-btn:not(.header-points-btn) { display: none !important; }
    .site-header-actions .btn-contact-us { display: none !important; }
}

@media (max-width: 359.98px) {
    .site-branding { flex-direction: column; align-items: flex-start !important; gap: 2px; }
    .site-branding .custom-logo, .site-branding img { max-height: 30px !important; }
    .site-tagline { max-width: 120px; font-size: 7.5px; }
}

/* Floating chat */
.floating-chat-popup { position: fixed; bottom: 78px; right: 14px; z-index: 1040; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
@media (min-width: 992px) { .floating-chat-popup { bottom: 24px; } }
.chat-popup-box { background: #fff; padding: 8px; border-radius: 14px; box-shadow: var(--gt-shadow-hover); display: flex; flex-direction: column; gap: 8px; position: relative; border: 1px solid var(--gt-line); }
.chat-btn-item { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; text-decoration: none; transition: transform .15s; }
.chat-btn-item:hover { transform: scale(1.07); }
.whatsapp-chat-btn  { background: var(--gt-whatsapp);  color: #fff !important; }
.messenger-chat-btn { background: var(--gt-messenger); color: #fff !important; }
.chat-close-btn { position: absolute; top: -9px; right: -9px; background: var(--gt-ink); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 12px; display: flex; align-items: center; justify-content: center; }

/* =========================================================
   7. MINI CART DRAWER + TOAST
   ========================================================= */
.gt-drawer { width: min(420px, 100vw) !important; background: #fff; }
.gt-drawer .offcanvas-header { border-bottom: 1px solid var(--gt-line); padding: 16px 18px; }
.gt-drawer .offcanvas-title { font-weight: 700; color: var(--gt-ink); font-size: 18px; }
.gt-drawer__body { padding: 0; display: flex; flex-direction: column; height: 100%; }
.gt-mini-list { list-style: none; margin: 0; padding: 6px 18px; overflow-y: auto; flex: 1; }
.gt-mini-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--gt-line); align-items: start; }
.gt-mini-item img { width: 58px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--gt-paper-2); }
.gt-mini-item__title { font-size: 14px; font-weight: 600; color: var(--gt-ink); line-height: 1.35; text-decoration: none; display: block; margin-bottom: 4px; }
.gt-mini-item__price { font-size: 13.5px; color: var(--gt-muted); }
.gt-mini-item__line { font-weight: 700; color: var(--gt-ink); font-size: 14.5px; text-align: right; }
.gt-qty { display: inline-flex; align-items: center; border: 1px solid var(--gt-line); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.gt-qty button { width: 30px; height: 30px; border: 0; background: transparent; font-size: 16px; line-height: 1; color: var(--gt-ink); cursor: pointer; }
.gt-qty button:hover { background: var(--gt-purple-soft); color: var(--gt-purple); }
.gt-qty span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 600; }
.gt-mini-remove { border: 0; background: none; color: var(--gt-muted); font-size: 12.5px; padding: 6px 0 0; cursor: pointer; text-decoration: underline; display: block; margin-left: auto; }
.gt-mini-remove:hover { color: var(--gt-sale); }
.gt-mini-foot { border-top: 1px solid var(--gt-line); padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); background: var(--gt-paper); }
.gt-mini-subtotal { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; color: var(--gt-ink); margin-bottom: 4px; }
.gt-mini-note { font-size: 12.5px; color: var(--gt-muted); margin-bottom: 12px; }
.gt-mini-foot .gt-btn + .gt-btn { margin-top: 8px; }
.gt-mini-empty { text-align: center; padding: 56px 24px; color: var(--gt-muted); }
.gt-mini-empty i { font-size: 46px; color: #CFC5E4; display: block; margin-bottom: 10px; }
.gt-mini-list.is-busy { opacity: .55; pointer-events: none; }
.gt-freeship { margin-bottom: 12px; }
.gt-freeship__bar { height: 6px; background: var(--gt-line); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.gt-freeship__bar span { display: block; height: 100%; background: var(--gt-success); border-radius: 6px; transition: width .3s; }
.gt-freeship__text { font-size: 12.5px; color: var(--gt-text); }

.gt-toast {
    position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); opacity: 0; z-index: 2000;
    background: var(--gt-ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-size: 14px; font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,.25); pointer-events: none; transition: all .25s ease; max-width: 92vw; text-align: center;
}
.gt-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.gt-toast--error { background: var(--gt-sale); }
@media (min-width: 992px) { .gt-toast { bottom: 28px; } }

/* =========================================================
   8. HOME EXTRAS
   ========================================================= */
.quick-grid-btn {
    background: #fff; color: var(--gt-ink) !important; font-weight: 600; font-size: 14.5px;
    padding: 12px; border-radius: var(--gt-radius-sm) !important; border: 1px solid var(--gt-line);
    box-shadow: var(--gt-shadow); transition: all .2s; text-align: center;
}
.quick-grid-btn i { color: var(--gt-purple) !important; }
.quick-grid-btn:hover { border-color: var(--gt-purple); color: var(--gt-purple) !important; transform: translateY(-2px); }
.gt-homepage-divisions-wrapper { background: var(--gt-paper); }

/* =========================================================
   9. SINGLE PRODUCT HELPERS
   ========================================================= */
.gt-stockbar { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.gt-stockbar--in  { color: var(--gt-success); }
.gt-stockbar--out { color: var(--gt-sale); }
.gt-sticky-buy {
    position: fixed; left: 0; right: 0; bottom: 56px; z-index: 1025; background: #fff;
    border-top: 1px solid var(--gt-line); box-shadow: 0 -6px 20px rgba(30,26,43,.08);
    padding: 10px 14px; display: flex; align-items: center; gap: 12px;
}
.gt-sticky-buy__price { font-size: 18px; font-weight: 700; color: var(--gt-ink); line-height: 1.1; }
.gt-sticky-buy__price s { display: block; font-size: 12px; font-weight: 500; color: var(--gt-muted); }
.gt-sticky-buy .gt-btn { flex: 1; }
@media (min-width: 992px) { .gt-sticky-buy { display: none; } }

/* =========================================================
   10. FOOTER
   ========================================================= */
.site-footer { background: #17132A !important; }
.site-footer .footer-bullet-menu { list-style: none; padding: 0; margin: 0; }
.site-footer .footer-bullet-menu li { margin-bottom: 8px; }
.site-footer .footer-bullet-menu a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer .footer-bullet-menu a:hover { color: #fff; text-decoration: underline; }
.site-footer .developer-link { color: #CDBDF2; }

/* =========================================================
   11. WOOCOMMERCE NOTICES / MISC
   ========================================================= */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
    border-radius: var(--gt-radius-sm); padding: 12px 16px; margin: 0 0 16px; list-style: none;
    border: 1px solid var(--gt-line); background: #fff;
}
.woocommerce-message { border-left: 4px solid var(--gt-success); }
.woocommerce-info    { border-left: 4px solid var(--gt-purple); }
.woocommerce-error   { border-left: 4px solid var(--gt-sale); }

/* =========================================================
   12. SPECIAL OFFERS PAGE DESIGN
   ========================================================= */
.gt-offer-page-wrapper {
    background: var(--gt-paper);
    min-height: 60vh;
}
.gt-offer-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--gt-purple);
    margin-bottom: 4px;
}
.gt-offer-subtitle {
    font-size: 14.5px;
}
.gt-offer-empty-card {
    background: #ffffff;
    border: 1px solid var(--gt-line);
    border-radius: var(--gt-radius);
    box-shadow: var(--gt-shadow);
}
.gt-offer-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--gt-purple-soft);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 575.98px) {
    .gt-offer-title { font-size: 22px; }
    .gt-offer-empty-card { padding: 24px 16px !important; }
}

/* =========================================================
   12. SPECIAL OFFERS PAGE & ANIMATED RIBBON
   ========================================================= */
.gt-offer-page-wrapper {
    background: var(--gt-paper);
    min-height: 60vh;
}
.gt-offer-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--gt-purple);
    margin-bottom: 4px;
}
.gt-offer-subtitle {
    font-size: 14.5px;
}

/* Animated Offer Ribbon on Product Image */
.gt-offer-ribbon {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 5;
}
.gt-offer-ribbon span {
    background: linear-gradient(135deg, #e53935, #b71c1c);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    display: inline-block;
    animation: ribbonPulse 2s infinite ease-in-out;
}

@keyframes ribbonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); background: linear-gradient(135deg, #ff1744, #d50000); }
    100% { transform: scale(1); }
}

.gt-offer-empty-card {
    background: #ffffff;
    border: 1px solid var(--gt-line);
    border-radius: var(--gt-radius);
    box-shadow: var(--gt-shadow);
}
.gt-offer-empty-icon {
    width: 80px;
    height: 80px;
    background: var(--gt-purple-soft);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Live Search Rokomari Dropdown Styling */
#gt-search-suggestions-dropdown {
    top: 100%;
    box-shadow: 0 10px 25px rgba(30, 26, 43, 0.15) !important;
}
.gt-search-item:hover {
    background-color: var(--gt-purple-soft);
}
.spin {
    animation: gt-spin .8s linear infinite;
    display: inline-block;
}