/* Import Cairo and Readex Pro for perfect Arabic & English Typography */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Readex+Pro:wght@300;400;500;600;700&display=swap');

:root {
    /* LIGHT THEME VARIABLES */
    --primary-color: #2563eb;       /* Orbit Electric Blue */
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --secondary-color: #06b6d4;     /* Neon Cyan */
    --neon-cyan: #00f0ff;
    --neon-purple: #8b5cf6;
    --neon-pink: #ec4899;
    --neon-amber: #f59e0b;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-accent: #f1f5f9;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    
    --text-main: #0f172a;           /* Deep Navy */
    --text-muted: #64748b;          /* Slate Gray */
    --text-light: #94a3b8;
    
    --success: #10b981;
    --error: #ef4444;
    
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --hover-shadow: 0 20px 30px -5px rgba(37, 99, 235, 0.12), 0 10px 15px -5px rgba(0, 0, 0, 0.04);
    
    --font-ar: 'Cairo', 'Readex Pro', 'Segoe UI', Tahoma, Geneva, sans-serif;
    --font-en: 'Readex Pro', 'Segoe UI', Tahoma, Geneva, sans-serif;
    
    --glass-bg: rgba(255, 255, 255, 0.96);
    --glass-border: #e2e8f0;
    --cyber-glow-blue: 0 0 20px rgba(37, 99, 235, 0.2);
    --cyber-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.2);
}

/* CYBERPUNK & COSMIC DARK THEME VARIABLES (Default / Primary) */
body.dark-theme {
    --bg-main: #050814;             /* Obsidian Deep Space Black */
    --bg-card: rgba(13, 18, 38, 0.72); /* Frosted Deep Cyber Card */
    --bg-accent: rgba(22, 30, 60, 0.6);/* Cyber Accent */
    --border-color: rgba(0, 240, 255, 0.14);
    --border-light: rgba(139, 92, 246, 0.18);
    
    --text-main: #f8fafc;           /* Crisp White */
    --text-muted: #94a3b8;          /* Muted Silver */
    --text-light: #64748b;
    
    --primary-color: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-light: rgba(59, 130, 246, 0.15);
    --secondary-color: #00f0ff;     /* Vivid Cyber Cyan */
    
    --neon-cyan: #00f0ff;
    --neon-purple: #a855f7;
    --neon-pink: #f43f5e;
    --neon-amber: #fbbf24;
    
    --cyber-glow-blue: 0 0 25px rgba(59, 130, 246, 0.4);
    --cyber-glow-cyan: 0 0 25px rgba(0, 240, 255, 0.45);
    --cyber-glow-purple: 0 0 25px rgba(168, 85, 247, 0.4);
    
    --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.75), 0 0 15px -3px rgba(59, 130, 246, 0.15);
    --hover-shadow: 0 20px 45px -5px rgba(0, 240, 255, 0.25), 0 0 30px -5px rgba(168, 85, 247, 0.35);
    
    --glass-bg: rgba(9, 13, 28, 0.82);
    --glass-border: rgba(0, 240, 255, 0.18);
}

/* Custom scrollbar styling for premium streetwear aesthetics */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.25);
    border-radius: 10px;
    border: 2px solid transparent;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.4);
}
body.dark-theme ::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.2);
    border-radius: 10px;
}
body.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body, input, button, select, textarea {
    font-family: var(--font-ar);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.04) 0px, transparent 50%);
    background-attachment: fixed;
}

button {
    overflow: visible;
}

body.dark-theme {
    background-color: #050814;
    background-image: 
        radial-gradient(ellipse 90% 60% at 50% -10%, rgba(37, 99, 235, 0.2) 0%, transparent 70%),
        radial-gradient(ellipse 70% 50% at 90% 60%, rgba(139, 92, 246, 0.16) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 10% 90%, rgba(0, 240, 255, 0.14) 0%, transparent 60%);
    background-attachment: fixed;
}

/* Set direction */
[dir="rtl"] { font-family: var(--font-ar); }
[dir="ltr"] { font-family: var(--font-en); }

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

button, input, select, textarea {
    font-family: inherit;
    outline: none;
}

/* Header Web Design */
.site-header {
    background-color: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

body.dark-theme .site-header {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.15);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-container:hover {
    transform: rotate(180deg) scale(1.08);
}

.logo-container svg {
    width: 26px;
    height: 26px;
}

.brand-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-name {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.verified-badge svg {
    width: 18px;
    height: 18px;
}

/* Search bar */
.header-center {
    flex: 1;
    max-width: 420px;
    position: relative;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 10px 16px;
    padding-inline-start: 44px;
    background-color: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 13px;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

body.dark-theme .search-input:focus {
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-start: 16px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.search-icon svg {
    width: 18px;
    height: 18px;
}

/* Header Right Controls */
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn {
    height: 40px;
    padding: 0 16px;
    border-radius: 20px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.control-btn:hover {
    background-color: var(--bg-accent);
    transform: translateY(-1px);
}

.control-btn svg {
    width: 16px;
    height: 16px;
}

.layout-toggle {
    width: 40px;
    padding: 0;
    justify-content: center;
}

/* Sun/Moon specific triggers */
body.dark-theme .sun-icon {
    display: block !important;
}
body.dark-theme .moon-icon {
    display: none !important;
}

/* Shopping Cart Trigger Button */
.cart-trigger {
    height: 40px;
    padding: 0 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #ffffff !important;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* Explicit SVG styling inside cart button */
.cart-trigger svg {
    width: 18px;
    height: 18px;
    stroke: #ffffff;
    fill: none;
    display: inline-block;
    vertical-align: middle;
}

.cart-trigger .cart-text {
    font-size: 13px;
    color: #ffffff;
    font-weight: 700;
}

.cart-trigger:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px) scale(1.02);
}

.cart-trigger:active {
    transform: translateY(0) scale(0.98);
}

.cart-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--error);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-card);
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ========================================================
   KEYFRAME ANIMATIONS (CYBERPUNK & NEON)
   ======================================================== */
@keyframes cyberPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 6px var(--neon-cyan)); }
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes neonGlowPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(0, 240, 255, 0.3), 0 0 30px rgba(139, 92, 246, 0.2); }
    50% { box-shadow: 0 0 25px rgba(0, 240, 255, 0.6), 0 0 50px rgba(139, 92, 246, 0.4); }
}

/* ========================================================
   CYBERPUNK & DARK NEON HERO SECTION
   ======================================================== */
.cyber-hero-section {
    position: relative;
    width: 100%;
    padding: 44px 0 32px 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #edf2f7 100%);
    border-bottom: 1px solid var(--border-color);
}

body.dark-theme .cyber-hero-section {
    background: linear-gradient(180deg, rgba(8, 12, 28, 0.95) 0%, rgba(5, 8, 20, 0.98) 100%);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
}

.cyber-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.cyber-grid-overlay {
    position: absolute;
    inset: 0;
    background-size: 36px 36px;
    background-image: 
        linear-gradient(to right, rgba(37, 99, 235, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}

body.dark-theme .cyber-grid-overlay {
    background-image: 
        linear-gradient(to right, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
}

.cyber-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatSlow 8s ease-in-out infinite alternate;
}

body.dark-theme .cyber-glow-orb {
    opacity: 0.35;
}

.cyber-glow-orb.orb-1 {
    width: 320px;
    height: 320px;
    top: -60px;
    right: 5%;
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

.cyber-glow-orb.orb-2 {
    width: 280px;
    height: 280px;
    bottom: -40px;
    left: 8%;
    background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    animation-delay: -4s;
}

.cyber-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cyber-hero-content {
    max-width: 780px;
    margin: 0 auto;
}

.cyber-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.25);
    color: #2563eb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}

body.dark-theme .cyber-hero-badge {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.2);
}

.pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2563eb;
    box-shadow: 0 0 8px #2563eb;
    animation: cyberPulse 1.8s infinite;
}

body.dark-theme .pulse-dot {
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.cyber-hero-title {
    font-size: 32px;
    line-height: 1.25;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    .cyber-hero-title {
        font-size: 48px;
    }
}

.cyber-text-gradient {
    display: block;
    background: linear-gradient(135deg, #0f172a 20%, #2563eb 65%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

body.dark-theme .cyber-text-gradient {
    background: linear-gradient(135deg, #ffffff 10%, #00f0ff 60%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(0, 240, 255, 0.3);
}

.cyber-text-sub {
    display: block;
    font-size: 19px;
    font-weight: 700;
    color: #334155;
    margin-top: 6px;
}

body.dark-theme .cyber-text-sub {
    color: #e2e8f0;
    font-weight: 800;
}

@media (min-width: 768px) {
    .cyber-text-sub {
        font-size: 24px;
    }
}

.cyber-hero-desc {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 600px;
    margin-inline: auto;
}

body.dark-theme .cyber-hero-desc {
    color: rgba(255, 255, 255, 0.72);
}

.cyber-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    max-width: 440px;
    margin: 0 auto 24px auto;
}

.cyber-btn {
    height: 44px;
    padding: 0 12px;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    user-select: none;
    white-space: nowrap;
    width: 100%;
}

.cyber-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

.cyber-btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
    color: #ffffff;
}

body.dark-theme .cyber-btn-primary {
    background: linear-gradient(135deg, #00f0ff 0%, #2563eb 100%);
    color: #050814;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4), 0 4px 15px rgba(37, 99, 235, 0.4);
}

body.dark-theme .cyber-btn-primary:hover {
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.6), 0 8px 25px rgba(37, 99, 235, 0.5);
    color: #000000;
}

.cyber-btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cyber-btn-secondary:hover {
    border-color: #2563eb;
    background: #f8fafc;
    color: #2563eb;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

body.dark-theme .cyber-btn-secondary {
    background: rgba(13, 18, 36, 0.7);
    color: #ffffff;
    border: 1px solid rgba(0, 240, 255, 0.3);
    box-shadow: none;
}

body.dark-theme .cyber-btn-secondary:hover {
    border-color: var(--neon-cyan);
    background: rgba(22, 30, 60, 0.85);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
    color: #ffffff;
}

.cyber-hero-trust-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px 8px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.dark-theme .cyber-hero-trust-bar {
    background: rgba(13, 18, 36, 0.72);
    border: 1px solid rgba(0, 240, 255, 0.16);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(0, 240, 255, 0.06);
}

.trust-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    padding: 4px 2px;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    transition: transform 0.2s ease;
}

.trust-badge-item:hover {
    transform: translateY(-2px);
}

.trust-badge-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15%;
    bottom: 15%;
    inset-inline-end: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.07);
}

body.dark-theme .trust-badge-item:not(:last-child)::after {
    background: rgba(255, 255, 255, 0.08);
}

.trust-icon {
    font-size: 18px;
    line-height: 1;
}

.trust-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.trust-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
}

body.dark-theme .trust-title {
    color: #f1f5f9;
}

.trust-sub {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

body.dark-theme .trust-sub {
    color: #94a3b8;
}

@media (min-width: 600px) {
    .trust-badge-item {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        text-align: start;
        padding: 6px 8px;
    }
    .trust-title {
        font-size: 12.5px;
    }
    .trust-sub {
        font-size: 11px;
    }
    .trust-icon {
        font-size: 20px;
    }
}

/* Fallback cover banner */
.hero-cover {
    display: none;
}

/* Categories Horizontal Nav */
.categories-nav {
    margin: 28px 0 20px 0;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    cursor: grab;
    user-select: none;
}

.categories-inner {
    display: inline-flex;
    gap: 10px;
}

.category-tag {
    padding: 9px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    scroll-snap-align: start;
}

.category-tag:hover {
    background-color: var(--bg-accent);
    color: var(--text-main);
    border-color: rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

body.dark-theme .category-tag {
    background: rgba(13, 18, 38, 0.75);
    border: 1px solid rgba(0, 240, 255, 0.16);
    color: var(--text-muted);
}

body.dark-theme .category-tag:hover {
    background: rgba(22, 30, 60, 0.9);
    border-color: rgba(0, 240, 255, 0.4);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.category-tag.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: #ffffff !important;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 4px 18px rgba(0, 240, 255, 0.35) !important;
}

body.dark-theme .category-tag.active {
    background: linear-gradient(135deg, #00f0ff 0%, #2563eb 100%) !important;
    color: #050814 !important;
    border-color: #00f0ff !important;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5) !important;
}

/* Product Catalog Grid - Responsive & Balanced */
.product-catalog {
    margin-bottom: 110px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    transition: all 0.3s ease;
}

@media (min-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
        gap: 24px;
    }
}

/* Next-Gen Cyberpunk Product Card */
.product-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

body.dark-theme .product-card {
    background: rgba(13, 18, 38, 0.72);
    border: 1px solid rgba(0, 240, 255, 0.12);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

body.dark-theme .product-card:hover {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: 0 16px 36px -8px rgba(0, 240, 255, 0.25), 0 0 25px rgba(168, 85, 247, 0.25);
}

.product-image-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    overflow: hidden;
    position: relative;
}

body.dark-theme .product-image-wrapper {
    background: rgba(22, 30, 60, 0.4);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.07);
}

/* Cyberpunk Badge System */
.product-tag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 2;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-tag-badge.badge-sale {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    box-shadow: 0 0 12px rgba(244, 63, 94, 0.5);
}

.product-tag-badge.badge-hot {
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.5);
}

.product-tag-badge.badge-new {
    background: linear-gradient(135deg, #00f0ff, #0284c7);
    color: #050814;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.product-tag-badge.badge-limited {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.product-info {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@media (min-width: 640px) {
    .product-info {
        padding: 16px 18px 18px;
    }
}

.product-category {
    font-size: 10px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

body.dark-theme .product-category {
    color: var(--neon-cyan);
}

.product-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}

@media (min-width: 640px) {
    .product-title {
        font-size: 15px;
        min-height: 44px;
    }
}

/* Color Swatches on Product Card */
.product-swatches {
    display: flex;
    gap: 6px;
    align-items: center;
    margin: 4px 0 10px 0;
}

.color-dot-pill {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-dot-pill:hover {
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.7);
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

body.dark-theme .product-footer {
    border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.product-prices-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    white-space: nowrap;
}

.product-price-slashed {
    font-size: 11px;
    color: var(--text-light);
    text-decoration: line-through;
    line-height: 1.2;
}

.product-price {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .product-price {
        font-size: 16px;
    }
}

body.dark-theme .product-price {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.quick-buy-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f0ff, #2563eb);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #050814;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}

.quick-buy-btn:hover {
    transform: scale(1.12) rotate(6deg);
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.75);
}

.quick-buy-btn svg {
    width: 17px;
    height: 17px;
    stroke: #050814;
    stroke-width: 2.5;
}

@media (max-width: 560px) {
    .product-grid {
        gap: 10px;
    }
    .product-info {
        padding: 10px 10px 12px;
    }
    .product-category {
        font-size: 9px;
    }
    .product-title {
        font-size: 12px;
        min-height: 34px;
        line-height: 1.35;
    }
    .product-footer {
        padding-top: 8px;
        gap: 6px;
    }
    .product-price {
        font-size: 13px;
    }
    .product-price-slashed {
        font-size: 10px;
    }
    .quick-buy-btn {
        width: 32px;
        height: 32px;
    }
    .quick-buy-btn svg {
        width: 14px;
        height: 14px;
    }
    .product-swatches {
        gap: 4px;
        margin: 2px 0 6px 0;
    }
    .color-dot-pill {
        width: 10px;
        height: 10px;
    }
}

/* List view adaptation */
.product-grid.list-view .product-card {
    flex-direction: row;
    align-items: center;
    height: 140px;
}

.product-grid.list-view .product-image-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    margin: 10px;
    flex-shrink: 0;
}

.product-grid.list-view .product-info {
    padding: 16px;
    height: 100%;
}

.product-grid.list-view .product-title {
    font-size: 15px;
    height: auto;
    -webkit-line-clamp: 1;
    margin-bottom: 8px;
}

.product-grid.list-view .product-footer {
    border-top: none;
    padding-top: 0;
}

/* Drawer overlays & panels */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background-color: var(--bg-card);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 201;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border-inline-start: 1px solid var(--border-color);
}

body.dark-theme .drawer-panel {
    background-color: rgba(9, 13, 28, 0.94);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-inline-start: 1px solid rgba(0, 240, 255, 0.2);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.1);
}

[dir="rtl"] body.dark-theme .drawer-panel {
    border-inline-end: 1px solid rgba(0, 240, 255, 0.2);
    border-inline-start: none;
    box-shadow: 15px 0 50px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 240, 255, 0.1);
}

[dir="rtl"] .drawer-panel {
    right: auto;
    left: -450px;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.1);
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-overlay.active + .drawer-panel,
.drawer-panel.active {
    right: 0;
}
[dir="rtl"] .drawer-overlay.active + .drawer-panel,
[dir="rtl"] .drawer-panel.active {
    left: 0;
    right: auto;
}

.drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drawer-title {
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.drawer-close {
    background: var(--bg-accent);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all 0.2s;
}

.drawer-close:hover {
    background-color: var(--border-color);
    transform: rotate(90deg);
}

.drawer-close svg {
    width: 16px;
    height: 16px;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Free Shipping Progress Bar */
.cart-free-shipping-bar {
    background: rgba(13, 18, 38, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.shipping-progress-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
}

.shipping-progress-icon {
    font-size: 15px;
}

.shipping-progress-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.shipping-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f0ff, #2563eb, #a855f7);
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.shipping-progress-fill.completed {
    background: linear-gradient(90deg, #10b981, #00f0ff);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.7);
}

/* Empty cart state */
.empty-cart-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70%;
    color: var(--text-muted);
    text-align: center;
}

.empty-cart-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-accent);
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-cover: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    background-color: var(--bg-accent);
    border-radius: 12px;
    overflow: hidden;
    height: 28px;
}

.qty-btn {
    border: none;
    background: transparent;
    width: 28px;
    height: 100%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.qty-btn:hover {
    background-color: var(--border-color);
}

.qty-val {
    padding: 0 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: var(--error);
    cursor: pointer;
    padding: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Drawer Footer */
.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-accent);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.cart-summary-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    font-size: 16px;
    font-weight: 800;
}

.cart-summary-row.total .total-price {
    color: var(--primary-color);
}

.checkout-btn {
    width: 100%;
    height: 48px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
    margin-top: 16px;
}

.checkout-btn:hover {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

/* Centered Modals (Product Details popup) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: var(--bg-card);
    width: 100%;
    max-width: 700px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    border: 1px solid var(--glass-border);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme .modal-box {
    background-color: rgba(13, 18, 32, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(37, 99, 235, 0.15);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(4px);
    border: 1px solid var(--border-color);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: var(--text-main);
    transition: all 0.2s;
}

/* Keep close button on the right side in RTL to prevent overlapping with left-aligned scrollbar */
[dir="rtl"] .modal-close { right: 16px; left: auto; }

.modal-close:hover {
    background-color: var(--bg-accent);
    transform: rotate(90deg);
}

.modal-body {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

@media (min-width: 9999px) {
    .modal-body {
        flex-direction: row;
    }
}

.modal-gallery {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: var(--bg-accent);
    position: relative;
    flex-shrink: 0;
}

@media (min-width: 9999px) {
    .modal-gallery {
        width: 50%;
    }
}

.modal-gallery img {
    width: 100%;
    height: 100%;
    object-cover: cover;
}

.modal-details {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    line-height: 1.3;
}

.modal-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-height: 120px;
    overflow-y: auto;
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
}

/* Option selections */
.option-group {
    margin-bottom: 20px;
}

.option-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
    display: block;
}

.option-values {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-pill {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--bg-card);
    color: var(--text-main);
    transition: all 0.2s;
}

.option-pill:hover {
    border-color: var(--text-muted);
}

.option-pill.selected {
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

/* Color dot selection */
.color-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.color-dot.selected {
    border-color: var(--primary-color);
    transform: scale(1.15);
}

/* Modal actions */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.modal-qty {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    height: 48px;
    background-color: var(--bg-accent);
}

.modal-qty .qty-btn {
    width: 40px;
    height: 100%;
}

.modal-qty .qty-val {
    min-width: 36px;
    font-size: 14px;
}

.modal-add-btn {
    flex: 1;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.modal-add-btn:hover {
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Checkout Form elements */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-accent);
    font-size: 15px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M7 9l3 3 3-3' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 40px;
}

[dir="rtl"] select.form-input {
    background-position: left 16px center;
    padding-left: 40px;
    padding-right: 16px;
}

.checkout-shipping-info {
    background-color: var(--primary-light);
    border: 1px dashed rgba(37, 99, 235, 0.3);
    padding: 12px;
    border-radius: 14px;
    font-size: 12px;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    font-weight: 700;
}

/* Mobile bottom floating bar */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 16px;
    z-index: 99;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

@media (min-width: 9999px) {
    .mobile-bottom-bar {
        display: none;
    }
}

.bottom-bar-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.bottom-bar-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-cart-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #ffffff;
    height: 44px;
    border-radius: 22px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
    font-weight: 700;
    border: none;
    font-size: 12px;
}

/* Footer layout */
.site-footer {
    padding: 50px 0 100px 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

@media (min-width: 9999px) {
    .site-footer {
        padding-bottom: 50px;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-logo svg {
    width: 22px;
    height: 22px;
    fill: var(--text-muted);
}

.footer-logo span {
    font-size: 15px;
    font-weight: 800;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 20px 0;
}

.footer-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon svg {
    width: 18px;
    height: 18px;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.15);
    color: #fff;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-icon.fb:hover { border-color: #1877F2; box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3); }
.social-icon.fb::before { background: #1877F2; }

.social-icon.ig:hover { border-color: #E1306C; box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3); }
.social-icon.ig::before { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }

.social-icon.tg:hover { border-color: #229ED9; box-shadow: 0 4px 12px rgba(34, 158, 217, 0.3); }
.social-icon.tg::before { background: #229ED9; }

.social-icon.wa:hover { border-color: #25D366; box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3); }
.social-icon.wa::before { background: #25D366; }

.social-icon:hover::before { opacity: 1; }

.footer-link {
    cursor: pointer;
    font-weight: 600;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-color);
}

.powered-by {
    font-size: 10px;
    color: var(--text-light);
    margin-top: 20px;
}

.powered-by a {
    font-weight: 700;
    color: var(--text-muted);
}

.powered-by a:hover {
    color: var(--primary-color);
}

/* Skeleton animation */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.pure-skeleton {
    animation: pulse 1.5s infinite ease-in-out;
    background-color: var(--bg-accent) !important;
}

/* Toast container */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10005;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    width: 90%;
    max-width: 350px;
}

.toast {
    background-color: var(--text-main);
    color: var(--bg-card);
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: slideUpToast 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    justify-content: center;
}

@keyframes slideUpToast {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* Announcement alert bar styles */
.announcement-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    position: relative;
    z-index: 101;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Slashed prices and discount badges */
.product-price-slashed {
    font-size: 13px;
    text-decoration: line-through;
    color: var(--text-light);
    margin-inline-end: 8px;
    font-weight: 500;
    display: inline-block;
}

.product-tag-badge.badge-sale {
    background: linear-gradient(135deg, #f43f5e, #be123c);
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3);
}

.product-tag-badge.badge-hot {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.product-tag-badge.badge-limited {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.product-tag-badge.badge-new {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.out-of-stock-label {
    background-color: var(--bg-accent);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Order Tracking Modal & Timeline Stepper Styles */
.tracking-modal-overlay {
    z-index: 1100 !important;
}

.track-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 30px 0 16px 0;
    padding: 0 10px;
}

.track-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    height: 3px;
    background-color: var(--border-color);
    z-index: 1;
}

.track-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-light);
    flex: 1;
    text-align: center;
}

.track-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 3px solid var(--border-color);
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.track-step.active .track-dot {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 12px var(--primary-color);
}

body.dark-theme .track-step.active .track-dot {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 12px var(--secondary-color);
}

.track-step.completed .track-dot {
    background-color: var(--success);
    border-color: var(--success);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

.track-step.active {
    color: var(--text-main);
}

.track-step.completed {
    color: var(--success);
}

.track-step.muted {
    opacity: 0.4;
}

/* Checkout Success Modal Premium Styling */
.success-modal-overlay {
    z-index: 1200 !important;
}

.success-glow-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    position: relative;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.success-glow-ring::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 1px dashed rgba(16, 185, 129, 0.3);
    animation: success-spin 12s linear infinite;
}

@keyframes success-spin {
    100% { transform: rotate(360deg); }
}

.success-checkmark-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--success);
    animation: success-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes success-bounce {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.success-check-icon {
    width: 24px;
    height: 24px;
    animation: success-draw 0.3s ease-out 0.4s both;
}

@keyframes success-draw {
    0% { stroke-dasharray: 50; stroke-dashoffset: 50; }
    100% { stroke-dasharray: 50; stroke-dashoffset: 0; }
}

.success-id-card {
    background-color: var(--bg-accent);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.id-card-label {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.id-card-number {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 1px;
    font-family: monospace;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-theme .id-card-number {
    background: linear-gradient(135deg, var(--text-main) 30%, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.copy-id-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.copy-id-btn:hover {
    border-color: var(--text-light);
    transform: translateY(-1px);
}

.copy-id-btn:active {
    transform: translateY(0);
}

/* Premium Tracking Section */
.premium-tracking-section {
    padding: 60px 20px;
    background: linear-gradient(to bottom, var(--bg-main), var(--bg-accent));
}

.tracking-glass-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.tracking-header {
    text-align: center;
    margin-bottom: 24px;
}

.tracking-icon-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.tracking-icon-ring svg {
    width: 28px;
    height: 28px;
}

.tracking-titles h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.tracking-titles p {
    font-size: 13px;
    color: var(--text-muted);
}

.tracking-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.premium-track-input {
    flex: 1;
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-accent);
    padding: 0 20px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    color: var(--text-main);
    transition: all 0.3s;
}

.premium-track-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.premium-track-btn {
    height: 48px;
    padding: 0 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.premium-track-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(37, 99, 235, 0.3);
}

.premium-track-btn svg {
    width: 18px;
    height: 18px;
}

/* Luxurious Timeline Styles */
.lux-timeline-container {
    padding: 24px 16px;
    background: var(--bg-accent);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.lux-timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-top: 24px;
}

.lux-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 4px;
    background: var(--border-color);
    z-index: 1;
    border-radius: 2px;
}

.lux-progress-bar {
    position: absolute;
    top: 20px;
    left: 20px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    z-index: 2;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.lux-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 60px;
    text-align: center;
}

.lux-step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lux-step-icon svg {
    width: 18px;
    height: 18px;
}

.lux-step.completed .lux-step-icon {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.3);
}

.lux-step.active .lux-step-icon {
    border-color: var(--secondary-color);
    background: var(--bg-card);
    color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
    transform: scale(1.15);
}

.lux-step.cancelled .lux-step-icon {
    border-color: var(--error);
    background: var(--error);
    color: #fff;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.lux-step-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-light);
    white-space: nowrap;
}

.lux-step.completed .lux-step-label {
    color: var(--text-main);
}

.lux-step.active .lux-step-label {
    color: var(--secondary-color);
    transform: scale(1.05);
}

.lux-step.cancelled .lux-step-label {
    color: var(--error);
}

@media (max-width: 9999px) {
    .tracking-input-wrapper {
        flex-direction: column;
    }
    .premium-track-input, .premium-track-btn {
        width: 100%;
    }
    .lux-timeline {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    .lux-step {
        min-width: 80px;
    }
}

/* ==========================================================================
   Trust & Guarantee Badges
   ========================================================================== */
.trust-badges-section {
    padding: 30px 0;
    margin-top: 10px;
    margin-bottom: 10px;
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.trust-badge-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.trust-badge-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: var(--hover-shadow);
}

.trust-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.trust-badge-card:hover .trust-icon-wrapper {
    background: var(--primary-color);
    color: #ffffff;
    transform: scale(1.05);
}

.trust-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.trust-texts h4 {
    font-size: 12.5px;
    font-weight: 800;
    margin-bottom: 2px;
    color: var(--text-main);
}

.trust-texts p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Custom Order CTA Section
   ========================================================================== */
.custom-order-cta-section {
    padding: 30px 0 10px 0;
}

.custom-cta-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(37, 99, 235, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

body.dark-theme .custom-cta-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(6, 182, 212, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.custom-cta-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.custom-cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-badge {
    align-self: flex-start;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.custom-cta-content h2 {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.3;
    color: var(--text-main);
}

.custom-cta-content p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.custom-cta-btn {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
}

.custom-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.4);
}

.custom-cta-visual {
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.floating-mockup-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glow-bg {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    filter: blur(25px);
    opacity: 0.15;
    animation: pulseGlow 4s infinite alternate;
}

.mockup-shirt-placeholder {
    font-size: 40px;
    position: relative;
    z-index: 2;
    animation: floatItem 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.12; }
    100% { transform: scale(1.1); opacity: 0.22; }
}

@keyframes floatItem {
    0% { transform: translateY(-3px) rotate(-2deg); }
    100% { transform: translateY(3px) rotate(2deg); }
}

@media (max-width: 9999px) {
    .custom-cta-card {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }
    .custom-badge, .custom-cta-btn {
        align-self: center;
    }
    .custom-cta-visual {
        display: none;
    }
}

/* ==========================================================================
   Custom Order Modal Form Elements
   ========================================================================== */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-box {
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-color: var(--bg-card);
    width: 90%;
}

.custom-modal-overlay.active .custom-box {
    transform: scale(1);
}

.custom-radio-option input[type="radio"] {
    cursor: pointer;
}

.custom-radio-option:hover {
    border-color: var(--primary-color) !important;
}

.custom-radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color) !important;
    background: var(--primary-light) !important;
    font-weight: 700;
}

.upload-dropzone:hover {
    border-color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.02) !important;
}

/* ==========================================================================
   Interactive Designer Layout
   ========================================================================== */
.designer-preview-column {
    position: relative;
}

body.dark-theme .designer-preview-column {
    background: rgba(13, 18, 38, 0.75) !important;
    border: 1px solid rgba(0, 240, 255, 0.22) !important;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.1) !important;
}

body.dark-theme .mockup-canvas {
    background: rgba(8, 12, 28, 0.8) !important;
    border: 1px solid rgba(0, 240, 255, 0.25) !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.7) !important;
}

.mockup-editor-controls button {
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mockup-editor-controls button:hover {
    border-color: var(--neon-cyan) !important;
    background: rgba(0, 240, 255, 0.12) !important;
    color: var(--neon-cyan) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

/* Color swatches in designer */
.color-swatch-option {
    position: relative;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: block;
    transition: all 0.2s ease;
}
.color-swatch-option:hover {
    transform: scale(1.1);
}
.color-swatch-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color) !important;
    transform: scale(1.15);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.4);
}
.color-swatch-option:has(input[type="radio"]:checked) .swatch-check {
    opacity: 1 !important;
}

/* Size swatches in designer */
.size-swatch-option {
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 44px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-accent);
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    user-select: none;
}
.size-swatch-option:hover {
    border-color: var(--primary-color) !important;
}
.size-swatch-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color) !important;
    background: var(--primary-light) !important;
    color: var(--primary-color) !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

/* Bounding box, handles and rulers for interactive designer */
.design-sticker-overlay {
    border: 2.5px solid #00d2ff !important; /* Cyan bounding box border */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.resize-handle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffffff !important;
    border: 2px solid #00d2ff !important;
    border-radius: 50% !important;
    z-index: 100;
}
.resize-handle.top-left { top: -6px; left: -6px; cursor: nwse-resize; }
.resize-handle.top-right { top: -6px; right: -6px; cursor: nesw-resize; }
.resize-handle.bottom-left { bottom: -6px; left: -6px; cursor: nesw-resize; }
.resize-handle.bottom-right { bottom: -6px; right: -6px; cursor: nwse-resize; }

.rotate-handle {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #ffffff !important;
    border: 1.5px solid #00d2ff !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.rotate-handle:active {
    cursor: grabbing;
}
.rotate-handle svg {
    width: 11px;
    height: 11px;
    color: #0d0d0d !important;
}

/* Green rulers styled exactly as the provided image */
.sticker-ruler {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4caf50 !important; /* Green color */
    font-size: 10px;
    font-weight: 700;
    pointer-events: none;
}
.sticker-ruler.horizontal {
    bottom: -22px;
    left: 0;
    right: 0;
    height: 8px;
    border-left: 1.5px solid #4caf50;
    border-right: 1.5px solid #4caf50;
    border-bottom: 1.5px solid #4caf50;
}
.sticker-ruler.vertical {
    left: -22px;
    top: 0;
    bottom: 0;
    width: 8px;
    border-top: 1.5px solid #4caf50;
    border-bottom: 1.5px solid #4caf50;
    border-left: 1.5px solid #4caf50;
    display: flex;
    flex-direction: column;
}
.ruler-text {
    background: var(--bg-main, #121212) !important;
    padding: 0 4px;
    font-size: 9px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.sticker-ruler.horizontal .ruler-text {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}
.sticker-ruler.vertical .ruler-text {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

/* Luxurious Order Tracking by Phone Styles */
.track-orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
    max-height: 420px;
    overflow-y: auto;
    padding: 6px;
    direction: rtl;
}

.track-orders-list::-webkit-scrollbar {
    width: 6px;
}
.track-orders-list::-webkit-scrollbar-track {
    background: transparent;
}
.track-orders-list::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.15);
    border-radius: 10px;
}
.track-orders-list::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.35);
}

.track-order-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid rgba(139, 92, 246, 0.08);
    border-radius: 18px;
    padding: 18px 20px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: right;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Glassmorphism support in dark theme */
body.dark-theme .track-order-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Left/Right status indicator bar */
.track-order-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    transition: width 0.3s ease;
}

.track-order-card.status-pending::before { background: #eab308; }
.track-order-card.status-processing::before { background: #a855f7; }
.track-order-card.status-preparing::before { background: #3b82f6; }
.track-order-card.status-delivering::before { background: #06b6d4; }
.track-order-card.status-approved::before { background: #22c55e; }
.track-order-card.status-cancelled::before { background: #ef4444; }

.track-order-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 12px 24px rgba(139, 92, 246, 0.08);
}

body.dark-theme .track-order-card:hover {
    background: rgba(30, 41, 59, 0.65);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 15px rgba(139, 92, 246, 0.1);
}

.track-order-card:hover::before {
    width: 8px; /* Grow indicator bar on hover */
}

.track-order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(139, 92, 246, 0.08);
    padding-bottom: 10px;
}

.track-order-id-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.track-order-id {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main, #0f172a);
    letter-spacing: 0.5px;
}

.track-order-id-icon {
    font-size: 16px;
    color: var(--primary-color);
}

.track-order-date {
    font-size: 12px;
    color: var(--text-muted, #64748b);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.track-order-card-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-order-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.track-order-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main, #1e293b);
    display: flex;
    align-items: center;
    gap: 6px;
}

body.dark-theme .track-order-name {
    color: var(--text-light, #e2e8f0);
}

.track-order-total-wrapper {
    font-size: 12px;
    color: var(--text-muted, #64748b);
    font-weight: 600;
}

.track-order-total {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary-color, #2563eb);
    margin-inline-start: 4px;
}

.track-order-status-badge {
    padding: 7px 14px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 800;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Badge variants with beautiful HSL colors */
.track-order-status-badge.pending {
    background: rgba(234, 179, 8, 0.08);
    color: #ca8a04;
    border: 1px solid rgba(234, 179, 8, 0.15);
}
.track-order-status-badge.processing {
    background: rgba(168, 85, 247, 0.08);
    color: #9333ea;
    border: 1px solid rgba(168, 85, 247, 0.15);
}
.track-order-status-badge.preparing {
    background: rgba(59, 130, 246, 0.08);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.15);
}
.track-order-status-badge.delivering {
    background: rgba(6, 182, 212, 0.08);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.15);
}
.track-order-status-badge.approved {
    background: rgba(34, 197, 94, 0.08);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.15);
}
.track-order-status-badge.cancelled {
    background: rgba(239, 68, 68, 0.08);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Back button design */
.track-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-accent, #f1f5f9);
    border: 1px solid rgba(139, 92, 246, 0.1);
    color: var(--text-main, #334155);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    margin-bottom: 18px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

body.dark-theme .track-back-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light, #f8fafc);
}

.track-back-btn:hover {
    background: var(--primary-color);
    color: #fff !important;
    border-color: var(--primary-color);
    transform: translateX(-3px);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hide scrollbar for categories slider by default (mobile/touch) */
.categories-nav::-webkit-scrollbar {
    display: none;
}

/* Show a sleek, thin custom scrollbar on desktop viewports */
@media (min-width: 481px) {
    .categories-nav::-webkit-scrollbar {
        display: block;
        height: 4px;
    }
    .categories-nav::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.02);
        border-radius: 10px;
    }
    .categories-nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.12);
        border-radius: 10px;
        transition: background 0.2s;
    }
    .categories-nav::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.25);
    }
    
    body.light-theme .categories-nav::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.02);
    }
    body.light-theme .categories-nav::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.12);
    }
    body.light-theme .categories-nav::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.25);
    }
}

/* ==========================================================================
   Print-on-Demand (POD) Custom Order Modal & Interactive Studio
   ========================================================================== */

/* DTF Feature Highlight Card */
.dtf-feature-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(99, 102, 241, 0.05));
    border: 1.5px solid rgba(37, 99, 235, 0.22);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.dtf-feature-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(99, 102, 241, 0.08));
}

.dtf-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.dtf-feature-content {
    flex: 1;
    min-width: 0;
}

.dtf-feature-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dtf-feature-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-main);
}

.dtf-badge {
    font-size: 10.5px;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.dtf-feature-desc {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
    line-height: 1.4;
}

/* Single Product Card in Customizer */
.custom-single-product-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.05));
    border: 1.5px solid rgba(37, 99, 235, 0.3);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.custom-single-product-card:hover {
    border-color: rgba(37, 99, 235, 0.5);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(139, 92, 246, 0.08));
}

.csp-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.csp-content {
    flex: 1;
    min-width: 0;
}

.csp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.csp-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
}

.csp-price {
    font-size: 12px;
    font-weight: 900;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.csp-desc {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
    line-height: 1.35;
}

/* Custom Modal Header */
.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.custom-modal-title-area {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.custom-modal-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.custom-modal-subtitle {
    font-size: 11.5px;
    color: var(--text-muted);
    margin: 0;
}

/* Desktop & Tablet Modal Layout (>= 920px) */
@media (min-width: 920px) {
    .custom-box {
        width: 92% !important;
        max-width: 960px !important;
        height: 86vh !important;
        max-height: 780px !important;
        min-height: 540px !important;
        border-radius: 20px !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        margin: auto !important;
        box-sizing: border-box !important;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45) !important;
    }
    
    .custom-designer-layout {
        display: grid !important;
        grid-template-columns: 1fr 1.08fr !important;
        gap: 20px !important;
        flex: 1 !important;
        min-height: 0 !important;
        padding: 16px 20px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .designer-preview-column {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: var(--bg-accent) !important;
        border-radius: 16px !important;
        padding: 14px !important;
        border: 1px solid var(--border-color) !important;
        position: relative !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    #custom-order-form {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        min-height: 0 !important;
    }
    
    .custom-form-scrollable-body {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding-inline-end: 8px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        min-height: 0 !important;
    }
    
    .custom-pricing-footer {
        flex-shrink: 0 !important;
        margin-top: 10px !important;
        padding: 12px 16px !important;
        background: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 12px !important;
        box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.06) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        z-index: 10 !important;
    }
}

/* Mobile & Small Screen (< 920px) */
@media (max-width: 919px) {
    .custom-modal-overlay {
        padding: 0 !important;
    }
    
    .custom-box {
        width: 100vw !important;
        max-width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        border: none !important;
        box-sizing: border-box !important;
    }
    
    .custom-modal-header {
        padding: 12px 16px !important;
        margin-bottom: 0 !important;
        background: var(--bg-card) !important;
        border-bottom: 1px solid var(--border-color) !important;
        flex-shrink: 0 !important;
    }
    
    .custom-modal-title {
        font-size: 15px !important;
    }
    
    .custom-modal-subtitle {
        font-size: 11px !important;
    }
    
    .custom-designer-layout {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 !important;
        overflow-y: auto !important;
        padding: 12px 14px 90px 14px !important;
        gap: 14px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .designer-preview-column {
        flex-shrink: 0 !important;
        background: var(--bg-accent) !important;
        border-radius: 14px !important;
        padding: 10px !important;
        border: 1px solid var(--border-color) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
    }
    
    .canvases-display-wrapper.view-mode-front .mockup-canvas,
    .canvases-display-wrapper.view-mode-back .mockup-canvas {
        width: 195px !important;
        height: 235px !important;
    }
    
    .custom-form-scrollable-body {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        overflow: visible !important;
    }
    
    .custom-pricing-footer {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10px 16px max(12px, env(safe-area-inset-bottom)) 16px !important;
        background: var(--bg-card) !important;
        border-top: 1px solid var(--border-color) !important;
        border-radius: 0 !important;
        z-index: 9999 !important;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.15) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }
    
    body.dark-theme .custom-pricing-footer {
        background: #0f172a !important;
        border-top-color: rgba(255, 255, 255, 0.1) !important;
    }
}

/* Canvas View Switcher (Segmented Control) */
.canvas-view-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 3px;
    border-radius: 10px;
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.view-switch-btn {
    flex: 1;
    padding: 6px 6px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.view-switch-btn:hover {
    color: var(--text-main);
}

.view-switch-btn.active {
    background: var(--bg-card);
    color: var(--primary-color);
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Canvases Wrapper */
.canvases-display-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    position: relative;
    margin: 6px 0;
}

.canvas-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.25s ease;
}

/* View Mode Toggles */
.canvases-display-wrapper.view-mode-front #canvas-card-front {
    display: flex;
}
.canvases-display-wrapper.view-mode-front #canvas-card-back {
    display: none !important;
}
.canvases-display-wrapper.view-mode-front .mockup-canvas {
    width: 240px;
    height: 300px;
}

.canvases-display-wrapper.view-mode-back #canvas-card-front {
    display: none !important;
}
.canvases-display-wrapper.view-mode-back #canvas-card-back {
    display: flex;
}
.canvases-display-wrapper.view-mode-back .mockup-canvas {
    width: 240px;
    height: 300px;
}

/* Mockup Canvas */
.mockup-canvas {
    position: relative;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: width 0.3s ease, height 0.3s ease;
}

.mockup-apparel-img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    pointer-events: none;
    transition: filter 0.3s ease;
}

/* Mockup Editor Tool Controls (Clean floating bar) */
.mockup-editor-controls {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
    margin-top: 6px;
}

.mockup-editor-controls button {
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 3px;
}

.mockup-editor-controls button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.ctrl-btn-danger:hover {
    border-color: var(--error) !important;
    color: var(--error) !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

/* Product & DTF Banner */
.custom-apparel-badge-card {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.05));
    border: 1.5px solid rgba(37, 99, 235, 0.25);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}

.csp-badge-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-apparel-badge-card .csp-icon {
    font-size: 20px;
    width: 34px;
    height: 34px;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.custom-apparel-badge-card .csp-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.custom-apparel-badge-card .csp-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--text-main);
}

.custom-apparel-badge-card .csp-desc {
    font-size: 10px;
    color: var(--text-muted);
}

.custom-apparel-badge-card .csp-price {
    font-size: 12px;
    font-weight: 900;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Form Groups & Step Flow */
.custom-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.custom-field-group .form-label {
    font-weight: 800;
    font-size: 12px;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    margin-inline-end: 6px;
    line-height: 1;
    flex-shrink: 0;
}

.field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.active-color-badge {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 2px 10px;
    border-radius: 6px;
}

.custom-segmented-row {
    display: flex;
    gap: 6px;
}

.custom-segmented-row .custom-radio-option {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-accent);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.custom-segmented-row .custom-radio-option:hover {
    border-color: var(--primary-color);
}

.custom-segmented-row .custom-radio-option:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: 800;
}

/* Color Swatches Wrap */
.custom-swatches-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 2px 0;
}

.custom-swatches-wrap .color-swatch-option {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Guaranteed Single-Row Horizontal Sizes */
.custom-sizes-wrap {
    display: flex !important;
    gap: 6px !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.custom-sizes-wrap .size-swatch-option {
    flex: 1 !important;
    min-width: 0 !important;
    width: auto !important;
    height: 38px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 800 !important;
}

/* Design Source Sub-Tabs */
.design-source-tabs {
    display: flex;
    gap: 6px;
    background: var(--bg-accent);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.design-tab-btn {
    flex: 1;
    padding: 7px 4px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.design-tab-btn:hover {
    color: var(--text-main);
}

.design-tab-btn.active {
    background: var(--bg-card);
    color: var(--primary-color);
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.design-tab-panel {
    display: none;
}

.design-tab-panel.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

/* Sticker Shelf */
.sticker-library-shelf {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px;
    border-radius: 10px;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.library-sticker-item {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 20px;
}

.library-sticker-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.08);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.library-sticker-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Upload Dropzone */
.upload-dropzone {
    border: 1.5px dashed var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: right;
}

.upload-dropzone:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.04);
}

.upload-dropzone .upload-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.upload-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upload-title {
    font-size: 11.5px;
    font-weight: 800;
    color: var(--text-main);
}

.upload-subtitle {
    font-size: 10px;
    color: var(--text-muted);
}

/* Custom Text Input */
.custom-text-input-row {
    display: flex;
    gap: 8px;
}

.custom-text-input-row input {
    flex: 1;
    font-size: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-accent);
    color: var(--text-main);
    outline: none;
}

.apply-text-btn {
    padding: 0 16px;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 10px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.apply-text-btn:hover {
    background: var(--primary-hover);
}

#custom-text-style-options {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    background: var(--bg-accent);
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.text-opt-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.text-opt-field label {
    font-size: 9px;
    color: var(--text-muted);
}

.text-opt-field select {
    font-size: 10px;
    padding: 4px 6px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-main);
    height: 28px;
}

/* Sleek Scrollbar */
.custom-form-scrollable-body::-webkit-scrollbar {
    width: 5px;
}
.custom-form-scrollable-body::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 5px;
}
.custom-form-scrollable-body::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Pricing Footer Elements */
.custom-pricing-info {
    display: flex;
    flex-direction: column;
}

.custom-pricing-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.custom-pricing-amount {
    font-size: 16px;
    font-weight: 900;
    color: var(--primary-color);
}

.custom-submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    font-weight: 800;
    height: 40px;
    border-radius: 10px;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.custom-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   Full-Width Responsive Architecture (True Desktop & iPad Support)
   ========================================================================== */
.hide-mobile {
    display: none !important;
}

html {
    background-color: var(--bg-main);
    min-height: 100vh;
    width: 100%;
}

body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative;
    min-height: 100vh;
    background-color: var(--bg-main);
    border: none !important;
    box-shadow: none !important;
}

/* Sliding Cart & Checkout Drawer Panels (docked to viewport edge) */
.drawer-panel {
    max-width: 440px !important;
    width: 100% !important;
}

/* Modals on Desktop & Tablet */
.modal-box, .policy-box, .tracking-box, .success-box {
    max-width: 520px !important;
    width: 90% !important;
    margin: auto !important;
}



/* ==========================================================================
   Responsive Adaptive Header & Navigation (Mobile vs Desktop/iPad)
   ========================================================================== */
@media (max-width: 767px) {
    .site-header {
        padding: 8px 0 10px 0 !important;
        width: 100% !important;
    }
    .header-inner {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 0 12px !important;
    }
    .header-top-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }
    .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    .header-left .logo-container {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    .header-left .logo-container svg,
    .header-left .logo-container img {
        width: 22px !important;
        height: 22px !important;
        object-fit: contain !important;
    }
    .header-left .brand-info {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        min-width: 0 !important;
    }
    .header-left .brand-name {
        font-size: 16px !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        letter-spacing: -0.3px !important;
    }
    .header-left .verified-badge svg {
        width: 14px !important;
        height: 14px !important;
    }
    .header-right {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
    }
    /* Hide redundant track order button on mobile top bar (already prominent in bottom bar) */
    .header-right .track-order-btn {
        display: none !important;
    }
    .header-right .lang-btn-en {
        height: 34px !important;
        min-width: 44px !important;
        padding: 0 10px !important;
        border-radius: 17px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        background: var(--bg-accent) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-main) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .header-right .theme-toggle-btn {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        background: var(--bg-accent) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-main) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .header-right .cart-trigger {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-hover)) !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
        position: relative !important;
        overflow: visible !important;
    }
    .header-right .cart-trigger svg {
        stroke: #ffffff !important;
        width: 18px !important;
        height: 18px !important;
    }
    .header-right .cart-count-badge {
        position: absolute !important;
        top: -6px !important;
        inset-inline-end: -6px !important;
        min-width: 20px !important;
        height: 20px !important;
        border-radius: 10px !important;
        background: #ef4444 !important;
        color: #ffffff !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 4px !important;
        border: 2px solid var(--bg-main) !important;
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.8) !important;
        z-index: 100 !important;
    }
    .header-bottom-row {
        display: block !important;
        width: 100% !important;
    }
    .header-bottom-row .search-wrapper {
        position: relative !important;
        width: 100% !important;
    }
    .header-bottom-row .search-input {
        width: 100% !important;
        height: 42px !important;
        border-radius: 21px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-inline-start: 46px !important;
        padding-inline-end: 18px !important;
        font-size: 13px !important;
        background: var(--bg-accent) !important;
        border: 1px solid var(--border-color) !important;
        color: var(--text-main) !important;
        transition: all 0.25s ease !important;
    }
    body.dark-theme .header-bottom-row .search-input {
        background: rgba(22, 30, 60, 0.6) !important;
        border-color: rgba(0, 240, 255, 0.2) !important;
    }
    .header-bottom-row .search-input:focus {
        border-color: var(--primary-color) !important;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2) !important;
    }
    .header-bottom-row .search-icon {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        inset-inline-start: 16px !important;
        color: var(--text-muted) !important;
        pointer-events: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .header-bottom-row .search-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    .desktop-nav,
    .desktop-search-wrapper {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .site-header {
        padding: 14px 0 !important;
        width: 100% !important;
    }
    .header-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 1240px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
    }
    .header-top-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 16px !important;
        flex-wrap: nowrap !important;
    }
    .header-left {
        flex-shrink: 0 !important;
    }
    .header-right {
        flex-shrink: 0 !important;
    }
    .header-bottom-row {
        display: none !important;
    }
    .desktop-nav {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        flex-shrink: 0 !important;
    }
    .desktop-search-wrapper {
        display: flex !important;
        align-items: center !important;
        position: relative !important;
        flex: 1 1 240px !important;
        max-width: 280px !important;
        min-width: 150px !important;
    }
}

/* Premium Floating Glassmorphism Bottom Navigation Bar */
body {
    padding-bottom: 96px !important; /* Prevent floating nav from overlapping content */
}

.mobile-bottom-bar {
    position: fixed !important;
    bottom: 16px !important;
    left: 12px !important;
    right: 12px !important;
    height: 68px !important;
    padding: 0 10px !important;
    background: rgba(15, 23, 42, 0.75) !important; /* Premium dark slate glass */
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4) !important;
    z-index: 9999 !important;
    transition: background 0.3s, border 0.3s, box-shadow 0.3s !important;
}

@media (min-width: 481px) and (max-width: 767px) {
    .mobile-bottom-bar {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: calc(480px - 24px) !important;
    }
}

/* Completely hide floating bottom bar on iPad and Desktop (>= 768px) */
@media (min-width: 768px) {
    .mobile-bottom-bar {
        display: none !important;
    }
}

body.light-theme .mobile-bottom-bar {
    background: rgba(255, 255, 255, 0.8) !important; /* Light mode glass */
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Individual Bottom Bar Buttons */
.bottom-bar-btn {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    color: rgba(255, 255, 255, 0.45) !important;
    font-size: 10px !important;
    font-family: 'Cairo', 'Readex Pro', sans-serif !important;
    font-weight: 700 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    position: relative !important;
    padding: 6px 0 !important;
}

body.light-theme .bottom-bar-btn {
    color: rgba(15, 23, 42, 0.5) !important;
}

/* Icons styling inside buttons */
.bottom-bar-btn svg {
    width: 22px !important;
    height: 22px !important;
    stroke-width: 1.8px !important;
    color: inherit !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover & Focus Interactions */
.bottom-bar-btn:hover {
    color: #ffffff !important;
}
.bottom-bar-btn:hover svg {
    transform: translateY(-3px) scale(1.06) !important;
}

body.light-theme .bottom-bar-btn:hover {
    color: var(--primary-color, #2563eb) !important;
}

.bottom-bar-btn:active svg {
    transform: scale(0.92) !important;
}

/* Symmetrical Cart Tab Button */
.bottom-bar-btn.mobile-cart-btn {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.45) !important;
    height: 100% !important;
    max-width: none !important;
    border-radius: 0 !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: none !important;
    flex: 1 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
}

body.light-theme .bottom-bar-btn.mobile-cart-btn {
    color: rgba(15, 23, 42, 0.5) !important;
}

.bottom-bar-btn.mobile-cart-btn:hover {
    color: #ffffff !important;
}
body.light-theme .bottom-bar-btn.mobile-cart-btn:hover {
    color: var(--primary-color, #2563eb) !important;
}

.bottom-bar-btn.mobile-cart-btn svg {
    width: 22px !important;
    height: 22px !important;
    stroke: currentColor !important;
    color: currentColor !important;
}

/* Premium Floating Badge over Cart icon */
.bottom-bar-btn.mobile-cart-btn .mobile-cart-badge,
.bottom-bar-btn.mobile-cart-btn .cart-count-badge {
    position: absolute !important;
    top: 4px !important;
    right: calc(50% - 18px) !important;
    background: #ef4444 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    min-width: 19px !important;
    height: 19px !important;
    line-height: 1 !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.6) !important;
    padding: 0 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid rgba(15, 23, 42, 0.95) !important;
    z-index: 100 !important;
}

body:not(.dark-theme) .bottom-bar-btn.mobile-cart-btn .mobile-cart-badge,
body:not(.dark-theme) .bottom-bar-btn.mobile-cart-btn .cart-count-badge {
    border: 2px solid #ffffff !important;
}

/* Ensure overlays, drawers, and modal dialogs render on top of the floating bottom navigation bar */
.drawer-overlay {
    z-index: 10000 !important;
}
.drawer-panel {
    z-index: 10001 !important;
}
.modal-overlay,
.custom-modal-overlay,
.tracking-modal-overlay,
.success-modal-overlay {
    z-index: 10005 !important;
}

/* Floating Gift Button */
.floating-gift-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    background: linear-gradient(135deg, var(--accent, #8b5cf6), var(--primary-color, #2563eb));
    color: #fff;
    padding: 12px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 13px;
    font-weight: 700;
    direction: rtl;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-gift-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.6);
}

.floating-gift-btn .gift-icon {
    font-size: 18px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Wheel Modal Overlay */
.wheel-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.3s ease;
}

.wheel-modal-overlay.active {
    display: flex;
}

.wheel-modal-content {
    background: var(--card-bg, #0f172a);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 24px;
    width: 380px;
    max-width: 100%;
    padding: 24px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    direction: rtl;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.wheel-close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted, #94a3b8);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.wheel-close-btn:hover {
    color: var(--text-main, #f8fafc);
}

.wheel-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main, #f8fafc);
    margin-bottom: 6px;
}

.wheel-header p {
    font-size: 11.5px;
    color: var(--text-muted, #94a3b8);
    line-height: 1.5;
    margin-bottom: 20px;
}

.wheel-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 20px auto;
}

.wheel-pointer {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: var(--accent, #8b5cf6);
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

#wheel-canvas {
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.02);
}

.wheel-form-container .form-input {
    text-align: center;
    font-size: 13px;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.wheel-result-container {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.result-emoji {
    font-size: 40px;
    margin-bottom: 10px;
}

#wheel-result-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--success, #10b981);
    margin-bottom: 6px;
}

#wheel-result-desc {
    font-size: 12px;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 14px;
}

.won-coupon-code {
    background: rgba(139, 92, 246, 0.1);
    border: 2px dashed var(--accent, #8b5cf6);
    color: var(--accent, #8b5cf6);
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
}

@media (max-width: 480px) {
    .floating-gift-btn .gift-text {
        display: none;
    }
    .floating-gift-btn {
        padding: 12px;
        border-radius: 50%;
        bottom: 16px;
        left: 16px;
    }
}

/* Cart Drawer Upsell Section */
.cart-upsell-section {
    padding: 16px 0;
    border-top: 1px dashed var(--border-color, rgba(255,255,255,0.08));
    margin-top: 16px;
}

.upsell-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    padding: 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.upsell-item:hover {
    border-color: var(--accent, #8b5cf6);
    background: rgba(255, 255, 255, 0.04);
}

.upsell-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
}

.upsell-info {
    flex: 1;
    text-align: start;
}

.upsell-title {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main, #f8fafc);
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.upsell-price {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent, #8b5cf6);
}

.upsell-price .old-price {
    text-decoration: line-through;
    color: var(--text-light, #cbd5e1);
    font-size: 10px;
    margin-inline-end: 6px;
}

.upsell-btn {
    background: var(--primary-color, #2563eb);
    border: none;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.upsell-btn:hover {
    background: var(--accent, #8b5cf6);
}

/* ==========================================================================
   Desktop & iPad Navigation & Search Bar
   ========================================================================== */
.desktop-nav {
    display: none;
}

.desktop-nav-link {
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    white-space: nowrap;
}

.desktop-nav-link:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.desktop-nav-link.active {
    color: #ffffff !important;
    background: #2563eb !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

.desktop-nav-link.admin-link {
    color: #7c3aed;
    border: 1px dashed rgba(124, 58, 237, 0.35);
    background: #faf5ff;
}

.desktop-nav-link.admin-link:hover {
    background: #f3e8ff;
    border-color: #7c3aed;
    color: #6d28d9;
}

/* Dark Theme Desktop Nav */
body.dark-theme .desktop-nav-link {
    color: var(--text-muted);
}

body.dark-theme .desktop-nav-link:hover {
    color: #ffffff;
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

body.dark-theme .desktop-nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.5), rgba(0, 240, 255, 0.4)) !important;
    border-color: rgba(0, 240, 255, 0.4) !important;
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.25) !important;
}

body.dark-theme .desktop-nav-link.admin-link {
    color: var(--neon-purple);
    border: 1px dashed rgba(168, 85, 247, 0.4);
    background: rgba(168, 85, 247, 0.08);
}

body.dark-theme .desktop-nav-link.admin-link:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--neon-purple);
    color: #ffffff;
}

/* Desktop Search Wrapper */
.desktop-search-wrapper {
    display: none;
    align-items: center;
    position: relative;
    width: 260px;
}

.desktop-search-wrapper .search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
    display: flex;
    align-items: center;
}

[dir="ltr"] .desktop-search-wrapper .search-icon {
    right: auto;
    left: 12px;
}

body.dark-theme .desktop-search-wrapper .search-icon {
    color: var(--text-muted);
}

.desktop-search-wrapper .desktop-search-input {
    width: 100%;
    height: 38px;
    padding: 8px 36px 8px 65px;
    border-radius: 20px;
    font-size: 12.5px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    transition: all 0.25s ease;
}

[dir="ltr"] .desktop-search-wrapper .desktop-search-input {
    padding: 8px 65px 8px 36px;
}

.desktop-search-wrapper .desktop-search-input::placeholder {
    color: #94a3b8;
}

.desktop-search-wrapper .desktop-search-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    background: #ffffff;
    color: #0f172a;
}

body.dark-theme .desktop-search-wrapper .desktop-search-input {
    background: rgba(13, 18, 38, 0.8);
    border-color: rgba(0, 240, 255, 0.16);
    color: #f8fafc;
}

body.dark-theme .desktop-search-wrapper .desktop-search-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

body.dark-theme .desktop-search-wrapper .desktop-search-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.25);
    background: rgba(13, 18, 38, 0.95);
    color: #ffffff;
}

.search-shortcut-badge {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-family: monospace;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    background: #e2e8f0;
    color: #475569;
    border: 1px solid #cbd5e1;
    pointer-events: none;
}

[dir="ltr"] .search-shortcut-badge {
    left: auto;
    right: 10px;
}

body.dark-theme .search-shortcut-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Desktop & iPad Hero 2-Column Split Showcase
   ========================================================================== */
@media (min-width: 992px) {
    .cyber-hero-inner {
        display: grid !important;
        grid-template-columns: 1.15fr 0.85fr !important;
        gap: 48px !important;
        align-items: center !important;
        padding-top: 48px !important;
        padding-bottom: 48px !important;
        text-align: start !important;
    }
    .cyber-hero-badge {
        margin: 0 0 16px 0 !important;
    }
    .cyber-hero-actions {
        margin: 0 0 24px 0 !important;
        max-width: 440px !important;
    }
    .cyber-hero-trust-bar {
        margin: 0 !important;
        max-width: 540px !important;
    }
    .cyber-hero-showcase {
        display: block !important;
    }
}

@media (max-width: 991px) {
    .cyber-hero-showcase {
        display: none !important;
    }
}

.cyber-hero-showcase {
    position: relative;
}

.showcase-glow-backdrop {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(139, 92, 246, 0.1) 50%, transparent 70%);
    filter: blur(30px);
    z-index: 1;
    pointer-events: none;
    animation: neonGlowPulse 4s infinite alternate;
    opacity: 0.35;
}

body.dark-theme .showcase-glow-backdrop {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.22) 0%, rgba(139, 92, 246, 0.16) 50%, transparent 70%);
    opacity: 1;
}

.showcase-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    padding: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(37, 99, 235, 0.06);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.showcase-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: #2563eb;
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
}

body.dark-theme .showcase-card {
    background: rgba(13, 18, 38, 0.82);
    border: 1px solid rgba(0, 240, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 240, 255, 0.15);
}

body.dark-theme .showcase-card:hover {
    border-color: rgba(0, 240, 255, 0.5);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 240, 255, 0.3);
}

.showcase-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.badge-featured {
    font-size: 10.5px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}

.badge-stock {
    font-size: 11px;
    font-weight: 700;
    color: #10b981;
}

.showcase-image-wrap {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.08) 0%, rgba(241, 245, 249, 0.95) 80%);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
}

body.dark-theme .showcase-image-wrap {
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.25) 0%, rgba(5, 8, 20, 0.6) 80%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.15));
}

body.dark-theme .showcase-img {
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
}

.showcase-card:hover .showcase-img {
    transform: scale(1.08) rotate(-2deg);
}

.floating-tag {
    position: absolute;
    font-size: 10.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

body.dark-theme .floating-tag {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tag-top-right {
    top: 14px;
    right: 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #2563eb;
}

body.dark-theme .tag-top-right {
    background: rgba(13, 18, 38, 0.85);
    border: 1px solid rgba(0, 240, 255, 0.35);
    color: var(--neon-cyan);
}

.tag-bottom-left {
    bottom: 14px;
    left: 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #7c3aed;
}

body.dark-theme .tag-bottom-left {
    background: rgba(13, 18, 38, 0.85);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: var(--neon-purple);
}

.showcase-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

body.dark-theme .showcase-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-cat {
    font-size: 10px;
    font-weight: 700;
    color: #2563eb;
    text-transform: uppercase;
}

body.dark-theme .showcase-cat {
    color: var(--neon-cyan);
}

.showcase-name {
    font-size: 15px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2px;
}

body.dark-theme .showcase-name {
    color: #ffffff;
}

.showcase-price-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.showcase-price {
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
}

body.dark-theme .showcase-price {
    color: #ffffff;
}

.cyber-btn-mini {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cyber-btn-mini:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

body.dark-theme .cyber-btn-mini {
    background: linear-gradient(135deg, #00f0ff, #2563eb);
    color: #050814;
}

body.dark-theme .cyber-btn-mini:hover {
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

/* ==========================================================================
   Rich Adaptive Footer (Theme-Aware: Light & Dark Modes)
   ========================================================================== */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px 0;
    color: var(--text-muted);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

body.dark-theme .site-footer {
    background: rgba(9, 13, 28, 0.96);
    border-top: 1px solid rgba(0, 240, 255, 0.16);
    color: #94a3b8;
}

@media (max-width: 767px) {
    .site-footer {
        padding: 40px 0 110px 0; /* padding for mobile bottom bar */
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
        gap: 40px;
    }
}

.footer-brand-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    transition: color 0.3s ease;
}

body.dark-theme .footer-brand-title {
    color: #ffffff;
}

.footer-col-brand .footer-desc {
    font-size: 12.5px;
    line-height: 1.6;
    margin: 12px 0 18px 0;
    color: var(--text-muted);
    max-width: 320px;
}

.footer-col-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

[dir="ltr"] .footer-col-title::after {
    right: auto;
    left: 0;
}

body.dark-theme .footer-col-title {
    color: #ffffff;
}

body.dark-theme .footer-col-title::after {
    background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-list li a,
.footer-nav-list li span {
    font-size: 12.5px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.footer-nav-list li a:hover,
.footer-nav-list li span:hover {
    color: var(--primary-color);
    padding-inline-start: 4px;
}

body.dark-theme .footer-nav-list li a:hover,
body.dark-theme .footer-nav-list li span:hover {
    color: var(--neon-cyan);
}

.footer-badge-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-badge-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.footer-badge-item strong {
    color: var(--text-main);
    font-size: 12px;
}

body.dark-theme .footer-badge-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #f8fafc;
}

body.dark-theme .footer-badge-item strong {
    color: #ffffff;
}

.badge-icon {
    font-size: 18px;
}

.footer-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    transition: border-color 0.3s ease;
}

body.dark-theme .footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-dev-credit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

body.dark-theme .footer-dev-credit {
    color: #94a3b8;
}

.footer-dev-credit strong {
    font-weight: 800;
}

@media (max-width: 767px) {
    .footer-bottom-bar {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }
}

/* ==========================================================================
   Mobile Checkout Drawer & iOS Safari Auto-Zoom Prevention
   ========================================================================== */
@media screen and (max-width: 768px) {
    /* 1. Eliminate iOS Safari auto-zoom by enforcing 16px minimum font size on all form controls */
    input,
    select,
    textarea,
    .form-input,
    .search-input,
    .desktop-search-input,
    .coupon-input,
    #chk-name,
    #chk-phone,
    #chk-city,
    #chk-address,
    #chk-payment,
    #chk-transaction-id,
    #chk-coupon,
    #chk-voucher,
    #chk-notes {
        font-size: 16px !important;
        touch-action: manipulation;
    }

    /* 2. Full-width edge-to-edge mobile checkout drawer layout */
    .drawer-panel,
    .checkout-drawer,
    .cart-drawer {
        width: 100% !important;
        max-width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        overflow-x: hidden !important;
    }

    [dir="rtl"] .drawer-panel {
        left: -100vw;
        right: auto;
    }

    .drawer-overlay.active + .drawer-panel,
    .drawer-panel.active,
    [dir="rtl"] .drawer-overlay.active + .drawer-panel,
    [dir="rtl"] .drawer-panel.active {
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    /* 3. Smooth scrolling and safe clearance for virtual keyboard & home bar */
    .drawer-content {
        padding: 16px 14px 70px 14px !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
        overflow-x: hidden !important;
    }

    .drawer-header {
        padding: 14px 16px !important;
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--bg-card);
    }

    .drawer-title {
        font-size: 16px !important;
        white-space: nowrap;
    }

    .checkout-form {
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .form-group {
        width: 100% !important;
        max-width: 100% !important;
    }

    .form-label {
        font-size: 13.5px !important;
        line-height: 1.4;
    }

    .form-input {
        padding: 11px 14px !important;
        border-radius: 12px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    select.form-input {
        padding-left: 36px !important;
        padding-right: 14px !important;
        background-position: left 12px center !important;
    }

    [dir="rtl"] select.form-input {
        padding-left: 36px !important;
        padding-right: 14px !important;
        background-position: left 12px center !important;
    }

    .checkout-shipping-info {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }

    /* 4. Bottom footer safe area for iPhones */
    .drawer-footer {
        padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)) 16px !important;
        position: sticky;
        bottom: 0;
        z-index: 10;
    }

    .checkout-btn {
        height: 48px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        border-radius: 12px !important;
    }

    /* 5. Mobile Hero Actions & Trust Bar Side-by-Side (شي بصف شي) */
    .cyber-hero-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 20px !important;
    }

    .cyber-hero-actions .cyber-btn {
        width: 100% !important;
        height: 44px !important;
        padding: 0 8px !important;
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .cyber-hero-trust-bar {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 4px !important;
        padding: 10px 4px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .trust-badge-item {
        padding: 4px 2px !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .trust-icon {
        font-size: 18px !important;
        margin-bottom: 2px !important;
    }

    .trust-title {
        font-size: 11px !important;
    }

    .trust-sub {
        font-size: 9px !important;
    }
}



