/* =========================================================================
   BinAli Storefront Theme
   Modern-minimal skin layered on top of the legacy "Molla" template CSS.
   Loaded AFTER the template stylesheets so these rules win.
   ========================================================================= */

:root {
    /* Brand accent — refined indigo */
    --accent: #4f46e5;
    --accent-dark: #4338ca;
    --accent-light: #eef2ff;
    --accent-contrast: #ffffff;

    /* Neutrals */
    --ink: #1a1d29;
    --ink-soft: #545766;
    --ink-faint: #8a8d99;
    --paper: #ffffff;
    --surface: #f7f7fb;
    --border: #e6e6ef;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;

    --shadow-sm: 0 1px 2px rgba(26, 29, 41, 0.06);
    --shadow: 0 4px 16px rgba(26, 29, 41, 0.08);
    --shadow-lg: 0 12px 32px rgba(26, 29, 41, 0.12);

    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Secondary accent — electric cyan, used for glows/highlights */
    --accent-2: #06b6d4;
    --accent-2-light: #ecfeff;

    /* Glass surfaces */
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-blur: 18px;
    --glass-shadow: 0 8px 32px rgba(26, 29, 41, 0.1);

    --shadow-glow: 0 8px 28px rgba(79, 70, 229, 0.28);
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-dark);
}

h1, h2, h3, h4, h5, h6,
.title, .product-title, .cat-block-title, .widget-title, .intro-title {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn-primary,
.btn-product.btn-cart,
.header-search .btn-primary {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--accent-contrast) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.header-search .btn-primary:hover {
    background-color: var(--accent-dark) !important;
    border-color: var(--accent-dark) !important;
    box-shadow: var(--shadow-sm);
}

.btn-outline-primary-2 {
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    font-weight: 600;
    background: transparent;
    transition: all .15s ease;
}

.btn-outline-primary-2:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--accent-contrast);
}

.btn-round {
    border-radius: 999px;
}

/* ---------------------------------------------------------------------
   Header — top bar
   --------------------------------------------------------------------- */
.header {
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: var(--ink) !important;
    color: #d8d9e6;
    font-size: 13px;
    padding-top: 9px;
    padding-bottom: 9px;
    letter-spacing: .01em;
}

.header-top a {
    color: #d8d9e6;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .15s ease;
}

.header-top i {
    color: var(--accent-2);
    font-size: 13px;
}

.header-top a:hover {
    color: #ffffff;
}

.header-top .top-menu > li > ul > li a.cursor,
.header-top .top-menu a[data-toggle="modal"] {
    font-weight: 600;
}

/* ---------------------------------------------------------------------
   Header — middle (logo, search, wishlist/cart)
   --------------------------------------------------------------------- */
.header-middle {
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.header-middle .sidebar-product {
    height: 56px !important;
    width: auto !important;
    max-width: 160px;
    object-fit: contain;
    transition: transform .2s ease;
}

.header-middle .header-left > a:hover .sidebar-product {
    transform: scale(1.04);
}

.header-search {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}

.header-search-wrapper {
    border-radius: 999px !important;
    overflow: hidden;
    background: var(--surface);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s ease, border-color .25s ease, transform .2s ease;
}

.header-search-wrapper:hover {
    border-color: var(--accent-light);
}

.header-search-wrapper:focus-within {
    background: var(--paper);
    border-color: var(--accent);
    box-shadow: 0 0 0 5px var(--accent-light), 0 6px 20px rgba(79, 70, 229, .12);
    transform: translateY(-1px);
}

.header-search .form-control {
    border: none;
    background: transparent;
    border-radius: 0 !important;
    padding-top: 11px;
    padding-bottom: 11px;
    font-size: .92rem;
}

.header-search .form-control:focus {
    border-color: transparent;
    box-shadow: none;
    background: transparent;
}

.header-search .form-control::placeholder {
    color: var(--ink-faint);
    transition: color .2s ease;
}

.header-search-wrapper:focus-within .form-control::placeholder {
    color: var(--ink-soft);
}

.header-search .btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%) !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search .btn-primary i {
    transition: transform .2s ease;
}

.header-search-wrapper:focus-within .btn-primary i {
    transform: scale(1.15) rotate(-8deg);
}

/* Live search dropdown */
.header-search form {
    position: relative;
}

.search-live-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    max-height: 420px;
    overflow-y: auto;
    z-index: 1050;
    animation: dropdownPop .16s ease;
    /* .header-search sets font-size:0 (a whitespace-hiding trick) — restore it here
       so descendant text (category/product names) doesn't inherit a 0 font-size. */
    font-size: 1rem;
}

.search-live-empty {
    padding: 16px;
    text-align: center;
    color: var(--ink-soft);
    font-size: .9rem;
}

.search-live-group + .search-live-group {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border);
}

.search-live-group-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ink-faint);
    padding: 6px 10px 4px;
}

.search-live-category,
.search-live-product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--ink);
    transition: background-color .15s ease;
}

.search-live-category:hover,
.search-live-product:hover {
    background: var(--surface);
    color: var(--ink);
}

.search-live-category i {
    color: var(--accent);
    font-size: 14px;
}

.search-live-product-image {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}

.search-live-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-live-product-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.search-live-product-name {
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-live-product-price {
    font-size: .8rem;
    color: var(--accent);
    font-weight: 700;
}

.header-search .btn-primary {
    border-radius: 0 !important;
    padding-left: 18px;
    padding-right: 18px;
}

/* Wishlist / cart icon buttons */
.header-right .wishlist > a,
.header-right .cart-dropdown > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: var(--radius);
    transition: background-color .15s ease, transform .15s ease;
}

.header-right .wishlist > a:hover,
.header-right .cart-dropdown > a:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.header-right .icon {
    position: relative;
}

.header-right .icon i {
    color: var(--ink);
    font-size: 22px;
    transition: color .15s ease, transform .15s ease;
}

.header-right .wishlist > a:hover .icon i,
.header-right .cart-dropdown > a:hover .icon i {
    color: var(--accent);
    transform: scale(1.08);
}

.header-right .wishlist p,
.header-right .cart-dropdown p {
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 12px;
    margin: 0;
}

.cart-count,
.wishlist-count {
    background-color: var(--accent) !important;
    box-shadow: 0 0 0 2px var(--paper);
}

/* Mini-cart dropdown polish */
.cart-dropdown .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    animation: dropdownPop .18s ease;
}

@keyframes dropdownPop {
    from { opacity: 0; transform: translateY(-6px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.cart-dropdown .product {
    border-radius: var(--radius-sm);
    transition: background-color .15s ease;
}

.cart-dropdown .product:hover {
    background: var(--surface);
}

/* ---------------------------------------------------------------------
   Header — bottom nav (categories, Home/Shop, clearance badge)
   --------------------------------------------------------------------- */
.header-bottom {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.main-nav .menu > li {
    position: relative;
}

.main-nav .menu > li > a {
    color: var(--ink);
    font-weight: 600;
    font-size: 14px;
    padding-bottom: 4px;
    position: relative;
}

.main-nav .menu > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width .2s ease;
}

.main-nav .menu > li > a:hover,
.main-nav .menu > li.active > a {
    color: var(--accent);
}

.main-nav .menu > li > a:hover::after,
.main-nav .menu > li.active > a::after {
    width: 100%;
}

.category-dropdown .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--accent-contrast) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 10px 18px;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.25);
    transition: box-shadow .2s ease, transform .15s ease;
}

.category-dropdown .dropdown-toggle i {
    transition: transform .2s ease;
}

.category-dropdown.show .dropdown-toggle i {
    transform: rotate(180deg);
}

.category-dropdown .dropdown-toggle:hover {
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

.category-dropdown .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    animation: dropdownPop .16s ease;
}

.category-dropdown .menu-vertical li a {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    color: var(--ink);
    font-weight: 600;
    font-size: .9rem;
    transition: background-color .15s ease, color .15s ease;
}

.category-dropdown .menu-vertical li a:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.category-dropdown-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface);
    border: 1px solid var(--border);
}

.header-bottom .header-right p {
    color: var(--ink-soft);
    margin: 0;
}

.header-bottom .header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-bottom .header-right .highlight {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-left: 6px;
    animation: clearancePulse 2.4s ease-in-out infinite;
}

@keyframes clearancePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .35); }
    50% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .header-bottom .header-right .highlight {
        animation: none;
    }
}

/* ---------------------------------------------------------------------
   Hero / intro slider
   --------------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--paper) 65%);
    padding-top: 20px;
    padding-bottom: 32px;
    position: relative;
}

.intro-slider-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-left: 16px;
    margin-right: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.intro-slide {
    border-radius: var(--radius-lg);
    background-color: var(--surface);
    min-height: 380px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.intro-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26, 29, 41, 0.62) 0%, rgba(26, 29, 41, 0.22) 55%, rgba(26, 29, 41, 0) 85%);
    border-radius: var(--radius-lg);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    padding: 0 5%;
    color: #ffffff;
}

.hero-eyebrow {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 14px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #f1f1f7;
    margin-bottom: 24px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #ffffff !important;
    font-weight: 700;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    transition: background-color .15s ease, transform .15s ease;
}

.hero-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    color: #ffffff !important;
}

@media (max-width: 767.98px) {
    .intro-slide {
        min-height: 260px;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: .9rem;
    }
}

/* Trust badges strip */
.trust-badges-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 16px 0;
    padding: 22px 24px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-badge i {
    font-size: 26px;
    color: var(--accent);
    background: var(--accent-light);
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.trust-badge strong {
    display: block;
    font-size: .9rem;
    color: var(--ink);
}

.trust-badge span {
    font-size: .8rem;
    color: var(--ink-soft);
}

@media (max-width: 991.98px) {
    .trust-badges-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .trust-badges-strip {
        margin-left: 0;
        margin-right: 0;
        border-radius: var(--radius);
    }
}

/* ---------------------------------------------------------------------
   Category blocks / product cards (used on Home + product detail)
   --------------------------------------------------------------------- */
.cat-blocks-container .cat-block,
.new-arrivals .cat-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 12px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    height: 100%;
}

.cat-blocks-container .cat-block:hover,
.new-arrivals .cat-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent-light);
}

.cat-block figure {
    margin-bottom: 12px;
    background: var(--surface);
    border-radius: 999px;
    padding: 6px;
}

/* Responsive image sizing (replaces hard-coded inline width/height) */
.cat-blocks-container .cat-block figure img {
    width: 100px;
    height: 100px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.new-arrivals .cat-block figure img {
    width: 150px;
    height: 150px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.similar-products .cat-block figure img {
    width: 170px;
    height: 170px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

@media (max-width: 575.98px) {
    .cat-blocks-container .cat-block figure img,
    .new-arrivals .cat-block figure img,
    .similar-products .cat-block figure img {
        width: 84px;
        height: 84px;
    }
}

/* ---------------------------------------------------------------------
   Product cards (Featured Products + You May Also Like)
   --------------------------------------------------------------------- */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 14px 18px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.product-card figure {
    margin-bottom: 14px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    padding: 6px;
    width: 100%;
}

.product-card figure img {
    width: 100%;
    max-width: 150px;
    height: 150px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: transform .3s ease;
}

.product-card:hover figure img {
    transform: scale(1.06);
}

.similar-products .product-card figure img {
    max-width: 170px;
    height: 170px;
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 4px 10px;
    border-radius: 999px;
    z-index: 1;
}

.product-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.product-card .product-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 15px;
}

.product-card-cta {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-faint);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease, color .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-card:hover .product-card-cta {
    opacity: 1;
    transform: translateY(0);
    color: var(--accent);
}

@media (max-width: 575.98px) {
    .product-card figure img,
    .similar-products .product-card figure img {
        width: 84px;
        height: 84px;
        max-width: 84px;
    }

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

.section-eyebrow {
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}

/* ---------------------------------------------------------------------
   Newsletter / promo banner
   --------------------------------------------------------------------- */
.promo-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(120deg, var(--ink) 0%, #2c2f45 100%);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
    margin: 8px 0 48px;
}

.promo-banner-text h3 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 6px;
}

.promo-banner-text p {
    color: #c6c7d6;
    margin-bottom: 0;
}

.promo-banner-cta {
    background: var(--accent);
    color: #ffffff !important;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: background-color .15s ease, transform .15s ease;
}

.promo-banner-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    color: #ffffff !important;
}

@media (max-width: 575.98px) {
    .promo-banner {
        padding: 28px 24px;
        text-align: center;
        justify-content: center;
    }
}

.cat-block-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.new-arrivals .cat-block .product-price {
    color: var(--accent);
    font-weight: 700;
    font-size: 15px;
    margin-top: auto;
}

.new-arrivals .col-6,
.cat-blocks-container .col-6 {
    margin-bottom: 20px;
}

/* Section rhythm */
.cat-blocks-container {
    margin-bottom: 8px;
}

.new-arrivals {
    padding: 24px 0 40px;
}

.new-arrivals .heading,
.cat-blocks-container + .heading {
    margin-bottom: 24px;
}

.new-arrivals .cat-block img,
.cat-blocks-container .cat-block img {
    border-radius: var(--radius-sm);
}

.heading .title {
    position: relative;
    padding-bottom: 10px;
}

.heading .title::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent);
    margin-top: 10px;
    border-radius: 2px;
}

.heading-flex .heading-left .title::after {
    margin-left: 0;
}

.title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

.nav-border-anim .nav-link.active {
    color: var(--accent);
}

.nav-border-anim .nav-link.active::before {
    background-color: var(--accent) !important;
}

/* ---------------------------------------------------------------------
   Product detail page
   --------------------------------------------------------------------- */
.pdp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0 0;
    font-size: 13px;
    color: var(--ink-faint);
}

.pdp-breadcrumb a {
    color: var(--ink-soft);
    font-weight: 600;
}

.pdp-breadcrumb a:hover {
    color: var(--accent);
}

.pdp-breadcrumb i {
    font-size: 10px;
    color: var(--ink-faint);
}

.pdp-breadcrumb span {
    color: var(--ink);
    font-weight: 600;
}

.product-details-top {
    padding: 20px 0 32px;
}

.product-gallery img#product-zoom {
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.product-image-gallery .product-gallery-item img {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: border-color .15s ease;
}

.product-image-gallery .product-gallery-item:hover img {
    border-color: var(--accent);
}

.product-details .product-title {
    font-size: 28px;
    margin-bottom: 8px;
}

.product-details .product-price {
    color: var(--accent);
    font-size: 22px;
    font-weight: 700;
    margin: 12px 0;
}

.product-details .product-content p {
    color: var(--ink-soft);
    line-height: 1.7;
}

.product-details .ratings {
    background-color: var(--border);
}

.product-details .ratings-val {
    background-color: var(--accent);
}

.product-details .ratings-text {
    color: var(--ink-soft);
    text-decoration: none;
    transition: color .15s ease;
}

.product-details .ratings-text:hover {
    color: var(--accent);
}

.no-reviews-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-faint);
    font-size: .85rem;
    font-style: italic;
}

.no-reviews-badge i {
    color: var(--ink-faint);
}

.pdp-reviews-summary {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.pdp-reviews-score {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
}

.product-details-action .btn-product.btn-cart {
    border-radius: var(--radius-sm);
    padding: 12px 28px;
}

.btn-product.btn-wishlist {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
}

.btn-product.btn-wishlist:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.footer {
    background: var(--ink);
    color: #cfd0dc;
}

.footer .footer-logo {
    height: 64px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    padding: 6px 10px;
}

.footer .cta {
    background-color: var(--accent-dark) !important;
    background-blend-mode: multiply;
}

.footer .cta-title {
    font-weight: 700;
}

.footer-middle {
    background: var(--ink);
    padding: 48px 0 24px;
}

.footer .widget-title {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer .widget-list a,
.footer .widget-call a {
    color: #b7b9c8;
}

.footer .widget-list a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    background: #12131c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright {
    color: #9294a6;
}

/* ---------------------------------------------------------------------
   Sign-in modal
   --------------------------------------------------------------------- */
#signin-modal .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: var(--shadow-lg);
}

#signin-modal .nav-pills .nav-link.active {
    color: var(--accent);
}

#signin-modal .nav-border-anim .nav-link.active::before {
    background-color: var(--accent) !important;
}

#signin-modal .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* ---------------------------------------------------------------------
   Mobile menu
   --------------------------------------------------------------------- */
.mobile-menu-container .mobile-nav .mobile-menu > li > a {
    color: var(--ink);
    font-weight: 600;
}

.mobile-menu-container .nav-pills-mobile .nav-link.active {
    color: var(--accent);
}

.mobile-menu-container .social-icons .social-icon:hover {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* ---------------------------------------------------------------------
   Misc utility
   --------------------------------------------------------------------- */
.cursor {
    cursor: pointer;
}

#scroll-top {
    background-color: var(--accent);
}

#scroll-top:hover {
    background-color: var(--accent-dark);
}

/* ---------------------------------------------------------------------
   Product detail page
   --------------------------------------------------------------------- */
.product-gallery #product-zoom {
    cursor: zoom-in;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.product-image-gallery .product-gallery-item {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    display: inline-block;
    transition: border-color .15s ease;
}

.product-image-gallery .product-gallery-item:hover,
.product-image-gallery .product-gallery-item.active {
    border-color: var(--accent);
}

.product-details .product-cat a {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .04em;
}

.product-details .product-price {
    color: var(--ink);
    font-weight: 700;
    font-size: 1.75rem;
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    width: fit-content;
}

.qty-stepper .qty-btn {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
    transition: background-color .15s ease, color .15s ease, transform .1s ease;
}

.qty-stepper .qty-btn:hover {
    background: var(--accent-light);
    color: var(--accent);
}

.qty-stepper .qty-btn:disabled {
    color: var(--ink-faint);
    cursor: not-allowed;
    background: transparent;
}

.qty-stepper .qty-btn:disabled:hover {
    background: transparent;
    color: var(--ink-faint);
}

.qty-stepper input#qty,
.qty-stepper .cart-line-qty input {
    width: 48px;
    text-align: center;
    border: none;
    background: transparent;
    border-radius: 0;
    font-weight: 700;
    color: var(--ink);
}

.product-details-action .btn-cart {
    background-color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 2px 10px rgba(79, 70, 229, .22);
    transition: background-color .15s ease, box-shadow .2s ease, transform .15s ease;
}

.product-details-action .btn-cart:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 8px 24px rgba(79, 70, 229, .32);
    transform: translateY(-2px);
}

.product-details-action .btn-cart:hover i {
    animation: cartBounce .5s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: translateY(0); }
    30% { transform: translateY(-3px) rotate(-6deg); }
    60% { transform: translateY(0) rotate(4deg); }
}

.btn-product.btn-wishlist {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* The template renders its own icon via ::before on .btn-cart/.btn-wishlist
   (an icomoon glyph). We render our own <i> icon instead — it's the one that
   needs to switch between outline/filled for the wishlist toggle — so the
   template's default icon is suppressed to avoid showing both side by side. */
.btn-product.btn-cart::before,
.btn-product.btn-wishlist::before {
    content: none !important;
}

.wishlist-heart {
    font-size: 16px;
    color: var(--ink-faint);
    transition: color .2s ease;
}

.btn-wishlist-active {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.btn-wishlist-active .wishlist-heart {
    color: #ef4444;
    animation: heartPop .4s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes heartPop {
    0% { transform: scale(.6); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

.product-details-action .btn-product.btn-cart i {
    margin-right: 8px;
}

.product-sku {
    color: var(--ink-faint);
    font-size: .8rem;
    margin-left: 10px;
    padding-left: 10px;
    border-left: 1px solid var(--border);
}

/* Soft pastel stock pill (replaces solid Bootstrap bg-success/bg-danger on PDP) */
.product-stock .badge {
    font-weight: 600;
    font-size: .8rem;
    padding: 7px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.product-stock .badge.bg-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    color: #047857 !important;
}

.product-stock .badge.bg-danger {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #b91c1c !important;
}

.pdp-assurance {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.pdp-assurance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
    color: var(--ink-soft);
    font-weight: 600;
}

.pdp-assurance-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.pdp-assurance-icon i {
    color: var(--accent);
    font-size: 15px;
}

.pdp-tabs {
    margin: 12px 0 48px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.pdp-tabs .nav-pills .nav-link {
    font-weight: 600;
    color: var(--ink-soft);
    padding: 8px 4px;
    margin-right: 28px;
}

.pdp-tab-content {
    padding-top: 18px;
    color: var(--ink-soft);
    line-height: 1.7;
}

/* ---------------------------------------------------------------------
   Cart / Wishlist / Checkout pages
   --------------------------------------------------------------------- */
.cart-page-title {
    font-weight: 700;
    color: var(--ink);
}

.cart-empty-state {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.cart-empty-icon {
    font-size: 3rem;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.cart-items-panel {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cart-line-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.cart-line-item:last-child {
    border-bottom: none;
}

.cart-line-image {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 0;
}

.cart-line-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.cart-line-item:hover .cart-line-image img {
    transform: scale(1.08);
}

.cart-line-info {
    flex: 1;
    min-width: 0;
}

.cart-line-title {
    font-size: .95rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .25rem;
}

.cart-line-price {
    color: var(--ink-soft);
    font-size: .875rem;
}

.cart-line-qty {
    flex-shrink: 0;
}

.cart-line-qty input {
    width: 44px;
}

.cart-line-subtotal {
    width: 100px;
    text-align: right;
    font-weight: 700;
    color: var(--ink);
    flex-shrink: 0;
}

.cart-line-remove {
    background: none;
    border: none;
    color: var(--ink-faint);
    font-size: 1.1rem;
    flex-shrink: 0;
    cursor: pointer;
}

.cart-line-remove:hover {
    color: #dc2626;
}

/* Below ~576px the single flex row (image + name + qty-stepper + subtotal +
   remove) has no room to breathe — names truncate to a few letters and the
   subtotal gets squeezed off to the right. Switch to a 2-row grid instead. */
@media (max-width: 575.98px) {
    .cart-line-item {
        display: grid;
        grid-template-columns: 56px 1fr auto;
        grid-template-areas:
            "image info remove"
            "qty   qty  subtotal";
        column-gap: .75rem;
        row-gap: .6rem;
        align-items: center;
        padding: .85rem 1rem;
    }

    .cart-line-image {
        grid-area: image;
        width: 56px;
        height: 56px;
    }

    .cart-line-info {
        grid-area: info;
        min-width: 0;
    }

    .cart-line-title {
        white-space: normal;
        overflow-wrap: break-word;
    }

    .cart-line-remove {
        grid-area: remove;
        padding: 4px;
    }

    .cart-line-qty {
        grid-area: qty;
        justify-self: start;
    }

    .cart-line-subtotal {
        grid-area: subtotal;
        width: auto;
    }
}

.cart-summary-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

.cart-summary-title {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: .5rem 0;
    font-size: .95rem;
}

.cart-summary-total {
    border-top: 1px solid var(--border);
    margin-top: .5rem;
    padding-top: .75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--ink);
}

.checkout-form-panel {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.checkout-line-item {
    display: flex;
    justify-content: space-between;
    padding: .4rem 0;
    font-size: .9rem;
    color: var(--ink-soft);
}

.checkout-success-icon {
    font-size: 3.5rem;
    color: #16a34a;
    display: block;
    margin-bottom: 1rem;
}

.wishlist-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    height: 100%;
}

.wishlist-card-image {
    margin: 0 0 .75rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.wishlist-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.wishlist-card:hover .wishlist-card-image img {
    transform: scale(1.08);
}

.wishlist-card-title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .35rem;
}

.wishlist-card-price {
    color: var(--accent);
    font-weight: 700;
    margin-bottom: .75rem;
}

.wishlist-card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
}

/* At the 2-up mobile grid (col-6) the card is often narrower than the
   "Add to Cart" button text, pushing the remove (x) button outside the
   card entirely. Stack the actions instead of forcing them onto one row. */
@media (max-width: 575.98px) {
    .wishlist-card-actions {
        flex-direction: column;
        gap: .4rem;
    }

    .wishlist-card-actions .btn {
        width: 100%;
    }
}

/* =========================================================================
   Futuristic UI layer — glassmorphism header, 3D tilt cards, scroll
   reveal, hero parallax, and micro-interactions. Pure CSS + a small
   dependency-free JS helper (js/ui-effects.js); no WebGL/Three.js.
   ========================================================================= */

/* ---------------------------------------------------------------------
   Sticky glass header
   --------------------------------------------------------------------- */
.header {
    position: sticky;
    top: 0;
    z-index: 1030;
    transition: box-shadow .25s ease;
}

.header.is-scrolled .header-middle,
.header.is-scrolled .header-bottom {
    background-color: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.header.is-scrolled {
    box-shadow: var(--glass-shadow);
}

.header-top {
    transition: max-height .25s ease, opacity .2s ease, padding .25s ease;
    max-height: 40px;
    overflow: hidden;
}

.header.is-scrolled .header-top {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.header-middle {
    transition: padding .25s ease;
}

.header.is-scrolled .header-middle {
    padding: 8px 0;
}

/* ---------------------------------------------------------------------
   Scroll-reveal utility (see js/ui-effects.js)
   --------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .65s cubic-bezier(.22, .61, .36, 1), transform .65s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------------------------------------------------------------------
   3D tilt cards (categories, products) — driven by js/ui-effects.js
   setting --tilt-x / --tilt-y / --glow-x / --glow-y per pointer move.
   --------------------------------------------------------------------- */
.tilt-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --glow-x: 50%;
    --glow-y: 50%;
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease, border-color .35s ease;
    transform-style: preserve-3d;
    position: relative;
}

.tilt-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(79, 70, 229, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.tilt-card:hover::after {
    opacity: 1;
}

.tilt-card:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

@media (hover: none) {
    .tilt-card {
        transform: none !important;
    }
}

/* ---------------------------------------------------------------------
   Hero parallax shapes
   --------------------------------------------------------------------- */
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: .55;
    pointer-events: none;
    z-index: 0;
    transition: transform .1s linear;
    animation: heroFloat 6s ease-in-out infinite;
}

.hero-shape.hero-shape-1 {
    top: 12%;
    right: 8%;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle at 30% 30%, var(--accent-2), transparent 70%);
    animation-delay: 0s;
}

.hero-shape.hero-shape-2 {
    bottom: 14%;
    right: 22%;
    width: 54px;
    height: 54px;
    background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
    animation-delay: -2s;
}

.hero-shape.hero-shape-3 {
    top: 45%;
    right: 40%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle at 30% 30%, #ffffff, transparent 70%);
    animation-delay: -4s;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

@media (max-width: 767.98px) {
    .hero-shape {
        display: none;
    }
}

/* ---------------------------------------------------------------------
   Badge bump micro-interaction (cart/wishlist counters)
   --------------------------------------------------------------------- */
@keyframes badgeBump {
    0% { transform: scale(1); }
    35% { transform: scale(1.45); }
    60% { transform: scale(.9); }
    100% { transform: scale(1); }
}

.badge-bump {
    animation: badgeBump .4s cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------------------------------------------------------------------
   Button micro-interactions
   --------------------------------------------------------------------- */
.btn-primary,
.btn-product.btn-cart,
.hero-cta,
.promo-banner-cta {
    transition: background-color .15s ease, transform .12s ease, box-shadow .2s ease !important;
}

.btn-primary:active,
.btn-product.btn-cart:active,
.btn-product.btn-wishlist:active,
.hero-cta:active,
.promo-banner-cta:active,
.qty-stepper .qty-btn:active {
    transform: scale(.94);
}

.btn-product.btn-wishlist {
    transition: color .15s ease, border-color .15s ease, transform .12s ease;
}

.product-details-action .btn-cart:hover,
.hero-cta:hover,
.promo-banner-cta:hover {
    box-shadow: var(--shadow-glow);
}

/* ---------------------------------------------------------------------
   Cart / Wishlist list animations (requires ngAnimate — see app.js)
   --------------------------------------------------------------------- */
.cart-line-item.ng-enter,
.wishlist-card.ng-enter {
    transition: opacity .3s ease, transform .3s ease;
}

.cart-line-item.ng-enter,
.wishlist-card.ng-enter {
    opacity: 0;
    transform: translateX(-12px);
}

.cart-line-item.ng-enter.ng-enter-active,
.wishlist-card.ng-enter.ng-enter-active {
    opacity: 1;
    transform: none;
}

.cart-line-item.ng-leave,
.wishlist-card.ng-leave {
    transition: opacity .25s ease, transform .25s ease, max-height .25s ease;
    max-height: 120px;
    overflow: hidden;
}

.cart-line-item.ng-leave.ng-leave-active,
.wishlist-card.ng-leave.ng-leave-active {
    opacity: 0;
    transform: translateX(16px) scale(.96);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.cart-summary-row span:last-child {
    transition: color .2s ease;
}

/* ---------------------------------------------------------------------
   Sticky buy-box on Product Detail (desktop)
   --------------------------------------------------------------------- */
@media (min-width: 992px) {
    .product-details {
        position: sticky;
        top: 96px;
        align-self: flex-start;
    }
}

/* ---------------------------------------------------------------------
   Glass panel polish (cart / checkout / wishlist surfaces)
   --------------------------------------------------------------------- */
.cart-items-panel,
.cart-summary-panel,
.checkout-form-panel,
.wishlist-card {
    background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
    transition: box-shadow .25s ease, transform .25s ease;
}

.cart-summary-panel:hover,
.checkout-form-panel:hover {
    box-shadow: var(--shadow);
}

.wishlist-card.tilt-card:hover {
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-4px);
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(.9) translateY(4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.product-details .alert-success {
    animation: popIn .3s cubic-bezier(.34, 1.56, .64, 1);
}

.product-details .product-price {
    background: linear-gradient(90deg, var(--ink) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    width: fit-content;
}

.product-details .product-price .currency {
    font-size: 1.1rem;
    font-weight: 600;
    vertical-align: middle;
    margin-right: 2px;
}

/* =========================================================================
   Home / PDP enhancement pass: subtle hero tilt, stat counters, CTA
   shine sweep, zoom hint, and image-swap transition.
   ========================================================================= */

/* ---------------------------------------------------------------------
   Subtle 3D tilt for large surfaces (hero banner) — same --tilt-x/-y
   custom properties as .tilt-card, damped so a big element doesn't
   feel jarring.
   --------------------------------------------------------------------- */
.tilt-card-subtle {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    transform: perspective(2200px) rotateX(calc(var(--tilt-x) * 0.35)) rotateY(calc(var(--tilt-y) * 0.35));
    transition: transform .4s cubic-bezier(.22, .61, .36, 1);
    transform-style: preserve-3d;
    will-change: transform;
}

@media (hover: none) {
    .tilt-card-subtle {
        transform: none !important;
    }
}

/* ---------------------------------------------------------------------
   CTA shine sweep
   --------------------------------------------------------------------- */
.hero-cta,
.promo-banner-cta {
    position: relative;
    overflow: hidden;
}

.hero-cta::before,
.promo-banner-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}

.hero-cta:hover::before,
.promo-banner-cta:hover::before {
    left: 130%;
}

/* ---------------------------------------------------------------------
   Stat counters ("Why Shop With Us")
   --------------------------------------------------------------------- */
.stats-section {
    padding: 8px 0 48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: linear-gradient(160deg, var(--paper) 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    perspective: 900px;
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-counter {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.stat-label {
    color: var(--ink-soft);
    font-size: .9rem;
    font-weight: 600;
    margin-top: 4px;
}

@media (max-width: 767.98px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------------------------------------------------------------------
   PDP: zoom hint + image swap transition
   --------------------------------------------------------------------- */
.product-gallery {
    position: relative;
}

.zoom-hint {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transform: scale(.85);
    transition: opacity .2s ease, transform .2s ease;
}

.product-gallery:hover .zoom-hint {
    opacity: 1;
    transform: scale(1);
}

#product-zoom.img-swap {
    animation: imgSwap .32s ease;
}

@keyframes imgSwap {
    0% { opacity: .35; transform: scale(.97); }
    100% { opacity: 1; transform: scale(1); }
}

/* =========================================================================
   Cart / Wishlist page header + shared micro-interactions
   ========================================================================= */
.cart-page-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 0 24px;
}

.cart-page-header-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-page-header-icon.category-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-products-row .product-card {
    height: 100%;
}

.cart-page-header .cart-page-title {
    margin-bottom: 2px;
}

.cart-page-subtitle {
    color: var(--ink-soft);
    font-size: .9rem;
    margin: 0;
}

/* Generic shine-sweep CTA, usable on any button (not just hero/promo CTAs) */
.cta-shine {
    position: relative;
    overflow: hidden;
}

.cta-shine::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left .6s ease;
}

.cta-shine:hover::before {
    left: 130%;
}

.cart-assurance {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.cart-assurance-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.cart-assurance-item i {
    color: var(--accent);
}

.cart-summary-panel .btn i,
.checkout-form-panel .btn i {
    margin-right: 6px;
}

/* Floating pulse for empty-state icons */
.cart-empty-icon {
    animation: emptyIconFloat 2.6s ease-in-out infinite;
}

@keyframes emptyIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
    .cart-empty-icon {
        animation: none;
    }
}

/* =========================================================================
   Mobile responsiveness fixes
   ========================================================================= */

/* Top bar: phone numbers wrap and collide with "Account" below ~400px.
   Below 480px, drop to a single phone link and let Account keep its space. */
@media (max-width: 479.98px) {
    .header-top .container {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .header-top .header-left {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        min-width: 0;
        flex: 1 1 auto;
    }

    .header-top .header-right {
        flex-shrink: 0;
    }
}

@media (max-width: 359.98px) {
    .header-top .header-left {
        display: none;
    }
}

/* The legacy template hides .wishlist entirely below 400px — restore it as
   an icon-only button so wishlist stays reachable on small phones. */
@media (max-width: 399.98px) {
    .header-right .wishlist {
        display: flex !important;
    }

    .header-right .wishlist p,
    .header-right .cart-dropdown p {
        display: none;
    }

    .header-right .wishlist,
    .header-right .cart-dropdown {
        padding-left: 0 !important;
    }
}

/* =========================================================================
   Order management: status badges, tracker, order list, invoice
   ========================================================================= */

.order-notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
}

.order-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--surface);
    color: var(--ink-soft);
    border: 1px solid var(--border);
}

.order-status-badge-lg {
    padding: 6px 16px;
    font-size: 13px;
}

.order-status-badge.status-pending { background: #fff7e6; color: #b45309; border-color: #fde8b8; }
.order-status-badge.status-processing { background: var(--accent-2-light); color: #0e7490; border-color: #b7f0fb; }
.order-status-badge.status-shipped { background: var(--accent-light); color: var(--accent-dark); border-color: #d6d3fb; }
.order-status-badge.status-delivered { background: #e9f9ee; color: #15803d; border-color: #bdeecb; }
.order-status-badge.status-cancelled { background: #fdecec; color: #b91c1c; border-color: #f8cccc; }
.order-status-badge.status-refunded { background: #f1f0f5; color: #4b4d5b; border-color: #dcdae5; }

/* Order list (My Orders page) */

.order-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.order-filters .field-wrapper {
    min-width: 160px;
    flex: 1 1 160px;
}

.order-filters .field-wrapper-reset {
    flex: 0 0 auto;
}

.order-list {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.order-list-header,
.order-list-row {
    display: grid;
    grid-template-columns: 0.8fr 1fr 0.7fr 1fr 1fr 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px 20px;
}

.order-list-header {
    background: var(--surface);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-faint);
}

.order-list-row {
    border-top: 1px solid var(--border);
}

.order-list-action {
    text-align: right;
}

@media (max-width: 767.98px) {
    .order-list-header {
        display: none;
    }

    .order-list-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .order-list-row span[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: var(--ink-faint);
    }

    .order-list-action {
        text-align: left;
    }
}

/* Invoice / order confirmation page */

.invoice-confirm-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #e9f9ee;
    border: 1px solid #bdeecb;
    color: #15803d;
    border-radius: var(--radius);
    padding: 18px 22px;
    margin-bottom: 20px;
}

.invoice-confirm-banner i {
    font-size: 28px;
}

.invoice-confirm-banner h2 {
    font-size: 18px;
    margin: 0 0 4px;
    color: #15803d;
}

.invoice-panel {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.invoice-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.order-tracker {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.order-tracker-step {
    flex: 1;
    position: relative;
    text-align: center;
    color: var(--ink-faint);
}

.order-tracker-step::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.order-tracker-step:first-child::before {
    display: none;
}

.order-tracker-dot {
    display: block;
    width: 14px;
    height: 14px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--border);
    position: relative;
    z-index: 1;
}

.order-tracker-label {
    font-size: 12px;
    font-weight: 600;
}

.order-tracker-step.is-done {
    color: var(--accent-dark);
}

.order-tracker-step.is-done .order-tracker-dot {
    background: var(--accent);
    border-color: var(--accent);
}

.order-tracker-step.is-done::before {
    background: var(--accent);
}

.order-tracker-step.is-current .order-tracker-label {
    font-weight: 800;
}

.invoice-block h5 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-faint);
    margin-bottom: 8px;
}

.invoice-items-table thead th {
    background: var(--surface);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.invoice-totals {
    max-width: 340px;
    margin-left: auto;
    margin-top: 16px;
}

@media print {
    .header,
    .header-top,
    .header-middle,
    .header-bottom,
    .footer,
    .no-print,
    #scroll-top {
        display: none !important;
    }

    .invoice-panel {
        box-shadow: none;
        border: none;
        padding: 0;
    }

    body {
        background: #fff;
    }
}
