/* ===== SATHOBBY WEBSITE - Modern Electronics Store ===== */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;
    --green: #059669;
    --orange: #ea580c;
    --red: #dc2626;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    padding: 0.5rem 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-right {
    display: flex;
    gap: 1.5rem;
}
.top-bar-right a {
    color: rgba(255,255,255,0.8);
}
.top-bar-right a:hover { color: white; }

/* ===== HEADER ===== */
.header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    gap: 2rem;
}
.logo img { height: 44px; }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
}
.nav {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.nav a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s;
    white-space: nowrap;
}
.nav a:hover, .nav a.active {
    color: var(--accent);
    background: var(--accent-light);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.search-toggle, .mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 8px;
}
.search-toggle:hover, .mobile-menu-toggle:hover { background: var(--bg-alt); }
.mobile-menu-toggle { display: none; }
.cart-icon {
    background: var(--accent);
    color: white;
    padding: 0.45rem 1rem;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
}
.cart-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.cart-icon span {
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 99px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.account-link {
    font-size: 1.15rem;
    padding: 0.3rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.account-link:hover { opacity: 1; }
.search-bar {
    display: none;
    padding: 0.75rem 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}
.search-bar.active { display: block; }
.search-input {
    flex: 1;
    padding: 0.7rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font);
    outline: none;
}
.search-input:focus { border-color: var(--accent); }
.search-btn {
    padding: 0.7rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
}
.search-btn:hover { background: var(--accent-hover); }

/* ===== BANNER SLIDER ===== */

.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0f172a;
}
.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.slide {
    min-width: 100%;
    position: relative;
}
.slide-link { display: block; text-decoration: none; color: inherit; }
.slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}
.slide-content {
    position: absolute;
    top: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 5%;
    max-width: 580px;
    color: white;
    z-index: 5;
}
.slide-content::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 140%;
    z-index: -1;
}
.slide-left { left: 0; }
.slide-left::before { left: -20%; background: linear-gradient(to right, rgba(0,0,0,0.7) 30%, transparent 100%); }
.slide-right { right: 0; text-align: right; align-items: flex-end; }
.slide-right::before { right: -20%; background: linear-gradient(to left, rgba(0,0,0,0.7) 30%, transparent 100%); }
.slide-center { left: 0; right: 0; max-width: 100%; text-align: center; align-items: center; }
.slide-center::before { left: 0; width: 100%; background: rgba(0,0,0,0.45); }
.slide-content h2 {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    margin: 0 0 0.75rem;
    text-shadow: 0 3px 16px rgba(0,0,0,0.5);
    line-height: 1.15;
}
.slide-content p {
    font-size: 1.15rem;
    margin: 0 0 1.25rem;
    opacity: 0.92;
    line-height: 1.5;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.slide-btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37,99,235,0.4);
}
.slide-btn:hover { background: #1d4ed8; transform: translateY(-2px); }
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}
.slider-btn:hover { background: rgba(255,255,255,0.3); border-color: rgba(255,255,255,0.5); }
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }
.slider-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.3);
}
.dot.active { background: white; border-color: white; transform: scale(1.3); }

@media (max-width: 768px) {
    .slide img { height: 220px; }
    .slide-content { padding: 1rem; max-width: 100%; }
    .slide-content h2 { font-size: 1.1rem; }
    .slide-content p { font-size: 0.78rem; }
    .slide-btn { padding: 0.5rem 1rem; font-size: 0.78rem; }
    .slider-btn { width: 30px; height: 30px; font-size: 0.85rem; }
    .slide-designed { height: 220px; }
    .slide-product { right: 3%; }
    .slide-product img { max-height: 140px; max-width: 140px; }
    .slide-video { height: 220px; }
}

/* Designed banner */
.slide-designed {
    width: 100%;
    height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.slide-designed .slide-content::before { display: none; }
.slide-product {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}
.slide-product img {
    max-height: 380px;
    max-width: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}
/* Video banner */
.slide-video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}
/* Animations */
@keyframes bannerFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes bannerSlideUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bannerSlideLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bannerSlideRight { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bannerZoomIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }

/* Popup effects */
@keyframes popupPopIn { 0%{opacity:0;transform:scale(0.3)} 50%{opacity:1;transform:scale(1.05)} 100%{transform:scale(1)} }
@keyframes popupBounceIn { 0%{opacity:0;transform:translateY(40px)} 60%{opacity:1;transform:translateY(-10px)} 80%{transform:translateY(5px)} 100%{transform:translateY(0)} }
@keyframes popupFlipIn { 0%{opacity:0;transform:perspective(400px) rotateX(90deg)} 40%{transform:perspective(400px) rotateX(-10deg)} 70%{transform:perspective(400px) rotateX(10deg)} 100%{opacity:1;transform:perspective(400px) rotateX(0)} }
@keyframes popupSlideUp { 0%{opacity:0;transform:translateY(60px)} 100%{opacity:1;transform:translateY(0)} }
@keyframes popupSlideDown { 0%{opacity:0;transform:translateY(-60px)} 100%{opacity:1;transform:translateY(0)} }
@keyframes popupSlideLeft { 0%{opacity:0;transform:translateX(-80px)} 100%{opacity:1;transform:translateX(0)} }
@keyframes popupSlideRight { 0%{opacity:0;transform:translateX(80px)} 100%{opacity:1;transform:translateX(0)} }
@keyframes popupFadeIn { 0%{opacity:0} 100%{opacity:1} }
@keyframes popupZoomIn { 0%{opacity:0;transform:scale(0.5)} 100%{opacity:1;transform:scale(1)} }
@keyframes popupRotateIn { 0%{opacity:0;transform:rotate(-15deg) scale(0.8)} 100%{opacity:1;transform:rotate(0) scale(1)} }
@keyframes popupElastic { 0%{opacity:0;transform:scale(0.3)} 40%{transform:scale(1.1)} 60%{transform:scale(0.95)} 80%{opacity:1;transform:scale(1.02)} 100%{transform:scale(1)} }
@keyframes popupTypewriter { 0%{opacity:0;clip-path:inset(0 100% 0 0)} 100%{opacity:1;clip-path:inset(0 0 0 0)} }

[data-popup] { opacity: 0; }
[data-popup].popup-active { opacity: 1; }
.slide-custom { position: absolute; z-index: 10; }
@keyframes productFloat { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 10px)); } }

.slide.active .slide-anim[data-a="fadeIn"] { animation: bannerFadeIn 0.8s ease both; }
.slide.active .slide-anim[data-a="slideUp"] { animation: bannerSlideUp 0.8s ease both; }
.slide.active .slide-anim[data-a="slideLeft"] { animation: bannerSlideLeft 0.8s ease both; }
.slide.active .slide-anim[data-a="slideRight"] { animation: bannerSlideRight 0.8s ease both; }
.slide.active .slide-anim[data-a="zoomIn"] { animation: bannerZoomIn 0.8s ease both; }
.slide.active .slide-product { animation: productFloat 3s ease-in-out infinite; }

/* Product animations */
.product-anim-float { animation: productFloat 3s ease-in-out infinite; }
.product-anim-bounce { animation: productBounce 1s ease-in-out infinite; }
.product-anim-pulse { animation: productPulse 2s ease-in-out infinite; }
.product-anim-spin { animation: productSpin 8s linear infinite; }
.product-anim-slideIn { animation: productSlideIn 0.8s ease both; }
.product-anim-none { }
@keyframes productBounce { 0%,100%{transform:translateY(0)}50%{transform:translateY(-15px)} }
@keyframes productPulse { 0%,100%{transform:scale(1)}50%{transform:scale(1.05)} }
@keyframes productSpin { from{transform:rotate(0deg)}to{transform:rotate(360deg)} }
@keyframes productSlideIn { from{transform:translateX(60px);opacity:0}to{transform:translateX(0);opacity:1} }

/* Product position */
.slide-product-right { position:absolute; right:5%; top:50%; transform:translateY(-50%); z-index:3; }
.slide-product-left { position:absolute; left:5%; top:50%; transform:translateY(-50%); z-index:3; }
.slide-product-center { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:3; }
.slide-product img { max-height:380px; max-width:400px; object-fit:contain; filter:drop-shadow(0 10px 30px rgba(0,0,0,0.3)); }

/* Decorations */
.deco-circles::before { content:''; position:absolute; width:200px; height:200px; border-radius:50%; background:rgba(255,255,255,0.05); top:-50px; right:-50px; }
.deco-circles::after { content:''; position:absolute; width:120px; height:120px; border-radius:50%; background:rgba(255,255,255,0.08); bottom:-30px; left:10%; }
.deco-waves { position:absolute; bottom:0; left:0; width:100%; }
.deco-diagonal { position:absolute; top:0; right:0; width:40%; height:100%; background:rgba(255,255,255,0.05); transform:skewX(-15deg); transform-origin:top right; }
.deco-dots { position:absolute; inset:0; background-image:radial-gradient(rgba(255,255,255,0.08) 1px,transparent 1px); background-size:20px 20px; }
.deco-glow { position:absolute; top:-50%; right:-20%; width:60%; height:200%; background:radial-gradient(circle,rgba(255,255,255,0.1) 0%,transparent 60%); }

/* Marquee */
.banner-marquee { position:absolute; left:0; right:0; background:rgba(0,0,0,0.3); backdrop-filter:blur(4px); overflow:hidden; padding:0.4rem 0; z-index:20; }
.banner-marquee-top { top:0; }
.banner-marquee-bottom { bottom:0; }
.marquee-track { white-space:nowrap; font-size:0.85rem; font-weight:600; color:white; }
.marquee-slow { animation:marqueeScroll 20s linear infinite; }
.marquee-medium { animation:marqueeScroll 14s linear infinite; }
.marquee-fast { animation:marqueeScroll 8s linear infinite; }
@keyframes marqueeScroll { 0%{transform:translateX(0)}100%{transform:translateX(-50%)} }

/* Price tag */
.banner-price { margin-top:0.5rem; display:flex; align-items:center; gap:0.5rem; }
.old-price { font-size:1.2rem; opacity:0.6; text-decoration:line-through; }
.sale-price { font-size:1.8rem; color:#fbbf24; font-weight:900; text-shadow:0 2px 8px rgba(0,0,0,0.3); }

/* Countdown */
.banner-countdown { margin-top:0.6rem; display:flex; align-items:center; gap:0.4rem; }
.countdown-label { font-size:0.8rem; opacity:0.8; }
.countdown-timer { background:rgba(0,0,0,0.3); padding:0.25rem 0.6rem; border-radius:6px; font-weight:700; font-size:0.9rem; font-variant-numeric:tabular-nums; }

/* Particles */
.particles-container { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:15; }
.particle { position:absolute; animation:particleFall linear infinite; }
@keyframes particleFall { 0%{transform:translateY(-20px) rotate(0deg);opacity:1}100%{transform:translateY(550px) rotate(360deg);opacity:0} }

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e293b 100%);
    color: white;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-content { max-width: 640px; }
.hero h1 {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.hero h1 em {
    font-style: italic;
    color: #60a5fa;
}
.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    font-family: var(--font);
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s;
}
.btn-primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}
.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ===== SECTIONS ===== */
.section { padding: 1.75rem 0; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.section-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.view-all {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}
.view-all:hover { text-decoration: underline; }

/* ===== CATEGORY GRID ===== */
.categories-section { background: var(--bg-alt); }
.category-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.category-row::-webkit-scrollbar { height: 6px; }
.category-row::-webkit-scrollbar-track { background: transparent; }
.category-row::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
.category-card {
    flex: 0 0 auto;
    width: 160px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
    scroll-snap-align: start;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.category-image {
    height: 130px;
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}
.category-placeholder { font-size: 3rem; }
.category-info {
    padding: 0.75rem;
}
.category-info h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.15rem;
}
.category-info span {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}
.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.product-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
.product-add-btn {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.product-add-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}
.product-add-btn svg { flex-shrink: 0; }
/* Card action row: wishlist, compare, add-to-cart */
.card-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0 0.6rem 0.6rem;
}
.card-action-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    color: #94a3b8;
}
.card-action-icon:hover { border-color: var(--accent); color: var(--accent); }
.card-wish-btn:hover, .card-wish-btn.active { color: #dc2626; border-color: #fecaca; background: #fef2f2; }
.card-wish-btn.active svg { fill: #dc2626; }
.card-cmp-btn:hover, .card-cmp-btn.active { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
.card-cart-btn { margin-left: auto; background: var(--primary); border-color: var(--primary); color: white; }
.card-cart-btn:hover { background: var(--accent); border-color: var(--accent); color: white; transform: scale(1.08); }
.cmp-float-bar { position:fixed; bottom:0; left:0; right:0; background:white; border-top:2px solid var(--accent); box-shadow:0 -4px 20px rgba(0,0,0,0.1); z-index:999; padding:0.55rem 1rem; }
.cmp-float-inner { max-width:900px; margin:0 auto; display:flex; align-items:center; gap:0.75rem; }
.cmp-float-inner span { font-weight:600; font-size:0.85rem; white-space:nowrap; }
.cmp-float-imgs { display:flex; gap:0.3rem; flex:1; }
.cmp-float-imgs img { width:34px; height:34px; object-fit:contain; border-radius:6px; background:var(--bg-alt); border:1px solid var(--border); }
.product-image {
    position: relative;
    height: 200px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-image img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
.product-placeholder { font-size: 4rem; color: #cbd5e1; }
.badge-stock {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #eff6ff;
    color: #2563eb;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid #bfdbfe;
}
.badge-oos {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #fee2e2;
    color: #991b1b;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid #fecaca;
}
/* Sale badge overlay on product image */
.sale-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    z-index: 3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    line-height: 1.3;
}
.sale-badge.badge-sale { background: #dc2626; color: white; }
.sale-badge.badge-clearance { background: #ea580c; color: white; }
.sale-badge.badge-black_friday { background: #18181b; color: #fbbf24; }
.sale-badge.badge-christmas { background: #15803d; color: white; }
.sale-badge.badge-january { background: #0369a1; color: white; }
.sale-badge.badge-summer { background: #f59e0b; color: #18181b; }
.sale-badge.badge-new { background: #7c3aed; color: white; }
.sale-badge.badge-hot { background: #dc2626; color: white; }
.sale-badge.badge-limited { background: #9333ea; color: white; }
/* Sale price styling */
.product-price-original {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 500;
    margin-right: 0.35rem;
}
.product-price-sale {
    color: #dc2626;
    font-weight: 700;
}
.product-save-pct {
    font-size: 0.65rem;
    background: #fee2e2;
    color: #dc2626;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 0.35rem;
}
.product-info {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-brand {
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 0.25rem 0 0.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

/* ===== TRUST BAR ===== */
/* ===== BRANDS BAR ===== */
.brands-bar {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.brands-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}
.brand-logo-item {
    display: flex;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.3s;
    text-decoration: none;
}
.brand-logo-item:hover { opacity: 1; }
.brand-logo-item img {
    max-height: 40px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}
.brand-logo-item:hover img { filter: grayscale(0%); }

/* ===== PROMO BANNERS GRID ===== */
.promo-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}
.promo-card { border-radius: 12px; overflow: hidden; }
.promo-half { flex: 0 1 calc(50% - 0.625rem); min-width: min(280px, 100%); }
.promo-third { flex: 0 1 calc(33.333% - 0.85rem); min-width: min(240px, 100%); }
.promo-two-thirds { flex: 0 1 calc(66.666% - 0.625rem); min-width: min(320px, 100%); }
.promo-full { flex: 0 1 100%; }
.promo-link { display: block; text-decoration: none; color: inherit; }
.promo-link .promo-inner { cursor: pointer; }
.promo-inner {
    position: relative;
    height: 280px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 12px;
}
/* Height variants */
.promo-h-small .promo-inner { height: 180px; }
.promo-h-medium .promo-inner { height: 280px; }
.promo-h-large .promo-inner { height: 400px; }
.promo-h-xlarge .promo-inner { height: 500px; }
.promo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    z-index: 1;
}
.promo-text {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 60%;
}
.promo-text-left { text-align: left; }
.promo-text-center { text-align: center; margin: 0 auto; max-width: 80%; }
.promo-text-right { text-align: right; margin-left: auto; }
.promo-text h3 {
    font-family: var(--font-display);
    font-weight: 900;
    margin: 0 0 0.5rem;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.promo-text p {
    margin: 0 0 0.75rem;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.promo-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    color: white;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}
.promo-link:hover .promo-btn { transform: scale(1.05); filter: brightness(1.1); }
.promo-link .banner-layer { pointer-events: none; }
.promo-product {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain;
    z-index: 3;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
}
.promo-product-right { right: 5%; }
.promo-product-left { left: 5%; }
.promo-product-center { left: 50%; transform: translate(-50%, -50%); }

.trust-bar {
    background: var(--primary);
    color: white;
    padding: 2.5rem 0;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.trust-icon { font-size: 2rem; }
.trust-item strong { font-size: 0.95rem; }
.trust-item div { font-size: 0.8rem; color: rgba(255,255,255,0.7); line-height: 1.4; }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding: 3rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
}
.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}
.footer-col p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}
.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 0.25rem 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    margin-top: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: transform 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ===== SHOP PAGE ===== */
.shop-layout {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
}
.shop-sidebar {
    width: 240px;
    flex-shrink: 0;
}
.shop-sidebar h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary);
}
.cat-link {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    color: var(--text-light);
    transition: all 0.2s;
}
.cat-link:hover, .cat-link.active {
    background: var(--accent-light);
    color: var(--accent);
}
.cat-link span { font-size: 0.8rem; }
.shop-content { flex: 1; min-width: 0; }
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.shop-search {
    flex: 1;
    max-width: 320px;
    padding: 0.6rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: var(--font);
}
.shop-search:focus { border-color: var(--accent); outline: none; }
.shop-sort {
    padding: 0.6rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    background: white;
}
.results-info {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* ===== BANNER SLIDER ===== */
.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--primary);
    max-height: 500px;
}
.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}
.slide {
    min-width: 100%;
    position: relative;
}
.slide img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}
.slide-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 2rem;
    color: white;
}
.slide-overlay h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 0.5rem;
}
.slide-overlay p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-md);
    transition: background 0.2s;
}
.slider-btn:hover { background: white; }
.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }
.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}
.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
}
.dot.active { background: white; }
@media (max-width: 768px) {
    .banner-slider { max-height: 220px; }
    .slide img { max-height: 220px; }
    .slide-overlay h2 { font-size: 1rem; }
    .slide-overlay p { font-size: 0.78rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .slide-overlay .slide-btn { padding: 0.5rem 1rem; font-size: 0.78rem; }
    .slider-btn { width: 30px; height: 30px; font-size: 0.85rem; }
    .slide-designed { height: 220px; }
    .slide-content { padding: 1rem; }
    .slide-content h2 { font-size: 1.1rem; }
    .slide-content p { font-size: 0.78rem; }
    .slide-product img { max-height: 140px; max-width: 140px; }
}

/* ===== NAV DROPDOWN MENUS ===== */
.nav-dropdown {
    position: relative;
}
.nav-dropdown-toggle {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
    display: inline-block;
}
.nav-dropdown-toggle:hover, .nav-dropdown-toggle.active {
    color: var(--accent);
    background: var(--accent-light);
}

/* Mega Menu */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    min-width: 240px;
    width: max-content;
    max-width: 90vw;
    padding: 0.5rem;
    z-index: 200;
    animation: megaFadeIn 0.2s ease;
}
@keyframes megaFadeIn { from { opacity: 0; transform: translateX(-50%) translateY(6px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.nav-dropdown:hover .mega-menu {
    display: block;
}
.mega-menu-inner {
    display: flex;
    gap: 0.25rem;
}
.mega-menu-cats {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.1rem 0.75rem;
}
.mega-menu-cats.cols-3 { grid-template-columns: repeat(3, auto); }
.mega-cat-link {
    display: block;
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    color: var(--text);
    border-radius: 6px;
    transition: all 0.15s;
    white-space: nowrap;
    line-height: 1.3;
}
.mega-cat-link:hover, .mega-cat-link.active {
    background: var(--accent-light);
    color: var(--accent);
}
.mega-group {
    min-width: 120px;
}
.mega-group-title {
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--heading);
    padding: 0.2rem 0.6rem 0.3rem;
    margin-bottom: 0;
    white-space: nowrap;
}
.mega-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    max-width: 200px;
}
.mega-image img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    border-radius: 8px;
}

/* Old dropdown fallback - keep for compatibility */
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 0.5rem;
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--text);
    border-radius: 6px;
    white-space: nowrap;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active {
    background: var(--accent-light);
    color: var(--accent);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        padding: 0.5rem 0.75rem;
        z-index: 99;
        max-height: 70vh;
        overflow-y: auto;
    }
    .nav.open a { padding: 0.6rem 0.75rem; font-size: 0.9rem; }
    .mobile-menu-toggle { display: block; }
    .shop-sidebar { display: none; }
    .mega-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0.5rem 1rem;
        display: none;
        min-width: auto;
        max-width: none;
        animation: none;
    }
    .mega-menu-cats { flex-direction: column; }
    .mega-menu-inner { flex-direction: column; }
    .mega-group { min-width: auto; }
    .mega-image { display: none; }
    .mega-cat-link { width: 100%; }
    .nav-dropdown.mobile-open .mega-menu { display: block; }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
        display: none;
    }
    .nav-dropdown.mobile-open .nav-dropdown-menu { display: block; }
    .nav-dropdown-toggle { display: block; width: 100%; }
}

@media (max-width: 768px) {
    .top-bar { font-size: 0.7rem; padding: 0.3rem 0; }
    .top-bar-inner { flex-direction: column; gap: 0; text-align: center; }
    .top-bar-right { gap: 0.75rem; font-size: 0.7rem; }
    
    .container { padding: 0 0.75rem; }
    
    .header-inner { padding: 0.5rem 0.75rem; gap: 0.5rem; }
    .logo img { height: 34px; }
    .logo-text { font-size: 1.2rem; }
    
    .cart-icon {
        padding: 0.35rem 0.75rem;
        font-size: 0.8rem;
    }
    .cart-icon span {
        min-width: 16px; height: 16px; font-size: 0.65rem;
    }
    .search-toggle, .mobile-menu-toggle { font-size: 1.1rem; padding: 0.3rem; }
    .account-link { font-size: 1rem; }
    
    .hero { padding: 2rem 0; }
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.9rem; }
    
    .section { padding: 1rem 0; }
    .section-header { margin-bottom: 0.75rem; }
    .section-header h2 { font-size: 1.25rem; }
    .view-all { font-size: 0.8rem; }
    
    .category-row { gap: 0.5rem; padding-bottom: 0.5rem; }
    .category-card { width: 100px; min-width: 100px; }
    .category-image { height: 70px; }
    .category-image img { height: 50px; }
    .category-card span { font-size: 0.72rem; padding: 0.4rem 0.25rem; }
    
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
    .product-image { height: 130px; }
    .product-info { padding: 0.5rem; }
    .product-brand { font-size: 0.65rem; }
    .product-name { font-size: 0.78rem; -webkit-line-clamp: 2; }
    .product-price { font-size: 0.9rem; }
    .product-card { border-radius: 8px; }
    .product-add-btn { width: 28px; height: 28px; bottom: 0.4rem; right: 0.4rem; border-radius: 6px; }
    .card-actions { padding: 0 0.4rem 0.4rem; gap: 0.25rem; }
    .card-action-icon { width: 28px; height: 28px; border-radius: 6px; }
    .card-action-icon svg { width: 13px; height: 13px; }
    .cmp-float-bar { padding: 0.4rem 0.75rem; }
    .cmp-float-imgs img { width: 28px; height: 28px; }
    .product-add-btn svg { width: 13px; height: 13px; }
    
    .promo-grid { gap: 0.5rem; }
    .promo-half, .promo-third, .promo-two-thirds { flex: 0 1 100%; min-width: 0; }
    .promo-inner { height: 140px !important; border-radius: 8px; }
    .promo-h-small .promo-inner { height: 100px !important; }
    .promo-h-medium .promo-inner { height: 140px !important; }
    .promo-h-large .promo-inner { height: 160px !important; }
    .promo-h-xlarge .promo-inner { height: 180px !important; }
    .promo-card { border-radius: 8px; }
    .promo-text h3 { font-size: 1rem !important; }
    .promo-text p { font-size: 0.75rem !important; }
    .promo-btn { font-size: 0.7rem !important; padding: 0.3rem 0.8rem !important; }
    .promo-product { max-height: 80% !important; }
    .banner-layer span { font-size: 0.75rem !important; }
    .banner-layer img { width: 60px !important; height: 40px !important; }
    
    .trust-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .trust-item { flex-direction: column; text-align: center; gap: 0.3rem; padding: 0.75rem; }
    .trust-icon { font-size: 1.5rem; }
    .trust-item h4 { font-size: 0.8rem; }
    .trust-item p { font-size: 0.7rem; }
    
    .footer { padding: 1.5rem 0 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
    .footer-col h4 { font-size: 0.9rem; margin-bottom: 0.3rem; }
    .footer-col a, .footer-col p { font-size: 0.8rem; }
    .footer-bottom { padding: 0.75rem 0; margin-top: 1rem; font-size: 0.75rem; }
    
    .shop-toolbar { flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .shop-search { max-width: none; }
    
    .search-bar { padding: 0.5rem 0; }
    .search-bar form { gap: 0.5rem; }
    .search-input { padding: 0.6rem 0.75rem; font-size: 0.85rem; }
    
    /* WhatsApp float */
    .whatsapp-float { bottom: 15px; right: 15px; width: 48px; height: 48px; font-size: 1.4rem; }
    
    /* Brands bar */
    .brands-bar { gap: 1.5rem; padding: 0.75rem 0; }
    .brands-bar img { height: 25px; }
    
    /* Search results dropdown */
    #liveSearchResults, #liveSearchResultsShop { font-size: 0.82rem; }
    #liveSearchResults a, #liveSearchResultsShop a { padding: 0.4rem 0.5rem; }
    #liveSearchResults img, #liveSearchResultsShop img { width: 36px; height: 36px; }

    /* Contact page */
    .contact-card { padding: 1rem; }
    .contact-item { gap: 0.5rem; }
    .contact-icon { font-size: 1.2rem; }
    .hours-row { font-size: 0.85rem; }
}

@media (max-width: 400px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 0.4rem; }
    .product-image { height: 110px; }
    .product-info { padding: 0.4rem; }
    .product-name { font-size: 0.72rem; }
    .product-price { font-size: 0.82rem; }
    .category-card { width: 85px; min-width: 85px; }
    .category-image { height: 60px; }
    .category-card span { font-size: 0.65rem; }
    .trust-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 1.1rem; }
    .promo-inner { height: 120px !important; }
    .promo-h-small .promo-inner { height: 90px !important; }
    .promo-h-large .promo-inner { height: 140px !important; }
    .promo-h-xlarge .promo-inner { height: 150px !important; }
}
