/* ============================================================
   DIGIMART — Modern 2024 Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --p:          #7c3aed;
    --p-light:    #8b5cf6;
    --p-soft:     #f5f3ff;
    --p-glow:     rgba(124,58,237,.15);
    --ink:        #09090b;
    --ink-2:      #3f3f46;
    --ink-3:      #71717a;
    --line:       #f4f4f5;
    --line-2:     #e4e4e7;
    --bg:         #ffffff;
    --bg-2:       #fafafa;
    --bg-3:       #f4f4f5;
    --success:    #16a34a;
    --danger:     #dc2626;
    --r:          16px;
    --r-sm:       10px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
    --shadow-lg:  0 20px 48px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);
    --shadow-p:   0 8px 24px rgba(124,58,237,.22);
    --t:          .2s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Noto Sans Georgian', 'Inter', -apple-system, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; }

/* ── Typography ── */
.page-title    { font-size: 1.75rem; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.section-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.site-header {
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 1000;
}

/* Topbar */
.header-topbar {
    background: var(--ink);
    color: rgba(255,255,255,.65);
    font-size: .72rem;
    letter-spacing: .02em;
}
.header-topbar a { color: rgba(255,255,255,.65); transition: color var(--t); }
.header-topbar a:hover { color: #fff; }

/* Main row */
.header-main { padding: 10px 0; }

/* Logo */
.logo-text {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -.06em;
    color: var(--ink);
}
.logo-text .accent { color: var(--p); }

/* Search */
.header-search { position: relative; }
.search-input {
    height: 42px;
    border-radius: 12px 0 0 12px !important;
    border: 1.5px solid var(--line-2);
    border-right: none;
    background: var(--bg-2);
    font-size: .875rem;
    padding: 0 16px;
    color: var(--ink);
    transition: all var(--t);
}
.search-input::placeholder { color: var(--ink-3); }
.search-input:focus {
    outline: none;
    border-color: var(--p);
    background: #fff;
    box-shadow: 0 0 0 3px var(--p-glow);
}
.search-btn {
    height: 42px;
    padding: 0 18px;
    border-radius: 0 12px 12px 0 !important;
    background: var(--p);
    border: 1.5px solid var(--p);
    color: #fff;
    font-size: .9rem;
    transition: background var(--t);
}
.search-btn:hover { background: var(--p-light); border-color: var(--p-light); }

/* Search dropdown */
.search-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    z-index: 1050; max-height: 380px; overflow-y: auto;
    display: none;
}
.search-dropdown.show { display: block; }
.search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; border-bottom: 1px solid var(--line);
    cursor: pointer; transition: background var(--t);
}
.search-result-item:last-child { border-bottom: 0; }
.search-result-item:hover { background: var(--p-soft); }
.search-result-img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex-shrink: 0; }
.search-result-name  { font-size: .84rem; font-weight: 600; }
.search-result-price { font-size: .78rem; color: var(--p); font-weight: 700; }

/* Header action buttons */
.header-action-btn {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--ink-2); font-size: 1.2rem;
    padding: 8px 10px; border-radius: 10px;
    position: relative; transition: all var(--t);
}
.header-action-btn:hover { background: var(--bg-3); color: var(--p); }
.header-action-btn span { font-size: .8rem; font-weight: 500; }

/* Cart badge */
.cart-badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--p); color: #fff;
    font-size: .58rem; font-weight: 800;
    min-width: 16px; height: 16px;
    border-radius: 8px; padding: 0 4px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1; border: 2px solid #fff;
}

/* Lang btn */
.lang-btn {
    display: inline-flex; align-items: center;
    padding: 4px 10px; border-radius: 8px;
    font-size: .7rem; font-weight: 700; letter-spacing: .04em;
    color: var(--ink-3); border: 1.5px solid var(--line-2);
    transition: all var(--t);
}
.lang-btn:hover, .lang-btn.active {
    background: var(--p); color: #fff; border-color: var(--p);
    box-shadow: var(--shadow-p);
}

/* Cart dropdown */
.cart-wrapper { position: relative; }
.cart-dropdown {
    position: absolute; top: calc(100% + 12px); right: 0;
    width: 320px; background: #fff;
    border: 1px solid var(--line-2); border-radius: var(--r);
    box-shadow: var(--shadow-lg); z-index: 1100;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px) scale(.97);
    transition: all .18s cubic-bezier(.4,0,.2,1);
    transform-origin: top right;
}
.cart-wrapper:hover .cart-dropdown,
.cart-dropdown:hover { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.cart-dropdown-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; border-bottom: 1px solid var(--line);
    font-size: .875rem; font-weight: 700;
}
.cart-dropdown-items { max-height: 240px; overflow-y: auto; }
.cart-dropdown-item { padding: 10px 16px; transition: background var(--t); }
.cart-dropdown-item:hover { background: var(--bg-2); }
.cart-item-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.cart-item-name  { font-size: .8rem; font-weight: 600; }
.cart-item-price { font-size: .76rem; color: var(--ink-3); margin-top: 1px; }
.btn-remove-cart-item { background: none; border: none; color: var(--ink-3); padding: 3px 6px; border-radius: 6px; transition: all var(--t); }
.btn-remove-cart-item:hover { background: #fef2f2; color: var(--danger); }
.cart-dropdown-footer { padding: 12px 16px; border-top: 1px solid var(--line); }
.cart-empty-msg { padding: 24px 16px; }

/* Nav */
.header-nav { background: var(--bg); border-top: 1px solid var(--line); }
.nav-link-item {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 12px; font-size: .84rem; font-weight: 500;
    color: var(--ink-3); white-space: nowrap;
    border-bottom: 2px solid transparent; transition: all var(--t);
}
.nav-link-item:hover, .nav-link-item.active { color: var(--p); border-bottom-color: var(--p); }
.nav-dropdown-wrap { position: relative; }
.nav-dropdown {
    position: absolute; top: 100%; left: 0; min-width: 200px;
    background: #fff; border: 1px solid var(--line-2);
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    box-shadow: var(--shadow-md); z-index: 999;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: all .18s ease;
}
.nav-dropdown-wrap:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-item {
    display: block; padding: 9px 16px;
    font-size: .84rem; color: var(--ink-2);
    border-bottom: 1px solid var(--line); transition: all var(--t);
}
.nav-dropdown-item:last-child { border-bottom: 0; }
.nav-dropdown-item:hover { background: var(--p-soft); color: var(--p); padding-left: 20px; }

/* Mobile menu */
.mobile-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.4);
    z-index: 1200; opacity: 0; visibility: hidden;
    transition: all .25s ease; backdrop-filter: blur(4px);
}
.mobile-menu-overlay.show { opacity: 1; visibility: visible; }
.mobile-menu {
    position: fixed; top: 0; left: -100%; width: 290px; height: 100%;
    background: #fff; z-index: 1300; overflow-y: auto;
    transition: left .28s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-lg);
}
.mobile-menu.open { left: 0; }
.mobile-menu-link {
    display: flex; align-items: center; padding: 10px 12px;
    color: var(--ink); border-radius: 10px; font-size: .9rem; font-weight: 500;
    transition: all var(--t);
}
.mobile-menu-link:hover { background: var(--p-soft); color: var(--p); }
.mobile-menu-link-sub {
    display: block; padding: 7px 12px;
    font-size: .84rem; color: var(--ink-3); transition: color var(--t);
}
.mobile-menu-link-sub:hover { color: var(--p); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero-section { background: var(--bg-2); padding: 12px 0; }
.hero-inner { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); }

/* Category sidebar */
.categories-sidebar { background: #fff; border-right: 1px solid var(--line); }
.cats-header { background: var(--p); color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .01em; }
.cat-list { list-style: none; }
.cat-item { position: relative; }
.cat-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 14px; font-size: .82rem; font-weight: 500;
    color: var(--ink-2); border-left: 3px solid transparent;
    transition: all var(--t);
}
.cat-link:hover { background: var(--p-soft); color: var(--p); border-left-color: var(--p); }
.cat-arrow { font-size: .6rem; color: var(--ink-3); }
.cat-submenu {
    display: none; position: absolute; left: 100%; top: 0;
    min-width: 200px; background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 0 var(--r) var(--r) 0;
    box-shadow: var(--shadow-lg); z-index: 100;
}
.cat-item:hover .cat-submenu { display: block; }
.cat-sub-item {
    display: block; padding: 8px 16px; font-size: .82rem;
    color: var(--ink-2); transition: all var(--t);
}
.cat-sub-item:hover { background: var(--p-soft); color: var(--p); padding-left: 22px; }

/* Slider */
.hero-swiper, .hero-placeholder { height: 400px; }
@media (max-width: 991px) { .hero-swiper, .hero-placeholder { height: 280px; } }
@media (max-width: 575px)  { .hero-swiper, .hero-placeholder { height: 220px; } }
.hero-slide-img { width: 100%; height: 100%; object-fit: cover; }
.slide-content {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 100%);
    color: #fff;
}
.slide-title   { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 6px; }
.slide-subtitle { font-size: .9rem; opacity: .85; margin-bottom: 14px; }
.slide-btn {
    display: inline-flex; align-items: center;
    padding: 8px 20px; border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,.7);
    background: rgba(255,255,255,.12); color: #fff;
    font-size: .84rem; font-weight: 600; backdrop-filter: blur(8px);
    transition: all var(--t);
}
.slide-btn:hover { background: #fff; color: var(--p); border-color: #fff; }
.swiper-button-prev, .swiper-button-next { color: #fff !important; }
.swiper-button-prev::after, .swiper-button-next::after { font-size: 1rem !important; }

/* ── Section header pills & all-link ── */
.section-pill {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 20px;
    font-size: .68rem; font-weight: 800; letter-spacing: .04em;
    line-height: 1.6;
}
.sale-pill    { background: #fef2f2; color: #dc2626; }
.new-pill     { background: #f0fdf4; color: #16a34a; }
.popular-pill { background: #fffbeb; color: #d97706; }

.section-all-link {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: .8rem; font-weight: 700; color: var(--p);
    transition: gap var(--t);
}
.section-all-link:hover { color: var(--p-light); gap: 8px; }

/* ── Product card overlay ── */
.card-add-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 14px;
    background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 55%);
    opacity: 0;
    transition: opacity .22s ease;
}
.product-card:hover .card-add-overlay { opacity: 1; }

.card-add-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 20px;
    background: #fff; color: var(--ink);
    border: none; border-radius: 50px;
    font-size: .8rem; font-weight: 800;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    transform: translateY(8px);
    transition: transform .22s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
    cursor: pointer;
}
.product-card:hover .card-add-btn { transform: translateY(0); }
.card-add-btn:hover { background: var(--p); color: #fff; }

/* Swiper nav buttons */
.swiper-nav-btn {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1.5px solid var(--line-2); background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--ink-3); font-size: .78rem;
    transition: all var(--t); box-shadow: var(--shadow-sm);
}
.swiper-nav-btn:hover { background: var(--p); border-color: var(--p); color: #fff; box-shadow: var(--shadow-p); }

/* ══════════════════════════════════════════
   PRODUCT CARD
══════════════════════════════════════════ */
.product-card {
    background: #fff;
    border-radius: var(--r);
    border: 1px solid var(--line);
    overflow: hidden;
    display: flex; flex-direction: column; height: 100%;
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: transparent;
}
.product-img-wrap {
    display: block; position: relative; padding-top: 100%;
    background: var(--bg-2); overflow: hidden;
}
.product-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: contain; padding: 16px;
    transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-img { transform: scale(1.07); }

.product-badge {
    position: absolute; top: 10px; left: 10px; z-index: 1;
    font-size: .66rem; font-weight: 800; letter-spacing: .04em;
    padding: 4px 10px; border-radius: 20px; line-height: 1;
}
.badge-sale { background: var(--p); color: #fff; }
.badge-new  { background: var(--success); color: #fff; }

.product-out-stock {
    position: absolute; inset: 0;
    background: rgba(255,255,255,.82); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem; font-weight: 700; color: var(--ink-3);
}

.product-info {
    padding: 14px 14px 12px;
    display: flex; flex-direction: column; flex: 1; gap: 6px;
}
.product-name {
    font-size: .84rem; font-weight: 600; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.45; flex: 1;
    transition: color var(--t);
}
.product-name:hover { color: var(--p); }
.product-sku { font-size: .7rem; color: var(--ink-3); }

.price-new, .price-regular {
    font-size: 1rem; font-weight: 800; color: var(--ink);
}
.price-old { font-size: .76rem; color: var(--ink-3); text-decoration: line-through; }

.btn-add-cart {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 9px 0;
    background: var(--p); color: #fff; border: none;
    border-radius: 10px; font-size: .8rem; font-weight: 700;
    letter-spacing: .01em; transition: all var(--t);
}
.btn-add-cart:hover { background: var(--p-light); transform: translateY(-1px); box-shadow: var(--shadow-p); }
.btn-add-cart.disabled { background: var(--bg-3); color: var(--ink-3); box-shadow: none; cursor: not-allowed; }

/* Flying cart animation */
@keyframes flyToCart { 0%{opacity:1;transform:scale(1)} 100%{opacity:0;transform:scale(.1)} }
.cart-fly-item {
    position: fixed; width: 48px; height: 48px;
    border-radius: 50%; object-fit: cover; z-index: 9999;
    pointer-events: none; border: 2px solid var(--p);
    box-shadow: var(--shadow-p);
}

/* ══════════════════════════════════════════
   BANNERS
══════════════════════════════════════════ */
.banner-full  { border-radius: 20px; overflow: hidden; display: block; }
.banner-double {
    border-radius: 20px; overflow: hidden; display: block;
    height: 220px; object-fit: cover;
    transition: transform .3s ease;
}
.banner-double:hover { transform: scale(1.015); }
@media (max-width: 767px) { .banner-double { height: 150px; } }

/* ══════════════════════════════════════════
   BRANDS
══════════════════════════════════════════ */
.brands-section { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand-item {
    background: #fff; border-radius: var(--r);
    display: flex; align-items: center; justify-content: center;
    height: 68px; border: 1px solid var(--line);
    transition: all var(--t);
}
.brand-item:hover { box-shadow: var(--shadow-md); border-color: var(--line-2); transform: translateY(-2px); }
.brand-img { max-height: 38px; max-width: 80%; object-fit: contain; filter: grayscale(1) opacity(.55); transition: filter var(--t); }
.brand-item:hover .brand-img { filter: grayscale(0) opacity(1); }

/* ══════════════════════════════════════════
   FILTER SIDEBAR
══════════════════════════════════════════ */
.filter-sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.filter-group-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 10px; }
.filter-cat-link {
    display: flex; align-items: center;
    padding: 5px 8px; font-size: .84rem; color: var(--ink-2);
    border-radius: 8px; transition: all var(--t);
}
.filter-cat-link:hover, .filter-cat-link.active {
    background: var(--p-soft); color: var(--p); font-weight: 600;
}

/* ══════════════════════════════════════════
   PRODUCT DETAIL PAGE (PDP)
══════════════════════════════════════════ */

/* Wrapper & Gallery */
.pdp-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
}
.pdp-gallery {
    display: flex;
    gap: 10px;
    padding: 20px;
    height: 100%;
}

/* Vertical thumbnail strip */
.pdp-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
    width: 68px;
    max-height: 460px;
    overflow-y: auto;
}
.pdp-thumb-btn {
    width: 68px; height: 68px;
    border: 2px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-2);
    padding: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--t);
}
.pdp-thumb-btn img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumb-btn.active,
.pdp-thumb-btn:hover { border-color: var(--p); }

/* Main image */
.pdp-main-img-wrap {
    flex: 1;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-2);
    min-height: 380px;
    display: flex; align-items: center; justify-content: center;
}
.pdp-main-img {
    max-width: 100%; max-height: 420px;
    object-fit: contain;
    padding: 12px;
    transition: transform .35s ease;
}
.pdp-main-img-wrap:hover .pdp-main-img { transform: scale(1.04); }

/* Discount / New badges */
.pdp-discount-badge,
.pdp-new-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-size: .72rem; font-weight: 800; letter-spacing: .04em;
    padding: 5px 11px; border-radius: 20px; line-height: 1;
}
.pdp-discount-badge { background: var(--p); color: #fff; }
.pdp-new-badge { background: var(--success); color: #fff; top: 12px; left: auto; right: 12px; }

/* Info panel */
.pdp-info {
    padding: 28px 28px 24px;
    display: flex; flex-direction: column; gap: 14px;
}

/* Title */
.pdp-title {
    font-size: 1.45rem; font-weight: 800;
    letter-spacing: -.03em; line-height: 1.25;
    color: var(--ink);
}

/* Meta row (SKU + stock) */
.pdp-meta {
    display: flex; align-items: center; gap: 14px;
    flex-wrap: wrap;
}
.pdp-sku { font-size: .75rem; color: var(--ink-3); }
.pdp-stock { font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.pdp-stock.in  { color: var(--success); }
.pdp-stock.out { color: var(--danger); }

/* Price block */
.pdp-price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.pdp-price-new { font-size: 2rem; font-weight: 900; color: var(--ink); line-height: 1; }
.pdp-price-regular { font-size: 2rem; font-weight: 900; color: var(--ink); line-height: 1; }
.pdp-price-old { font-size: 1rem; color: var(--ink-3); text-decoration: line-through; }
.pdp-price-save {
    font-size: .72rem; font-weight: 800; letter-spacing: .04em;
    background: #fef2f2; color: #dc2626;
    padding: 3px 9px; border-radius: 20px;
    align-self: center;
}
.pdp-sale-until {
    width: 100%; font-size: .76rem; color: var(--ink-3); margin-top: 2px;
}

/* Divider */
.pdp-divider { border: none; border-top: 1px solid var(--line); margin: 2px 0; }

/* Options */
.pdp-option-group { display: flex; flex-direction: column; gap: 4px; }
.pdp-option-label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.pdp-option-selected { font-weight: 500; color: var(--p); }

.option-btn {
    padding: 6px 16px; border: 1.5px solid var(--line-2);
    border-radius: 8px; background: #fff; font-size: .82rem; font-weight: 500;
    transition: all var(--t);
}
.option-btn:hover { border-color: var(--p); color: var(--p); }
.option-btn.selected { background: var(--p); border-color: var(--p); color: #fff; }
.option-color { width: 30px; height: 30px; border-radius: 50% !important; padding: 0 !important; border-width: 2px; }
.option-color.selected { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--p); }

/* Actions (qty + buttons) */
.pdp-actions { display: flex; flex-direction: column; gap: 12px; }
.pdp-qty-row { display: flex; align-items: center; gap: 10px; }
.pdp-qty-label { font-size: .78rem; color: var(--ink-3); }

.qty-input { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.qty-btn { width: 36px; height: 38px; background: none; border: none; font-size: 1rem; font-weight: 600; color: var(--p); transition: background var(--t); }
.qty-btn:hover { background: var(--p-soft); }
.qty-field { width: 48px; height: 38px; border: none; text-align: center; font-weight: 700; font-size: .9rem; background: none; }
.qty-field:focus { outline: none; }

.pdp-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pdp-add-btn {
    flex: 1; min-width: 160px;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 12px 20px;
    background: var(--p); color: #fff;
    border: none; border-radius: 12px;
    font-size: .9rem; font-weight: 700;
    transition: all var(--t);
}
.pdp-add-btn:hover { background: var(--p-light); box-shadow: var(--shadow-p); transform: translateY(-1px); }
.pdp-add-btn.disabled { background: var(--bg-3); color: var(--ink-3); cursor: not-allowed; box-shadow: none; transform: none; }

.pdp-buy-btn {
    flex: 1; min-width: 120px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 20px;
    background: var(--ink); color: #fff;
    border: none; border-radius: 12px;
    font-size: .9rem; font-weight: 700;
    transition: all var(--t);
}
.pdp-buy-btn:hover { background: var(--ink-2); transform: translateY(-1px); }
.pdp-buy-btn.disabled { pointer-events: none; opacity: .45; }

/* Trust badges */
.pdp-trust {
    display: flex; gap: 16px; flex-wrap: wrap;
    padding: 14px 0 2px;
    border-top: 1px solid var(--line);
}
.pdp-trust-item {
    display: flex; align-items: center; gap: 7px;
    font-size: .78rem; font-weight: 600; color: var(--ink-2);
}
.pdp-trust-item i { font-size: 1.1rem; color: var(--p); }

/* ── Tabs ── */
.pdp-tabs-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
}
.pdp-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}
.pdp-tab-btn {
    padding: 13px 20px;
    background: none; border: none;
    font-size: .875rem; font-weight: 600;
    color: var(--ink-3);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--t), border-color var(--t);
    cursor: pointer;
}
.pdp-tab-btn:hover { color: var(--p); }
.pdp-tab-btn.active { color: var(--p); border-bottom-color: var(--p); }

.pdp-tabs-body { padding: 24px; }
.pdp-tab-pane { display: none; }
.pdp-tab-pane.active { display: block; }

.pdp-description { font-size: .9rem; line-height: 1.8; color: var(--ink-2); }
.pdp-description p { margin-bottom: .75rem; }
.pdp-description h2, .pdp-description h3 { font-weight: 700; margin: 1rem 0 .5rem; }

/* Specs grid */
.pdp-specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}
.pdp-spec-row {
    display: grid; grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
}
.pdp-spec-row:last-child { border-bottom: none; }
.pdp-spec-row:nth-child(even) { background: var(--bg-2); }
.pdp-spec-key, .pdp-spec-val {
    padding: 10px 16px;
    font-size: .875rem;
}
.pdp-spec-key { font-weight: 600; color: var(--ink-2); border-right: 1px solid var(--line); }
.pdp-spec-val { color: var(--ink); }

/* PDP Responsive */
@media (max-width: 991px) {
    .pdp-info { padding: 20px; }
    .pdp-title { font-size: 1.2rem; }
    .pdp-price-new, .pdp-price-regular { font-size: 1.6rem; }
    .pdp-main-img-wrap { min-height: 280px; }
}
@media (max-width: 767px) {
    .pdp-gallery { padding: 12px; flex-direction: column-reverse; }
    .pdp-thumbs { flex-direction: row; width: 100%; max-height: none; }
    .pdp-thumb-btn { width: 56px; height: 56px; }
    .pdp-main-img-wrap { min-height: 240px; }
    .pdp-add-btn, .pdp-buy-btn { font-size: .82rem; padding: 10px 14px; }
    .pdp-tabs-body { padding: 16px; }
}

/* ══════════════════════════════════════════
   CART
══════════════════════════════════════════ */
.cart-item-img { width: 68px; height: 68px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); padding: 4px; }
.cart-item-link { font-weight: 700; color: var(--ink); transition: color var(--t); }
.cart-item-link:hover { color: var(--p); }
.order-summary-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }

/* ══════════════════════════════════════════
   CHECKOUT
══════════════════════════════════════════ */
.checkout-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.checkout-card-title { font-size: .95rem; font-weight: 800; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.payment-method-item { border: 1.5px solid var(--line-2); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; cursor: pointer; transition: all var(--t); }
.payment-method-item:has(input:checked) { border-color: var(--p); background: var(--p-soft); }

/* ══════════════════════════════════════════
   PROFILE
══════════════════════════════════════════ */
.profile-sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; position: sticky; top: 76px; }
.profile-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--p); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800;
}
.profile-nav-link { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: .875rem; font-weight: 500; color: var(--ink-2); transition: all var(--t); margin-bottom: 2px; }
.profile-nav-link:hover, .profile-nav-link.active { background: var(--p-soft); color: var(--p); font-weight: 600; }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }

/* ══════════════════════════════════════════
   AUTH
══════════════════════════════════════════ */
.auth-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: 20px; padding: 36px 32px;
    box-shadow: 0 24px 64px rgba(0,0,0,.08);
}
.auth-title { font-size: 1.6rem; font-weight: 900; letter-spacing: -.04em; color: var(--ink); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer { background: var(--ink); color: #71717a; }
.footer-heading { color: #fff; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-links a, .footer-contact a { color: #71717a; font-size: .84rem; display: block; padding: 3px 0; transition: all var(--t); }
.footer-links a:hover, .footer-contact a:hover { color: #fff; padding-left: 6px; }
.footer-desc { color: #52525b !important; font-size: .84rem !important; line-height: 1.65 !important; }
.footer-bottom { border-top: 1px solid #27272a; font-size: .8rem; color: #52525b; }
.social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    background: #18181b; color: #71717a; font-size: .95rem;
    border: 1px solid #27272a; transition: all var(--t);
}
.social-btn:hover { background: var(--p); color: #fff; border-color: var(--p); transform: translateY(-2px); }

/* ══════════════════════════════════════════
   MISC COMPONENTS
══════════════════════════════════════════ */
/* Breadcrumb */
.breadcrumb { font-size: .8rem; }
.breadcrumb-item a { color: var(--ink-3); transition: color var(--t); }
.breadcrumb-item a:hover { color: var(--p); }
.breadcrumb-item.active { color: var(--ink-3); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--line-2); }

/* Pagination */
.pagination .page-link { border-radius: 8px !important; margin: 0 2px; color: var(--ink-2); border-color: var(--line-2); font-weight: 600; font-size: .84rem; transition: all var(--t); }
.pagination .page-item.active .page-link { background: var(--p); border-color: var(--p); }
.pagination .page-link:hover { background: var(--p-soft); color: var(--p); border-color: var(--p); }

/* Order success */
.success-circle {
    width: 88px; height: 88px; border-radius: 50%;
    background: #dcfce7; display: flex; align-items: center; justify-content: center;
    font-size: 2.4rem; color: var(--success);
    animation: pop .35s cubic-bezier(.4,0,.2,1);
}
@keyframes pop { 0%{transform:scale(0)} 70%{transform:scale(1.12)} 100%{transform:scale(1)} }

/* Back to top */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--ink); color: #fff; border: none;
    z-index: 500; opacity: 0; visibility: hidden;
    transition: all .3s ease; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--p); transform: translateY(-3px); box-shadow: var(--shadow-p); }

/* Static pages */
.static-page-content { font-size: .95rem; line-height: 1.8; color: var(--ink-2); }
.static-page-content h2 { font-size: 1.15rem; font-weight: 800; margin-top: 1.5rem; color: var(--ink); }
.static-page-content p { margin-bottom: 1rem; }

/* Voucher */
.voucher-section input { text-transform: uppercase; letter-spacing: 3px; font-weight: 700; font-size: .875rem; }

/* Alerts */
.alert { border: none; border-radius: 10px; font-weight: 500; font-size: .875rem; }
.alert-success { background: #f0fdf4; color: #166534; }
.alert-danger   { background: #fef2f2; color: #991b1b; }
.alert-warning  { background: #fffbeb; color: #92400e; }
.alert-info     { background: var(--p-soft); color: var(--p); }

/* Badges */
.badge.bg-primary { background: var(--p) !important; }

/* ══════════════════════════════════════════
   BOOTSTRAP OVERRIDES
══════════════════════════════════════════ */
.btn-primary {
    background: var(--p); border-color: var(--p);
    font-weight: 600; border-radius: 10px;
    transition: all var(--t);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--p-light); border-color: var(--p-light);
    box-shadow: var(--shadow-p); transform: translateY(-1px);
}
.btn-outline-primary { color: var(--p); border-color: var(--p); border-radius: 10px; font-weight: 600; }
.btn-outline-primary:hover { background: var(--p); border-color: var(--p); color: #fff; }
.btn-secondary { background: var(--bg-3); border-color: var(--line-2); color: var(--ink-2); border-radius: 10px; font-weight: 600; }
.btn-secondary:hover { background: var(--line-2); border-color: var(--line-2); color: var(--ink); }

.form-control, .form-select {
    border-color: var(--line-2); border-radius: 10px;
    font-size: .875rem; color: var(--ink);
    transition: all var(--t);
}
.form-control:focus, .form-select:focus {
    border-color: var(--p);
    box-shadow: 0 0 0 3px var(--p-glow);
}
.form-label { font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.form-check-input:checked { background-color: var(--p); border-color: var(--p); }
.dropdown-item:active { background: var(--p); }

/* ══════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--p); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 991px) {
    .product-detail-title { font-size: 1.25rem; }
    .detail-price-new, .detail-price-regular { font-size: 1.5rem; }
    .gallery-img { height: 300px; }
}
@media (max-width: 767px) {
    .page-title { font-size: 1.4rem; }
    .cart-item-img { width: 52px; height: 52px; }
    .order-summary-card, .profile-card, .checkout-card { padding: 16px; }
    .gallery-img { height: 260px; }
    .auth-card { padding: 24px 20px; }
}
@media (max-width: 575px) {
    .header-main { padding: 8px 0; }
    .product-info { padding: 10px; }
    .price-new, .price-regular { font-size: .92rem; }
    .section-title { font-size: 1rem; }
}

/* ── text utility ── */
.text-primary { color: var(--p) !important; }
