﻿/* ============================================
   CHECKSHOP - Main Stylesheet
   Persian RTL E-Commerce Platform
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* ============ CSS Variables ============ */
:root {
    --primary: #003492;
    --primary-dark: #00256e;
    --primary-light: #1a5fc9;
    --secondary: #007e80;
    --secondary-dark: #005f61;
    --accent: #007e80;
    --accent-dark: #005f61;
    --bg-dark: #0a0e1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --bg-surface: #0f172a;
    --bg-input: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --border-light: #334155;
    --danger: #ef4444;
    --success: #007e80;
    --warning: #f59e0b;
    --info: #003492;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.5);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Vazirmatn', sans-serif;
}

/* ============ Reset & Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--bg-dark);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }

img { max-width: 100%; height: auto; }

input, textarea, select, button {
    font-family: var(--font);
    outline: none;
    border: none;
}

ul, ol { list-style: none; }

::selection { background: var(--secondary); color: white; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* ============ Utility Classes ============ */
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.grid { display: grid; }
.hidden { display: none !important; }
.w-full { width: 100%; }

/* ============ Animations ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-fade-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
.animate-slide-right { animation: slideInRight 0.6s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.5s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.btn:hover::after { transform: translateX(100%); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 52, 146, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 126, 128, 0.4);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 126, 128, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    color: white;
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; }

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============ Form Elements ============ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(0, 126, 128, 0.18);
}

.form-input::placeholder { color: var(--text-muted); }

textarea.form-input { min-height: 120px; resize: vertical; }

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    padding-left: 40px;
}

.form-error { color: var(--danger); font-size: 0.85rem; margin-top: 0.25rem; }

/* ============ Cards ============ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-body { padding: 1.25rem; }

/* ============ Navbar ============ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.navbar-brand svg, .navbar-brand img {
    width: 42px;
    height: 42px;
}

.navbar-brand .brand-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.navbar-menu a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.navbar-menu a:hover, .navbar-menu a.active {
    color: var(--secondary);
    background: rgba(0, 126, 128, 0.12);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-actions .btn-icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.navbar-actions .btn-icon:hover {
    background: rgba(0, 126, 128, 0.12);
    color: var(--secondary);
    border-color: var(--secondary);
}

.cart-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: var(--danger);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* ============ Mega Menu (Category Dropdown) ============ */
.nav-categories-wrapper {
    position: relative;
}

.nav-categories-wrapper > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-categories-wrapper > a .chevron-down {
    transition: transform 0.2s;
}

.nav-categories-wrapper:hover > a .chevron-down {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 700px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1001;
    overflow: hidden;
}

.nav-categories-wrapper:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    display: flex;
    min-height: 320px;
}

.mega-menu-roots {
    width: 220px;
    min-width: 220px;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    padding: 8px 0;
}

.mega-menu-root-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.15s;
    border-right: 3px solid transparent;
}

.mega-menu-root-item a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    flex: 1;
}

.mega-menu-root-item svg {
    color: var(--text-muted);
    opacity: 0;
    transition: opacity 0.15s;
    transform: scaleX(-1); /* RTL flip */
}

.mega-menu-root-item:hover,
.mega-menu-root-item.active {
    background: rgba(0, 126, 128, 0.08);
    border-right-color: var(--secondary);
}

.mega-menu-root-item:hover a,
.mega-menu-root-item.active a {
    color: var(--secondary);
}

.mega-menu-root-item:hover svg,
.mega-menu-root-item.active svg {
    opacity: 1;
    color: var(--secondary);
}

.mega-menu-children {
    flex: 1;
    padding: 20px 24px;
    overflow-y: auto;
    max-height: 400px;
}

.mega-menu-child-panel {
    display: none;
    flex-wrap: wrap;
    gap: 20px;
}

.mega-menu-child-panel.active {
    display: flex;
}

.mega-menu-child-group {
    min-width: 140px;
    max-width: 200px;
}

.mega-menu-child-title {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.2s;
}

.mega-menu-child-title:hover {
    color: var(--secondary);
}

.mega-menu-grandchildren {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-menu-gc-item {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.mega-menu-gc-item:hover {
    color: var(--secondary);
    background: rgba(0, 126, 128, 0.1);
}

.mega-menu-empty {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 20px;
}

/* Subcategory count badge in category cards */
.category-card .subcategory-count {
    display: block;
    color: var(--secondary);
    font-size: 0.75rem;
    margin-top: 4px;
    opacity: 0.8;
}

/* Sub categories grid on category page */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 2rem;
}

.subcategory-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
}

.subcategory-card:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 126, 128, 0.15);
}

.subcategory-card .sub-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.subcategory-card .sub-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============ Hero Slideshow ============ */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 520px;
    max-height: 780px;
    overflow: hidden;
    background: #050a18;
    contain: layout style paint;
}

/* Particles — GPU-promoted, transform-only animations */
.slideshow-particles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.s-particle {
    position: absolute;
    width: 6px; height: 6px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    will-change: transform;
    animation: sParticleFloat 14s infinite ease-in-out;
}
.s-particle:nth-child(1){ top:10%; left:5%; animation-delay:0s; width:4px; height:4px; }
.s-particle:nth-child(2){ top:20%; left:25%; animation-delay:1.5s; width:8px; height:8px; background:rgba(0,126,128,0.35); }
.s-particle:nth-child(3){ top:60%; left:12%; animation-delay:3s; }
.s-particle:nth-child(4){ top:80%; left:30%; animation-delay:4.5s; width:5px; height:5px; }
.s-particle:nth-child(5){ top:15%; left:70%; animation-delay:2s; width:7px; height:7px; background:rgba(0,52,146,0.4); }
.s-particle:nth-child(6){ top:45%; left:85%; animation-delay:5s; }
.s-particle:nth-child(7){ top:70%; left:75%; animation-delay:1s; width:9px; height:9px; background:rgba(0,126,128,0.25); }
.s-particle:nth-child(8){ top:30%; left:90%; animation-delay:3.5s; width:4px; height:4px; }
.s-particle:nth-child(9){ top:50%; left:45%; animation-delay:6s; width:5px; height:5px; background:rgba(0,126,128,0.3); }
.s-particle:nth-child(10){ top:5%; left:55%; animation-delay:7s; width:8px; height:8px; background:rgba(255,255,255,0.12); }

@keyframes sParticleFloat {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.2; }
    50% { transform: translate3d(30px, -60px, 0); opacity: 0.7; }
}

/* Geometric Decorations — transform-only, GPU layers */
.slideshow-geo {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}
.geo-1 {
    width: 600px; height: 600px;
    top: -220px; right: -150px;
    border: 2px solid rgba(0,52,146,0.18);
    opacity: 0.15;
    animation: geoRotate 40s linear infinite;
}
.geo-2 {
    width: 450px; height: 450px;
    bottom: -150px; left: -100px;
    border: 2px solid rgba(0,126,128,0.18);
    opacity: 0.12;
    animation: geoRotate 35s linear infinite reverse;
}
.geo-3 {
    width: 250px; height: 250px;
    top: 50%; left: 50%;
    border: 1px solid rgba(255,255,255,0.06);
    opacity: 0.15;
    animation: geoPulse 8s ease-in-out infinite;
}
.geo-4 {
    width: 160px; height: 160px;
    top: 15%; left: 8%;
    border: 1px dashed rgba(0,126,128,0.15);
    opacity: 0.18;
    animation: geoRotate 28s linear infinite;
}
@keyframes geoRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes geoPulse { 0%, 100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.3); } }

/* Animated Lines — simple opacity fade */
.slide-line {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(0,126,128,0.12), transparent);
    height: 1px;
    will-change: opacity;
}
.slide-line-1 {
    width: 40%;
    top: 25%;
    left: -5%;
    transform: rotate(-15deg);
    animation: slideLineMove 10s ease-in-out infinite;
}
.slide-line-2 {
    width: 30%;
    bottom: 30%;
    right: -5%;
    transform: rotate(10deg);
    animation: slideLineMove 12s ease-in-out infinite 3s;
}
@keyframes slideLineMove {
    0%, 100% { opacity: 0; }
    40%, 60% { opacity: 1; }
}

/* Floating Orbs — NO blur filter, use pre-blurred radial gradient + opacity only */
.slide-orb {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    will-change: transform;
}
.slide-orb-1 {
    width: 250px; height: 250px;
    top: 8%; right: 3%;
    background: radial-gradient(circle, rgba(0,52,146,0.15) 0%, transparent 65%);
    animation: orbFloat 12s ease-in-out infinite;
}
.slide-orb-2 {
    width: 200px; height: 200px;
    bottom: 12%; left: 6%;
    background: radial-gradient(circle, rgba(0,126,128,0.12) 0%, transparent 65%);
    animation: orbFloat 14s ease-in-out infinite 4s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(30px, -25px, 0); }
}

/* Hexagon Grid Background — static (no continuous animation) */
.slide-hex-grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image:
        linear-gradient(30deg, rgba(255,255,255,0.1) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.1) 87.5%, rgba(255,255,255,0.1)),
        linear-gradient(150deg, rgba(255,255,255,0.1) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.1) 87.5%, rgba(255,255,255,0.1)),
        linear-gradient(30deg, rgba(255,255,255,0.1) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.1) 87.5%, rgba(255,255,255,0.1)),
        linear-gradient(150deg, rgba(255,255,255,0.1) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.1) 87.5%, rgba(255,255,255,0.1)),
        linear-gradient(60deg, rgba(255,255,255,0.06) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,0.06) 75%, rgba(255,255,255,0.06)),
        linear-gradient(60deg, rgba(255,255,255,0.06) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,0.06) 75%, rgba(255,255,255,0.06));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
}

/* Slides — GPU-promoted transitions */
.slideshow-track { position: absolute; inset: 0; z-index: 1; }
.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 1s ease, transform 1s ease;
    transform: scale(1.05);
}
.slide-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}
.slide-item.leaving {
    opacity: 0;
    transform: scale(0.97);
    z-index: 0;
}
.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    will-change: transform;
    transition: transform 6s ease-out;
}
.slide-item.active .slide-bg {
    transform: scale(1.06);
}
.slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}
.slide-content-inner {
    max-width: 750px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.7s ease 0.3s, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}
.slide-item.active .slide-content-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Icon above content */
.slide-floating-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(20px) scale(0.6);
    transition: opacity 0.6s ease 0.2s, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}
.slide-item.active .slide-floating-icon {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: iconBounce 4s ease-in-out 2s infinite;
}
@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.08); }
}

.slide-tag {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 50px;
    background: rgba(0,126,128,0.2);
    border: 1px solid rgba(0,126,128,0.4);
    color: #5ae5c8;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    box-shadow: 0 0 20px rgba(0,126,128,0.2);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease 0.35s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s;
}
.slide-item.active .slide-tag {
    opacity: 1;
    transform: translateY(0);
}
.slide-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 18px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease 0.5s, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}
.slide-item.active .slide-title {
    opacity: 1;
    transform: translateY(0);
}
.slide-title span {
    background: linear-gradient(135deg, #4a9eff, var(--accent), #5ae5c8, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradShift 6s ease infinite;
}
@keyframes gradShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.slide-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
    line-height: 1.8;
    max-width: 580px;
    margin-inline: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.65s, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.65s;
}
.slide-item.active .slide-subtitle {
    opacity: 1;
    transform: translateY(0);
}
.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    box-shadow: 0 8px 32px rgba(0,52,146,0.4);
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.7s ease 0.8s, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.8s;
    position: relative;
    overflow: hidden;
}
.slide-item.active .slide-cta {
    opacity: 1;
    transform: translateY(0);
}
.slide-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: left 0.6s;
}
.slide-cta:hover::before { left: 100%; }
.slide-cta:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 16px 50px rgba(0,52,146,0.6);
}
.slide-cta svg { transition: transform 0.3s; }
.slide-cta:hover svg { transform: translateX(-5px); }

/* Decorative Dots under CTA */
.slide-decorative-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.1s;
}
.slide-item.active .slide-decorative-dots {
    opacity: 1;
    transform: translateY(0);
}
.slide-decorative-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,126,128,0.5);
    will-change: opacity;
    animation: decorDotPulse 3s ease-in-out infinite;
}
.slide-decorative-dots span:nth-child(2) { animation-delay: 0.4s; background: rgba(0,52,146,0.5); }
.slide-decorative-dots span:nth-child(3) { animation-delay: 0.8s; }
@keyframes decorDotPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Overlay - top only */
.slideshow-overlay-top {
    position: absolute; top: 0; left: 0; right: 0; height: 100px; z-index: 3; pointer-events: none;
    background: linear-gradient(to bottom, rgba(5,10,24,0.7), transparent);
}

/* Arrows — no backdrop-filter */
.slideshow-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(10,14,26,0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    opacity: 0;
}
.hero-slideshow:hover .slideshow-arrow { opacity: 1; }
.slideshow-arrow:hover {
    background: rgba(0,126,128,0.25);
    border-color: rgba(0,126,128,0.5);
    transform: translateY(-50%) scale(1.1);
}
.slideshow-arrow-right { right: 28px; }
.slideshow-arrow-left { left: 28px; }

/* Dots */
.slideshow-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}
.slideshow-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.25);
    background: transparent;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}
.slideshow-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: all 0.5s;
}
.slideshow-dot.active {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: scale(1.4);
    box-shadow: 0 0 20px rgba(0,126,128,0.7);
}
.slideshow-dot.active::after {
    border-color: rgba(0,126,128,0.3);
    animation: dotRipple 2s ease-out infinite;
}
@keyframes dotRipple {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(2.5); opacity: 0; }
}
.slideshow-dot:hover:not(.active) {
    background: rgba(255,255,255,0.25);
    transform: scale(1.2);
}

/* Progress Bar */
.slideshow-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.08);
    z-index: 10;
}
.slideshow-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    width: 0%;
    transition: width 0.1s linear;
}

/* Responsive Slideshow */
@media (max-width: 768px) {
    .hero-slideshow { height: 65vh; min-height: 420px; }
    .slide-title { font-size: 1.9rem; }
    .slide-subtitle { font-size: 0.95rem; }
    .slide-cta { padding: 12px 28px; font-size: 0.9rem; }
    .slide-floating-icon { font-size: 2.5rem; }
    .slideshow-arrow { width: 42px; height: 42px; }
    .slideshow-arrow-right { right: 12px; }
    .slideshow-arrow-left { left: 12px; }
    .slideshow-dots { bottom: 20px; }
    .slide-line, .slide-orb, .slideshow-geo { display: none; }
    .slide-hex-grid { display: none; }
}
@media (max-width: 480px) {
    .hero-slideshow { height: 55vh; min-height: 360px; }
    .slide-title { font-size: 1.5rem; }
    .slide-floating-icon { font-size: 2rem; }
    .slideshow-arrow { display: none; }
    .slide-decorative-dots { display: none; }
    .slideshow-particles { display: none; }
}

/* ============ Section Styles ============ */
.section {
    padding: 80px 0;
    position: relative;
}

/* Section Decorations — lightweight background graphics */
.section-decorated { overflow: hidden; }
.section-bg-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.section-decorated > .container { position: relative; z-index: 1; }

/* Floating circles */
.section-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.section-decorated.in-view .section-circle { opacity: 1; }

.section-circle-1 {
    width: 300px; height: 300px;
    top: -80px; right: -60px;
    background: radial-gradient(circle, rgba(0,126,128,0.06) 0%, transparent 70%);
}
.section-circle-2 {
    width: 200px; height: 200px;
    bottom: -40px; left: -40px;
    background: radial-gradient(circle, rgba(0,52,146,0.05) 0%, transparent 70%);
}
.section-circle-3 {
    width: 350px; height: 350px;
    top: -100px; left: -80px;
    background: radial-gradient(circle, rgba(0,126,128,0.04) 0%, transparent 70%);
}
.section-circle-4 {
    width: 280px; height: 280px;
    bottom: -60px; right: -80px;
    background: radial-gradient(circle, rgba(0,52,146,0.05) 0%, transparent 70%);
}
.section-circle-5 {
    width: 250px; height: 250px;
    top: -60px; left: 20%;
    background: radial-gradient(circle, rgba(0,52,146,0.04) 0%, transparent 70%);
}
.section-circle-6 {
    width: 180px; height: 180px;
    bottom: -30px; right: 15%;
    background: radial-gradient(circle, rgba(0,126,128,0.05) 0%, transparent 70%);
}
.section-circle-7 {
    width: 280px; height: 280px;
    top: -80px; right: 10%;
    background: radial-gradient(circle, rgba(0,126,128,0.04) 0%, transparent 70%);
}
.section-circle-8 {
    width: 220px; height: 220px;
    bottom: -50px; left: 10%;
    background: radial-gradient(circle, rgba(0,52,146,0.05) 0%, transparent 70%);
}

/* Dots pattern */
.section-dots-pattern {
    position: absolute;
    top: 30px; right: 50px;
    width: 120px; height: 120px;
    background-image: radial-gradient(circle, rgba(0,126,128,0.12) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    opacity: 0;
    transition: opacity 1.5s ease 0.3s;
}
.section-decorated.in-view .section-dots-pattern { opacity: 1; }

/* Wave separator */
.section-wave {
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 60px;
    background: linear-gradient(to right, transparent, rgba(0,126,128,0.04) 30%, rgba(0,52,146,0.04) 70%, transparent);
    border-radius: 50% 50% 0 0;
    opacity: 0;
    transition: opacity 1.2s ease 0.2s;
}
.section-decorated.in-view .section-wave { opacity: 1; }

/* Grid pattern */
.section-grid-pattern {
    position: absolute;
    top: 0; left: 0;
    width: 200px; height: 200px;
    background-image:
        linear-gradient(rgba(0,126,128,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,126,128,0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0;
    transition: opacity 1.5s ease 0.3s;
}
.section-decorated.in-view .section-grid-pattern { opacity: 1; }

/* Sparkle elements for offer section */
.section-sparkle {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(0,126,128,0.2);
    opacity: 0;
    transition: opacity 1s ease;
}
.section-decorated.in-view .section-sparkle {
    opacity: 1;
    animation: sparkleFloat 4s ease-in-out infinite;
}
.section-sparkle-1 { top: 15%; left: 8%; animation-delay: 0s !important; }
.section-sparkle-2 { top: 60%; right: 12%; font-size: 2rem; animation-delay: 1.5s !important; }
.section-sparkle-3 { bottom: 20%; left: 25%; font-size: 1.2rem; animation-delay: 3s !important; }
@keyframes sparkleFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.2; }
    50% { transform: translateY(-12px) rotate(180deg); opacity: 0.5; }
}

/* Diamond decoration */
.section-diamond {
    position: absolute;
    width: 40px; height: 40px;
    bottom: 30px; left: 60px;
    border: 1.5px solid rgba(0,126,128,0.1);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 1.2s ease 0.5s;
}
.section-decorated.in-view .section-diamond { opacity: 1; }

/* Glow line for newsletter */
.section-glow-line {
    position: absolute;
    top: 50%; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,126,128,0.08) 30%, rgba(0,52,146,0.08) 70%, transparent);
    opacity: 0;
    transition: opacity 1.5s ease 0.3s;
}
.section-decorated.in-view .section-glow-line { opacity: 1; }

/* Offer icon wrap — replaces plain emoji */
.offer-icon-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.offer-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px dashed rgba(0,126,128,0.25);
    animation: offerRingSpin 20s linear infinite;
}
@keyframes offerRingSpin { to { transform: rotate(360deg); } }
.offer-icon-emoji {
    font-size: 5rem;
    display: block;
    animation: offerFloat 3s ease-in-out infinite;
}
@keyframes offerFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Footer logo */
.footer-logo {
    margin-bottom: 1rem;
}
.footer-logo img {
    transition: transform 0.3s ease;
}
.footer-logo img:hover {
    transform: scale(1.05);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
    margin-top: 8px;
}

.section-header .subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============ Product Card ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    group: true;
}

.product-card:hover {
    border-color: var(--secondary);
    box-shadow: 0 8px 30px rgba(0, 126, 128, 0.18);
    transform: translateY(-6px);
}

.product-card-image {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--img-bg, #131b2e);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark vignette overlay to blend any image bg with the template */
.product-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(17, 24, 39, 0.5) 100%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.5s ease, opacity 0.4s ease, filter 0.4s ease;
    padding: 12px;
    background: var(--img-bg, #131b2e);
    mix-blend-mode: normal;
}

/* Smooth image loading */
.product-card-image img.img-loading {
    opacity: 0;
    filter: blur(8px);
}
.product-card-image img.img-loaded {
    opacity: 1;
    filter: blur(0);
}
.product-card-image img.img-error {
    opacity: 0.4;
    filter: grayscale(0.5);
    padding: 30px;
}

.product-card:hover .product-card-image img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.badge-discount {
    background: var(--danger);
    color: white;
}

.badge-new {
    background: var(--primary);
    color: white;
}

.badge-hot {
    background: var(--accent);
    color: #1a1a1a;
}

.product-actions {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    transition: bottom 0.3s ease;
}

.product-card:hover .product-actions { bottom: 0; }

.product-actions button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-actions button:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.product-card-body {
    padding: 1.25rem;
}

.product-card-category {
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.product-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.product-card-title a { color: var(--text-primary); }
.product-card-title a:hover { color: var(--secondary); }

.product-card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.product-price {
    display: flex;
    flex-direction: column;
}

.product-price .current {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary);
}

.product-price .price-from {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2px;
}

.product-price .original {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-price .card-contact-price {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    transition: color 0.2s;
}

.product-price .card-contact-price:hover {
    color: var(--primary);
    text-decoration: underline;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--accent);
    font-size: 0.85rem;
}

/* ============ Categories Grid ============ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover::before { transform: scaleX(1); }

.category-card:hover {
    border-color: var(--secondary);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 126, 128, 0.15);
}

.category-card-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 126, 128, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    transition: var(--transition);
}

.category-card:hover .category-card-icon {
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.category-card .count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============ How It Works ============ */
.hiw-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.hiw-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    z-index: 0;
}

.hiw-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hiw-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 52, 146,0.3);
}

.hiw-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    transition: var(--transition);
}

.hiw-card:hover .hiw-icon {
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 126, 128, 0.18);
}

.hiw-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.hiw-card p { color: var(--text-muted); font-size: 0.85rem; }

/* ============ Special Offer Banner ============ */
.offer-banner {
    background: linear-gradient(135deg, rgba(0, 52, 146,0.1), rgba(0, 126, 128,0.1));
    border: 1px solid rgba(0, 52, 146,0.2);
    border-radius: var(--radius-xl);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.offer-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 52, 146,0.08), transparent 70%);
    border-radius: 50%;
}

.offer-banner h2 { font-size: 2rem; font-weight: 800; }
.offer-banner .offer-tag {
    display: inline-block;
    background: var(--danger);
    color: white;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ============ Newsletter ============ */
.newsletter-section {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0, 52, 146,0.05), rgba(0, 126, 128,0.05));
}

.newsletter-section h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.5rem; position: relative; z-index: 1; }
.newsletter-section p { color: var(--text-secondary); margin-bottom: 1.5rem; position: relative; z-index: 1; }

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
}

.newsletter-form input:focus { border-color: var(--secondary); }

.newsletter-features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.newsletter-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.newsletter-features .feature svg { color: var(--secondary); }

/* ============ Footer ============ */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.8; }

.footer-links h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    padding: 4px 0;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--secondary); padding-right: 8px; }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============ Product Slider ============ */
.product-slider {
    position: relative;
    overflow: hidden;
}

.product-slider-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s ease;
    padding: 10px 0;
}

.product-slider-track .product-card {
    min-width: 280px;
    flex-shrink: 0;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
    z-index: 5;
}

.slider-nav:hover {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

.slider-prev { right: -10px; }
.slider-next { left: -10px; }

/* ============ Breadcrumb ============ */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--secondary); }
.breadcrumb .separator { margin: 0 4px; }

/* ============ Pagination ============ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
}

.pagination button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover, .pagination button.active {
    background: var(--secondary);
    color: white;
    border-color: var(--secondary);
}

/* ============ Modal ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal { transform: scale(1); }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 { font-size: 1.2rem; font-weight: 700; }

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.05);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover { background: var(--danger); color: white; }

/* ============ Toast Notifications ============ */
.toast-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    box-shadow: var(--shadow-xl);
    animation: slideInLeft 0.3s ease-out;
    border-right: 4px solid var(--secondary);
}

.toast.success { border-right-color: var(--success); }
.toast.error { border-right-color: var(--danger); }
.toast.warning { border-right-color: var(--warning); }
.toast.info { border-right-color: var(--info); }

.toast-icon { font-size: 1.3rem; }
.toast-message { font-size: 0.9rem; color: var(--text-primary); }

/* ============ Loading ============ */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.page-loading {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    flex-direction: column;
    gap: 20px;
}

.page-loading .loading-spinner { width: 60px; height: 60px; }

/* ============ Tabs ============ */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
    overflow-x: auto;
}

.tab-btn {
    padding: 12px 24px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover, .tab-btn.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.tab-content { display: none; animation: fadeIn 0.3s ease; }
.tab-content.active { display: block; }

/* ============ Badge ============ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success { background: rgba(0, 126, 128, 0.15); color: var(--success); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-info { background: rgba(59,130,246,0.15); color: var(--info); }
.badge-neutral { background: rgba(148,163,184,0.15); color: var(--text-secondary); }

/* ============ Table ============ */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px 16px;
    text-align: right;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

th {
    background: var(--bg-surface);
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
}

tr:hover { background: rgba(255,255,255,0.02); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hiw-grid { grid-template-columns: repeat(2, 1fr); }
    .hiw-grid::before { display: none; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .container { padding: 0 16px; }
    .section { padding: 50px 0; }
    .section-header h2 { font-size: 1.4rem; }

    .navbar-menu { display: none; }
    .menu-toggle { display: block; }

    .navbar-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px;
        right: 0;
        left: 0;
        bottom: 0;
        background: var(--bg-dark);
        padding: 20px;
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }

    .navbar-menu.active a { padding: 14px 16px; font-size: 1.1rem; }

    .mega-menu {
        position: fixed;
        top: 72px;
        right: 0;
        left: 0;
        min-width: unset;
        max-height: calc(100vh - 72px);
        border-radius: 0;
    }

    .mega-menu-inner { flex-direction: column; min-height: unset; }
    .mega-menu-roots { width: 100%; min-width: unset; border-left: none; border-bottom: 1px solid var(--border-color); max-height: 180px; overflow-y: auto; }
    .mega-menu-children { max-height: 50vh; }

    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-card-image { height: 180px; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .subcategories-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .offer-banner { flex-direction: column; text-align: center; }
    .offer-icon-wrap { width: 100px; height: 100px; }
    .offer-icon-emoji { font-size: 3.5rem; }
    .newsletter-form { flex-direction: column; }
    .newsletter-features { flex-direction: column; gap: 12px; }
    .hiw-grid { grid-template-columns: 1fr; }
    .section-bg-decor { display: none; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* ============ Fullscreen Loading Screen ============ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #060a14 0%, #0a0e1a 40%, #0d1525 100%);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Logo container with glow ring */
.loader-logo-wrap {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo-wrap img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 20px;
    animation: logoFloat 2.4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 52, 146, 0.5));
    position: relative;
    z-index: 2;
}

/* Spinning ring around logo */
.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #003492;
    border-right-color: #007e80;
    animation: ringRotate 1.4s linear infinite;
}

.loader-ring-inner {
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: #007e80;
    border-left-color: #003492;
    animation: ringRotate 1.8s linear infinite reverse;
}

/* Pulsing glow behind logo */
.loader-glow {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 52, 146, 0.35), rgba(0, 126, 128, 0.15), transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
    z-index: 1;
}

/* Brand text */
.loader-brand {
    text-align: center;
}

.loader-brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #003492, #007e80, #003492);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 3s linear infinite;
}

.loader-brand-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 6px;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 0.3s both;
}

/* Progress bar */
.loader-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-progress-bar {
    height: 100%;
    width: 30%;
    border-radius: 4px;
    background: linear-gradient(90deg, #003492, #007e80);
    animation: progressSlide 1.5s ease-in-out infinite;
}

/* Floating particles */
.loader-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.loader-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 4s ease-in-out infinite;
}

.loader-particle:nth-child(1) { background: #003492; left: 15%; animation-delay: 0s; }
.loader-particle:nth-child(2) { background: #007e80; left: 35%; animation-delay: 0.7s; }
.loader-particle:nth-child(3) { background: #003492; left: 55%; animation-delay: 1.4s; }
.loader-particle:nth-child(4) { background: #007e80; left: 75%; animation-delay: 2.1s; }
.loader-particle:nth-child(5) { background: #003492; left: 90%; animation-delay: 2.8s; }
.loader-particle:nth-child(6) { background: #007e80; left: 8%; animation-delay: 3.2s; }

/* Animations */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-8px) scale(1.03); }
}

@keyframes ringRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

@keyframes shimmerText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes progressSlide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(250%); }
    100% { transform: translateX(600%); }
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.8; }
    80% { opacity: 0.3; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: searchBackdropIn 0.3s ease;
}

.search-overlay-container {
    position: relative;
    width: 90%;
    max-width: 680px;
    z-index: 1;
    animation: searchContainerIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,126,128,0.15);
    overflow: hidden;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.search-input-wrap svg {
    color: var(--secondary);
    flex-shrink: 0;
    animation: searchIconPulse 2s ease-in-out infinite;
}

.search-input-wrap input {
    flex: 1;
    border: none;
    background: none;
    font-size: 1.15rem;
    font-family: inherit;
    color: var(--text-primary);
    outline: none;
}

.search-input-wrap input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-shortcut {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    opacity: 0.6;
    flex-shrink: 0;
}

.search-shortcut kbd {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2px 6px;
    font-family: inherit;
    font-size: 0.7rem;
}

.search-close-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    transition: all 0.2s;
    flex-shrink: 0;
}

.search-close-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.search-body {
    padding: 1rem 1.5rem 1.25rem;
    max-height: 55vh;
    overflow-y: auto;
}

.search-body::-webkit-scrollbar { width: 6px; }
.search-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

.search-section-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    cursor: pointer;
}

.search-result-item:hover,
.search-result-item.highlighted {
    background: rgba(0, 126, 128, 0.08);
}

.search-result-item img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-info .name {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-info .meta {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-item .price {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--secondary);
    white-space: nowrap;
}

.search-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
}

.search-empty .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

.search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.search-footer-keys {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-footer-keys span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-footer-keys kbd {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: inherit;
    font-size: 0.7rem;
}

.search-loading {
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.search-loading-dots {
    display: flex;
    gap: 6px;
}

.search-loading-dots span {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: searchDotBounce 1.2s ease-in-out infinite;
}

.search-loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.search-loading-dots span:nth-child(3) { animation-delay: 0.3s; }

.search-recent-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    font-size: 0.88rem;
}

.search-recent-item:hover {
    background: rgba(0,126,128,0.06);
}

.search-recent-item svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.search-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.search-category-chip {
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.82rem;
    text-decoration: none;
    transition: all 0.2s;
}

.search-category-chip:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    background: rgba(0,126,128,0.06);
}

/* Search overlay animations */
@keyframes searchBackdropIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes searchContainerIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes searchIconPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

@keyframes searchDotBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Search overlay closing */
.search-overlay.closing .search-overlay-backdrop {
    animation: searchBackdropOut 0.2s ease forwards;
}
.search-overlay.closing .search-overlay-container {
    animation: searchContainerOut 0.2s ease forwards;
}

@keyframes searchBackdropOut {
    to { opacity: 0; }
}
@keyframes searchContainerOut {
    to { opacity: 0; transform: translateY(-20px) scale(0.96); }
}

/* ============================================
   IMAGE NORMALIZATION SYSTEM
   Ensures all images match the dark template
   ============================================ */

/* Universal image container base */
.img-container {
    position: relative;
    overflow: hidden;
    background: var(--img-bg, #131b2e);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle inner border glow */
.img-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 2;
}

/* Normalized image: smooth loading with fade + blur */
img.img-normalized {
    transition: opacity 0.45s ease, filter 0.45s ease, transform 0.5s ease;
    background: var(--img-bg, #131b2e);
}

img.img-normalized.img-loading {
    opacity: 0;
    filter: blur(10px) saturate(0.5);
}

img.img-normalized.img-loaded {
    opacity: 1;
    filter: blur(0) saturate(1);
}

img.img-normalized.img-error {
    opacity: 0.35;
    filter: grayscale(0.6) brightness(0.7);
}

/* Shimmer loading placeholder for images */
.img-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 30%,
        rgba(0, 126, 128, 0.06) 50%,
        transparent 70%
    );
    background-size: 200% 100%;
    animation: imgShimmer 1.8s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

.img-loaded ~ .img-shimmer,
.img-error ~ .img-shimmer { display: none; }

@keyframes imgShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Gallery image normalization (product-detail) */
.gallery-main {
    background: var(--img-bg, #131b2e) !important;
}

.gallery-main img {
    background: var(--img-bg, #131b2e);
    transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}

.gallery-main img.img-loading {
    opacity: 0;
    filter: blur(8px);
}

.gallery-main img.img-loaded {
    opacity: 1;
    filter: blur(0);
}

.gallery-thumbs img {
    background: var(--img-bg, #131b2e);
    transition: border-color 0.2s, opacity 0.3s, filter 0.3s;
}

.gallery-thumbs img.img-loaded {
    opacity: 0.6;
}

.gallery-thumbs img.active.img-loaded {
    opacity: 1;
}

/* Search result image normalization */
.search-result-item img {
    background: var(--img-bg, #131b2e) !important;
    object-fit: contain !important;
    padding: 4px;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.search-result-item img.img-loading {
    opacity: 0;
    filter: blur(4px);
}

.search-result-item img.img-loaded {
    opacity: 1;
    filter: blur(0);
}

/* Fallback/error image styling */
.img-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 1rem;
    text-align: center;
}

.img-fallback svg {
    opacity: 0.4;
}

/* Image aspect ratio containers */
.img-ratio-1x1 { aspect-ratio: 1 / 1; }
.img-ratio-4x3 { aspect-ratio: 4 / 3; }
.img-ratio-16x9 { aspect-ratio: 16 / 9; }

/* Light image auto-darkening (for images with white/light backgrounds) */
.img-dark-blend {
    background: var(--img-bg, #131b2e);
    padding: 8px;
}

.img-dark-blend img {
    border-radius: var(--radius-sm);
    background: #fff;
    mix-blend-mode: luminosity;
}

/* Cart & Checkout image normalization */
.cart-item-image,
.checkout-item-image {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #131b2e;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    padding: 4px;
    flex-shrink: 0;
    transition: opacity 0.35s ease, filter 0.35s ease;
}

.cart-item-image.img-loading,
.checkout-item-image.img-loading {
    opacity: 0;
    filter: blur(6px);
}

.cart-item-image.img-loaded,
.checkout-item-image.img-loaded {
    opacity: 1;
    filter: blur(0);
}

.cart-item-image.img-error,
.checkout-item-image.img-error {
    opacity: 0.4;
    filter: grayscale(0.5);
}
