/* ============================================================
   ZUZO SHOP — Neo-Classic Oq-Ko'k Dizayn Tizimi (White & Royal Blue)
   Uzumdan butunlay farqli: zamonaviy, yengil, nafis va professional
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ─── DESIGN TOKENS ─── */
:root {
    /* Primary: Neo Royal / Sapphire Blue */
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --primary-light: #2563eb;
    --primary-lighter: #3b82f6;
    --primary-subtle: #60a5fa;
    --primary-dark: #1e3a8a;
    --primary-rgb: 29, 78, 216;
    --primary-bg: rgba(29, 78, 216, 0.08);
    --primary-bg-strong: rgba(29, 78, 216, 0.14);
    --primary-soft: #eff6ff;
    --primary-gradient: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    --primary-glow: 0 8px 25px rgba(37, 99, 235, 0.25);

    /* Accent: Warm Amber/Coral for discounts */
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-bg: rgba(245, 158, 11, 0.10);
    --accent-sale: #ef4444;
    --accent-sale-bg: rgba(239, 68, 68, 0.10);

    /* Backgrounds: Pure Crystal Whites & Delicate Tint */
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-muted: #e2e8f0;
    --bg-glass: rgba(255, 255, 255, 0.88);

    /* Borders */
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-blue: rgba(37, 99, 235, 0.16);
    --border-focus: #2563eb;

    /* Text */
    --text-dark: #0f172a;
    --text-medium: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    /* Semantic */
    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.10);
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.10);
    --info: #0284c7;
    --info-bg: rgba(2, 132, 199, 0.10);
    --error: #ef4444;
    --error-bg: rgba(239, 68, 68, 0.10);

    /* Shadows: Deep luxury shadows with sapphire ambient depth */
    --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 4px 10px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(37, 99, 235, 0.03);
    --shadow-md: 0 10px 22px -3px rgba(15, 23, 42, 0.06), 0 4px 8px -2px rgba(37, 99, 235, 0.05);
    --shadow-lg: 0 20px 35px -5px rgba(15, 23, 42, 0.08), 0 10px 15px -5px rgba(37, 99, 235, 0.06);
    --shadow-primary: 0 8px 22px rgba(29, 78, 216, 0.28);
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(37, 99, 235, 0.03);
    --shadow-card-hover: 0 20px 32px -6px rgba(37, 99, 235, 0.15), 0 8px 16px -4px rgba(15, 23, 42, 0.04);

    /* Border Radius */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-full: 9999px;

    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── RESET ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all var(--transition);
}

img { max-width: 100% !important; display: block; }
.product-image-wrapper img { max-width: none !important; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-fade { animation: fadeIn 0.3s ease-out both; }

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slideUpFade 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }

@keyframes floatSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
.animate-float { animation: floatSoft 3s ease-in-out infinite; }

@keyframes shimmerGlow {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
    50% { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0); }
}

@keyframes badgeShine {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.25) drop-shadow(0 0 6px rgba(59, 130, 246, 0.5)); }
}


/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ══════════════════════════════════════════════════════
   HEADER / NAVBAR
══════════════════════════════════════════════════════ */
.navbar {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-xs);
}

.navbar-container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.logo {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 2px;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: 1px;
    margin-bottom: 2px;
    flex-shrink: 0;
}

.logo span {
    font-size: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
}

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 560px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 11px 44px 11px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    background-color: var(--bg-subtle);
    outline: none;
    font-size: 14px;
    font-family: var(--font-body);
    transition: all var(--transition);
    color: var(--text-dark);
}

.search-bar input::placeholder { color: var(--text-light); }

.search-bar input:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px var(--primary-bg);
}

.search-bar .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 15px;
    pointer-events: none;
    transition: color var(--transition);
}

.search-bar input:focus ~ .search-icon { color: var(--primary); }

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-medium);
    padding: 9px 13px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    background: none;
}

.nav-btn:hover {
    background-color: var(--primary-bg);
    color: var(--primary);
}

.nav-btn.cart-btn {
    position: relative;
    background: var(--primary-bg);
    color: var(--primary);
    border: 1px solid var(--primary-lighter);
}

.nav-btn.cart-btn:hover {
    background: var(--primary);
    color: #fff;
}

.cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: var(--radius-full);
    line-height: 1;
    min-width: 18px;
    text-align: center;
}

/* ══════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
══════════════════════════════════════════════════════ */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    padding: 4px 8px;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 10.5px;
    font-weight: 600;
    font-family: var(--font-body);
    text-align: center;
    gap: 3px;
    width: 20%;
    position: relative;
    transition: color var(--transition);
    padding: 4px 0;
}

.mobile-nav-item svg {
    width: 22px;
    height: 22px;
    transition: transform var(--transition-bounce);
}

.mobile-nav-item:active svg { transform: scale(0.88); }

.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active svg {
    stroke: var(--primary);
}

/* Active indicator dot */
.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.mobile-cart-badge {
    position: absolute;
    top: 0px;
    right: 16%;
    background: var(--accent);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* ══════════════════════════════════════════════════════
   HERO BANNER & SLIDER
══════════════════════════════════════════════════════ */
.banner-container {
    width: 100%;
    max-width: 100%;
    margin-bottom: 32px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    background: transparent;
    line-height: 0;
    position: relative;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.hero-slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    will-change: transform;
}

.hero-slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.hero-slide-link {
    display: block;
    width: 100%;
    line-height: 0;
}

/* Banner image */
.banner-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    max-height: 480px;
}

.banner-img:hover { transform: scale(1.015); }

/* Prev / Next arrow buttons */
.hero-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.82);
    color: #0f172a;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    padding: 0;
    backdrop-filter: blur(4px);
}
.hero-btn:hover { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.22); }
.hero-btn-prev { left: 12px; }
.hero-btn-next { right: 12px; }

/* Slider dots */
.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 20;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}
.hero-dot.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .banner-img { aspect-ratio: 16 / 7 !important; max-height: 220px; }
    .hero-btn { width: 30px; height: 30px; font-size: 18px; }
    .hero-btn-prev { left: 8px; }
    .hero-btn-next { right: 8px; }
    .banner-container { border-radius: 14px; margin-bottom: 16px; }
}
@media (max-width: 480px) {
    .banner-img { aspect-ratio: 16 / 9 !important; max-height: 200px; }
    .hero-btn { display: none; }
    .hero-dots { bottom: 8px; }
    .hero-dot { width: 6px; height: 6px; }
    .hero-dot.active { width: 16px; }
}


/* ══════════════════════════════════════════════════════
   INLINE GRID BANNER (mobile_grid type)
══════════════════════════════════════════════════════ */
.inline-banner-block {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin: 14px 0 22px 0;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    line-height: 0;
    background: var(--bg-muted);
}

.inline-banner-link {
    display: block;
    width: 100%;
    line-height: 0;
}

.inline-banner-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.inline-banner-block:hover .inline-banner-img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .inline-banner-block { border-radius: 10px; margin: 10px 0 16px 0; }
    .inline-banner-img { aspect-ratio: 16 / 7; }
}
@media (max-width: 480px) {
    .inline-banner-img { aspect-ratio: 16 / 9; }
}


/* ══════════════════════════════════════════════════════
   SECTION HEADER / TITLES
══════════════════════════════════════════════════════ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 21px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.section-title-bar {
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
}

.section-title span.badge {
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
}

.section-view-all {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    transition: background var(--transition);
}

.section-view-all:hover {
    background: var(--primary-bg);
}

/* ══════════════════════════════════════════════════════
   SPECIAL OFFERS SECTION
══════════════════════════════════════════════════════ */
.special-offers-section {
    margin-bottom: 36px;
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.scroll-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    padding-top: 4px;
}

.scroll-container::-webkit-scrollbar { display: none; }

.special-card {
    min-width: 210px;
    max-width: 210px;
    background-color: var(--bg-subtle);
    border: 1.5px solid transparent;
}

.special-card:hover { border-color: var(--primary-light); }

/* ══════════════════════════════════════════════════════
   PRODUCT CARD
══════════════════════════════════════════════════════ */
.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    box-shadow: var(--shadow-card);
}

.product-card:hover {
    transform: translateY(-6px) scale(1.008);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-blue);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    /* Aspect ratio 1:1 with cross-browser fallback */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f0f4f9);
    /* Fallback for older browsers */
    min-height: 0;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1) {
    .product-image-wrapper {
        height: 0;
        padding-top: 100%;
    }
}

.product-image-wrapper a {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 1;
}

.product-image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(145deg, #ffffff, #f0f4f9);
    z-index: 1;
}

/* No-image placeholder via CSS when src is empty or image fails to load */
.product-image-wrapper img[src=""],
.product-image-wrapper img:not([src]) {
    visibility: hidden;
}

.product-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Crect width='80' height='80' fill='%23f8fafc'/%3E%3Ccircle cx='40' cy='32' r='14' fill='%231d4ed8' opacity='0.10'/%3E%3Cpath d='M24 54 Q40 36 56 54' stroke='%231d4ed8' stroke-width='2' fill='none' opacity='0.10'/%3E%3Ccircle cx='40' cy='32' r='6' fill='%231d4ed8' opacity='0.15'/%3E%3C/svg%3E")
        center/contain no-repeat,
        linear-gradient(145deg, #ffffff, #f0f4f9);
    z-index: 0;
    border-radius: inherit;
    transition: opacity 0.2s;
}

/* Hide placeholder when real image is present */
.product-image-wrapper:has(img[src]:not([src=""]))::before {
    opacity: 0;
    pointer-events: none;
}

.product-card:hover .product-image-wrapper img { transform: scale(1.06); }

/* Discount badge — pill shape, neo red/amber */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    z-index: 10;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.35);
    font-family: var(--font-heading);
}

/* Card Original Badge */
.card-original-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(16, 185, 129, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: white;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
    letter-spacing: 0.5px;
    font-family: var(--font-heading);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.card-original-icon {
    font-size: 9px;
    font-weight: 900;
}
.discount-badge ~ .card-original-badge {
    top: 34px;
}

.product-card-body {
    padding: 13px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
}

.product-card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.45;
    height: 39px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: var(--font-body);
    transition: color var(--transition);
}

.product-card-title:hover { color: var(--primary); }

.product-card-desc-snippet {
    font-size: 11.5px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Rating */
.rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--warning);
}

.rating-star { font-size: 12px; }

/* Seller name */
.product-seller-name {
    font-size: 11.5px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Price box */
.price-box {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-top: 8px;
}

.original-price {
    font-size: 11.5px;
    color: var(--text-muted);
    text-decoration: line-through;
    line-height: 1.2;
}

.current-price {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
}

.current-price.discounted { color: #dc2626; }

/* Add to cart round button */
.add-to-cart-btn-round {
    position: absolute;
    bottom: 13px;
    right: 13px;
    background: #fff;
    color: var(--primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-bounce);
    z-index: 10;
    box-shadow: var(--shadow-xs);
}

.add-to-cart-btn-round:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.12);
    box-shadow: var(--shadow-primary);
}

/* ══════════════════════════════════════════════════════
   MAIN CONTENT LAYOUT
══════════════════════════════════════════════════════ */
.main-content {
    max-width: 1380px;
    width: 100%;
    margin: 28px auto;
    padding: 0 24px;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* ══════════════════════════════════════════════════════
   CATEGORIES NAV
══════════════════════════════════════════════════════ */
.categories-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 14px 0;
    margin-bottom: 22px;
    scrollbar-width: none;
}

.categories-nav::-webkit-scrollbar { display: none; }

.category-tab {
    background-color: var(--bg-card);
    border: 1.5px solid var(--border-color);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--text-medium);
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-xs);
}

.category-tab:hover {
    border-color: var(--primary-lighter);
    color: var(--primary);
    background: var(--primary-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-tab.active {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.35);
    transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════
   PRODUCTS GRID
══════════════════════════════════════════════════════ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

/* Tablet: 769-1024px — 3 ustun */
@media (max-width: 1280px) { .products-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px)  { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }

/* ══════════════════════════════════════════════════════
   RESPONSIVE TABLET (768px va kichik)
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Telefon va kichik planshetlarda 2 ustun */
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .main-content { margin: 12px auto; padding: 0 12px; }
    .special-card { min-width: 160px !important; max-width: 160px !important; }
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE MOBILE (640px va kichik)
══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .navbar { position: sticky; top: 0; }
    .navbar-container { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
    .nav-actions { display: none; }
    .search-bar { width: 100%; max-width: 100%; order: 3; }
    .logo { font-size: 22px; }

    .mobile-bottom-nav { display: flex; }
    body { padding-bottom: 80px; }
    .main-content { margin: 10px auto !important; padding: 0 10px !important; }
    .special-offers-section { padding: 12px; margin-bottom: 18px; border-radius: var(--radius-lg); }
    .section-title { font-size: 16px; }

    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .product-card-body { padding: 7px 8px; gap: 2px; }
    .product-card-title { font-size: 11.5px; height: 32px; line-height: 1.3; }
    .product-card-desc-snippet { display: none; }
    .current-price { font-size: 13px; }
    .original-price { font-size: 10px; }
    .add-to-cart-btn-round { width: 28px; height: 28px; bottom: 7px; right: 7px; }
    .add-to-cart-btn-round svg { width: 13px; height: 13px; }
    .product-seller-name { display: none; }

    .all-products-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    .all-products-header .sort-wrapper {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .modern-select-container {
        min-width: 0 !important;
        width: 100% !important;
        flex: 1;
    }
    .special-card { min-width: 140px !important; max-width: 140px !important; }
}

/* ══════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════ */
.form-box {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px 48px;
    max-width: 500px;
    margin: 40px auto;
    box-shadow: var(--shadow-md);
}

@media (max-width: 560px) { .form-box { padding: 24px 20px; border-radius: var(--radius-lg); } }

.form-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 28px;
    text-align: center;
}

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-control {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14.5px;
    font-family: var(--font-body);
    outline: none;
    background-color: var(--bg-subtle);
    transition: all var(--transition);
    color: var(--text-dark);
}

.form-control:focus {
    border-color: var(--primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px var(--primary-bg);
}

/* ══════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-body);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.1px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.28);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-hover));
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-bg);
}

.btn-block { display: flex; width: 100%; }

/* ══════════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
}

.badge-pending  { background: var(--warning-bg); color: var(--warning); }
.badge-shipped  { background: var(--info-bg);    color: var(--info); }
.badge-delivered { background: var(--success-bg); color: var(--success); }
.badge-cancelled { background: var(--error-bg);   color: var(--error); }

/* ══════════════════════════════════════════════════════
   PRODUCT DETAIL LAYOUT
══════════════════════════════════════════════════════ */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

@media (max-width: 820px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 18px;
        border-radius: var(--radius-lg);
    }
}

.product-detail-gallery { border-radius: var(--radius-lg); overflow: hidden; }

.product-detail-gallery img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.seller-delivery-info {
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-md);
    padding: 16px;
    margin: 18px 0;
}

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    outline: none;
}

#scrollTopBtn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

#scrollTopBtn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}

@media (max-width: 640px) {
    #scrollTopBtn {
        bottom: 95px; /* Stay above mobile bottom nav */
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
}

/* Seller styles relocated to seller/seller.css */

/* ══════════════════════════════════════════════════════
   SITE FOOTER
══════════════════════════════════════════════════════ */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
    padding: 28px 24px;
}

.site-footer-inner {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-footer-copy {
    font-size: 13px;
    color: var(--text-light);
    font-family: var(--font-body);
}

.site-footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-footer-links a {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.site-footer-links a:hover { opacity: 0.75; }

@media (max-width: 640px) {
    .site-footer { padding: 20px 16px; text-align: center; }
    .site-footer-inner { flex-direction: column; align-items: center; justify-content: center; gap: 15px; text-align: center; }
    .site-footer-inner > div { text-align: center; justify-content: center; width: 100%; }
    .site-footer-links { justify-content: center; flex-wrap: wrap; gap: 14px 20px; }
}

/* Duplicate placeholder CSS olib tashlandi — asosiy stiller 515-537 qatorlarda */

/* ══════════════════════════════════════════════════════
   FAVORITE BUTTON ICON OVERRIDE (FONTAWESOME FALLBACK)
══════════════════════════════════════════════════════ */
.favorite-btn i::before {
    display: none !important;
}

.favorite-btn i {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.2s;
}

.favorite-btn i.fa-regular {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") !important;
}

.favorite-btn i.fa-solid {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ef4444' stroke='%23ef4444' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E") !important;
}

/* ══════════════════════════════════════════════════════
   TOAST NOTIFICATIONS (AJAX CARTS & WISHLISTS)
══════════════════════════════════════════════════════ */
.custom-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.custom-toast {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    padding: 14px 18px;
    min-width: 270px;
    max-width: 380px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border-left: 3.5px solid var(--primary);
    transition: opacity 0.3s, transform 0.3s;
}

.custom-toast.toast-success { border-left-color: var(--success); }
.custom-toast.toast-error   { border-left-color: var(--error); }
.custom-toast.toast-warning { border-left-color: var(--warning); }
.custom-toast.toast-info    { border-left-color: var(--info); }

.custom-toast-message {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.45;
    font-family: var(--font-body);
}

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(20px) scale(0.96); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

/* ══════════════════════════════════════════════════════
   TEXT ADD TO CART BUTTON (RECOMMENDATIONS GRID)
══════════════════════════════════════════════════════ */
.add-to-cart-btn {
    background-color: var(--primary-bg) !important;
    color: var(--primary) !important;
    border: 1.5px solid var(--primary-lighter) !important;
    padding: 10px 16px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    font-family: var(--font-body) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all var(--transition-bounce) !important;
    width: 100% !important;
    height: 40px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-xs) !important;
    outline: none !important;
}

.add-to-cart-btn:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
    transform: scale(1.02);
    box-shadow: var(--shadow-primary) !important;
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

/* ══════════════════════════════════════════════════════
   ALERT / CONFIRM / PROMPT MODALS
══════════════════════════════════════════════════════ */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99998;
    animation: modalFadeIn 0.2s ease forwards;
}

.custom-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 28px 32px;
    max-width: 420px;
    width: 92%;
    animation: modalZoomIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.custom-modal-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.custom-modal-text {
    font-size: 14px;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 22px;
    font-family: var(--font-body);
}

.custom-modal-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-body);
    margin-bottom: 20px;
    outline: none;
    background: var(--bg-subtle);
    color: var(--text-dark);
    transition: all var(--transition);
}

.custom-modal-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-bg);
    background: #fff;
}

.custom-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@keyframes modalFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalZoomIn {
    from { opacity: 0; transform: scale(0.88) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ══════════════════════════════════════════════════════
   CARD QUANTITY WIDGET
══════════════════════════════════════════════════════ */
.card-cart-control {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 10;
}

.card-qty-widget {
    background: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    border: 1.5px solid var(--primary-lighter);
    overflow: hidden;
    height: 36px;
    padding: 0 4px;
    box-shadow: 0 2px 10px rgba(29, 78, 216, 0.12);
}

.card-qty-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    color: var(--primary);
    cursor: pointer;
    border-radius: 50%;
    transition: background var(--transition);
}

.card-qty-btn:hover { background: var(--primary-bg); }

.card-qty-val {
    font-size: 13px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

/* ══════════════════════════════════════════════════════
   QUICK VIEW / OPTIONS MODAL
══════════════════════════════════════════════════════ */
.options-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99990;
    animation: modalFadeIn 0.2s ease forwards;
}

.options-modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    padding: 30px;
    max-width: 800px;
    width: 92%;
    position: relative;
    animation: modalZoomIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.options-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    background: var(--bg-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.options-modal-close:hover { background: var(--error-bg); color: var(--error); }

.options-modal-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; }

@media (max-width: 640px) { 
    .options-modal-grid { grid-template-columns: 1fr; gap: 18px; } 
    .options-modal-card {
        max-height: 90vh;
        overflow-y: auto;
        padding: 24px 20px;
    }
}

.options-modal-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.options-modal-img {
    width: 100%;
    max-height: 340px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
}

.options-modal-link {
    width: 100%;
    text-align: center;
    padding: 10px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-medium);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    transition: all var(--transition);
}

.options-modal-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.options-modal-right { display: flex; flex-direction: column; gap: 14px; }

.options-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-right: 36px;
    line-height: 1.35;
    font-family: var(--font-heading);
}

.options-modal-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.options-modal-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

.options-modal-chip {
    padding: 7px 15px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.options-modal-chip:hover { border-color: var(--primary-light); color: var(--primary); }

.options-modal-chip.active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.options-modal-qty-row { display: flex; align-items: center; gap: 14px; }

.options-modal-price-box { margin-top: 8px; }

.options-modal-price-large {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.options-modal-price-original {
    font-size: 13px;
    text-decoration: line-through;
    color: var(--text-light);
    margin-top: 2px;
    display: block;
}

.options-modal-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 14px;
    width: 100%;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all var(--transition);
    box-shadow: var(--shadow-primary);
}

.options-modal-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-1px);
}

.options-modal-btn-subtitle { font-size: 10.5px; font-weight: 500; opacity: 0.85; }

.oxirgisi-qoldi-badge {
    background: var(--accent-bg);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-body);
}

