/* ============================================================
   UpdateGadh Store — Professional UI
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --primary:       #10B981;
    --primary-dark:  #059669;
    --primary-light: #D1FAE5;
    --primary-rgb:   16, 185, 129;

    --accent:        #6366F1;          /* indigo accent */
    --danger:        #EF4444;
    --warning:       #F59E0B;
    --info:          #3B82F6;

    --dark:          #0F172A;
    --dark-2:        #1E293B;
    --dark-3:        #334155;
    --mid:           #64748B;
    --light:         #F8FAFC;
    --border:        #E2E8F0;
    --white:         #FFFFFF;

    --font:          'Inter', system-ui, sans-serif;
    --radius-sm:     6px;
    --radius:        10px;
    --radius-lg:     16px;
    --radius-xl:     24px;

    --shadow-sm:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow:        0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg:     0 10px 40px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
    --shadow-primary:0 8px 24px rgba(16,185,129,.35);

    --transition:    all .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--dark-2);
    background: var(--white);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; transition: var(--transition); }
img { max-width: 100%; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.25; font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); line-height: 1.3; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 1rem;   font-weight: 600; }
h6 { font-size: .9rem;  font-weight: 600; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--mid); }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
    font-size: .75rem;
    background: var(--dark) !important;
    color: rgba(255,255,255,.75) !important;
    border-bottom: none;
    padding: .45rem 0;
}
.topbar a { color: rgba(255,255,255,.95) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.topbar a:hover { color: var(--primary) !important; text-decoration: none; }
@media (max-width: 768px) { .topbar { display: none; } }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
    background: var(--white) !important;
    border-bottom: 1px solid var(--border);
    padding: .6rem 0;
    z-index: 1030 !important;
    transition: box-shadow .25s;
}
.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.09); }
.navbar-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--dark) !important;
    letter-spacing: -.02em;
}
.navbar-brand .fa-code { color: var(--primary); }
.navbar-brand span { color: var(--primary); }
.navbar-nav .nav-link {
    font-size: .88rem;
    font-weight: 500;
    color: var(--dark-3) !important;
    padding: .4rem .55rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}
.navbar-nav .nav-link:hover { color: var(--primary) !important; background: var(--primary-light); }
.navbar-toggler { border: none; padding: .3rem .5rem; }
.navbar-toggler:focus { box-shadow: none; }
@media (max-width: 992px) {
    .navbar-collapse { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .5rem; }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    font-family: var(--font);
    font-weight: 600;
    font-size: .875rem;
    padding: .5rem 1.1rem;
    border-radius: var(--radius-sm);
    border: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}
.btn:focus { box-shadow: none; outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-sm { font-size: .8rem; padding: .35rem .8rem; }
.btn-lg { font-size: 1rem; padding: .7rem 1.5rem; }

.btn-primary {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(var(--primary-rgb),.4);
}
.btn-primary:hover {
    background: var(--primary-dark) !important;
    box-shadow: var(--shadow-primary);
    transform: translateY(-1px);
}
.btn-outline-primary {
    background: transparent !important;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary) !important;
}
.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
.btn-dark {
    background: var(--dark) !important;
    color: #fff !important;
}
.btn-dark:hover { background: var(--dark-2) !important; transform: translateY(-1px); }
.btn-light {
    background: var(--light) !important;
    color: var(--dark) !important;
    border: 1px solid var(--border) !important;
}
.btn-light:hover { background: var(--border) !important; }
.btn-success {
    background: #25D366 !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(37,211,102,.4);
}
.btn-success:hover { background: #1da851 !important; transform: translateY(-1px); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 40%, #F0F9FF 100%);
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2310B981' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-section .display-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(var(--primary-rgb),.12);
    color: var(--primary-dark);
    border: 1px solid rgba(var(--primary-rgb),.25);
    border-radius: 99px;
    padding: .3rem .85rem;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.hero-section h1 { color: var(--dark); }
.hero-section h1 .text-primary { color: var(--primary) !important; }
.hero-section .lead { color: var(--mid); font-size: 1rem; }

/* Hero search */
.hero-search { max-width: 560px; }
.hero-search .input-group {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.hero-search .form-control {
    padding: .8rem 1.2rem;
    font-size: .95rem;
    border: none !important;
    background: #fff !important;
}
.hero-search .form-control:focus { box-shadow: none !important; }
.hero-search .btn { border-radius: 0 var(--radius) var(--radius) 0 !important; padding: .8rem 1.4rem; font-size: .9rem; }

/* Quick category pills */
.hero-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.hero-pills a {
    display: inline-flex; align-items: center; gap: .3rem;
    background: rgba(255,255,255,.85);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: .3rem .9rem;
    font-size: .78rem;
    font-weight: 500;
    color: var(--dark-3);
    backdrop-filter: blur(4px);
    transition: var(--transition);
}
.hero-pills a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

@media (max-width: 768px) {
    .hero-section { padding: 2.5rem 0 2rem; }
}
@media (max-width: 480px) {
    .hero-section { padding: 1.8rem 0 1.5rem; }
    .hero-search .form-control { padding: .65rem 1rem; font-size: .85rem; }
}

/* ── Hero Code Window ───────────────────────────────────────── */
.hero-code-window {
    width: 100%;
    max-width: 440px;
    background: #1e2235;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,.22), 0 4px 16px rgba(0,0,0,.12);
    overflow: hidden;
    font-family: 'Courier New', monospace;
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.hero-window-bar {
    background: #2a2f45;
    padding: .65rem 1rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.hero-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.hero-window-title {
    margin-left: .6rem;
    font-size: .75rem;
    color: rgba(255,255,255,.45);
    font-family: inherit;
}
.hero-window-body {
    padding: 1.25rem 1.25rem .75rem;
    font-size: .82rem;
    line-height: 1.85;
}
.hero-code-line { white-space: nowrap; }
.hc-keyword  { color: #c792ea; }
.hc-class    { color: #82aaff; }
.hc-type     { color: #ffcb6b; }
.hc-fn       { color: #82aaff; }
.hc-string   { color: #c3e88d; }
.hc-bool     { color: #f78c6c; }
.hc-comment  { color: #546e7a; font-style: italic; }
.hc-op       { color: rgba(255,255,255,.6); }
.hc-brace    { color: rgba(255,255,255,.75); }
.hero-window-footer {
    background: #2a2f45;
    padding: .75rem 1.25rem;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}
.hero-badge-pill {
    background: rgba(16,185,129,.18);
    color: var(--primary);
    border: 1px solid rgba(16,185,129,.3);
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    padding: .25rem .7rem;
    font-family: var(--font);
}

/* ── Stats Strip ────────────────────────────────────────────── */
.stats-strip {
    background: var(--dark);
    padding: 1.5rem 0;
}
.stats-strip .stat-item {
    text-align: center;
    padding: .5rem 1rem;
    position: relative;
}
.stats-strip .stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 25%; height: 50%;
    width: 1px;
    background: rgba(255,255,255,.15);
}
.stats-strip .stat-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stats-strip .stat-label {
    font-size: .78rem;
    color: rgba(255,255,255,.6);
    margin-top: .2rem;
    font-weight: 500;
    letter-spacing: .02em;
}
@media (max-width: 480px) {
    .stats-strip .stat-num  { font-size: 1.35rem; }
    .stats-strip .stat-label { font-size: .72rem; }
    .stats-strip .stat-item + .stat-item::before { display: none; }
}

/* ── Section Titles ─────────────────────────────────────────── */
.section-title {
    font-weight: 800;
    color: var(--dark);
    position: relative;
    display: inline-block;
}
.section-title .accent { color: var(--primary); }
.section-eyebrow {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 99px;
    padding: .2rem .8rem;
    margin-bottom: .6rem;
}
.section-sub { color: var(--mid); font-size: .93rem; margin-top: .3rem; }

/* ── Category Cards ─────────────────────────────────────────── */
.category-card {
    background: var(--white) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 1.5rem 1rem !important;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb),.06) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
}
.category-card:hover { border-color: var(--primary) !important; transform: translateY(-4px); box-shadow: var(--shadow-lg) !important; }
.category-card:hover::before { opacity: 1; }
.cat-icon {
    width: 56px; height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto .85rem;
    font-size: 1.4rem;
    color: var(--primary);
    transition: var(--transition);
}
.category-card:hover .cat-icon { background: var(--primary); color: #fff !important; }
.category-card:hover .cat-icon i { color: #fff !important; }
.category-card h6 { font-size: .88rem; color: var(--dark); margin-bottom: .2rem; }
.category-card small { font-size: .75rem; color: var(--mid); }

/* ── Product Cards ──────────────────────────────────────────── */
.product-card {
    background: var(--white) !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    height: 100%;
}
.product-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg) !important;
}
.product-card__thumb {
    position: relative;
    overflow: hidden;
    background: var(--light);
}
.product-card__thumb img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    transition: transform .4s ease;
    display: block;
}
.product-card:hover .product-card__thumb img { transform: scale(1.05); }
.product-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,23,42,.45);
    display: flex; align-items: center; justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.product-card:hover .product-card__overlay { opacity: 1; }
.product-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card__cat {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: .35rem;
}
.product-card__title {
    font-size: .88rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card__title a { color: inherit; }
.product-card__title a:hover { color: var(--primary); }
.product-card__rating { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--mid); margin-bottom: .6rem; }
.product-card__price { margin-top: auto; }
.product-card__price .current { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.product-card__price .original { font-size: .78rem; color: var(--mid); text-decoration: line-through; margin-left: .3rem; }
.product-card__actions { display: flex; gap: .5rem; margin-top: .65rem; }
.product-card__actions .btn { flex: 1; font-size: .78rem; padding: .4rem .5rem; justify-content: center; }

/* Badges on card */
.product-card .badge-discount {
    position: absolute; top: .6rem; right: .6rem;
    background: var(--danger); color: #fff;
    font-size: .68rem; font-weight: 700;
    padding: .25rem .5rem; border-radius: 99px;
    z-index: 2;
}
.product-card .badge-bestseller {
    position: absolute; top: .6rem; left: .6rem;
    background: var(--warning); color: #fff;
    font-size: .68rem; font-weight: 700;
    padding: .25rem .5rem; border-radius: 99px;
    z-index: 2;
    display: flex; align-items: center; gap: .2rem;
}
.product-card .badge-featured {
    position: absolute; top: .6rem; left: .6rem;
    background: var(--accent); color: #fff;
    font-size: .68rem; font-weight: 700;
    padding: .25rem .5rem; border-radius: 99px;
    z-index: 2;
}

@media (max-width: 576px) {
    .product-card__thumb img { height: 145px; }
    .product-card__body { padding: .75rem; }
    .product-card__title { font-size: .82rem; }
    .product-card__price .current { font-size: .95rem; }
}

/* ── Product Page Sticky (desktop only) ────────────────────── */
.product-media-sticky,
.product-sidebar-sticky { position: static; }

@media (min-width: 992px) {
    .product-media-sticky {
        position: sticky;
        top: 95px;
        z-index: 1017;
    }
    .product-sidebar-sticky {
        position: sticky;
        top: 95px;
        z-index: 1018;
    }
}

/* ── Why Us Cards ───────────────────────────────────────────── */
.feature-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.feature-card h5 { font-size: .95rem; color: var(--dark); margin-bottom: .4rem; }
.feature-card p  { font-size: .83rem; color: var(--mid); margin: 0; line-height: 1.55; }

/* ── CTA Section ────────────────────────────────────────────── */
.cta-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(var(--primary-rgb),.2) 0%, transparent 70%);
}
.cta-section h2 { color: #fff; }
.cta-section p   { color: rgba(255,255,255,.7); }

/* ── FAQ Accordion ──────────────────────────────────────────── */
.accordion-item { border: 1.5px solid var(--border) !important; border-radius: var(--radius) !important; margin-bottom: .5rem; overflow: hidden; }
.accordion-button { font-weight: 600; font-size: .9rem; color: var(--dark); background: var(--white); }
.accordion-button:not(.collapsed) { background: var(--primary-light); color: var(--primary-dark); box-shadow: none; }
.accordion-button::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2310B981'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); }
.accordion-button:focus { box-shadow: none; }
.accordion-body { font-size: .88rem; color: var(--mid); }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb { background: transparent !important; padding: .6rem 0; font-size: .83rem; margin-bottom: 0; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--border); }
.breadcrumb-item a { color: var(--primary); font-weight: 500; }
.breadcrumb-item a:hover { color: var(--primary-dark); }
.breadcrumb-item.active { color: var(--mid); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { gap: .25rem; }
.page-link { border-radius: var(--radius-sm) !important; border-color: var(--border) !important; color: var(--dark-3) !important; font-size: .85rem; padding: .4rem .75rem; transition: var(--transition); }
.page-link:hover { background: var(--primary-light) !important; border-color: var(--primary) !important; color: var(--primary) !important; }
.page-item.active .page-link { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; }

/* ── Forms ──────────────────────────────────────────────────── */
.form-control, .form-select {
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    font-size: .88rem;
    padding: .55rem .9rem;
    color: var(--dark) !important;
    background: var(--white) !important;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb),.15) !important;
}

/* ── Alerts ─────────────────────────────────────────────────── */
.alert { border-radius: var(--radius); border: none; font-size: .88rem; }
.alert-success { background: #DCFCE7; color: #166534; }
.alert-danger  { background: #FEE2E2; color: #991B1B; }
.alert-warning { background: #FEF3C7; color: #92400E; }
.alert-info    { background: #DBEAFE; color: #1E40AF; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge { font-weight: 600; font-size: .72rem; padding: .3rem .6rem; border-radius: 99px; }
.bg-primary   { background: var(--primary)    !important; }
.bg-secondary { background: var(--mid)        !important; }
.bg-success   { background: #22C55E           !important; }
.bg-danger    { background: var(--danger)     !important; }
.bg-warning   { background: var(--warning)    !important; }
.bg-info      { background: var(--info)       !important; }
.bg-dark      { background: var(--dark)       !important; }

/* ── Cards (generic) ────────────────────────────────────────── */
.card { border-radius: var(--radius-lg) !important; border: 1.5px solid var(--border) !important; }
.card-header { border-bottom: 1px solid var(--border) !important; font-weight: 600; font-size: .88rem; }

/* ── Tables ─────────────────────────────────────────────────── */
.table { font-size: .88rem; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--mid); font-weight: 600; background: var(--light); border-color: var(--border); }
.table td { border-color: var(--border); vertical-align: middle; }
.table-hover tbody tr:hover { background: #F8FFF8; }

/* ── List group ─────────────────────────────────────────────── */
.list-group-item { border-color: var(--border) !important; font-size: .88rem; }
.list-group-item.active { background: var(--primary) !important; border-color: var(--primary) !important; }

/* ── WhatsApp Float ─────────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 1.75rem; right: 1.5rem;
    width: 56px; height: 56px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 24px rgba(37,211,102,.55);
    z-index: 1050;
    transition: var(--transition);
    animation: waPulse 2.5s infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,.7); }
@keyframes waPulse {
    0%   { box-shadow: 0 6px 24px rgba(37,211,102,.55), 0 0 0 0 rgba(37,211,102,.4); }
    70%  { box-shadow: 0 6px 24px rgba(37,211,102,.55), 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 6px 24px rgba(37,211,102,.55), 0 0 0 0 rgba(37,211,102,0); }
}

/* ── Star rating ────────────────────────────────────────────── */
.star-rating { display: flex; flex-direction: row-reverse; gap: 3px; }
.star-rating input { display: none; }
.star-rating label { font-size: 1.5rem; color: #D1D5DB; cursor: pointer; transition: color .15s; }
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label { color: #F59E0B; }

/* ── Product description content ───────────────────────────── */
.product-description h2,
.product-description h3 { color: var(--dark); margin-top: 1.5rem; }
.product-description ul li,
.product-description ol li { margin-bottom: .35rem; }
.product-description table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .88rem; }
.product-description table th,
.product-description table td { border: 1px solid var(--border); padding: .5rem .75rem; }
.product-description table thead { background: var(--light); }

/* ── Category sidebar ───────────────────────────────────────── */
.category-sidebar .list-group-item {
    padding: .55rem .9rem;
    border-left: 3px solid transparent !important;
    transition: var(--transition);
    font-size: .85rem;
}
.category-sidebar .list-group-item:hover { border-left-color: var(--primary) !important; background: var(--primary-light) !important; color: var(--primary-dark) !important; }
.category-sidebar .list-group-item.active { background: var(--dark) !important; border-color: var(--dark) !important; color: #fff !important; }

/* ── Payment options ────────────────────────────────────────── */
.payment-option { cursor: pointer; transition: var(--transition); border: 1.5px solid var(--border) !important; border-radius: var(--radius) !important; }
.payment-option:hover,
.payment-option:has(input:checked) { border-color: var(--primary) !important; background: var(--primary-light) !important; }

/* ── Policy pages ───────────────────────────────────────────── */
.policy-content h4 { margin-top: 2rem; padding-bottom: .4rem; border-bottom: 2px solid var(--primary); }
.policy-content h5 { margin-top: 1.2rem; }

/* ── Cart ───────────────────────────────────────────────────── */
.cart-item { transition: background .15s; border-radius: var(--radius); }
.cart-item:hover { background: var(--light); }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-content { border-radius: var(--radius-lg) !important; border: none !important; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--border) !important; border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important; }

/* ── Footer ─────────────────────────────────────────────────── */
footer.site-footer {
    background: var(--dark) !important;
    color: rgba(255,255,255,.75);
    padding: 3.5rem 0 0;
    margin-top: 4rem;
}
footer.site-footer .footer-brand { font-size: 1.15rem; font-weight: 800; color: #fff; letter-spacing: -.01em; }
footer.site-footer .footer-brand .fa-code { color: var(--primary); }
footer.site-footer .footer-desc { font-size: .83rem; color: rgba(255,255,255,.55); line-height: 1.65; margin-top: .5rem; }
footer.site-footer h6 { color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
footer.site-footer a { color: rgba(255,255,255,.55) !important; font-size: .84rem; transition: var(--transition); display: inline-block; }
footer.site-footer a:hover { color: var(--primary) !important; transform: translateX(3px); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer ul li { margin-bottom: .45rem; }
footer.site-footer .footer-divider { border-color: rgba(255,255,255,.1); margin: 2rem 0 0; }
footer.site-footer .footer-bottom { background: rgba(0,0,0,.2); padding: 1rem 0; font-size: .78rem; color: rgba(255,255,255,.4); }
footer.site-footer .footer-bottom a { color: rgba(255,255,255,.4) !important; font-size: .78rem; }
footer.site-footer .footer-bottom a:hover { color: var(--primary) !important; transform: none; }
footer.site-footer .social-btn {
    width: 34px; height: 34px;
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .9rem;
    color: #fff !important;
    transition: var(--transition);
    text-decoration: none !important;
}
footer.site-footer .social-btn:hover { transform: translateY(-3px) !important; }
footer.site-footer .payment-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    padding: .25rem .65rem;
    font-size: .72rem;
    color: rgba(255,255,255,.6) !important;
    font-weight: 500;
}

/* ── Gallery ────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; }
@media (min-width: 992px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 576px)  { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; } }

.gallery-product-card {
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    overflow: hidden;
    background: var(--white);
    transition: var(--transition);
}
.gallery-product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.gallery-product-image { height: 155px; overflow: hidden; }
.gallery-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-product-card:hover .gallery-product-image img { transform: scale(1.06); }
.gallery-product-info { padding: .85rem; }
.gallery-product-title { font-size: .88rem; font-weight: 700; color: var(--dark); line-height: 1.35; margin-bottom: .3rem; }
.gallery-product-category { font-size: .7rem; color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.gallery-product-price { font-weight: 800; color: var(--primary); font-size: .95rem; }
.gallery-product-price .original { text-decoration: line-through; color: var(--mid); font-size: .78rem; font-weight: 400; margin-left: .25rem; }

/* ── Utility ────────────────────────────────────────────────── */
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg) !important; }
.text-primary { color: var(--primary) !important; }
.bg-light { background: var(--light) !important; }
.section-bg { background: var(--light); }
.rounded-xl { border-radius: var(--radius-xl) !important; }
