/* =====================================================================
   Freebuff Commerce - Storefront design system
   ===================================================================== */

:root {
    --primary: #2f6fed;
    --primary-dark: #1f56c4;
    --primary-soft: #eaf1fe;
    --accent: #EE6E00;
    --accent-soft: #fff1e3;
    --dark: #16233B;
    --body-bg: #f6f7fb;
    --card-border: #e8eaf1;
    --text-muted: #6b7280;
    --success: #16a34a;
    --danger: #dc2626;
    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, .1);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, .14);
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--body-bg);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content { flex: 1 0 auto; }

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

/* ---------------------------------------------------------------- buttons */
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: #e2731f; border-color: #e2731f; color: #fff; }
.btn-icon {
    border: 0; background: transparent; color: var(--dark);
    position: relative; padding: .4rem .55rem; border-radius: 8px;
}
.btn-icon:hover { background: var(--primary-soft); color: var(--primary); }
.main-navbar .btn-icon { color: rgba(255,255,255,.9); }
.main-navbar .btn-icon:hover { background: rgba(255,255,255,.14); color: var(--accent); }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); }

.badge-count {
    position: absolute; top: -2px; right: -4px;
    background: var(--accent); color: #fff;
    font-size: .65rem; font-weight: 700;
    min-width: 18px; height: 18px; line-height: 18px;
    border-radius: 9px; padding: 0 4px; text-align: center;
}

/* ---------------------------------------------------------------- header */
.site-header { background: #fff; box-shadow: var(--shadow-sm); }
.topbar {
    background: #fff; color: #636368; font-size: .78rem;
    border-bottom: 1px solid #eef1f6; padding: .42rem 0;
}
.topbar-item { color: #636368; display: inline-flex; align-items: center; }
.topbar-item i { color: var(--accent); font-size: .85rem; }
.topbar-link { color: #636368; text-decoration: none; transition: color .15s; }
.topbar-link:hover { color: var(--accent); }
.topbar-cta {
    background: var(--accent); color: #fff !important;
    padding: .34rem .95rem; border-radius: 20px; font-weight: 600;
    display: inline-flex; align-items: center; gap: .4rem; text-decoration: none;
    font-size: .8rem; transition: background .15s;
}
.topbar-cta:hover { background: #d56100; color: #fff !important; }
.main-navbar { background: var(--dark); padding: .65rem 0; box-shadow: 0 2px 10px rgba(22, 35, 59, .18); }
.main-navbar .navbar-toggler { border-color: rgba(255,255,255,.25); }
.header-search { width: 270px; }
.header-search .form-control {
    border-radius: 20px 0 0 20px; border: 0; font-size: .88rem; padding-left: 1rem;
    box-shadow: none;
}
.header-search .form-control:focus { border: 0; box-shadow: none; }
.header-search-btn {
    background: var(--accent); color: #fff; border: 0;
    border-radius: 0 20px 20px 0; padding: 0 15px;
    display: inline-flex; align-items: center; transition: background .15s;
}
.header-search-btn:hover { background: #d56100; }
.search-collapse { background: var(--dark); border-top: 1px solid rgba(255,255,255,.08); }
.search-collapse .form-control { border-radius: 20px; }
.brand-badge {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.brand-text { font-size: 1.25rem; letter-spacing: -.02em; color: var(--dark); }
.brand-logo { height: 40px; width: auto; display: inline-block; }
.brand-logo-lg { height: 56px; }
.brand-logo-footer { height: 44px; opacity: .95; }
.search-form input { border-radius: 24px; padding-left: 1.1rem; }
.search-suggestions {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    background: #fff; border: 1px solid var(--card-border); border-radius: 12px;
    box-shadow: var(--shadow-lg); overflow: hidden; margin-top: 6px;
}
.search-suggestions a {
    display: flex; gap: .75rem; align-items: center;
    padding: .55rem .9rem; color: var(--dark); text-decoration: none; border-bottom: 1px solid #f5f6fa;
}
.search-suggestions a:last-child { border-bottom: 0; }
.search-suggestions a:hover { background: var(--primary-soft); }
.search-suggestions img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.search-suggestions .ss-name { font-size: .85rem; font-weight: 600; }
.search-suggestions .ss-price { font-size: .8rem; color: var(--primary); font-weight: 600; }

.category-bar { background: #1b2c49; border-top: 1px solid rgba(255,255,255,.08); padding: .42rem 0; }
.category-link {
    color: rgba(255,255,255,.82); text-decoration: none; font-size: .86rem; white-space: nowrap;
    padding: .35rem 0; display: inline-block; transition: color .15s;
}
.category-link:hover { color: var(--accent); }
.category-bar .dropdown:hover .dropdown-menu { display: block; }
.category-bar .dropdown-menu { border-radius: 10px; }

.main-navbar .navbar-nav .nav-link { color: rgba(255,255,255,.88); font-weight: 500; font-size: .92rem; padding: .5rem .9rem !important; }
.main-navbar .navbar-nav .nav-link:hover, .main-navbar .navbar-nav .nav-link.active { color: var(--accent); }
.main-navbar .navbar-nav .nav-link.dropdown-toggle::after { border-top-color: rgba(255,255,255,.7); }
.main-navbar .dropdown:hover .dropdown-menu { display: block; margin-top: 0; }
.main-navbar .dropdown-menu { border-radius: 10px; border: 0; box-shadow: 0 10px 30px rgba(22, 35, 59, .18); }

/* nested subcategory flyout inside the Categories dropdown */
.main-navbar .dropdown-submenu { position: relative; }
.main-navbar .submenu-head { display: flex; align-items: center; }
.main-navbar .submenu-head .dropdown-item { flex: 1 1 auto; }
.main-navbar .submenu-caret {
    display: none; /* desktop: hover opens the flyout, caret not needed */
    align-items: center; justify-content: center;
    background: none; border: 0; padding: .5rem .8rem; color: var(--text-muted);
}
.main-navbar .submenu-caret i { transition: transform .15s ease; }
.main-navbar .dropdown-submenu > .dropdown-menu {
    top: -6px; left: 100%; margin-top: 0; margin-left: 2px; border-radius: 10px;
    display: none; min-width: 170px;
}
.main-navbar .dropdown-submenu:hover > .dropdown-menu,
.main-navbar .dropdown-submenu.show > .dropdown-menu { display: block; }
.main-navbar .dropdown-submenu > .dropdown-item:hover { background: #f2f4f8; }

/* on narrow screens the flyout becomes an inline accordion (no off-screen, no overlap) */
@media (max-width: 991.98px) {
    .main-navbar .dropdown-menu { min-width: 200px; }
    .main-navbar .dropdown-submenu > .dropdown-menu {
        position: static; top: auto; left: auto; margin: 0 0 4px 1.25rem;
        width: auto; min-width: 0; border-radius: 8px;
    }
    .main-navbar .dropdown-submenu:hover > .dropdown-menu { display: none; } /* touch: no sticky hover */
    .main-navbar .dropdown-submenu.show > .dropdown-menu { display: block; }
    .main-navbar .submenu-caret { display: inline-flex; }
    .main-navbar .dropdown-submenu.show > .submenu-head .submenu-caret i { transform: rotate(90deg); }
}

/* ---------------------------------------------------------------- hero */
.hero-section { position: relative; margin-bottom: 2.5rem; }
.hero-section .carousel-item img { width: 100%; height: 400px; object-fit: cover; }
.hero-caption {
    position: absolute; inset: 0; display: flex; align-items: center;
    background: linear-gradient(90deg, rgba(15,23,42,.65) 0%, rgba(15,23,42,.2) 60%, transparent 100%);
    color: #fff; padding: 2rem 4rem;
}
.hero-caption h1 { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 800; }
.hero-caption p { max-width: 460px; color: rgba(255,255,255,.85); }
@media (max-width: 768px) {
    .hero-section .carousel-item img { height: 240px; }
    .hero-caption { padding: 1.2rem; }
}

/* ---------------------------------------------------------------- sections */
.section-block { margin-bottom: 2.75rem; }
.section-heading {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem;
}
.section-heading h2 { font-size: 1.35rem; font-weight: 700; margin: 0; }
.section-heading .see-all { font-size: .85rem; font-weight: 600; text-decoration: none; }

/* ---------------------------------------------------------------- product cards */
.product-card {
    background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius);
    overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
    height: 100%; display: flex; flex-direction: column; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .pc-image {
    position: relative; aspect-ratio: 1/1; background: #fff; overflow: hidden;
}
.product-card .pc-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .pc-image img { transform: scale(1.05); }
.pc-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; }
.pc-badge {
    font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; color: #fff;
    text-transform: uppercase; letter-spacing: .03em;
}
.pc-badge.sale { background: var(--danger); }
.pc-badge.new { background: var(--success); }
.pc-badge.featured { background: var(--primary); }
.pc-actions {
    position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px;
    opacity: 0; transform: translateX(8px); transition: all .2s ease;
}
.product-card:hover .pc-actions { opacity: 1; transform: translateX(0); }
.pc-actions button, .pc-actions a {
    width: 34px; height: 34px; border-radius: 50%; border: 0; background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--dark); box-shadow: var(--shadow-sm); cursor: pointer; text-decoration: none;
}
.pc-actions button:hover, .pc-actions a:hover { background: var(--primary); color: #fff; }
.pc-body { padding: .9rem; display: flex; flex-direction: column; flex: 1; }
.pc-category { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.pc-name { font-size: .9rem; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.pc-name a { color: var(--dark); text-decoration: none; }
.pc-name a:hover { color: var(--primary); }
.pc-rating { font-size: .75rem; color: #f59e0b; margin-bottom: 6px; }
.pc-rating .count { color: var(--text-muted); }
.pc-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.pc-price .current { font-size: 1.05rem; font-weight: 700; color: var(--dark); }
.pc-price .old { font-size: .82rem; color: var(--text-muted); text-decoration: line-through; }
.pc-stock { font-size: .72rem; font-weight: 600; }
.pc-stock.in { color: var(--success); }
.pc-stock.out { color: var(--danger); }

/* ---------------------------------------------------------------- banners */
.promo-banner { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 2.75rem; }
.promo-banner img { width: 100%; height: 260px; object-fit: cover; }
.promo-banner .banner-overlay {
    position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,.55), transparent);
    display: flex; align-items: center; padding: 2rem;
}
.promo-banner .banner-overlay h3 { color: #fff; font-weight: 800; }
.promo-banner .banner-overlay p { color: rgba(255,255,255,.85); }
@media (max-width: 768px) {
    .promo-banner img { height: 160px; }
}

/* ---------------------------------------------------------------- category tiles */
.category-tile {
    background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius);
    padding: 1rem; text-align: center; text-decoration: none; color: var(--dark);
    display: block; transition: all .15s ease; height: 100%;
}
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: var(--primary); }
.category-tile .ct-icon {
    width: 56px; height: 56px; margin: 0 auto .6rem; border-radius: 50%;
    background: var(--primary-soft); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.category-tile .ct-name { font-weight: 600; font-size: .88rem; }
.category-tile .ct-count { font-size: .75rem; color: var(--text-muted); }

/* ---------------------------------------------------------------- breadcrumbs */
.breadcrumb-bar { background: #fff; border-bottom: 1px solid #eef0f6; }
.breadcrumb-bar .breadcrumb { margin: 0; padding: .65rem 0; font-size: .82rem; }
.breadcrumb-item a { color: var(--text-muted); text-decoration: none; }
.breadcrumb-item a:hover { color: var(--primary); }

/* ---------------------------------------------------------------- catalog */
.catalog-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.5rem; }
@media (max-width: 991px) { .catalog-layout { grid-template-columns: 1fr; } }

.filter-panel { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.1rem; position: sticky; top: 90px; }
.filter-panel h6 { font-weight: 700; font-size: .9rem; }
.filter-group { border-bottom: 1px solid #f0f2f8; padding: .9rem 0; }
.filter-group:last-child { border-bottom: 0; }
.filter-group .form-check-label { font-size: .85rem; color: #374151; }
.filter-group .form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }

.catalog-toolbar {
    background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius);
    padding: .7rem 1rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    margin-bottom: 1rem;
}
.catalog-toolbar .result-count { font-size: .85rem; color: var(--text-muted); }
.catalog-toolbar .form-select { width: auto; font-size: .85rem; }
.catalog-toolbar .mobile-filter-btn { display: none; }
@media (max-width: 991px) {
    .catalog-toolbar .mobile-filter-btn { display: inline-block; }
    .filter-panel.collapsed-mobile { display: none; }
}

/* ---------------------------------------------------------------- product detail */
.product-detail { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1.5rem; }
.gallery-main {
    border: 1px solid var(--card-border); border-radius: var(--radius); overflow: hidden;
    background: #fff; cursor: zoom-in; position: relative; height: 480px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumbs img {
    width: 72px; height: 72px; object-fit: cover; border-radius: 8px;
    border: 2px solid var(--card-border); cursor: pointer; opacity: .7;
}
.gallery-thumbs img.active { border-color: var(--primary); opacity: 1; }

.pd-title { font-size: 1.5rem; font-weight: 700; }
.pd-meta { font-size: .82rem; color: var(--text-muted); }
.pd-price { display: flex; align-items: baseline; gap: 12px; }
.pd-price .current { font-size: 1.9rem; font-weight: 800; color: var(--primary); }
.pd-price .old { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; }
.pd-save { background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.pd-variant-options .option-label { font-size: .82rem; font-weight: 600; }
.pd-variant-options .variant-pill {
    border: 1.5px solid var(--card-border); background: #fff; color: var(--dark);
    padding: .4rem .8rem; border-radius: 8px; font-size: .83rem; cursor: pointer;
}
.pd-variant-options .variant-pill.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--card-border); border-radius: 10px; overflow: hidden; }
.qty-input button { border: 0; background: #f4f5fa; width: 38px; height: 42px; font-size: 1.1rem; }
.qty-input input { width: 52px; border: 0; text-align: center; font-weight: 600; }

.pd-tabs .nav-link { color: var(--dark); font-weight: 600; }
.pd-tabs .nav-link.active { color: var(--primary); }
.spec-table td { padding: .5rem .75rem; font-size: .88rem; }
.spec-table tr:nth-child(odd) td { background: #f8f9fd; }

/* image zoom lens */
.zoom-lens {
    position: absolute; width: 140px; height: 140px; border: 2px solid var(--primary);
    background: rgba(255,255,255,.35); border-radius: 50%; pointer-events: none; display: none;
}

/* ---------------------------------------------------------------- reviews */
.review-item { border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1rem; background: #fff; }
.review-stars { color: #f59e0b; font-size: .85rem; }
.rating-input label { font-size: 1.4rem; color: #d1d5db; cursor: pointer; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f59e0b; }
/* Write-a-Review form header: product thumbnail + labeled star picker. */
.review-product-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--card-border); flex: 0 0 auto; }
.rating-row { display: flex; align-items: center; gap: .6rem; }
.rating-row .rating-input label { font-size: 1.7rem; }
.rating-label .rating-value { color: #6b7280; font-weight: 700; }
.rating-label.has-rating .rating-value { color: #f59e0b; }
/* Reviewer identity above the write-a-review form. */
.review-avatar, .review-avatar-img { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; }
.review-avatar { background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; }
.review-avatar-img { object-fit: cover; border: 1px solid var(--card-border); }
.verified-badge { display: inline-flex; align-items: center; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.review-as-date { font-size: .74rem; color: #6b7280; display: inline-flex; align-items: center; }

/* ---------------------------------------------------------------- cart */
.cart-table img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.cart-summary-card {
    background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius);
    padding: 1.2rem; position: sticky; top: 90px;
}
.summary-row { display: flex; justify-content: space-between; font-size: .9rem; padding: .35rem 0; }
.summary-row.total { font-size: 1.15rem; font-weight: 800; border-top: 1px dashed var(--card-border); margin-top: .5rem; padding-top: .75rem; }
.coupon-box .form-control { border-radius: 8px 0 0 8px; }
.coupon-box .btn { border-radius: 0 8px 8px 0; }

/* ---------------------------------------------------------------- checkout */
.checkout-steps { display: flex; gap: 0; margin-bottom: 2rem; overflow-x: auto; }
.checkout-step {
    flex: 1; min-width: 120px; text-align: center; position: relative; padding-bottom: .9rem;
}
.checkout-step .cs-dot {
    width: 34px; height: 34px; border-radius: 50%; margin: 0 auto .4rem;
    background: #e5e7eb; color: #6b7280; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .9rem; position: relative; z-index: 2;
}
.checkout-step.active .cs-dot { background: var(--primary); color: #fff; }
.checkout-step.done .cs-dot { background: var(--success); color: #fff; }
.checkout-step .cs-label { font-size: .75rem; color: var(--text-muted); font-weight: 600; }
.checkout-step.active .cs-label { color: var(--dark); }
.checkout-step::before {
    content: ''; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: #e5e7eb; z-index: 1;
}
.checkout-step:first-child::before { display: none; }
.checkout-step.done::before { background: var(--success); }

.payment-option {
    border: 1.5px solid var(--card-border); border-radius: var(--radius); padding: .9rem 1rem;
    cursor: pointer; display: flex; gap: .75rem; align-items: flex-start; background: #fff;
}
.payment-option.active { border-color: var(--primary); background: var(--primary-soft); }

/* ---------------------------------------------------------------- auth */
.auth-card .card-body { width: 100%; }

/* Direct Google OAuth: 'Continue with Google' one-click action */
.google-oauth-btn {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    width: 100%; height: 46px; background: #fff; color: #1f2937;
    border: 1.5px solid #e5e7eb; border-radius: 10px; font-weight: 600;
    font-size: .95rem; cursor: pointer; text-decoration: none;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.google-oauth-btn:hover {
    background: #f8fafc; border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .12);
}
.google-oauth-btn svg { flex: none; }

/* 'or' divider between the Google button and the email form */
.auth-divider {
    display: flex; align-items: center; gap: .75rem; margin: 1.15rem 0;
    color: #9ca3af; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em;
}
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }

/* Amazon/Meesho-style auth: compact card, legal line, new-user switch box */
.auth-card { max-width: 400px; margin: 2.5rem auto; }
.auth-card .card { border: 1px solid var(--card-border); box-shadow: 0 1px 3px rgba(16, 24, 40, .06); border-radius: 12px; }
.auth-card h1 { font-size: 1.5rem; font-weight: 700; }
.auth-legal { font-size: .78rem; line-height: 1.5; color: #6b7280; text-align: center; margin: 1.1rem 0 0; }
.auth-legal a { color: var(--primary); text-decoration: none; }
.auth-legal a:hover { text-decoration: underline; }
.auth-switch { margin-top: 1.25rem; border-top: 1px solid #e5e7eb; padding-top: 1.25rem; text-align: center; font-size: .95rem; color: #374151; }
.auth-switch a { font-weight: 700; color: var(--primary); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* Auth pages: plain light background (no vector graphics). */
.auth-page { background: #fff; }

/* Meesho-style split auth: social-proof panel left, form right */
.auth-layout { display: flex; gap: 3rem; align-items: flex-start; justify-content: center; max-width: 960px; margin: 0 auto; padding: 0 1rem 3rem; }
.auth-layout .auth-main { flex: 0 0 420px; order: 2; min-width: 0; }
.auth-layout .auth-proof { flex: 1 1 0; order: 1; min-width: 0; max-width: 480px; position: sticky; top: 2.5rem; margin-top: 2.5rem; }
.auth-proof .proof-card { background: #fff; border: 1px solid var(--card-border); border-radius: 12px; padding: 1.5rem; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.auth-proof h2 { font-size: 1.3rem; font-weight: 700; }
.auth-proof .proof-stats { display: flex; gap: 1.75rem; }
.auth-proof .proof-stat strong { font-size: 1.45rem; font-weight: 800; color: var(--primary); display: block; line-height: 1.1; }
.auth-proof .proof-stat span { font-size: .78rem; color: #6b7280; }
.auth-proof .proof-badges { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.auth-proof .proof-badge { display: flex; gap: .6rem; align-items: flex-start; background: var(--primary-soft); border-radius: 10px; padding: .75rem; }
.auth-proof .proof-badge i { font-size: 1.15rem; color: var(--primary); margin-top: .1rem; }
.auth-proof .proof-badge strong { font-size: .86rem; display: block; line-height: 1.2; }
.auth-proof .proof-badge span { font-size: .74rem; color: #6b7280; line-height: 1.3; display: block; }
.auth-proof .proof-orders { list-style: none; margin: 0; padding: 0; }
.auth-proof .proof-orders li { display: flex; gap: .6rem; align-items: center; padding: .55rem 0; border-bottom: 1px dashed #e5e7eb; font-size: .85rem; animation: proof-item-in .45s ease both; }
.auth-proof .proof-orders li:nth-child(2) { animation-delay: .07s; }
.auth-proof .proof-orders li:nth-child(3) { animation-delay: .14s; }
.auth-proof .proof-orders li:nth-child(4) { animation-delay: .21s; }
.auth-proof .proof-orders li:last-child { border-bottom: 0; padding-bottom: 0; }
.auth-proof .proof-orders i { color: var(--primary); }
.auth-proof .proof-orders span { min-width: 0; }
.auth-proof .proof-orders .order-name { font-weight: 600; display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-proof .proof-orders .order-meta { color: #6b7280; font-size: .76rem; }
.auth-proof .proof-orders .order-qty { flex: 0 0 auto; font-size: .68rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 8px; padding: 2px 7px; }
.auth-proof .proof-orders .order-price { margin-left: auto; flex: 0 0 auto; font-size: .82rem; font-weight: 700; color: #374151; white-space: nowrap; }
/* Pulsing "live" dot + 24h counter, and a soft staggered entrance for the
   list items (off when the user prefers reduced motion). */
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; animation: live-pulse 1.6s ease-in-out infinite; }
.proof-live-count { font-size: .78rem; color: #6b7280; margin-bottom: .45rem; }
.proof-live-count strong { color: #374151; }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); } }
@keyframes proof-item-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
/* Auto-scrolling ticker: the viewport height is set by JS to exactly one
   list copy; the track holds two identical copies and translateY(-50%) loops
   seamlessly. Hovering pauses it. The clone stays display:none (and the class
   is never added) without JS or under prefers-reduced-motion — the plain
   static list shows instead. */
.proof-ticker { overflow: hidden; }
.proof-orders-clone { display: none; }
.proof-ticker.js-ticker .proof-orders-clone { display: block; }
.proof-ticker.js-ticker {
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
            mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
}
.proof-ticker.js-ticker .proof-ticker-track { animation: proof-ticker-scroll 20s linear infinite; }
.proof-ticker.js-ticker:hover .proof-ticker-track,
.proof-ticker.js-ticker:focus-within .proof-ticker-track { animation-play-state: paused; }
@keyframes proof-ticker-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* Keep the motion guard last so it beats the rules above (equal specificity). */
@media (prefers-reduced-motion: reduce) {
    .auth-proof .proof-orders li { animation: none; }
    .live-dot { animation: none; }
    .proof-ticker.js-ticker { -webkit-mask-image: none; mask-image: none; }
    .proof-ticker.js-ticker .proof-ticker-track { animation: none; }
}
@media (max-width: 991.98px) {
    .auth-layout { flex-wrap: wrap; gap: 0; }
    .auth-layout .auth-main { flex: 1 1 100%; order: 1; }
    .auth-layout .auth-proof { display: none; }
}

/* ---------------------------------------------------------------- account */
.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 1.5rem; }
@media (max-width: 991px) { .account-layout { grid-template-columns: 1fr; } }
.account-sidebar { background: #fff; border: 1px solid var(--card-border); border-radius: var(--radius); padding: 1rem; }
.account-sidebar .nav-link { color: #374151; border-radius: 8px; font-size: .88rem; padding: .55rem .8rem; }
.account-sidebar .nav-link:hover { background: var(--primary-soft); color: var(--primary); }
.account-sidebar .nav-link.active { background: var(--primary); color: #fff; }
.account-sidebar .nav-link i { margin-right: .5rem; }
.order-status-badge { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .02em; }
.order-status-badge.pending { background: #fff7ed; color: #c2410c; }
.order-status-badge.confirmed, .order-status-badge.processing { background: #eff6ff; color: #1d4ed8; }
.order-status-badge.packed, .order-status-badge.shipped { background: #f0fdf4; color: #15803d; }
.order-status-badge.delivered { background: #ecfdf5; color: #047857; }
.order-status-badge.cancelled { background: #fef2f2; color: #b91c1c; }
.order-status-badge.returned { background: #f5f3ff; color: #6d28d9; }
.payment-badge { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.payment-badge.pending { background: #fff7ed; color: #c2410c; }
.payment-badge.paid { background: #ecfdf5; color: #047857; }
.payment-badge.failed { background: #fef2f2; color: #b91c1c; }
.payment-badge.refunded { background: #f5f3ff; color: #6d28d9; }

/* ---------------------------------------------------------------- footer */
/* Footer matches the navy header theme (--dark) with orange hover accents. */
.newsletter-bar { background: var(--dark); border-top: 1px solid rgba(255,255,255,.08); }
.footer-main { background: var(--dark); }
.footer-bottom { background: #1b2c49; } /* matches the category bar */
.footer-main .footer-heading { color: #fff; }
.footer-link { color: rgba(255,255,255,.72); text-decoration: none; transition: color .15s; }
.footer-link:hover { color: var(--accent); }
.footer-main .text-muted { color: rgba(255,255,255,.55) !important; }
.social-links a {
    width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; margin-right: 6px; text-decoration: none;
    transition: background .15s, color .15s;
}
.social-links a:hover { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- misc */
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 3rem; color: #d1d5db; }
/* "Be the first to review" invitation: amber stars matching .review-stars. */
.empty-state .empty-stars i { font-size: 1.7rem; color: #f59e0b; opacity: .5; margin: 0 2px; }
#write-review { scroll-margin-top: 92px; }
.error-body { display: flex; align-items: center; justify-content: center; min-height: 70vh; background: var(--body-bg); }
.error-box { background: #fff; padding: 3rem; border-radius: 16px; box-shadow: var(--shadow-md); max-width: 520px; width: 90%; }

.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(47,111,237,.15); }

/* toast */
.toast-container .toast { border: 0; border-radius: 10px; box-shadow: var(--shadow-lg); }
.toast.bg-success { background: var(--success) !important; }
.toast.bg-danger { background: var(--danger) !important; }
.toast.bg-warning { background: #d97706 !important; }

/* skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #eef0f6 25%, #f7f8fb 50%, #eef0f6 75%);
    background-size: 200% 100%; animation: shimmer 1.4s infinite;
    border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* print */
@media print {
    .site-header, .site-footer, .breadcrumb-bar, .no-print { display: none !important; }
    body { background: #fff; }
    .main-content { padding: 0; }
}

/* invoice */
.invoice-box { background: #fff; border-radius: 12px; padding: 2rem; }
@media print { .invoice-box { border: 0; box-shadow: none; padding: 0; } }

/* responsive tables */
.table-responsive-md { overflow-x: auto; }

/* =====================================================================
   Checkout redesign — professional two-column Indian e-commerce checkout
   ===================================================================== */

.checkout-body { background: var(--body-bg); }

/* ---------- simplified checkout header ---------- */
.checkout-header {
    background: #fff;
    border-bottom: 1px solid var(--card-border);
    padding: .65rem 0;
    position: sticky; top: 0; z-index: 1020;
    box-shadow: 0 1px 4px rgba(16, 24, 40, .06);
}
.checkout-header .brand-logo { max-height: 46px; }
.checkout-header-link {
    color: var(--dark); text-decoration: none;
    display: inline-flex; align-items: center; gap: .5rem;
}
.checkout-header-link:hover { color: var(--primary); }
.checkout-cart-badge {
    position: absolute; top: -6px; right: -9px;
    background: var(--accent); color: #fff;
    font-size: .68rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* ---------- cards ---------- */
.checkout-card {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
}
.checkout-card-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem;
}
.checkout-step-tag {
    font-size: .7rem; font-weight: 700; letter-spacing: .03em;
    color: var(--primary); background: var(--primary-soft);
    padding: .3rem .6rem; border-radius: 999px; white-space: nowrap;
}

/* ---------- compact clickable stepper ---------- */
.checkout-steps { justify-content: center; gap: .25rem; }
.checkout-step { cursor: pointer; }
.checkout-step[data-step-go] { pointer-events: none; }
.checkout-step.done[data-step-go] { pointer-events: auto; }
.checkout-step.done[data-step-go]:hover .cs-dot { transform: scale(1.06); }
.checkout-step.done[data-step-go]:hover .cs-label { color: var(--primary); }
.checkout-step .cs-dot { transition: transform .15s ease; }

/* ---------- field validation ---------- */
.field-error {
    color: var(--danger); font-size: .78rem; font-weight: 500;
    margin-top: .25rem; min-height: 0; display: none;
}
.field-error.show { display: block; }
.is-invalid-custom { border-color: var(--danger) !important; }
.is-invalid-custom:focus { box-shadow: 0 0 0 .2rem rgba(220, 38, 38, .15) !important; }
.pin-feedback { min-height: 1rem; }
.pin-feedback.ok { color: var(--success); }
.pin-feedback.bad { color: var(--danger); }

/* ---------- saved addresses ---------- */
.address-card {
    border: 1.5px solid var(--card-border); border-radius: 12px;
    background: #fff; padding: .9rem 1rem; height: 100%;
    display: flex; flex-direction: column; gap: .5rem;
    transition: border-color .15s, box-shadow .15s;
}
.address-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.address-card-top { display: flex; align-items: center; justify-content: space-between; }
.address-card-label { font-size: .7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.address-card-actions { display: flex; gap: .4rem; margin-top: auto; }

/* ---------- order summary ---------- */
.checkout-summary {
    background: #fff; border: 1px solid var(--card-border);
    border-radius: 14px; padding: 1.1rem;
    position: sticky; top: 76px; box-shadow: var(--shadow-sm);
}
.checkout-summary-head { display: flex; align-items: center; justify-content: space-between; }
.os-items { display: flex; flex-direction: column; gap: .7rem; margin-top: .9rem; }
.os-item { display: flex; align-items: center; gap: .7rem; }
.os-thumb {
    width: 46px; height: 46px; border-radius: 10px; overflow: hidden;
    background: var(--primary-soft); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: var(--primary);
}
.os-thumb img { width: 100%; height: 100%; object-fit: cover; }
.os-item-meta { flex: 1; min-width: 0; }
.os-item-price { font-weight: 700; font-size: .85rem; white-space: nowrap; }

/* coupon */
.coupon-summary { cursor: pointer; color: var(--primary); list-style: none; }
.coupon-summary::-webkit-details-marker { display: none; }
.coupon-summary::before { content: "\F64D"; font-family: "bootstrap-icons"; margin-right: .35rem; }

/* ---------- review box ---------- */
.review-box { border: 1px solid var(--card-border); border-radius: 12px; overflow: hidden; }
.review-row {
    display: flex; align-items: center; justify-content: space-between; gap: .75rem;
    padding: .8rem 1rem;
}
.review-row + .review-row { border-top: 1px dashed var(--card-border); }
.review-line { font-weight: 600; font-size: .9rem; }

/* ---------- payment options ---------- */
.payment-option { position: relative; padding-right: 2.4rem; }
.payment-option .payment-check {
    position: absolute; right: .9rem; top: 50%; transform: translateY(-50%);
    color: var(--primary); opacity: 0; transition: opacity .15s;
    font-size: 1.1rem;
}
.payment-option.active .payment-check { opacity: 1; }
.payment-option-body { flex: 1; }

/* ---------- trust row ---------- */
.trust-row {
    display: flex; flex-wrap: wrap; gap: .6rem 1rem;
    font-size: .78rem; color: var(--text-muted);
}
.trust-row-stacked { flex-direction: column; gap: .35rem; }

/* ---------- mobile sticky bar ---------- */
.checkout-mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    background: #fff; border-top: 1px solid var(--card-border);
    padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: .9rem;
    box-shadow: 0 -4px 16px rgba(16, 24, 40, .1);
}
.cmb-total { white-space: nowrap; }
.cmb-total strong { font-size: 1.05rem; }
#cmbContinue { flex: 1; white-space: nowrap; }
@media (max-width: 991.98px) {
    body { padding-bottom: 76px; } /* room for the sticky bar */
    .checkout-steps { margin-bottom: 1rem; }
}

/* ---------- order confirmation ---------- */
.confirmation-icon {
    width: 84px; height: 84px; border-radius: 50%;
    background: #e8f7ee; color: var(--success);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 2.6rem; font-weight: 800;
    box-shadow: 0 0 0 10px rgba(22, 163, 74, .08);
}

/* ---------- shared page hero (contact + CMS) ---------- */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #1d3a61 55%, var(--primary-dark) 130%);
    position: relative;
    overflow: hidden;
}
.page-hero::before,
.page-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}
.contact-hero::before {
    width: 280px; height: 280px;
    background: var(--primary);
    opacity: .35;
    top: -110px; left: -70px;
}
.page-hero::after {
    width: 240px; height: 240px;
    background: var(--accent);
    opacity: .22;
    bottom: -120px; right: -50px;
}
.page-hero h1 { font-size: 1.9rem; letter-spacing: .2px; }
.page-hero p { max-width: 560px; margin-inline: auto; }

.contact-info-item {
    display: flex;
    gap: .95rem;
    padding: 1.05rem 1.15rem;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.contact-info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.contact-icon {
    flex: 0 0 46px;
    width: 46px; height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.contact-icon-lg { width: 54px; height: 54px; font-size: 1.35rem; border-radius: 14px; }
.contact-icon-primary { background: var(--primary-soft); color: var(--primary); }
.contact-icon-accent  { background: var(--accent-soft); color: var(--accent); }
.contact-icon-success { background: #e8f7ee; color: var(--success); }

.contact-note {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem 1.15rem;
    background: var(--primary-soft);
    border: 1px dashed var(--primary);
    border-radius: var(--radius);
    color: var(--primary-dark);
    font-size: .9rem;
}
.contact-note i { font-size: 1.25rem; line-height: 1.3; }

.contact-form-card { border: 1px solid var(--card-border); border-radius: calc(var(--radius) + 4px); box-shadow: var(--shadow-sm); }
.contact-form-card .form-control {
    padding: .65rem .9rem;
    border-radius: 10px;
    background: #fff;
}
.contact-form-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-soft);
}

.contact-map-card { border: 1px solid var(--card-border); border-radius: calc(var(--radius) + 4px); overflow: hidden; box-shadow: var(--shadow-sm); }
.contact-map-card iframe {
    display: block;
    width: 100%;
    height: 340px;
    border: 0;
}
@media (max-width: 575.98px) {
    .contact-map-card iframe { height: 260px; }
}

/* ---------- CMS pages (page/{slug}) ---------- */
.page-cms { max-width: 920px; margin-inline: auto; }
.page-lead {
    font-size: 1.02rem;
    line-height: 1.9;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 1.9rem;
    color: var(--dark);
}
.page-lead p { margin-bottom: 1rem; }
.page-section {
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    display: flex;
    gap: 1.1rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
.page-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.page-section-num {
    flex: 0 0 44px;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
}
.page-section h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: .55rem; }
.page-section .cms-content { font-size: .93rem; line-height: 1.8; color: var(--text-muted); }
.page-section .cms-content p:last-child { margin-bottom: 0; }
.page-section .cms-content ul { padding-left: 1.15rem; }
@media (max-width: 767.98px) {
    .page-section { padding: 1.1rem 1.15rem; }
}

/* ---------- whatsapp quick chat (contact page) ---------- */
.contact-icon-whatsapp { background: #e7f9ee; color: #1da851; }
.wa-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1030;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .4);
    transition: transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
}
.wa-fab:hover, .wa-fab:focus {
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 12px 26px rgba(37, 211, 102, .5);
}
.wa-fab::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, .55);
    animation: wa-pulse 2.2s ease-out infinite;
}
@keyframes wa-pulse {
    0%   { transform: scale(1);    opacity: .8; }
    70%  { transform: scale(1.55); opacity: 0; }
    100% { transform: scale(1.55); opacity: 0; }
}
@media (max-width: 575.98px) {
    .wa-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; font-size: 1.55rem; }
}

/* ---------- FAQ accordion (page/faq) ---------- */
.faq-accordion {
    --bs-accordion-border-radius: var(--radius);
    --bs-accordion-inner-border-radius: calc(var(--radius) - 1px);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(47, 111, 237, .15);
    --bs-accordion-active-bg: #fff;
    --bs-accordion-active-color: var(--dark);
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.faq-accordion .accordion-item {
    border: 1px solid var(--card-border);
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    scroll-margin-top: 110px; /* keep the opened question clear of the sticky header when deep-linking */
}
.faq-accordion .accordion-button {
    background: #fff;
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.15rem;
    padding-right: 4.6rem; /* keep question text clear of the copy-link button */
    gap: .85rem;
    box-shadow: none;
}
.faq-accordion .faq-copy-link {
    position: absolute;
    right: 3.2rem; /* clear of the Bootstrap chevron (right: 1.25rem) */
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    padding: 0;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    background: #fff;
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1;
}
.faq-accordion .faq-copy-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-soft);
}
.faq-accordion .faq-copy-link.copied {
    color: #16a34a;
    border-color: #16a34a;
    background: #f0fdf4;
}
.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-soft);
    color: var(--dark);
}
.faq-accordion .accordion-button:focus { box-shadow: var(--bs-accordion-btn-focus-box-shadow); }
.faq-accordion .accordion-button:not(.collapsed)::after {
    background-image: var(--bs-accordion-btn-active-icon);
    transform: var(--bs-accordion-btn-icon-transform);
}
.faq-accordion .page-section-num {
    flex: 0 0 40px;
    width: 40px; height: 40px;
    font-size: .82rem;
}
.faq-accordion .faq-q {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
}
.faq-accordion .accordion-body {
    padding: 0 1.15rem 1.15rem calc(1.15rem + 40px + .85rem);
}
.faq-accordion .accordion-body .cms-content { font-size: .93rem; line-height: 1.8; color: var(--text-muted); }
.faq-accordion .accordion-body .cms-content p:last-child { margin-bottom: 0; }
@media (max-width: 575.98px) {
    .faq-accordion .accordion-body { padding-left: 1.15rem; }
    .faq-accordion .accordion-button { flex-wrap: wrap; padding-right: 4.3rem; }
    .faq-accordion .faq-copy-link { right: 3rem; width: 28px; height: 28px; }
}

/* =====================================================================
   Smooth motion layer (Amazon / Meesho-style storefront animation)
   All reveals are gated on html.js so no-JS visitors and crawlers see
   content fully visible. prefers-reduced-motion disables everything.
   ===================================================================== */
html { scroll-behavior: smooth; }

/* --- scroll reveal --- */
html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
    will-change: opacity, transform;
}
html.js .reveal.revealed { opacity: 1; transform: none; }
/* product cards keep their hover lift once revealed */
html.js .reveal.revealed.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* --- sticky header gains depth on scroll --- */
.site-header { transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .14); }

/* --- back to top --- */
.back-to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 1040;
    width: 42px; height: 42px; border-radius: 50%; border: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--dark, #1c2333); color: #fff; font-size: 1.05rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .25);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease;
}
.back-to-top:hover { background: var(--primary, #2f6fed); color: #fff; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
/* keep the WhatsApp FAB clear of the back-to-top button */
.wa-fab { bottom: 78px; }

/* --- cart badge pop feedback --- */
@keyframes badge-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.badge-pop { animation: badge-pop .35s ease; }

/* --- buttons: tactile press; see-all arrow nudge --- */
.btn, .btn-icon {
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active, .btn-icon:active { transform: scale(.96); }
.see-all i { display: inline-block; transition: transform .2s ease; }
.see-all:hover i { transform: translateX(3px); }

/* --- toast entrance --- */
.toast { animation: toast-in .3s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* --- mobile tweaks --- */
@media (max-width: 575.98px) {
    .back-to-top { right: 14px; bottom: 14px; width: 38px; height: 38px; font-size: .95rem; }
    .wa-fab { bottom: 62px; }
}

/* --- reduced motion: disable the whole layer --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal, html.js .reveal.revealed { opacity: 1; transform: none; transition: none; }
    .back-to-top, .btn, .btn-icon, .see-all i, .toast { animation: none !important; transition: none !important; }
}
