/* ============================================================
   MEGASHOP BIDYAKUT â€” Customer storefront premium theme
   Loaded ONLY from includes/partials/header.php (customer pages).
   Admin / vendor / agent interfaces never load this file, so they
   remain untouched. Receipt pages are standalone (receipt.css only).
   ============================================================ */

/* ------------------------------------------------------------
   1. DESIGN TOKENS (customer-only additions to style.css)
   ------------------------------------------------------------ */
:root {
    --c-brand: #0d6e4b;
    --c-brand-dark: #095638;
    --c-brand-darker: #064228;
    --c-brand-soft: #e8f5ef;
    --c-teal: #0f766e;
    --c-teal-soft: #e7f6f4;
    --c-amber: #f59e0b;
    --c-amber-dark: #b45309;
    --c-amber-soft: #fef3c7;
    --c-blue: #2563eb;
    --c-blue-soft: #e8effd;
    --c-purple: #7c3aed;
    --c-purple-soft: #f2ecfc;
    --c-rose: #e11d48;
    --c-rose-soft: #fde8ec;
    --c-sky: #0891b2;
    --c-sky-soft: #e0f7fe;
    --c-ink: #17251e;
    --c-ink-soft: #4a5b52;
    --c-muted: #64756c;

    --c-gradient-brand: linear-gradient(135deg, #0f766e 0%, #0d6e4b 55%, #095638 100%);
    --c-gradient-amber: linear-gradient(135deg, #fbbf24 0%, #f59e0b 55%, #d97706 100%);
    --c-gradient-rose: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
    --c-gradient-sky: linear-gradient(135deg, #38bdf8 0%, #0891b2 100%);
    --c-gradient-purple: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%);

    /* Theme-aware gradients (defaults mirror the current brand) */
    --theme-gradient-brand: linear-gradient(135deg, var(--theme-secondary, #0f766e) 0%, var(--theme-primary, #0d6e4b) 55%, var(--theme-primary-dark, #095638) 100%);
    --theme-gradient-amber: linear-gradient(135deg, var(--theme-accent-light, #fbbf24) 0%, var(--theme-accent, #f59e0b) 55%, var(--theme-accent-dark, #d97706) 100%);
    --theme-gradient-rose: linear-gradient(135deg, var(--theme-discount-light, #fb7185) 0%, var(--theme-discount, #e11d48) 100%);
    --theme-gradient-sky: linear-gradient(135deg, var(--theme-info-light, #38bdf8) 0%, var(--theme-info, #0891b2) 100%);
    --c-shadow-sm: 0 2px 8px var(--theme-card-shadow-rgba, rgba(9, 86, 56, 0.08));
    --c-shadow: 0 10px 28px var(--theme-card-shadow-rgba-mid, rgba(9, 86, 56, 0.12));
    --c-shadow-lg: 0 22px 48px var(--theme-card-shadow-rgba-strong, rgba(9, 86, 56, 0.18));
    --c-radius: var(--theme-card-radius, 1rem);
    --c-radius-lg: calc(var(--theme-card-radius, 1rem) + 0.25rem);
    --c-radius-xl: 1.75rem;
}

/* ------------------------------------------------------------
   2. BASE + TYPOGRAPHY
   ------------------------------------------------------------ */
body {
    background: var(--theme-body-bg, #f4faf6);
    background-image:
        radial-gradient(1100px 480px at 85% -120px, #e4f6ec 0%, rgba(228, 246, 236, 0) 60%),
        radial-gradient(900px 420px at -120px 140px, #e8f4fd 0%, rgba(232, 244, 253, 0) 55%),
        linear-gradient(180deg, var(--theme-body-bg-top, #f7fcf9) 0%, var(--theme-body-bg-bottom, #f2f8f5) 100%);
    background-attachment: fixed;
    color: var(--theme-text, var(--c-ink));
}

::selection {
    background: var(--theme-primary, var(--c-brand));
    color: #ffffff;
}

.main-wrap {
    min-height: 60vh;
}

/* Numeric strings (prices, order numbers) align neatly beside Bangla */
.product-price,
.product-info-price-current,
.product-info-price-old,
.cart-item-total-amount,
.cart-summary-row span:last-child,
.account-stat-value,
.order-detail-meta strong,
.meta-value,
.orders-table td,
.checkout-line-amount,
.order-success-meta .meta-value {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

/* ------------------------------------------------------------
   3. ACCESSIBILITY
   ------------------------------------------------------------ */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid rgba(var(--theme-primary-rgb, 13, 110, 75), 0.45);
    outline-offset: 2px;
    border-radius: 0.3rem;
}

/* ------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------ */
.btn {
    border-radius: var(--theme-button-radius, 0.7rem);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease,
                border-color 0.2s ease, color 0.2s ease;
}

.btn:active:not(.btn-close):not(:disabled) {
    transform: translateY(1px);
}

.btn-primary {
    background-image: var(--theme-gradient-brand);
    border: none;
    color: var(--theme-button-primary-text, #ffffff);
    box-shadow: inset 0 0 0 1.5px var(--theme-button-border, transparent), 0 8px 18px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
    background-image: var(--theme-gradient-brand);
    color: var(--theme-button-primary-text, #ffffff);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1.5px var(--theme-button-border, transparent), 0 12px 24px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.3);
}

.btn-outline-primary {
    border: 1.5px solid var(--theme-primary, var(--c-brand));
    color: var(--theme-primary-dark, var(--c-brand-dark));
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: var(--theme-primary-soft, var(--c-brand-soft));
    border-color: var(--theme-primary-dark, var(--c-brand-dark));
    color: var(--theme-primary-darker, var(--c-brand-darker));
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(var(--theme-primary-rgb, 13, 110, 75), 0.14);
}

.btn-outline-secondary {
    border: 1.5px solid #c9d6cf;
    color: var(--c-ink-soft);
    background: transparent;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: #f1f6f3;
    border-color: #b6c6bd;
    color: var(--c-ink);
    transform: translateY(-1px);
}

.btn-outline-danger {
    border: 1.5px solid var(--theme-danger, var(--c-rose));
    color: var(--theme-danger, var(--c-rose));
    background: transparent;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background: var(--c-rose-soft);
    border-color: var(--c-rose);
    color: #9f1239;
    transform: translateY(-1px);
}

.btn-shopping {
    background-image: var(--theme-gradient-brand);
    border: none;
    color: var(--theme-button-primary-text, #ffffff);
    font-weight: 700;
    box-shadow: inset 0 0 0 1.5px var(--theme-button-border, transparent), 0 8px 20px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.26);
}

.btn-shopping:hover,
.btn-shopping:focus {
    background-image: var(--theme-gradient-brand);
    color: var(--theme-button-primary-text, #ffffff);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1.5px var(--theme-button-border, transparent), 0 12px 26px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.34);
}

.btn:disabled,
.btn.disabled {
    filter: saturate(0.5);
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

/* Storefront card buttons */
.add-cart-btn {
    background-image: var(--theme-gradient-brand);
    border: none;
    color: var(--theme-button-primary-text, #ffffff);
    font-weight: 600;
    box-shadow: inset 0 0 0 1.5px var(--theme-button-border, transparent), 0 6px 14px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.2);
}

.add-cart-btn:hover,
.add-cart-btn:focus {
    color: var(--theme-button-primary-text, #ffffff);
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1.5px var(--theme-button-border, transparent), 0 10px 20px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.3);
}

.card-details-btn {
    border: 1.5px solid #c9d6cf;
    color: var(--c-ink-soft);
    background: var(--theme-card-bg, #ffffff);
}

.card-details-btn:hover,
.card-details-btn:focus {
    background: var(--theme-primary-soft, var(--c-brand-soft));
    border-color: var(--theme-primary, var(--c-brand));
    color: var(--theme-primary-dark, var(--c-brand-dark));
    transform: translateY(-1px);
}

.outline-btn {
    border: 1.5px solid var(--theme-primary, var(--c-brand));
    color: var(--theme-primary-dark, var(--c-brand-dark));
    background: transparent;
    font-weight: 600;
}

.outline-btn:hover,
.outline-btn:focus {
    background: var(--theme-primary-soft, var(--c-brand-soft));
    border-color: var(--theme-primary-dark, var(--c-brand-dark));
    color: var(--theme-primary-darker, var(--c-brand-darker));
    transform: translateY(-1px);
}

/* ------------------------------------------------------------
   5. HEADER / NAVBAR
   ------------------------------------------------------------ */
.site-header {
    /* Soft light-yellow navbar surface; zero block padding keeps the
        header at its compact baseline height (row/catbar carry their
        own spacing; opaque bg -> blur not needed) */
    background: #fff8d6;
    padding: 0;
    box-shadow: 0 2px 14px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.08);
    border-bottom: 1px solid rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.08);
}

.site-header.is-scrolled {
    box-shadow: 0 6px 22px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.16);
}

.topbar {
    border-bottom: none;
}

.brand-logo {
    background: var(--theme-gradient-brand);
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.2s ease;
}

.brand-link:hover .brand-logo {
    transform: rotate(-6deg) scale(1.05);
}

.brand-name {
    color: var(--theme-brand-name, var(--theme-header-text, var(--c-brand-darker)));
    font-weight: 800;
}

/* Mobile search band (overrides style.css --bg-white) */
.site-header .mobile-search {
    background: var(--theme-header-secondary, #ffffff);
}

.toggler-btn {
    border-radius: 12px;
    border: 1px solid #d9e4dd;
    color: var(--theme-primary, var(--c-brand));
    background: var(--theme-header-bg, #ffffff);
    box-shadow: var(--c-shadow-sm);
}

.toggler-btn:hover {
    background: var(--theme-header-btn-hover, var(--theme-primary-soft, var(--c-brand-soft)));
}

/* Search pill */
.search-form .form-control {
    background: var(--theme-search-bg, #f0f7f3);
    border: 1.5px solid var(--theme-search-border, transparent);
    box-shadow: inset 0 1px 2px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.04);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-form .form-control:focus {
    background: var(--theme-card-bg, #ffffff);
    border-color: var(--theme-primary, var(--c-brand));
    box-shadow: 0 0 0 0.25rem rgba(var(--theme-primary-rgb, 13, 110, 75), 0.15);
}

.search-btn {
    background: var(--theme-search-btn-bg, var(--theme-gradient-brand));
    box-shadow: 0 4px 10px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.24);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.search-btn:hover {
    background: var(--theme-search-btn-bg, var(--theme-gradient-brand));
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.3);
}

/* Action icons */
.icon-btn {
    background: var(--theme-search-bg, #f0f7f3);
    color: var(--theme-primary-dark, var(--c-brand-dark));
    border: 1px solid transparent;
    transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease,
                box-shadow 0.2s ease;
}

.icon-btn:hover {
    background: var(--theme-primary-soft, var(--c-brand-soft));
    color: var(--theme-primary-dark, var(--c-brand-dark));
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.16);
}

.cart-badge {
    background: var(--theme-gradient-amber);
    color: #3b2500;
    font-weight: 800;
    font-size: 0.7rem;
    box-shadow: 0 0 0 2px var(--theme-header-bg, #ffffff);
    min-width: 19px;
    height: 19px;
    line-height: 19px;
}

.wishlist-badge {
    background: var(--theme-gradient-rose);
    color: #ffffff;
}

/* Account dropdown trigger + menu */
.account-btn {
    border: 1.5px solid #d9e4dd;
    border-radius: 0.9rem;
    color: var(--theme-header-text, var(--c-brand-darker));
    background: var(--theme-header-bg, #ffffff);
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    box-shadow: var(--c-shadow-sm);
}

.account-btn:hover,
.account-btn:focus {
    background: var(--theme-header-btn-hover, var(--theme-primary-soft, var(--c-brand-soft)));
    border-color: var(--theme-primary, var(--c-brand));
    color: var(--theme-primary-dark, var(--c-brand-dark));
}

.account-menu {
    border: 1px solid var(--theme-border, #e2ece7);
    border-radius: 0.9rem;
    box-shadow: var(--c-shadow);
    padding: 0.4rem;
}

.account-menu .dropdown-item {
    border-radius: 0.6rem;
    font-weight: 500;
    padding: 0.55rem 0.85rem;
}

.account-menu .dropdown-item i {
    color: var(--theme-primary, var(--c-brand));
    width: 1.25rem;
    text-align: center;
}

.account-menu .dropdown-item:hover,
.account-menu .dropdown-item:focus {
    background: var(--theme-primary-soft, var(--c-brand-soft));
    color: var(--theme-primary-darker, var(--c-brand-darker));
}

/* Category bar — amber #ffc107 band; layout, height and child
     positioning untouched */
.catbar {
    background: #ffc107;
    box-shadow: 0 4px 14px rgba(9, 86, 56, 0.16);
}

.cat-btn {
    color: var(--theme-primary-darker, var(--c-brand-darker));
    font-weight: 700;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 0.7rem;
    box-shadow: 0 2px 8px rgba(6, 66, 40, 0.28);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.cat-btn:hover,
.cat-btn:focus {
    background: var(--theme-gradient-amber);
    color: #201600;
    transform: translateY(-1px);
}

.cat-caret {
    transition: transform 0.2s ease;
}

.catbar-msg {
    color: #ffffff;
}

.cat-menu {
    border: 1px solid var(--theme-border, #e2ece7);
    border-radius: 0.9rem;
    box-shadow: var(--c-shadow-lg);
    padding: 0.4rem;
    min-width: 240px;
}

.cat-menu .dropdown-item {
    border-radius: 0.6rem;
    padding: 0.55rem 0.85rem;
    font-weight: 500;
}

.cat-menu .dropdown-item i {
    color: var(--theme-accent, var(--c-amber));
    width: 1.1rem;
    text-align: center;
}

.cat-menu .dropdown-item:hover,
.cat-menu .dropdown-item:focus {
    background: var(--theme-primary-soft, var(--c-brand-soft));
    color: var(--theme-primary-darker, var(--c-brand-darker));
}

/* ------------------------------------------------------------
   5.1 UNIFIED RESPONSIVE NAVBAR — desktop presentation at every
   width. Scoped overrides that beat Bootstrap's d-* utilities
   inside the header only; >=992px behaviour is untouched.
   ------------------------------------------------------------ */
.site-header form.search-form.d-none {
    display: flex !important;
}

.site-header a.icon-btn.d-none {
    display: inline-grid !important;
}

.site-header nav.catbar.d-none {
    display: block !important;
}

/* Wrapped search row replaces the old standalone mobile band */
.site-header .mobile-search.d-lg-none {
    display: none !important;
}

/* ------------------------------------------------------------
   Action group (wishlist / cart / account) lives IN the green
   category bar, occupying the old tagline slot on its right.
   Pulled out of the topbar flow (absolute) so no empty gap is
   left behind; per-breakpoint top anchors it to the bar band.
   ------------------------------------------------------------ */
.site-header .topbar-actions {
    position: absolute;
    z-index: 6;
}

/* Account keeps its full desktop composition (label + caret) at
   every width — the bar row always has room for it */
.site-header .account-label,
.site-header .account-btn .fa-chevron-down {
    display: inline !important;
}

@media (min-width: 1200px) {
    /* container 1140px: content inset 12px from the 570px half */
    .site-header .topbar-actions {
        top: 69.2px;
        right: calc(50% - 558px);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    /* container 960px */
    .site-header .topbar-actions {
        top: 69.2px;
        right: calc(50% - 468px);
    }
}

@media (max-width: 991.98px) {
    .site-header .topbar .container > .d-flex {
        flex-wrap: wrap;
        gap: 0.375rem !important;
    }

    .site-header .topbar form.search-form {
        flex: 1 1 100%;
        max-width: none;
        order: 10;
    }

    /* container 720px (md) */
    .site-header .topbar-actions {
        top: 121.2px;
        right: calc(50% - 348px);
    }
}

@media (max-width: 575.98px) {
    /* fluid container: flush with the 12px content inset;
        bar band sits at y=100.8 after the action row left the flow */
    .site-header .topbar-actions {
        top: 113.2px;
        right: 12px;
    }
}

/* Mobile off-canvas menu */
.mobile-menu {
    border-right: 1px solid var(--theme-border, #e2ece7);
    box-shadow: var(--c-shadow-lg);
}

.mobile-menu .offcanvas-header {
    border-bottom: 1px solid #eef4f0;
    background: linear-gradient(180deg, var(--theme-body-bg, #f4faf6) 0%, var(--theme-header-bg, #ffffff) 100%);
}

.mobile-section {
    margin-bottom: 1.25rem;
}

.mobile-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--theme-primary, var(--c-brand));
    margin: 0.4rem 0 0.6rem;
    padding-left: 0.25rem;
}

.mobile-welcome {
    background: var(--theme-primary-soft, var(--c-brand-soft));
    border-radius: 0.7rem;
    padding: 0.55rem 0.75rem;
    font-weight: 600;
    color: var(--theme-primary-darker, var(--c-brand-darker));
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.7rem;
    color: var(--theme-text, var(--c-ink));
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-link i {
    color: var(--theme-primary, var(--c-brand));
    width: 1.2rem;
    text-align: center;
}

.mobile-link:hover,
.mobile-link:focus {
    background: var(--theme-primary-soft, var(--c-brand-soft));
    color: var(--theme-primary-darker, var(--c-brand-darker));
}

/* ------------------------------------------------------------
   6. BREADCRUMB + PAGE TITLES
   ------------------------------------------------------------ */
.breadcrumb {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--theme-card-border, #e6efe9);
    border-radius: 0.9rem;
    padding: 0.5rem 0.9rem;
    box-shadow: var(--c-shadow-sm);
}

.breadcrumb-item {
    font-size: 0.85rem;
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--theme-link, var(--c-brand));
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--c-brand-darker);
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--c-ink-soft);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #aebcb4;
}

.cart-page-title {
    font-weight: 800;
    color: var(--theme-heading, var(--c-brand-darker));
    position: relative;
    padding-bottom: 0.55rem;
    display: inline-block;
}

.cart-page-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58px;
    height: 4px;
    border-radius: 99px;
    background: var(--theme-gradient-amber);
}

/* ------------------------------------------------------------
   7. SECTION HEADS
   ------------------------------------------------------------ */
.home-section {
    padding: 3rem 0;
}

.home-section + .home-section,
.search-suggest {
    padding-top: 0;
}

.section-title {
    font-weight: 800;
    color: var(--theme-heading, var(--c-brand-darker));
    position: relative;
    display: inline-block;
    padding-bottom: 0.4rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 52px;
    border-radius: 99px;
    background: var(--theme-primary, #087f5b);
}

.section-sub {
    color: var(--theme-section-heading, var(--theme-muted, var(--c-muted)));
    font-weight: 500;
}

/* ------------------------------------------------------------
   8. HERO (home)
   ------------------------------------------------------------ */
.hero {
    padding: 3.25rem 0;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(720px 300px at 8% 0%, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0) 60%),
        radial-gradient(760px 320px at 92% 6%, rgba(245, 158, 11, 0.16) 0%, rgba(245, 158, 11, 0) 60%),
        linear-gradient(150deg, var(--theme-hero-top, #eafaf2) 0%, var(--theme-hero-mid, #e3f6ee) 38%, var(--theme-hero-bottom, #ddf3f0) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -50px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--theme-accent-rgb, 245, 158, 11), 0.22) 0%, rgba(var(--theme-accent-rgb, 245, 158, 11), 0) 70%);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -90px;
    left: -60px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--theme-primary-rgb, 13, 110, 75), 0.18) 0%, rgba(var(--theme-primary-rgb, 13, 110, 75), 0) 70%);
    pointer-events: none;
}

.hero-card {
    background: color-mix(in srgb, var(--theme-card-bg, #ffffff) 78%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid color-mix(in srgb, var(--theme-card-bg, #ffffff) 90%, transparent);
    border-radius: var(--c-radius-xl);
    box-shadow: var(--c-shadow-lg);
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: var(--theme-gradient-amber);
}

.hero-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.25rem;
    display: grid;
    place-items: center;
    font-size: 2.1rem;
    color: #ffffff;
    background: var(--theme-gradient-brand);
    border-radius: 1.5rem;
    box-shadow: 0 14px 30px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.32);
    transform: rotate(-6deg);
}

.hero-title {
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--theme-heading, var(--c-brand-darker));
    background: var(--theme-gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
}

.hero-sub {
    font-size: clamp(1rem, 2.4vw, 1.2rem);
    color: var(--theme-hero-text, var(--c-ink-soft));
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    gap: 0.9rem;
}

.hero-btn {
    border-radius: 0.9rem;
    padding: 0.7rem 1.6rem;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
}

.hero-btn-primary {
    background: #198754;
    border: none;
    color: var(--theme-button-primary-text, #ffffff);
    box-shadow: inset 0 0 0 1.5px var(--theme-button-border, transparent), 0 12px 26px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.3);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus {
    background: #146c43;
    color: var(--theme-button-primary-text, #ffffff);
    box-shadow: inset 0 0 0 1.5px var(--theme-button-border, transparent), 0 16px 32px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.38);
}

.hero-btn-outline {
    background: color-mix(in srgb, var(--theme-card-bg, #ffffff) 90%, transparent);
    border: 2px solid var(--theme-link, var(--c-brand));
    color: var(--theme-link-hover, var(--c-brand-dark));
}

.hero-btn-outline:hover,
.hero-btn-outline:focus {
    background: var(--theme-primary-soft, var(--c-brand-soft));
    border-color: var(--theme-link-hover, var(--c-brand-dark));
    color: var(--theme-primary-darker, var(--c-brand-darker));
}

/* ------------------------------------------------------------
   9. CATEGORY CHIPS
   ------------------------------------------------------------ */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.cat-chip {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--theme-card-bg, #ffffff);
    border: 1px solid var(--theme-card-border, #e6efe9);
    border-radius: var(--c-radius);
    padding: 0.9rem 1rem;
    text-decoration: none;
    box-shadow: var(--c-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.2s ease;
    min-width: 0;
}

.cat-chip:hover,
.cat-chip:focus {
    transform: translateY(-4px);
    box-shadow: var(--c-shadow);
    border-color: rgba(13, 110, 75, 0.35);
    text-decoration: none;
}

.cat-chip-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    border-radius: 0.95rem;
    background: var(--theme-primary-soft, var(--c-brand-soft));
    color: var(--theme-primary, var(--c-brand));
    transition: transform 0.2s ease;
}

.cat-chip:hover .cat-chip-icon {
    transform: scale(1.1) rotate(-6deg);
}

/* colourful per-position icon tints */
.cat-grid .cat-chip:nth-child(8n + 1) .cat-chip-icon { background: var(--c-brand-soft); color: var(--c-brand); }
.cat-grid .cat-chip:nth-child(8n + 2) .cat-chip-icon { background: var(--c-amber-soft); color: var(--c-amber-dark); }
.cat-grid .cat-chip:nth-child(8n + 3) .cat-chip-icon { background: var(--c-blue-soft); color: var(--c-blue); }
.cat-grid .cat-chip:nth-child(8n + 4) .cat-chip-icon { background: var(--c-teal-soft); color: var(--c-teal); }
.cat-grid .cat-chip:nth-child(8n + 5) .cat-chip-icon { background: var(--c-purple-soft); color: var(--c-purple); }
.cat-grid .cat-chip:nth-child(8n + 6) .cat-chip-icon { background: var(--c-rose-soft); color: var(--c-rose); }
.cat-grid .cat-chip:nth-child(8n + 7) .cat-chip-icon { background: var(--c-sky-soft); color: var(--c-sky); }
.cat-grid .cat-chip:nth-child(8n + 8) .cat-chip-icon { background: #fdf0dc; color: #b45309; }

.cat-chip-body {
    min-width: 0;
}

.cat-chip-name {
    display: block;
    color: var(--c-ink);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.3;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cat-chip-count {
    display: block;
    color: var(--c-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

/* ------------------------------------------------------------
   10. PRODUCT CARDS
   ------------------------------------------------------------ */
.product-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: var(--c-radius-lg);
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
}

.product-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #ddd;
}

.product-card-media {
    display: block;
    aspect-ratio: 4 / 3;
    background: #ffffff;
    overflow: hidden;
}

/* Legacy badge overlays — hidden (stock & wishlist moved to info row) */
.product-card .product-badge { display: none; }

.product-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-card:hover .product-card-media img {
    transform: none;
}

.product-badge {
    position: absolute;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.6rem;
    border-radius: 99px;
    box-shadow: none;
}

.product-badge.discount {
    top: 0.75rem;
    left: 0.75rem;
    background: var(--theme-gradient-rose);
    color: #ffffff;
    box-shadow: none;
}

.product-badge.stock {
    top: auto;
    right: auto;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.94);
    color: var(--theme-text, var(--c-ink));
    border: 1px solid #e0e9e4;
    box-shadow: none;
}

.product-badge.stock.in { color: var(--theme-stock, var(--c-brand-dark)); }
.product-badge.stock.low { color: var(--theme-warning, var(--c-amber-dark)); }
.product-badge.stock.out { color: var(--theme-danger, var(--c-rose)); }

.product-wishlist-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: #fff0f3;
    color: #e11d48;
    border: 1px solid rgba(225, 29, 72, 0.18);
    box-shadow: none;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
    cursor: pointer;
}

.product-wishlist-btn:hover,
.product-wishlist-btn:focus {
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border-color: transparent;
    text-decoration: none;
}

.product-wishlist-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border-color: transparent;
}

/* ---- Info row below image: stock badge + wishlist inline ---- */
.product-card-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem 0;
    min-height: 0;
}

.product-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.18rem 0.52rem;
    border-radius: 0.4rem;
    white-space: nowrap;
    line-height: 1.4;
}

.product-stock-badge.in {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid rgba(4, 120, 87, 0.16);
}

.product-stock-badge.low {
    background: #fff7ed;
    color: #b45309;
    border: 1px solid rgba(180, 83, 9, 0.16);
}

.product-stock-badge.out {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.16);
}

/* Wishlist button inside info row */
.product-card-info-row .product-wishlist-form {
    margin-left: auto;
}

.product-card-info-row .product-wishlist-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff0f3;
    color: #e11d48;
    border: 1px solid rgba(225, 29, 72, 0.18);
    box-shadow: none;
}

.product-card-info-row .product-wishlist-btn:hover,
.product-card-info-row .product-wishlist-btn:focus {
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border-color: transparent;
    box-shadow: none;
}

.product-card-info-row .product-wishlist-label {
    display: none;
}

.product-card-body {
    padding: 0.9rem 1rem 0.35rem;
    flex: 1 1 auto;
}

.product-name {
    display: block;
    color: var(--theme-product-title, var(--theme-card-text, var(--c-ink)));
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.45;
    text-decoration: none;
    min-height: 2.85em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name:hover {
    color: var(--theme-link, var(--c-brand));
}

.product-shop {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--theme-muted, var(--c-muted));
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: 0.15rem;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-shop:hover {
    color: var(--theme-link, var(--c-brand));
}

.product-shop i {
    color: var(--theme-secondary, var(--c-teal));
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--theme-rating, var(--theme-warning, var(--c-amber-dark)));
    margin-top: 0.3rem;
}

.product-rating-count {
    color: var(--theme-muted, var(--c-muted));
    font-weight: 500;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}

.product-price {
    color: var(--theme-product-price, var(--c-brand-dark));
    font-weight: 800;
    font-size: 1.08rem;
}

.product-price-old {
    color: var(--theme-product-old-price, #98a59e);
    font-weight: 500;
    font-size: 0.86rem;
}

.product-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0.7rem 1rem 1rem;
    margin-top: auto;
}

.product-card-actions .btn {
    flex: 1 1 auto;
    font-size: 0.85rem;
    padding: 0.5rem 0.6rem;
}

.product-img-placeholder,
.shop-img-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #b6c6bd;
    background: #ffffff;
    font-size: 2.2rem;
}

/* ------------------------------------------------------------
   11. SHOP CARDS
   ------------------------------------------------------------ */
.shop-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: var(--c-radius-lg);
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.shop-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #ddd;
}

.shop-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    min-height: 100px;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

.shop-card-media.has-cover {
    background: #ffffff;
}

.shop-card-media.has-cover .shop-card-avatar {
    display: none;
}

.shop-card-media .shop-card-cover {
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.shop-card:hover .shop-card-cover {
    transform: none;
}

.shop-card-avatar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    color: var(--theme-shop-logo-bg, var(--c-brand));
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    border: none;
    overflow: hidden;
}

.shop-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.shop-card-location {
    display: none;
}

.shop-card-body {
    padding: 0.95rem 1.05rem 1rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.shop-name {
    display: block;
    color: var(--theme-shop-title, var(--theme-shop-card-text, var(--c-ink)));
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-name:hover {
    color: var(--theme-link, var(--c-brand));
}

.shop-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--theme-verified, var(--theme-primary-dark, var(--c-brand-dark)));
    background: var(--theme-primary-soft, var(--c-brand-soft));
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.18rem 0.6rem;
    margin-top: 0.4rem;
}

.shop-category {
    display: block;
    color: var(--theme-shop-category, var(--theme-shop-accent, var(--c-teal)));
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: 0.25rem;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.shop-desc {
    color: var(--theme-shop-meta, var(--theme-muted, var(--c-muted)));
    font-size: 0.86rem;
    line-height: 1.55;
    margin: 0.4rem 0;
    flex: 1 1 auto;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.shop-card-meta {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.7rem;
}

.shop-rating {
    color: var(--theme-warning, var(--c-amber-dark));
    font-weight: 700;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.shop-rating-count {
    color: var(--theme-muted, var(--c-muted));
    font-weight: 500;
    font-size: 0.8rem;
}

.shop-rating.empty {
    color: var(--theme-muted, var(--c-muted));
    font-weight: 500;
}

.shop-products {
    color: var(--theme-shop-meta, var(--theme-muted, var(--c-muted)));
    font-size: 0.82rem;
    font-weight: 500;
}

.shop-view-btn {
    display: flex;
    /* Match Product Card details button width exactly:
        body inline padding (1.05rem) now equals the product actions
        inset, so the button simply fills the content column */
    width: 100%;
    /* Center the button horizontally inside the card */
    margin-inline: auto;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    /* Solid midnight-blue states; white text/icon for contrast */
    background-image: none;
    background-color: #191970;
    border: 1.5px solid #191970;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 0.7rem;
    padding: 0.5rem 0.85rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.shop-view-btn:hover,
.shop-view-btn:focus {
    background-image: none;
    background-color: #15155c;
    border-color: #15155c;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(25, 25, 112, 0.35);
}

.shop-view-btn:active:not(:disabled):not(.disabled) {
    background-image: none;
    background-color: #101047;
    border-color: #101047;
    color: #ffffff;
}

/* Mobile: product actions inline padding drops to 0.85rem (13.6px),
    so the matching button becomes 6.4px wider than shop body content
    (16.8px padding); symmetric negative margins keep it centered and
    inside the card. */
@media (max-width: 575.98px) {
    .shop-view-btn {
        width: calc(100% + 6.4px);
        margin-inline: -3.2px;
    }
}

/* ------------------------------------------------------------
   12. EMPTY STATES + ALERTS
   ------------------------------------------------------------ */
.empty-state {
    background: var(--theme-card-bg, #ffffff);
    border: 1px dashed #c9d8d0;
    border-radius: var(--c-radius-lg);
    padding: 2.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--c-shadow-sm);
}

.empty-state-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.1rem;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: #ffffff;
    background: var(--theme-gradient-brand);
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.28);
}

.empty-state h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--theme-heading, var(--c-brand-darker));
}

.empty-state-text {
    color: var(--c-ink-soft);
    margin-bottom: 0.4rem;
}

.empty-state-hint {
    color: var(--theme-muted, var(--c-muted));
    font-size: 0.88rem;
}

.alert {
    border-radius: 0.85rem;
    border-width: 1px;
    box-shadow: var(--c-shadow-sm);
}

.alert-dismissible .btn-close {
    filter: none;
}

/* ------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------ */
.site-footer {
    background: linear-gradient(170deg, var(--theme-footer-bg, #0b3d2c) 0%, var(--theme-footer-bg-dark, #082a1f) 55%, var(--theme-footer-bg-darker, #052117) 100%);
    color: var(--theme-footer-text, #cfe6da);
    /* Content areas already carry their own bottom padding, so the
        footer adds none — the old extra margin stacked on top of it
        and opened an oversized hole above the footer */
    margin-top: 0;
    border-top: 4px solid var(--theme-footer-accent, var(--c-amber));
}

.site-footer .brand-logo {
    background: var(--theme-gradient-brand);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.footer-brand .brand-name {
    color: var(--theme-footer-heading, #ffffff);
}

.footer-about {
    color: var(--theme-footer-link, #a9c9ba);
    font-size: 0.92rem;
    line-height: 1.65;
}

.footer-contact li a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--theme-footer-text, #cfe6da);
    text-decoration: none;
    font-size: 0.92rem;
}

.footer-contact li a:hover {
    color: var(--theme-footer-hover, #ffd27d);
}

.footer-contact li i {
    color: var(--theme-footer-accent, var(--c-amber));
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--theme-footer-heading, #ffffff);
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.2s ease;
}

.footer-social a:hover {
    background: var(--theme-footer-accent, var(--c-amber));
    color: #3b2500;
    transform: translateY(-3px);
}

.site-footer .footer-title {
    color: var(--theme-footer-heading, #ffffff);
    font-weight: 700;
    font-size: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.site-footer .footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 3px;
    border-radius: 99px;
    background: var(--theme-footer-accent, var(--c-amber));
}

.site-footer .footer-title,
.site-footer h5 {
    color: var(--theme-footer-heading, #ffffff);
}

.site-footer ul li {
    margin-bottom: 0.45rem;
}

.site-footer ul li a {
    color: var(--theme-footer-link, #a9c9ba);
    text-decoration: none;
    font-size: 0.9rem;
}

.site-footer ul li a:hover {
    color: var(--theme-footer-hover, #ffd27d);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.28);
    border-top: 1px solid var(--theme-footer-border, rgba(255, 255, 255, 0.08));
    color: var(--theme-footer-link, #a9c9ba);
    font-size: 0.85rem;
    padding: 1rem 0;
}

/* ------------------------------------------------------------
   14. CATEGORY PAGE (head + toolbar)
   ------------------------------------------------------------ */
.category-head {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: var(--theme-category-head-bg, linear-gradient(135deg, #eafaf2 0%, #e7f6f4 60%, #fdf4e1 100%));
    border: 1px solid rgba(var(--theme-primary-rgb, 13, 110, 75), 0.12);
    border-radius: var(--c-radius-lg);
    padding: 1.4rem 1.4rem;
    box-shadow: var(--c-shadow-sm);
    margin-bottom: 1.4rem;
}

.category-head-icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    color: #ffffff;
    background: var(--theme-gradient-brand);
    border-radius: 1.1rem;
    box-shadow: 0 10px 24px rgba(var(--theme-primary-dark-rgb, 9, 86, 56), 0.3);
}

.category-head-body {
    min-width: 0;
}

.category-head-title {
    font-weight: 800;
    color: var(--theme-heading, var(--c-brand-darker));
    font-size: 1.5rem;
    margin-bottom: 0.15rem;
}

.category-head-desc {
    color: var(--c-ink-soft);
    margin-bottom: 0.3rem;
}

.category-head-count {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--theme-primary-dark, var(--c-brand-dark));
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(var(--theme-primary-rgb, 13, 110, 75), 0.15);
    border-radius: 99px;
    padding: 0.3rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.category-toolbar {
    background: var(--theme-card-bg, #ffffff);
    border: 1px solid var(--theme-card-border, #e6efe9);
    border-radius: var(--c-radius);
    padding: 0.75rem;
    box-shadow: var(--c-shadow-sm);
    margin-bottom: 1.1rem;
}

.category-toolbar-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.category-search {
    position: relative;
    flex: 1 1 240px;
}

.category-search .form-control {
    border-radius: 50px;
    padding: 0.55rem 3rem 0.55rem 2.5rem;
    background: var(--theme-search-bg, #f0f7f3);
    border: 1.5px solid var(--theme-search-border, transparent);
}

.category-search .form-control:focus {
    background: var(--theme-card-bg, #ffffff);
    border-color: var(--theme-primary, var(--c-brand));
    box-shadow: 0 0 0 0.25rem rgba(var(--theme-primary-rgb, 13, 110, 75), 0.13);
}

.category-search-btn {
    position: absolute;
    right: 0.35rem;
    top: 0.35rem;
    bottom: 0.35rem;
    width: 42px;
    border: none;
    border-radius: 50px;
    background: var(--theme-gradient-brand);
    color: var(--theme-button-primary-text, #ffffff);
    display: grid;
    place-items: center;
    transition: transform 0.15s ease;
}

.category-search-btn:hover {
    transform: translateY(-1px);
}

.category-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.category-sort-label {
    color: var(--theme-muted, var(--c-muted));
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.category-sort-select {
    border-radius: 50px;
    padding: 0.5rem 2.4rem 0.5rem 1rem;
    border: 1.5px solid #d5e0db;
    background-color: var(--theme-card-bg, #ffffff);
    font-weight: 500;
}

.category-sort-select:focus {
    border-color: var(--c-brand);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 75, 0.13);
}

.results-count {
    color: var(--c-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: 0.6rem;
    border: 1px solid #dde7e1;
    color: var(--c-brand-dark);
    font-weight: 600;
    margin: 0 0.2rem;
    min-width: 38px;
    text-align: center;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pagination .page-link:hover {
    background: var(--c-brand-soft);
    color: var(--c-brand-darker);
    border-color: rgba(13, 110, 75, 0.35);
}

.pagination .page-item.active .page-link {
    background: var(--theme-gradient-brand);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(9, 86, 56, 0.3);
}

/* ------------------------------------------------------------
   15. PRODUCT DETAIL
   ------------------------------------------------------------ */
.product-gallery-main {
    background: #f2f8f5;
    border: 1px solid #e6efe9;
    border-radius: var(--c-radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    box-shadow: var(--c-shadow);
}

.product-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #b6c6bd;
    font-size: 3.4rem;
    background: linear-gradient(135deg, #f2f8f5 0%, #e8f2ed 100%);
}

.product-gallery-thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 74px;
    height: 74px;
    padding: 0;
    border: 2px solid #dde7e1;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #f2f8f5;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumb:hover {
    transform: translateY(-2px);
}

.gallery-thumb.active {
    border-color: var(--c-brand);
    box-shadow: 0 0 0 3px rgba(13, 110, 75, 0.18);
}

.product-info-card {
    background: #ffffff;
    border: 1px solid #e6efe9;
    border-radius: var(--c-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--c-shadow);
}

.product-info-name {
    font-weight: 800;
    color: var(--c-brand-darker);
    font-size: 1.45rem;
    line-height: 1.35;
}

.product-info-rating {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.4rem;
}

.rating-stars {
    color: var(--c-amber-dark);
    font-weight: 700;
}

.rating-link {
    color: var(--c-muted);
    font-size: 0.88rem;
    text-decoration: none;
}

.rating-link:hover {
    color: var(--c-brand);
    text-decoration: underline;
}

.product-info-stock {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.9rem;
    flex-wrap: wrap;
}

.stock-remaining {
    color: var(--c-muted);
    font-size: 0.88rem;
}

.product-info-price {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-top: 0.9rem;
    flex-wrap: wrap;
}

.product-info-price-current {
    color: var(--c-brand-dark);
    font-weight: 800;
    font-size: 2rem;
    letter-spacing: -0.01em;
}

.product-info-price-old {
    color: #98a59e;
    font-size: 1.05rem;
    font-weight: 500;
}

.product-info-discount {
    background: var(--theme-gradient-rose);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.28rem 0.7rem;
    border-radius: 99px;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
}

.product-min-order {
    color: var(--c-amber-dark);
    background: var(--c-amber-soft);
    border-radius: 0.6rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.86rem;
    margin-top: 0.8rem;
}

.product-info-meta li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed #e5ece8;
}

.product-info-meta li span {
    color: var(--c-muted);
    font-size: 0.88rem;
}

.product-info-meta li strong {
    color: var(--c-ink);
}

.product-info-meta li a {
    color: var(--c-brand);
    text-decoration: none;
}

.product-info-meta li a:hover {
    text-decoration: underline;
}

.product-buy-form {
    display: flex;
    gap: 0.85rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.qty-selector {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid #d5e0db;
    border-radius: 0.8rem;
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--c-shadow-sm);
}

.qty-btn {
    width: 42px;
    height: 44px;
    border: none;
    background: #f0f7f3;
    color: var(--c-brand-dark);
    font-size: 0.85rem;
    display: grid;
    place-items: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.qty-btn:hover {
    background: var(--c-brand-soft);
    color: var(--c-brand-darker);
}

.qty-input {
    width: 58px;
    height: 44px;
    border: none;
    border-left: 1.5px solid #e6ece8;
    border-right: 1.5px solid #e6ece8;
    text-align: center;
    font-weight: 700;
    color: var(--c-ink);
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.add-cart-btn-lg {
    flex: 1 1 220px;
    padding: 0.75rem 1.4rem;
    font-size: 1.02rem;
    font-weight: 700;
    border-radius: 0.8rem;
}

.product-detail-wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem;
    border: 1.5px solid #f2c3cf;
    color: var(--c-rose);
    background: var(--c-rose-soft);
    border-radius: 0.7rem;
    padding: 0.55rem 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.product-detail-wishlist-btn:hover,
.product-detail-wishlist-btn:focus {
    background: #fbd9e1;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(225, 29, 72, 0.16);
}

.product-detail-wishlist-btn.active {
    border-color: var(--c-rose);
}

.product-out-of-stock-note {
    color: var(--c-rose);
    background: var(--c-rose-soft);
    border-radius: 0.6rem;
    padding: 0.5rem 0.85rem;
    margin-top: 0.9rem;
    font-weight: 600;
}

.product-shop-card {
    background: linear-gradient(135deg, #f4faf6 0%, #eaf5f0 100%);
    border: 1px solid rgba(13, 110, 75, 0.14);
    border-radius: var(--c-radius-lg);
    padding: 1.2rem 1.3rem;
    margin-top: 1.5rem;
    box-shadow: var(--c-shadow-sm);
}

.product-shop-logo {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid #dde7e1;
    color: var(--c-brand);
    font-size: 1.6rem;
    overflow: hidden;
    box-shadow: var(--c-shadow-sm);
}

.product-shop-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-shop-name {
    color: var(--c-ink);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
}

.product-shop-name:hover {
    color: var(--c-brand);
}

.shop-verified-badge {
    color: var(--c-brand);
    margin-left: 0.25rem;
}

.product-shop-rating {
    color: var(--c-amber-dark);
    font-weight: 600;
    font-size: 0.88rem;
    margin-top: 0.15rem;
}

.shop-rating-count {
    color: var(--c-muted);
    font-size: 0.82rem;
}

.product-shop-address {
    color: var(--c-muted);
    font-size: 0.86rem;
}

.product-desc-card {
    background: #ffffff;
    border: 1px solid #e6efe9;
    border-radius: var(--c-radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: var(--c-shadow-sm);
}

.product-desc-title {
    font-weight: 800;
    color: var(--c-brand-darker);
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--c-amber-soft);
    margin-bottom: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-desc-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--theme-gradient-amber);
    display: inline-block;
}

.product-desc-body {
    color: var(--c-ink-soft);
    line-height: 1.8;
}

.related-products {
    margin-top: 2.25rem;
}

/* ------------------------------------------------------------
   16. CART
   ------------------------------------------------------------ */
.cart-layout-row {
    align-items: flex-start;
}

.cart-shop-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.1rem 0 0.6rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--c-amber-soft);
}

.cart-shop-row::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--theme-gradient-amber);
}

.cart-shop-link {
    color: var(--c-brand-dark);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.02rem;
}

.cart-shop-link:hover {
    color: var(--c-brand-darker);
    text-decoration: underline;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #e6efe9;
    border-radius: var(--c-radius);
    padding: 0.9rem;
    margin-bottom: 0.8rem;
    box-shadow: var(--c-shadow-sm);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    position: relative;
}

.cart-item:hover {
    box-shadow: var(--c-shadow);
    transform: translateY(-2px);
}

.cart-item-media {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 0.8rem;
    overflow: hidden;
    background: #f2f8f5;
    display: grid;
    place-items: center;
}

.cart-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-body {
    flex: 1 1 auto;
    min-width: 0;
}

.cart-item-name {
    display: block;
    color: var(--c-ink);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
}

.cart-item-name:hover {
    color: var(--c-brand);
}

.cart-item-shop {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--c-muted);
    font-size: 0.8rem;
    text-decoration: none;
}

.cart-item-shop:hover {
    color: var(--c-brand);
}

.cart-item-unit {
    color: var(--c-muted);
    font-size: 0.82rem;
}

.cart-item-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    color: var(--c-brand-dark);
    font-weight: 700;
    margin-top: 0.25rem;
}

.cart-item-regular {
    color: #98a59e;
    font-weight: 500;
    font-size: 0.82rem;
}

.cart-item-warning {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--c-rose);
    background: var(--c-rose-soft);
    border-radius: 0.5rem;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    margin-top: 0.4rem;
}

.cart-item-unavailable {
    opacity: 0.82;
    border-color: #f3c6ce;
    background: #fff8f9;
}

.cart-item-unavailable-label {
    color: var(--c-rose);
    font-weight: 700;
    background: var(--c-rose-soft);
    border-radius: 99px;
    padding: 0.3rem 0.8rem;
    font-size: 0.82rem;
}

.cart-item-actions {
    flex-shrink: 0;
}

.cart-qty-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.cart-qty-selector .qty-btn {
    width: 36px;
    height: 38px;
}

.cart-qty-selector .qty-input {
    width: 48px;
    height: 38px;
}

.cart-update-btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.7rem;
    border-radius: 0.6rem;
    border: 1.5px solid #d5e0db;
    color: var(--c-ink-soft);
    background: #ffffff;
}

.cart-update-btn:hover {
    background: var(--c-brand-soft);
    border-color: var(--c-brand);
    color: var(--c-brand-dark);
}

.cart-item-total {
    flex-shrink: 0;
    text-align: right;
    min-width: 84px;
}

.cart-item-total-label {
    display: block;
    color: var(--c-muted);
    font-size: 0.75rem;
}

.cart-item-total-amount {
    color: var(--c-brand-dark);
    font-weight: 800;
    font-size: 1.05rem;
}

.cart-item-remove {
    flex-shrink: 0;
}

/* Cart page: on large/medium screens the trash must sit IN the flex row
    beside the মোট amount — style.css pins .cart-item-remove to the item's
    top-right corner at every width, which lets the total slide underneath
    it. Restore flow inside the cart list only; the ≤767.98 rule further
    down re-pins the corner for the stacked mobile layout. */
@media (min-width: 768px) {
    .cart-items-list .cart-item-remove {
        position: static;
    }
}

.cart-remove-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1.5px solid #f2c3cf;
    border-radius: 50%;
    background: #ffffff;
    color: var(--c-rose);
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.cart-remove-btn:hover {
    background: var(--c-rose-soft);
    color: #9f1239;
    transform: scale(1.08);
}

.cart-summary {
    background: #ffffff;
    border: 1px solid #e6efe9;
    border-radius: var(--c-radius-lg);
    padding: 1.4rem 1.3rem;
    box-shadow: var(--c-shadow);
    border-top: 5px solid var(--c-amber);
    position: sticky;
    top: 6.5rem;
}

.cart-summary-title {
    font-weight: 800;
    color: var(--c-brand-darker);
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    color: var(--c-ink-soft);
    font-size: 0.95rem;
    border-bottom: 1px dashed #e9f0ec;
}

.cart-summary-row span:last-child {
    font-weight: 700;
    color: var(--c-ink);
}

.cart-summary-total {
    border-bottom: none;
    font-size: 1.08rem;
}

.cart-summary-total span:last-child {
    color: var(--c-brand-dark);
    font-weight: 800;
    font-size: 1.25rem;
}

.cart-summary-discount span:last-child {
    color: var(--c-brand);
}

.cart-summary-note {
    color: var(--c-muted);
    font-size: 0.82rem;
    margin: 0.75rem 0;
    background: var(--c-brand-soft);
    border-radius: 0.6rem;
    padding: 0.5rem 0.75rem;
}

/* ------------------------------------------------------------
   17. CHECKOUT
   ------------------------------------------------------------ */
.checkout-layout-row {
    align-items: flex-start;
}

.checkout-panel {
    background: #ffffff;
    border: 1px solid #e6efe9;
    border-radius: var(--c-radius-lg);
    padding: 1.4rem 1.4rem;
    box-shadow: var(--c-shadow-sm);
    margin-bottom: 1.25rem;
}

.checkout-panel-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    color: var(--c-brand-darker);
    font-size: 1.12rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--c-brand-soft);
}

.checkout-panel-title i {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 0.7rem;
    color: #ffffff;
    background: var(--theme-gradient-brand);
    font-size: 0.95rem;
    box-shadow: 0 6px 14px rgba(9, 86, 56, 0.24);
}

/* Checkout form controls */
.checkout-page .form-control {
    border: 1.5px solid #d5e0db;
    border-radius: 0.7rem;
    padding: 0.6rem 0.9rem;
    background: #ffffff;
}

.checkout-page .form-control:focus {
    border-color: var(--c-brand);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 75, 0.13);
}

.checkout-page .form-label {
    color: var(--c-ink-soft);
    font-weight: 600;
    font-size: 0.9rem;
}

.checkout-hint {
    color: var(--c-muted);
    font-size: 0.84rem;
}

/* Payment method cards */
.pay-method-list {
    display: grid;
    gap: 0.7rem;
}

.pay-method {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #f8fbf9;
    border: 1.5px solid #e0e9e4;
    border-radius: 0.9rem;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.15s ease,
                box-shadow 0.2s ease;
}

.pay-method:hover {
    border-color: rgba(13, 110, 75, 0.4);
    transform: translateY(-1px);
}

.pay-method-selected {
    border-color: var(--c-brand);
    background: var(--c-brand-soft);
    box-shadow: 0 0 0 3px rgba(13, 110, 75, 0.14);
}

.pay-method-radio {
    accent-color: var(--c-brand);
}

.pay-method-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 0.85rem;
    background: #ffffff;
    border: 1px solid #dde7e1;
    color: var(--c-brand);
    font-size: 1.15rem;
    box-shadow: var(--c-shadow-sm);
}

.pay-method-selected .pay-method-icon {
    background: var(--theme-gradient-brand);
    color: #ffffff;
    border-color: transparent;
}

.pay-method-body {
    display: flex;
    flex-direction: column;
}

.pay-method-name {
    font-weight: 700;
    color: var(--c-ink);
}

.pay-method-desc {
    color: var(--c-muted);
    font-size: 0.82rem;
}

.checkout-summary {
    top: 6.5rem;
}

.checkout-shop-block {
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e6ece8;
}

.checkout-shop-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.checkout-shop-head i {
    color: var(--c-teal);
}

.checkout-shop-head a {
    color: var(--c-brand-dark);
    font-weight: 700;
    text-decoration: none;
}

.checkout-shop-head a:hover {
    text-decoration: underline;
}

.checkout-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.3rem 0;
    font-size: 0.9rem;
    color: var(--c-ink-soft);
}

.checkout-line-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.checkout-line-name {
    color: var(--c-ink);
    font-weight: 600;
}

.checkout-line-meta {
    color: var(--c-muted);
    font-size: 0.8rem;
}

.checkout-line-amount {
    font-weight: 700;
    color: var(--c-ink);
    white-space: nowrap;
}

.checkout-line-sub {
    color: var(--c-ink-soft);
}

.checkout-line-total {
    font-weight: 800;
    color: var(--c-brand-dark);
    font-size: 1rem;
}

/* ------------------------------------------------------------
   18. ACCOUNT
   ------------------------------------------------------------ */
.account-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.4rem;
}

.account-profile-panel {
    border-left: 5px solid var(--c-brand);
}

.account-meta {
    background: #f8fbf9;
    border: 1px solid #e6efe9;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    min-height: 100%;
}

.account-meta .meta-label {
    display: block;
    color: var(--c-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.account-meta strong {
    color: var(--c-ink);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.45;
    display: block;
    word-break: break-word;
}

.account-stat {
    background: #ffffff;
    border: 1px solid #e6efe9;
    border-radius: var(--c-radius);
    padding: 1.1rem 0.9rem;
    text-align: center;
    box-shadow: var(--c-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.22s ease;
    height: 100%;
}

.account-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--c-shadow);
}

.account-stat-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.6rem;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 8px 18px rgba(9, 86, 56, 0.26);
}

.account-stat:nth-child(1) .account-stat-icon { background: var(--theme-gradient-brand); }
.account-stat:nth-child(2) .account-stat-icon { background: var(--theme-gradient-amber); }
.account-stat:nth-child(3) .account-stat-icon { background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%); }
.account-stat:nth-child(4) .account-stat-icon { background: var(--theme-gradient-rose); }
.account-stat:nth-child(5) .account-stat-icon { background: var(--c-gradient-purple); }

.account-stat-value {
    display: block;
    color: var(--c-brand-darker);
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1.2;
}

.account-stat-label {
    display: block;
    color: var(--c-muted);
    font-size: 0.84rem;
    font-weight: 600;
}

/* Orders table */
.orders-table {
    margin-bottom: 0;
}

.orders-table thead th {
    background: var(--c-brand-soft);
    color: var(--c-brand-darker);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid rgba(13, 110, 75, 0.2);
    padding: 0.75rem 0.9rem;
    white-space: nowrap;
}

.orders-table tbody td {
    padding: 0.8rem 0.9rem;
    vertical-align: middle;
    border-color: #edf3ef;
    color: var(--c-ink-soft);
    font-size: 0.92rem;
}

.orders-table tbody tr {
    transition: background-color 0.15s ease;
}

.orders-table tbody tr:hover {
    background-color: #f6fbf8;
}

.orders-table a.fw-semibold {
    color: var(--c-brand-dark);
    text-decoration: none;
}

.orders-table a.fw-semibold:hover {
    text-decoration: underline;
}

/* ------------------------------------------------------------
   19. ORDER DETAIL / SUCCESS / TIMELINE
   ------------------------------------------------------------ */
.order-detail-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.order-detail-meta div {
    background: #ffffff;
    border: 1px solid #e6efe9;
    border-radius: 0.85rem;
    padding: 0.7rem 1.1rem;
    box-shadow: var(--c-shadow-sm);
    display: flex;
    flex-direction: column;
}

.order-detail-meta span {
    color: var(--c-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-detail-meta strong {
    color: var(--c-brand-dark);
    font-size: 1.05rem;
}

.delivery-info {
    display: grid;
    gap: 0.85rem;
}

.delivery-info > div {
    display: flex;
    gap: 0.75rem;
    font-size: 0.92rem;
    color: var(--c-ink-soft);
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed #e9f0ec;
}

.delivery-info > div:last-child {
    border-bottom: none;
}

.delivery-info .meta-label {
    flex-shrink: 0;
    min-width: 76px;
    color: var(--c-muted);
    font-weight: 600;
    font-size: 0.84rem;
}

.delivery-info > div > span:last-child {
    color: var(--c-ink);
    font-weight: 600;
}

.delivery-tracking {
    background: #f8fbf9;
    border-radius: 0.8rem;
    padding: 0.9rem 1rem;
}

/* Timeline */
.status-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.status-timeline li {
    position: relative;
    padding: 0 0 1.2rem 1.7rem;
}

.status-timeline li:last-child {
    padding-bottom: 0.25rem;
}

.status-timeline li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 18px;
    bottom: -4px;
    width: 2px;
    background: #dfe9e3;
}

.status-timeline li:last-child::before {
    display: none;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #c9d6cf;
    z-index: 1;
}

.status-timeline li:first-child .timeline-dot {
    background: var(--theme-gradient-brand);
    border-color: var(--c-brand);
    box-shadow: 0 0 0 4px rgba(13, 110, 75, 0.15);
}

.timeline-body {
    display: flex;
    flex-direction: column;
}

.timeline-status {
    color: var(--c-ink);
    font-weight: 700;
    font-size: 0.94rem;
}

.timeline-note {
    color: var(--c-muted);
    font-size: 0.84rem;
}

.timeline-date {
    color: var(--c-muted);
    font-size: 0.8rem;
}

/* Order success */
.order-success-page {
    padding: 2rem 0 1rem;
}

.order-success-card {
    background: #ffffff;
    border: 1px solid #e6efe9;
    border-radius: var(--c-radius-xl);
    padding: 2.75rem 1.5rem;
    box-shadow: var(--c-shadow-lg);
    position: relative;
    overflow: hidden;
}

.order-success-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 7px;
    background: var(--theme-gradient-brand);
}

.order-success-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.4rem;
    display: grid;
    place-items: center;
    font-size: 2.6rem;
    color: #ffffff;
    background: var(--theme-gradient-brand);
    border-radius: 50%;
    box-shadow: 0 16px 36px rgba(9, 86, 56, 0.32);
}

.order-success-title {
    font-weight: 800;
    color: var(--c-brand-darker);
    font-size: 1.6rem;
}

.order-success-sub {
    color: var(--c-ink-soft);
    max-width: 520px;
    margin: 0 auto;
}

.order-success-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 1.6rem 0;
}

.order-success-meta > div {
    background: #f8fbf9;
    border: 1px solid #e6efe9;
    border-radius: 0.85rem;
    padding: 0.7rem 1.2rem;
    min-width: 130px;
}

.order-success-meta .meta-label {
    display: block;
    color: var(--c-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-success-meta .meta-value {
    color: var(--c-brand-dark);
    font-weight: 800;
    font-size: 1.05rem;
}

.order-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
}

.order-tracking-claim {
    margin: 1.8rem auto 0;
    max-width: 560px;
    background: #fffdf3;
    border: 1px dashed #e8c96a;
    border-radius: 1rem;
    padding: 1.3rem 1.4rem;
}

.order-tracking-claim .checkout-panel-title {
    margin-bottom: 0.6rem;
}

.order-tracking-claim-note {
    color: var(--c-ink-soft);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.order-tracking-claim-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    background: #ffffff;
    border: 1px solid #e6efe9;
    border-radius: 0.7rem;
    padding: 0.7rem 0.9rem;
}

.order-tracking-claim-code {
    font-family: var(--c-font-mono, "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--c-brand-dark);
    word-break: break-all;
    user-select: all;
}

.order-tracking-claim-hint {
    margin-top: 0.7rem;
    margin-bottom: 0;
    font-size: 0.82rem;
    color: var(--c-muted);
}

/* ------------------------------------------------------------
   20. WISHLIST
   ------------------------------------------------------------ */
.wishlist-list .cart-item {
    align-items: flex-start;
}

.wishlist-item-actions {
    flex-shrink: 0;
    align-self: center;
}

.wishlist-add-cart {
    font-size: 0.88rem;
    padding: 0.55rem 0.95rem;
}

/* ------------------------------------------------------------
   21. SEARCH
   ------------------------------------------------------------ */
.search-hero {
    background: var(--theme-category-head-bg, linear-gradient(150deg, #eafaf2 0%, #e7f6f4 55%, #fdf4e1 100%));
    border: 1px solid rgba(13, 110, 75, 0.12);
    border-radius: var(--c-radius-xl);
    padding: 3rem 1.5rem;
    text-align: center;
    box-shadow: var(--c-shadow);
    margin-bottom: 2.25rem;
}

.search-hero-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.1rem;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: #ffffff;
    background: var(--theme-gradient-brand);
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(9, 86, 56, 0.3);
}

.search-hero-title {
    font-weight: 800;
    color: var(--theme-heading, var(--c-brand-darker));
    font-size: 1.7rem;
}

.search-hero-text {
    color: var(--c-ink-soft);
    max-width: 560px;
    margin: 0 auto 1.4rem;
}

.search-hero-form {
    max-width: 560px;
    margin: 0 auto;
}

.search-hero-form .category-search .form-control {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 1rem;
}

.search-head {
    background: linear-gradient(135deg, #eafaf2 0%, #fdf4e1 100%);
    border-radius: var(--c-radius-lg);
    padding: 1.4rem 1.5rem;
    border: 1px solid rgba(13, 110, 75, 0.12);
    margin-bottom: 1.1rem;
    box-shadow: var(--c-shadow-sm);
}

.search-head-title {
    font-weight: 800;
    color: var(--c-brand-darker);
    font-size: 1.4rem;
    margin-bottom: 0.1rem;
}

.search-head-sub {
    color: var(--c-ink-soft);
    margin-bottom: 0;
}

.search-filters {
    background: #ffffff;
    border: 1px solid #e6efe9;
    border-radius: var(--c-radius-lg);
    padding: 1.3rem 1.2rem;
    box-shadow: var(--c-shadow);
    position: sticky;
    top: 6.5rem;
}

.search-filters-title {
    font-weight: 800;
    color: var(--c-brand-darker);
    font-size: 1.1rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid var(--c-brand-soft);
    margin-bottom: 1rem;
}

.search-filter-group {
    margin-bottom: 1.25rem;
}

.search-filter-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--c-muted);
    margin-bottom: 0.55rem;
}

.search-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search-filter-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    color: var(--c-ink-soft);
    text-decoration: none;
    padding: 0.4rem 0.5rem;
    border-radius: 0.6rem;
    font-size: 0.92rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.search-filter-link:hover {
    background: var(--c-brand-soft);
    color: var(--c-brand-darker);
}

.search-filter-link.active {
    background: var(--c-brand-soft);
    color: var(--c-brand-darker);
    font-weight: 700;
    border-left: 3px solid var(--c-brand);
}

.search-filter-link i {
    color: var(--c-teal);
    width: 1.1rem;
    text-align: center;
}

.search-filter-count {
    color: var(--c-muted);
    font-size: 0.8rem;
}

.search-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.search-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--c-brand-soft);
    border: 1px solid rgba(13, 110, 75, 0.25);
    color: var(--c-brand-darker);
    border-radius: 99px;
    padding: 0.3rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.search-active-chip a {
    color: var(--c-rose);
    text-decoration: none;
}

.search-price-inputs {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.search-price-inputs .form-control {
    border: 1.5px solid #d5e0db;
    border-radius: 0.6rem;
    padding: 0.45rem 0.6rem;
}

.search-price-inputs .form-control:focus {
    border-color: var(--c-brand);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 75, 0.13);
}

.search-price-sep {
    color: var(--c-muted);
}

.search-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.7rem 0;
    font-size: 0.9rem;
    color: var(--c-ink-soft);
}

.search-checkbox input {
    accent-color: var(--c-brand);
    width: 17px;
    height: 17px;
}

.search-filter-btn {
    background: var(--theme-gradient-brand);
    border: none;
    color: #ffffff;
    width: 100%;
    font-weight: 700;
    border-radius: 0.7rem;
    padding: 0.55rem;
    box-shadow: 0 6px 14px rgba(9, 86, 56, 0.22);
}

.search-filter-btn:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(9, 86, 56, 0.3);
}

.brand-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.85rem;
}

.brand-chip {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e6efe9;
    border-radius: 0.9rem;
    padding: 0.85rem 1rem;
    text-decoration: none;
    box-shadow: var(--c-shadow-sm);
    transition: transform 0.16s ease, box-shadow 0.22s ease;
}

.brand-chip:hover {
    transform: translateY(-3px);
    box-shadow: var(--c-shadow);
    text-decoration: none;
}

.brand-chip-name {
    color: var(--c-ink);
    font-weight: 700;
}

.brand-chip-count {
    color: var(--c-muted);
    font-size: 0.82rem;
}

/* ------------------------------------------------------------
   22. SHOP DETAIL
   ------------------------------------------------------------ */
.shop-detail-card {
    background: #ffffff;
    border: 1px solid #e6efe9;
    border-radius: var(--c-radius-xl);
    overflow: hidden;
    box-shadow: var(--c-shadow);
    margin-bottom: 1.5rem;
}

.shop-detail-cover {
    min-height: 120px;
    background: var(--theme-gradient-brand);
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.shop-detail-cover img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.shop-detail-cover-icon {
    font-size: 3.6rem;
    color: rgba(255, 255, 255, 0.35);
}

.shop-detail-head {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 0 1.4rem;
    flex-wrap: wrap;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.shop-detail-logo {
    width: 104px;
    height: 104px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: #ffffff;
    border-radius: 1.3rem;
    border: 4px solid #ffffff;
    box-shadow: none;
    overflow: hidden;
    color: var(--c-brand);
    font-size: 2.2rem;
}

.shop-detail-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-detail-title {
    flex: 1 1 auto;
    min-width: 220px;
    padding-top: 2.2rem;
}

.shop-detail-name {
    font-weight: 800;
    color: var(--c-brand-darker);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.shop-detail-category {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--c-teal);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.shop-detail-category:hover {
    text-decoration: underline;
}

.shop-detail-badges {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding-top: 2.2rem;
}

.shop-detail-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--c-amber-soft);
    color: var(--c-amber-dark);
    font-weight: 700;
    font-size: 0.86rem;
    border-radius: 99px;
    padding: 0.4rem 0.9rem;
}

.shop-detail-count {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--c-brand-soft);
    color: var(--c-brand-dark);
    font-weight: 700;
    font-size: 0.86rem;
    border-radius: 99px;
    padding: 0.4rem 0.9rem;
}

.shop-detail-desc {
    padding: 1.2rem 1.4rem 0;
    color: var(--c-ink-soft);
    line-height: 1.75;
    margin-bottom: 0;
}

.shop-detail-info {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 0.9rem 1.4rem 1.3rem;
    margin: 0;
}

.shop-detail-info li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--c-ink-soft);
    font-size: 0.9rem;
}

.shop-detail-info li i {
    color: var(--c-brand);
}

.shop-detail-info li a {
    color: var(--c-ink-soft);
    text-decoration: none;
}

.shop-detail-info li a:hover {
    color: var(--c-brand);
}

.shop-products {
    margin-top: 0.25rem;
}

/* ------------------------------------------------------------
   23. NOT FOUND / ERROR
   ------------------------------------------------------------ */
.notfound-section {
    padding: 3rem 0;
}

.notfound-card {
    background: #ffffff;
    border: 1px solid #e6efe9;
    border-radius: var(--c-radius-xl);
    padding: 3rem 1.5rem;
    box-shadow: var(--c-shadow-lg);
}

.notfound-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.3rem;
    display: grid;
    place-items: center;
    font-size: 2.4rem;
    color: #ffffff;
    background: var(--theme-gradient-amber);
    border-radius: 50%;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.3);
}

.notfound-title {
    font-weight: 800;
    color: var(--c-brand-darker);
    font-size: 1.6rem;
}

.notfound-text {
    color: var(--c-ink-soft);
    max-width: 520px;
    margin: 0 auto 1.4rem;
}

/* ------------------------------------------------------------
   24. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
    .cart-summary,
    .checkout-summary,
    .search-filters {
        position: static;
    }

    .cat-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 767.98px) {
    .home-section {
        padding: 2.25rem 0;
    }

    .hero {
        padding: 2.25rem 0;
    }

    .hero-card {
        padding: 2.25rem 1.1rem;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .cart-item-media {
        width: 84px;
        height: 84px;
    }

    .cart-item-actions {
        order: 3;
        width: 100%;
    }

    .cart-qty-form {
        flex-direction: row;
        justify-content: space-between;
    }

    .category-head {
        padding: 1.1rem;
    }

    .shop-detail-logo {
        width: 84px;
        height: 84px;
    }

    .shop-detail-head {
        margin-top: -1.4rem;
    }

    .shop-detail-title,
    .shop-detail-badges {
        padding-top: 1.4rem;
    }
}

@media (max-width: 575.98px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .hero-btn {
        width: 100%;
    }

    .product-card-actions {
        flex-direction: column;
    }

    .product-buy-form {
        flex-direction: column;
    }

    .product-buy-form .add-cart-btn-lg {
        width: 100%;
    }

    .qty-selector {
        align-self: flex-start;
    }

    .checkout-panel {
        padding: 1.1rem 1rem;
    }

    .cart-item-remove {
        position: absolute;
        top: 0.6rem;
        right: 0.6rem;
    }

    .category-toolbar-form {
        flex-direction: column;
        align-items: stretch;
    }

    .category-search {
        flex-basis: auto;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .category-search .form-control {
        flex: 1;
        min-width: 0;
        padding-right: 1rem;
    }

    .category-search-btn {
        position: static;
        width: auto;
        flex-shrink: 0;
        padding: 0.55rem 1rem;
        display: inline-flex;
        place-items: normal;
        align-items: center;
    }

    .category-sort {
        justify-content: flex-end;
    }

    .category-search-btn-icon {
        display: none;
    }

    .category-search-btn-label {
        display: inline;
    }

    .cat-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .cat-chip-icon {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }

    .shop-card-media {
        min-height: 60px;
    }

    .order-success-meta > div {
        flex: 1 1 42%;
        min-width: 0;
    }

    .account-stat-value {
        font-size: 1.15rem;
    }

    .search-hero {
        padding: 2.25rem 1rem;
    }
}

/* 390px-class small phones */
@media (max-width: 400px) {
    .cart-item-total {
        min-width: 70px;
    }

    .cart-update-btn {
        font-size: 0.72rem;
    }

    .section-head {
        text-align: left;
    }
}

/* ------------------------------------------------------------
   24.5 STATIC / INFORMATIONAL PAGES
   ------------------------------------------------------------ */
.static-page-section {
    padding: 2rem 0 2.5rem;
}

.static-page-section .breadcrumb-nav {
    margin-bottom: 1.25rem;
}

.static-page-section .breadcrumb {
    background: #fff;
    border: 1px solid var(--c-border, #e8ede6);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
}

.static-page-section .breadcrumb-item a {
    color: var(--c-primary, #0b5d3b);
    text-decoration: none;
}

.static-page-section .breadcrumb-item a:hover {
    color: var(--c-primary-dark, #083f28);
}

.static-page-card {
    background: #ffffff;
    border: 1px solid var(--c-border, #e8ede6);
    border-radius: 16px;
    padding: 2rem 2.25rem;
    box-shadow: 0 4px 18px rgba(11, 61, 44, 0.06);
}

.static-page-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0b3d2c;
    margin: 0 0 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--c-amber, #f6b93b);
    display: inline-block;
}

.static-page-lead {
    font-size: 1rem;
    line-height: 1.7;
    color: #5c6b62;
    margin-bottom: 1.5rem;
}

.static-page-block {
    margin-bottom: 1.5rem;
}

.static-page-block:last-child {
    margin-bottom: 0;
}

.static-page-sub {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b3d2c;
    margin: 0 0 0.5rem;
}

.static-page-block p {
    color: #44554c;
    line-height: 1.8;
    margin: 0;
}

.static-page-contact {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #f4f8f5;
    border: 1px solid #e0ece4;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    height: 100%;
}

.static-page-contact > i {
    font-size: 1.15rem;
    color: var(--c-primary, #0b5d3b);
    margin-top: 0.2rem;
}

.static-page-contact h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0b3d2c;
    margin-bottom: 0.2rem;
}

.static-page-contact p {
    margin: 0;
    font-size: 0.9rem;
    color: #44554c;
    line-height: 1.6;
}

.static-page-contact a {
    color: var(--c-primary, #0b5d3b);
    text-decoration: none;
}

.static-page-contact a:hover {
    text-decoration: underline;
}

@media (max-width: 575px) {
    .static-page-card {
        padding: 1.4rem 1.2rem;
    }

    .static-page-title {
        font-size: 1.3rem;
    }

    .static-page-section {
        padding: 1.25rem 0 1.75rem;
    }
}

/* ------------------------------------------------------------
   25. REDUCED MOTION
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .product-card:hover,
    .shop-card:hover,
    .cat-chip:hover,
    .account-stat:hover,
    .brand-chip:hover {
        transform: none;
    }

    .product-card:hover .product-card-media img,
    .shop-card:hover .shop-card-cover {
        transform: none;
    }
}

/* ------------------------------------------------------------
   26. HEADER BRANDING POLISH (CSS only â€” markup/backend untouched)
   Logo + website name + tagline hierarchy, clean logo rendering
   and responsive behaviour for desktop (1440) and mobile (390).
   ------------------------------------------------------------ */

/* ---- Brand link: logo + name hierarchy ---- */
.brand-link {
    gap: 0.7rem;
}

.brand-name {
    font-size: clamp(1.15rem, 4vw, 1.5rem);
    letter-spacing: 0.01em;
}

/* Clean, unobstructed logo when an uploaded logo is configured.
   :has() keeps the colourful gradient only for the default icon. */
.brand-logo:has(.brand-logo-img) {
    background: #ffffff;
    box-shadow: 0 1px 6px rgba(9, 86, 56, 0.14);
}

.brand-logo:has(.brand-logo-img) .brand-logo-img {
    object-fit: contain;
    padding: 6px;
    border-radius: 10px;
}

/* ---- Category bar tagline: removed site-wide per navbar spec;
        the bar keeps only the category button ---- */
.catbar-inner {
    gap: 1rem;
}

.catbar-msg {
    display: none;
}

.catbar-msg-text {
    display: block;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-wrap: balance;
}

/* ---- Mobile (<=575.98px) ---- */
@media (max-width: 575.98px) {
    .brand-link {
        gap: 0.55rem;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .brand-logo:has(.brand-logo-img) .brand-logo-img {
        padding: 5px;
        border-radius: 9px;
    }

    .brand-name {
        font-size: 1.05rem;
        max-width: 40vw;
    }

    .cat-btn {
        padding: 0.35rem 0.8rem;
        margin: 0.35rem 0;
    }
}

/* ------------------------------------------------------------
   26. THEME-AWARE ORDER STATUS CHIPS (overrides style.css)
   ------------------------------------------------------------ */
.order-status-pending {
    background: var(--theme-warning-soft, #fff3cd);
    color: var(--theme-warning-dark, #856404);
}

.order-status-processing,
.order-status-confirmed,
.order-status-packed {
    background: var(--theme-info-soft, #cfe2ff);
    color: var(--theme-info-dark, #084298);
}

.order-status-shipped,
.order-status-out_for_delivery {
    background: var(--theme-success-soft, #d1e7dd);
    color: var(--theme-success-dark, #0f5132);
}

.order-status-delivered,
.order-status-refunded {
    background: var(--theme-primary-soft, #e8f5ef);
    color: var(--theme-primary, #0d6e4b);
}

.order-status-cancelled,
.order-status-returned,
.order-status-failed {
    background: var(--theme-danger-soft, #fdecea);
    color: var(--theme-danger-dark, #c0392b);
}

/* ============================
   HERO BANNER SLIDER
   ============================ */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
.hero-slider-track {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: translateX(100%);
    transition: transform .7s ease-in-out;
    z-index: 0;
}
.hero-slide.active {
    transform: translateX(0);
    z-index: 2;
}
.hero-slide.exit-left {
    transform: translateX(-100%);
    z-index: 1;
}
.hero-slide-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,.78) 0%, rgba(15,23,42,.3) 55%, transparent 100%);
    display: flex;
    align-items: center;
    z-index: 2;
}
.hero-slide-content {
    max-width: 540px;
    padding: 2rem 0;
}
.hero-slide-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: .6rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.hero-slide-subtitle {
    font-size: 1.05rem;
    color: rgba(255,255,255,.92);
    margin-bottom: 1.2rem;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.hero-slide-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #191970;
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    padding: .65rem 1.4rem;
    border-radius: .5rem;
    text-decoration: none;
    transition: background .2s, transform .15s;
    box-shadow: 0 4px 14px rgba(25,25,112,.4);
}
.hero-slide-btn:hover {
    background: #15155c;
    color: #fff;
    transform: translateY(-2px);
}
/* :not() guards raise specificity above Bootstrap's
   ":not(.btn-check) + .btn:active" so the held state stays midnight blue */
.hero-slide-btn:active:not(:disabled):not(.disabled) {
    background: #101047;
    color: #fff;
}

/* Arrows */
.hero-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: .95rem;
    cursor: pointer;
    display: grid; place-items: center;
    transition: background .2s, transform .15s, opacity .2s;
    opacity: .85;
}
.hero-slider-arrow:hover {
    background: rgba(255,255,255,.32);
    opacity: 1;
    transform: translateY(-50%) scale(1.06);
}
.hero-slider-prev { left: .85rem; }
.hero-slider-next { right: .85rem; }

/* Dots */
.hero-slider-dots {
    position: absolute;
    bottom: .85rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: .45rem;
    z-index: 10;
    padding: .3rem .6rem;
    background: rgba(0,0,0,.2);
    border-radius: 99px;
    backdrop-filter: blur(4px);
}
.hero-slider-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.55);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .25s, border-color .25s, transform .15s;
}
.hero-slider-dot.active {
    background: #ffffff;
    border-color: #ffffff;
    transform: scale(1.15);
}
.hero-slider-dot:hover:not(.active) {
    background: rgba(255,255,255,.5);
}

/* ---- Tablet (â‰¤991px) ---- */
@media (max-width: 991.98px) {
    .hero-slide-title { font-size: 1.55rem; }
    .hero-slide-subtitle { font-size: .95rem; }
    .hero-slide-content { max-width: 420px; }
}

/* ---- Mobile (â‰¤575.98px) â€” compact ratio ---- */
@media (max-width: 575.98px) {
    .hero-slide-overlay {
        background: linear-gradient(180deg, transparent 0%, rgba(15,23,42,.45) 30%, rgba(15,23,42,.85) 100%);
        align-items: flex-end;
    }
    .hero-slide-content { max-width: 100%; padding: 1rem .75rem 1.25rem; }
    .hero-slide-title { font-size: 1.1rem; margin-bottom: .25rem; }
    .hero-slide-subtitle { font-size: .78rem; margin-bottom: .5rem; }
    .hero-slide-btn { font-size: .78rem; padding: .45rem .85rem; }
    .hero-slider-arrow { display: none; }
    .hero-slider-dots { bottom: .55rem; gap: .35rem; }
    .hero-slider-dot { width: 7px; height: 7px; border-width: 1.5px; }
}

/* ============================================================
   ORDER LOOKUP â€” "à¦…à¦°à§à¦¡à¦¾à¦° à¦¸à¦®à§‚à¦¹" (homepage panel + lookup pages)
   Big input + big button for low-technical users, mobile first.
   ============================================================ */
.order-lookup-panel {
    background: var(--surface, #ffffff);
    border: 1px solid var(--theme-card-border, #e6efe9);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 18px rgba(9, 86, 56, .06);
}
.order-lookup-sub {
    color: var(--theme-muted, #64756c);
    margin-bottom: 1rem;
}
.order-lookup-label {
    font-weight: 600;
    margin-bottom: .4rem;
}
.order-lookup-row {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}
.order-lookup-input {
    flex: 1 1 220px;
    min-width: 0;
    font-size: 1.15rem;
    padding: .8rem 1rem;
    border-radius: .7rem;
    letter-spacing: .03em;
}
.order-lookup-input:focus {
    border-color: var(--theme-primary, #0d6e4b);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 75, .15);
}
.order-lookup-btn {
    font-size: 1.05rem;
    font-weight: 600;
    padding: .8rem 1.5rem;
    border-radius: .7rem;
    background: linear-gradient(135deg, #0f766e 0%, #0d6e4b 55%, #095638 100%);
    border: none;
    white-space: nowrap;
}
.order-lookup-btn:hover {
    background: linear-gradient(135deg, #095638 0%, #095638 100%);
}
.order-lookup-hint {
    margin-top: .65rem;
    font-size: .9rem;
    color: var(--theme-muted, #64756c);
}
.order-lookup-hint i {
    margin-right: .3rem;
}

/* ---- Mobile (â‰¤575.98px) â€” stacked, compact touch targets ----
   NOTE: base .order-lookup-input uses flex: 1 1 220px; once the row is
   flex-direction: column that basis would size the input's HEIGHT (~220px
   tall). Reset it here and use fixed compact sizing instead. */
@media (max-width: 575.98px) {
    .order-lookup-panel {
        padding: 1.1rem 1rem;
    }
    .order-lookup-row {
        flex-direction: column;
        gap: .6rem;
    }
    .order-lookup-row > .form-label {
        margin-bottom: .25rem;
    }
    .order-lookup-input,
    .order-lookup-btn {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        height: auto;
        font-size: 1rem;
        line-height: 1.4;
        padding: .7rem .85rem;   /* â‰ˆ46px tall â€” compact tap target */
    }
    .order-lookup-btn {
        white-space: normal;
        text-align: center;
    }
}

/* ============================================================
   ORDER LOOKUP — phone-first candidate list & claim (Design B)
   Masked candidates; each card carries one POST "select" action.
   ============================================================ */
.order-lookup-candidate-list {
    display: grid;
    gap: .75rem;
    margin-top: 1rem;
}
.order-lookup-candidate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    padding: 1rem 1.05rem;
    border: 1px solid var(--theme-card-border, #e6efe9);
    border-radius: .8rem;
    background: var(--surface, #ffffff);
}
.order-lookup-candidate-info {
    min-width: 0;
}
.order-lookup-candidate-title {
    margin-bottom: .15rem;
}
.order-lookup-candidate-btn {
    white-space: nowrap;
}
/* No-JS friendly <details> wrapper around the existing direct form */
.order-lookup-advanced summary {
    cursor: pointer;
    margin-bottom: .5rem;
}
.order-lookup-advanced summary::-webkit-details-marker {
    display: none;
}
.order-lookup-advanced summary i {
    transition: transform .15s ease;
}
.order-lookup-advanced[open] summary i.fa-chevron-down {
    transform: rotate(180deg);
}

/* ---- Mobile (≤575.98px) — stacked, wide touch targets ---- */
@media (max-width: 575.98px) {
    .order-lookup-candidate {
        flex-direction: column;
        align-items: flex-start;
    }
    .order-lookup-candidate-btn {
        width: 100%;
    }
}

/* ============================================================
   ORDER LOOKUP â€” homepage CTA (inside hero)
   Simple flat theme button: NO card, NO shadow, NO border,
   NO background container. Sits directly on the hero background.
   ============================================================ */
.order-lookup-hero-cta {
    margin-top: 1rem;
}
.order-lookup-home-btn,
.order-lookup-home-btn:hover:not(:disabled):not(.disabled),
.order-lookup-home-btn:focus,
.order-lookup-home-btn:focus-visible,
.order-lookup-home-btn:active {
    box-shadow: none;
    transform: none;
}
.order-lookup-home-btn {
    font-size: 1.1rem;
    font-weight: 700;
    padding: .8rem 1.9rem;
    border-radius: .65rem;
    border: none;
    /* Solid midnight-blue state colors (flat, no gradient) */
    background-image: none;
    background-color: #191970;
    color: #ffffff;
}
.order-lookup-home-btn:hover:not(:disabled):not(.disabled),
.order-lookup-home-btn:focus,
.order-lookup-home-btn:focus-visible {
    background-image: none;
    background-color: #15155c;
    color: #ffffff;
}
.order-lookup-home-btn:active:not(:disabled):not(.disabled) {
    background-image: none;
    background-color: #101047;
    color: #ffffff;
}

/* ---- Mobile (â‰¤575.98px) â€” clean & centered ---- */
@media (max-width: 575.98px) {
    .order-lookup-hero-cta {
        margin-top: .85rem;
    }
    .order-lookup-home-btn {
        display: block;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        font-size: 1.05rem;
        padding: .85rem 1.15rem;
    }
}

/* ============================================================
   HERO CARD â€” fully flat container (no card visuals).
   Sources of the card look were:
     - style.css .hero-card { background/border/radius/shadow/padding }
       + .hero-card::before / ::after decorative blobs
     - customer.css section 8 .hero-card { translucent bg, blur,
       border, radius-xl, shadow-lg, padding } + amber ::before line
   This override strips ONLY the visual container: the banner now
   sits flush inside the slider. HTML structure, the slider itself
   and all other hero styling stay unchanged. The earlier yellow
   accent removal is preserved via content:none on ::before/::after.
   ============================================================ */
.hero-card {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: none;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    overflow: hidden;
}

.hero-card::before,
.hero-card::after {
    content: none;
}

/* ============================================================
   HERO SECTION â€” no separate background color.
   Earlier rules gave .hero a tinted gradient:
     - style.css: background: var(--grad-hero);
     - customer.css: layered radial/linear gradient using
       --theme-hero-* variables + decorative ::before/::after blobs.
   This scoped override replaces ONLY the section background with
   transparent so it blends with the page, and disables the blob
   decorations. Shared --theme-hero-* / --grad-hero variables
   remain untouched so nothing else on the site changes.
   ============================================================ */
.hero {
    background: transparent;
}

.hero::before,
.hero::after {
    content: none;
}

/* ============================================================
   PREMIUM PRODUCT & SHOP CARDS â€” full visual redesign.
   Scope: storefront cards (home, category, search, shop, product).
   CSS-only redesign: links, cart/wishlist forms, badge/stock/price
   logic and all JavaScript stay untouched. Only existing theme
   variables (--c-* / --theme-* families) are reused. Hero section
   above is NOT touched by this block.
   ============================================================ */

/* ---- Self-hosted primary Bengali typeface for cards: this variable
        font file ships with the project (weights 100-900 via wght axis).
        Declared after the Google Fonts stylesheet, so this local face
        takes precedence — card text never depends on an external CDN
        and digits/Bengali glyphs always come from the same family ---- */
@font-face {
    font-family: "Noto Sans Bengali";
    src: url("../fonts/NotoSansBengali-Variable.ttf") format("truetype-variations"),
         url("../fonts/NotoSansBengali-Variable.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---- Shared card shell: clean white, subtle 1px border, no shadow ---- */
.product-card,
.shop-card {
    border-radius: 1rem;
    border-color: #eee;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

.product-card:hover,
.shop-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #ddd;
}

/* ---- Bengali text shaping: natural rendering â€” no tracking,
        stretching, distortion or fancy text effects ---- */
.product-card .product-name,
.product-card .product-shop,
.product-card .product-price,
.product-card .product-price-old,
.product-card .product-badge,
.shop-card .shop-name,
.shop-card .shop-category,
.shop-card-meta .shop-rating,
.shop-card-meta .shop-products {
    font-family: "Noto Sans Bengali", sans-serif;
    letter-spacing: normal;
    word-spacing: normal;
    text-transform: none;
    font-stretch: normal;
    text-align: left;
    text-rendering: auto;
}

.product-card-actions .btn {
    letter-spacing: normal;
    word-spacing: normal;
    text-transform: none;
    text-align: center;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */

/* ---- Image area: dominant, generous clean spacing, very subtle
        neutral background; aspect-ratio + object-fit:contain preserved ---- */
.product-card-media {
    margin: 0.65rem 0.65rem 0;
    border-radius: 0.8rem;
    background: #ffffff;
}

/* No-image products keep white fill */
.product-card-media .product-img-placeholder {
    border-radius: inherit;
    background: #ffffff;
}

/* Shops without a logo fill the entire media area with a clean icon */
.shop-card-media .shop-img-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    background: #ffffff;
    box-shadow: none;
    font-size: 2.2rem;
    color: var(--theme-shop-logo-bg, var(--c-brand));
}

.product-card-media img {
    padding: 0.5rem;
    box-sizing: border-box;
}

.product-card:hover .product-card-media img {
    transform: none;
}

.product-card-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem 0;
}

.product-card-info-row .product-stock-badge {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.18rem 0.52rem;
    border-radius: 0.4rem;
    white-space: nowrap;
}

.product-card-info-row .product-stock-badge.in {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid rgba(4, 120, 87, 0.16);
}

.product-card-info-row .product-stock-badge.low {
    background: #fff7ed;
    color: #b45309;
    border: 1px solid rgba(180, 83, 9, 0.16);
}

.product-card-info-row .product-stock-badge.out {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid rgba(185, 28, 28, 0.16);
}

.product-card-info-row .product-wishlist-form {
    margin-left: auto;
}

.product-card-info-row .product-wishlist-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff0f3;
    color: #e11d48;
    border: 1px solid rgba(225, 29, 72, 0.18);
    box-shadow: none;
}

.product-card-info-row .product-wishlist-btn:hover,
.product-card-info-row .product-wishlist-btn:focus {
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border-color: transparent;
    box-shadow: none;
}

.product-card-info-row .product-wishlist-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border-color: transparent;
}

.product-card-info-row .product-wishlist-label {
    display: none;
}

.product-card .product-badge { display: none; }

.product-wishlist-label { display: none; }

.product-wishlist-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff0f3;
    color: #e11d48;
    border: 1px solid rgba(225, 29, 72, 0.18);
    box-shadow: none;
    padding: 0;
}

.product-wishlist-btn:hover,
.product-wishlist-btn:focus {
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border-color: transparent;
    box-shadow: none;
    text-decoration: none;
}

.product-wishlist-btn.active {
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    border-color: transparent;
}

/* ---- Info body: readability-first typography; bottom padding keeps
        the price divider from feeling cramped against the actions ---- */
.product-card-body {
    padding: 0.95rem 1.05rem 0.85rem;
}

.product-name {
    font-family: "Noto Sans Bengali", sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: normal;
    color: #1f2937;
    opacity: 1;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
    transition: color 0.18s ease;
}

/* Long Bengali titles stay balanced: maximum two lines, then ellipsis */
.product-card .product-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.product-name:hover {
    color: var(--theme-primary, #087f5b);
}

.product-shop {
    font-weight: 500;
    color: #4b5563;
    margin-top: 0.3rem;
}

.product-rating {
    margin-top: 0.3rem;
}

.product-price-row {
    margin-top: 0.6rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--theme-card-border, #e6efe9);
}

.product-price {
    font-family: "Noto Sans Bengali", sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: normal;
    color: var(--theme-primary, #087f5b);
}

.product-price-old {
    font-size: 0.87rem;
    color: #6b7280;
}

/* ---- Actions: premium orange cart CTA dominant + quiet outline details;
        overflow-safe width distribution (Bengali label never escapes).
        Actions lives INSIDE the content area (common card template):
        negative margins cancel the body's own padding and the top padding
        absorbs the body's old bottom padding, so button width, the
        price-to-button gap and the card's bottom rhythm all stay
        pixel-identical to the previous sibling layout ---- */
.product-card-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* stretch (not width:100%): as a flex item of the content area,
       stretch lets the negative side margins WIDEN the box past the
       body padding, exactly like the old sibling layout */
    align-self: stretch;
    width: auto;
    gap: 0.5rem;
    /* 1.05rem top = old .55rem actions pad + .85rem old body pad − 5.6px
        flex gap the body now inserts before this nested element */
    padding: 1.05rem 1.05rem 1.05rem;
    margin: auto -1.05rem -0.85rem;
}

.product-card-cart-form {
    width: 100%;
    flex: none;
    min-width: 0;
    box-sizing: border-box;
}

.product-card-actions .btn {
    font-family: "Noto Sans Bengali", sans-serif;
    border-radius: 0.6rem;
    font-weight: 600;
    letter-spacing: normal;
    transition: transform 0.18s ease, box-shadow 0.2s ease,
        background-color 0.2s ease, border-color 0.2s ease,
        color 0.2s ease;
}

.product-card-actions .btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.product-card-actions .btn:active:not(:disabled) {
    transform: translateY(1px);
}

/* Solid Add-to-Cart CTA â€” no gradient, clean brand fill.
    Flex row keeps the cart icon and Bengali label perfectly
    vertically centered with a balanced gap (.btn.add-cart-btn
    specificity outpaces the global .btn:not() inline-flex rule) */
.product-card-actions .btn.add-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-block: 0.6rem;
    font-size: 0.9rem;
    color: #064e3b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-image: none;
    background-color: #ffc107;
    border: none;
    box-shadow: 0 2px 6px rgba(224, 168, 0, 0.25);
}

/* Larger, bolder cart icon inside the CTA; label typography untouched */
.product-card-actions .btn.add-cart-btn i {
    flex: none;
    font-size: 1.25rem;
    line-height: 1;
}

.product-card-actions .add-cart-btn:hover:not(:disabled),
.product-card-actions .add-cart-btn:focus:not(:disabled) {
    background-color: #e0a800;
    box-shadow: 0 4px 12px rgba(201, 151, 0, 0.3);
}

.product-card-actions .add-cart-btn:active:not(:disabled) {
    background-color: #c99700;
}

/* Product detail page CTA: same premium orange family, compact height.
    Scoped to .product-buy-form so it cannot touch card CTAs;
    typography values (font-size/weight/family) stay untouched */
.product-buy-form .add-cart-btn.add-cart-btn-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    height: 42px;
    min-height: 42px;
    max-height: 44px;
    padding-block: 0;
    padding-inline: 1.15rem;
    border-radius: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-image: none;
    background-color: #ffc107;
    border: none;
    color: #064e3b;
    box-shadow: 0 2px 6px rgba(224, 168, 0, 0.25);
}

.product-buy-form .add-cart-btn.add-cart-btn-lg:hover:not(:disabled),
.product-buy-form .add-cart-btn.add-cart-btn-lg:focus:not(:disabled) {
    background-color: #e0a800;
    box-shadow: 0 4px 12px rgba(201, 151, 0, 0.3);
}

.product-buy-form .add-cart-btn.add-cart-btn-lg:active:not(:disabled) {
    background-color: #c99700;
}

/* Details = quiet secondary outline */
.product-card-actions .card-details-btn {
    width: 100%;
    flex: none;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: var(--theme-card-bg, #ffffff);
    border: 1.5px solid rgba(31, 41, 55, 0.16);
    color: #374151;
    box-shadow: none;
}

.product-card-actions .card-details-btn:hover:not(:disabled),
.product-card-actions .card-details-btn:focus:not(:disabled) {
    background: var(--theme-card-bg, #ffffff);
    border-color: var(--theme-primary, var(--c-brand));
    color: var(--theme-primary-dark, var(--c-brand-dark));
    box-shadow: none;
}

/* ============================================================
   SHOP CARD — same visual language, own identity
   ============================================================ */

/* ---- Media banner: clean white tile ---- */
.shop-card-media {
    margin: 0.65rem 0.65rem 0;
    border-radius: 0.8rem;
    background: #ffffff;
}

.shop-card-media.has-cover .shop-card-avatar {
    display: none;
}

.shop-card-avatar {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    background: #ffffff;
    box-shadow: none;
}

.shop-card-avatar img {
    transition: none;
}

.shop-card-media .shop-card-cover {
    transition: none;
}

.shop-card:hover .shop-card-avatar img {
    transform: none;
}

.shop-card:hover .shop-card-cover {
    transform: none;
}

/* Shop name: the primary text of the card â€” clean deep charcoal */
.shop-name {
    font-family: "Noto Sans Bengali", sans-serif;
    font-size: 1.02rem;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: normal;
    color: #1f2937;
    transition: color 0.18s ease;
}

.shop-name:hover {
    color: var(--theme-primary, #087f5b);
}

/* Category: elegant soft chip; small clearance keeps it from
    sitting on top of the metadata row */
.shop-category {
    align-self: flex-start;
    display: inline-block;
    padding: 0.22rem 0.62rem;
    border-radius: 0.4rem;
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 600;
    background: #ecfdf5;
    color: #047857;
    margin-bottom: 0.35rem;
}

.shop-rating {
    font-size: 0.87rem;
}

/* Rating / product count: quiet muted metadata text */
.shop-card-meta {
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

/* The cyan view button carries its own top margin in the base theme;
    inside the premium card it would stack with the meta margin and
    open an uneven hole, so scope it flat here (color/width untouched) */
.shop-card .shop-view-btn {
    margin-top: 0;
}

.shop-card-meta .shop-rating,
.shop-card-meta .shop-products {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #4b5563;
}

/* Rating number muted, star icon keeps a subtle warm accent */
.shop-card-meta .shop-rating i {
    color: var(--theme-rating, var(--theme-warning, var(--c-amber-dark)));
}

/* ============================================================
   RESPONSIVE â€” compact but usable, zero horizontal overflow
   ============================================================ */

/* ---- Mobile (â‰¤575.98px) ---- */
@media (max-width: 575.98px) {
    .product-card-media,
    .shop-card-media {
        margin: 0.55rem 0.55rem 0;
    }

    .product-card-body {
        padding: 0.75rem 0.85rem 0.6rem;
    }

    .product-price-row {
        margin-top: 0.4rem;
        padding-top: 0.5rem;
    }

    .product-card-actions {
        /* .5rem old pad + .6rem old body pad - 5.6px body flex gap */
        padding: 0.75rem 0.85rem 0.85rem;
        gap: 0.5rem;
        margin: auto -0.85rem -0.6rem;
    }

    .product-card-info-row {
        padding: 0.4rem 0.6rem 0;
        gap: 0.3rem;
    }

    .product-card-info-row .product-wishlist-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .product-card-info-row .product-wishlist-label {
        display: none;
    }

    .shop-card-avatar {
        width: 100%;
        height: 100%;
        font-size: 1.8rem;
    }

    .shop-card-media .shop-img-placeholder {
        width: 100%;
        height: 100%;
        border-radius: 0;
        border: none;
    }

    .shop-card-avatar,
    .shop-card-media .shop-img-placeholder {
        left: 0;
        top: 0;
        transform: none;
    }

    /* "দোকান দেখুন" needs ~102px with its icon; at 360px the default
        inline padding leaves only ~97px, so the label wrapped onto a
        second line. Slimmer inline padding (not typography) restores
        the single-line button at every phone width */
    .shop-view-btn {
        padding-inline: 0.45rem;
    }

    .product-buy-form .add-cart-btn.add-cart-btn-lg {
        width: 100%;
    }
}
