/* ============================================
   SOFT UI FASHION STORE - FRESH DESIGN
   Complete main.css
   ============================================ */

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

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --accent-light: #f472b6;
    --green: #10b981;
    --orange: #f59e0b;
    --text: #0f172a;
    --text-md: #334155;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --bg-warm: #faf5ff;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
    --shadow-primary: 0 4px 16px rgba(99,102,241,0.2);
    --shadow-accent: 0 4px 16px rgba(236,72,153,0.2);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--secondary); }
img { max-width: 100%; height: auto; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.sec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

.sec-head-right {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sec-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sec-label::before {
    content: '';
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.sec-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.sec-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--primary);
    border-radius: 50px;
    transition: all 0.25s;
    white-space: nowrap;
    flex-shrink: 0;
}

.sec-link:hover {
    background: var(--primary);
    color: white;
}

.sec-link:hover svg { stroke: white; }

/* ============================================
   HEADER TOP
   ============================================ */
.header-top {
    background: linear-gradient(135deg, #312e81, #4338ca);
    padding: 6px 0;
    border-bottom: none;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-social { display: flex; gap: 6px; }

.social-icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    transition: all 0.25s;
    color: rgba(255,255,255,0.7);
}

.social-icon:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
}

.social-icon svg { fill: rgba(255,255,255,0.8); width: 14px; height: 14px; }
.social-icon:hover svg { fill: white; }

.header-info {
    display: flex; gap: 16px;
    font-size: 0.8rem; color: rgba(255,255,255,0.8);
}

.header-info span { display: flex; align-items: center; gap: 0.35rem; }
.header-info svg { width: 14px; height: 14px; flex-shrink: 0; fill: rgba(255,255,255,0.6); }
.header-info .phone-number { direction: ltr; }

/* ============================================
   MAIN HEADER
   ============================================ */
.site-header {
    background: var(--bg);
    box-shadow: 0 1px 0 var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0;
}

.site-branding { display: flex; align-items: center; gap: 10px; }

.site-logo img {
    width: 44px; height: 44px;
    object-fit: cover; border-radius: 10px;
}

.site-title {
    font-size: 1rem; font-weight: 800;
    color: var(--text); margin: 0;
}

.site-title a { color: var(--text); }
.site-title a:hover { color: var(--primary); }

/* Navigation */
.main-navigation ul {
    display: flex; list-style: none;
    gap: 1.15rem; margin-right: 2rem;
}

.main-navigation a {
    color: var(--text-md);
    font-weight: 500; font-size: 0.88rem;
    display: flex; align-items: center; gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    position: relative;
    transition: color 0.2s;
}

.main-navigation a:hover { color: var(--primary); transition: 0.3s; }
.main-navigation a:hover::after { transform: scaleX(1); }
.main-navigation a svg { width: 16px; height: 16px; color: var(--primary); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 0.6rem; }

.header-action-btn {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: all 0.25s;
    position: relative;
    color: var(--text-md);
}

.header-action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99,102,241,0.04);
}

.cart-count {
    position: absolute; top: -4px; left: -4px;
    background: var(--accent); color: white;
    font-size: 0.65rem; font-weight: 700;
    width: 17px; height: 17px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
}

/* ============================================
   SEARCH - REDESIGNED
   ============================================ */
.header-search {
    flex: 1;
    max-width: 340px;
    margin: 0 2rem;
    position: relative;
    z-index: 999;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #eef0ff, #f5f3ff);
    border: 1.5px solid rgba(99,102,241,0.1);
    border-radius: 50px;
    padding: 0.5rem 1.15rem;
    transition: all 0.3s;
}

.search-box:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.06), 0 4px 20px rgba(99,102,241,0.1);
}

.search-icon {
    color: var(--primary);
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.search-box:focus-within .search-icon { opacity: 1; }

.search-input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.85rem;
    font-family: 'Vazirmatn', sans-serif;
    color: var(--text);
}

.search-input::placeholder {
    color: #a5b4c8;
    font-weight: 400;
}

/* Spinner */
.search-spinner { width: 20px; height: 20px; flex-shrink: 0; }

.spinner-ring {
    width: 18px; height: 18px;
    border: 2px solid rgba(99,102,241,0.12);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinRing 0.65s linear infinite;
}

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

/* Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0; right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.02);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1000;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.search-dropdown::-webkit-scrollbar { width: 4px; }
.search-dropdown::-webkit-scrollbar-track { background: transparent; }
.search-dropdown::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* Result Items */
.search-results-list { padding: 0.5rem; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.7rem;
    border-radius: var(--radius);
    transition: background 0.2s;
    text-decoration: none;
    position: relative;
    color: var(--text);
}

.search-result-item:hover { background: var(--bg-light); }
.search-result-item + .search-result-item { border-top: 1px solid var(--border-light); }

.sri-img {
    width: 52px; height: 52px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--bg-light);
}

.sri-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sri-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 0.2rem;
}

.sri-title {
    font-size: 0.85rem; font-weight: 600;
    color: var(--text); line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sri-price {
    font-size: 0.78rem; font-weight: 600;
    color: var(--primary);
    display: flex; align-items: center; gap: 0.4rem;
}

.sri-price del { color: var(--text-muted); font-weight: 400; font-size: 0.7rem; }
.sri-price ins { text-decoration: none; color: var(--primary); font-weight: 700; }

.sri-sale-badge {
    position: absolute;
    top: 0.6rem; left: 0.65rem;
    font-size: 0.58rem; font-weight: 700;
    color: white;
    background: var(--accent);
    padding: 0.12rem 0.35rem;
    border-radius: 5px;
    letter-spacing: 0.2px;
}

/* Empty */
.search-empty {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 2rem 1rem; text-align: center; gap: 0.4rem;
}

.search-empty p { font-size: 0.88rem; font-weight: 600; color: var(--text); margin: 0; }
.search-empty span { font-size: 0.75rem; color: var(--text-muted); }

/* View All */
.search-view-all {
    display: flex; align-items: center; justify-content: center;
    gap: 0.35rem; padding: 0.7rem 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.82rem; font-weight: 600;
    color: var(--primary);
    transition: background 0.2s;
}

.search-view-all:hover { background: var(--bg-warm); }

/* Skeleton */
.search-skeleton {
    display: flex; align-items: center;
    gap: 0.75rem; padding: 0.65rem 0.7rem;
}

.search-skeleton + .search-skeleton { border-top: 1px solid var(--border-light); }

.sk-img {
    width: 52px; height: 52px;
    border-radius: 10px;
    background: var(--border-light);
    flex-shrink: 0;
    animation: skPulse 1.2s ease-in-out infinite;
}

.sk-text { flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }

.sk-line {
    height: 10px;
    background: var(--border-light);
    border-radius: 5px;
    animation: skPulse 1.2s ease-in-out infinite;
}

.sk-line.short { width: 50%; }

@keyframes skPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ============================================
   MEGA MENU
   ============================================ */
.main-navigation li { position: relative; }

.categories-mega-menu {
    display: none; position: absolute;
    top: 100%; right: 0;
    background: var(--bg);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    z-index: 1000;
    margin-top: 0.75rem;
    border: 1px solid var(--border);
}

.has-mega-menu:hover .categories-mega-menu { display: block; }

.dropdown-two-columns { display: grid; grid-template-columns: 200px 1fr; width: 100%; max-width: 90vw; }
.dropdown-categories { padding: 1.25rem; border-left: 1px solid var(--border); }
.dropdown-section-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 0.75rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--primary); }
.dropdown-category-item { display: block; padding: 0.5rem 0.7rem; color: var(--text-md); border-radius: 8px; transition: all 0.2s; margin-bottom: 0.1rem; font-size: 0.85rem; cursor: pointer; }
.dropdown-category-item.active { background: var(--bg-warm); color: #ffffff!important; }
.dropdown-category-item:hover{background: var(--bg-warm); color: var(--primary)!important;}
.dropdown-products { padding: 1.25rem; display: flex; flex-direction: column; }
.dropdown-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.dropdown-product-card { display: flex; align-items: center; gap: 0.6rem; background: var(--bg-light); border-radius: 10px; padding: 0.6rem; border: 1px solid var(--border); transition: all 0.25s; }
.dropdown-product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.dropdown-product-image { width: 52px; height: 52px; overflow: hidden; border-radius: 8px; flex-shrink: 0; }
.dropdown-product-image img { width: 100%; height: 100%; object-fit: cover; }
.dropdown-product-info { flex: 1; min-width: 0; }
.dropdown-product-title { font-size: 0.78rem; font-weight: 500; color: var(--text); margin-bottom: 0.2rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dropdown-product-price { font-size: 0.76rem; font-weight: 600; color: var(--primary); }
.dropdown-product-price del { color: var(--text-muted); font-weight: 400; margin-left: 0.35rem; font-size: 0.7rem; }
.dropdown-view-all { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem; padding: 0.55rem 0.85rem; color: var(--primary); font-weight: 600; border-radius: 8px; transition: background 0.25s; align-self: flex-start; font-size: 0.82rem; }
.dropdown-view-all:hover { background: var(--bg-warm); }

a.dropdown-product-card{
	display: flex;
    flex-direction: row;
	gap:10px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section { padding: 1.25rem 0 0; }

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.hero-main {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.hero-swiper { width: 100%; height: 420px; }
.hero-swiper .swiper-wrapper { height: 100%; }

.hero-slide {
    height: 420px;
    display: flex; align-items: center;
    background-size: cover; background-position: center;
    position: relative;
}

.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(15,23,42,0.75) 0%, rgba(15,23,42,0.3) 50%, transparent 100%);
}

.slide-content {
    position: relative; z-index: 2;
    color: white; max-width: 480px;
    padding: 0 3rem;
}

.slide-label {
    display: inline-flex; align-items: center;
    gap: 0.4rem; padding: 0.3rem 0.85rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.75rem; font-weight: 500;
    margin-bottom: 0.85rem;
}

.slide-title {
    font-size: 2.1rem; font-weight: 900;
    margin-bottom: 0.65rem; line-height: 1.2;
    letter-spacing: -0.5px;
}

.slide-desc {
    font-size: 0.95rem; margin-bottom: 1.5rem;
    opacity: 0.85; line-height: 1.7; max-width: 380px;
}

.slide-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-primary {
    display: inline-flex; align-items: center;
    gap: 0.4rem; padding: 0.65rem 1.35rem;
    background: white; color: var(--primary-dark);
    border-radius: 50px; font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    color: var(--primary-dark);
}

.btn-ghost {
    display: inline-flex; align-items: center;
    padding: 0.65rem 1.35rem; color: white;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 50px; font-weight: 600;
    font-size: 0.85rem; transition: all 0.25s;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: white;
}

/* Hero Nav */
.hero-nav {
   /* position: absolute;
    bottom: 1.25rem; right: 1.5rem;
    z-index: 10;
    display: flex; align-items: center; gap: 0.5rem;
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    border-radius: 50px; padding: 0.3rem 0.5rem;*/
}

.hero-nav-btn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.15);
    border: none; border-radius: 50%;
    cursor: pointer; color: white;
    transition: background 0.25s;
}

.hero-nav-btn:hover { background: rgba(255,255,255,0.3); }

.hero-dots .swiper-pagination-bullet {
    width: 8px; height: 8px;
    background: rgba(255,255,255,0.35);
    opacity: 1; margin: 0 3px !important;
}

.hero-dots .swiper-pagination-bullet-active {
    background: white; width: 22px; border-radius: 4px;
}

/* Side Cards */
.hero-side { display: flex; flex-direction: column; gap: 1.25rem; }

.side-card {
    flex: 1; position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden; display: block;
    transition: transform 0.3s;
}

.side-card:hover { transform: translateY(-3px); }

.side-card-bg { position: absolute; inset: 0; }

.side-card-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.side-card:hover .side-card-bg img { transform: scale(1.06); }

.side-card-body {
    position: relative; z-index: 2;
    height: 100%;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem; color: white;
    background: linear-gradient(to top, rgba(15,23,42,0.75), transparent 80%);
}

.side-card-1 .side-card-body { background: linear-gradient(to top, rgba(99,102,241,0.8), transparent 80%); }
.side-card-2 .side-card-body { background: linear-gradient(to top, rgba(139,92,246,0.8), transparent 80%); }

.side-card-tag { font-size: 0.7rem; font-weight: 500; opacity: 0.8; margin-bottom: 0.25rem; }

.side-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; line-height: 1.3; }

.side-card-link {
    display: inline-flex; align-items: center;
    gap: 0.35rem; font-size: 0.8rem;
    font-weight: 600; color: white;
    opacity: 0.85;
    transition: opacity 0.2s, gap 0.2s;
}

.side-card:hover .side-card-link { opacity: 1; gap: 0.55rem; }

/* Trust Strip */
.trust-strip {
    display: flex; align-items: center;
    justify-content: center; gap: 0;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.85rem 1.5rem;
    box-shadow: var(--shadow-xs);
}

.trust-item {
    display: flex; align-items: center;
    gap: 0.5rem; padding: 0 1.5rem;
    font-size: 0.82rem; font-weight: 600;
    color: var(--text-md); white-space: nowrap;
}

.trust-item svg { color: var(--primary); fill: var(--primary); flex-shrink: 0; }

.trust-divider {
    width: 1px; height: 24px;
    background: var(--border); flex-shrink: 0;
}

/* ============================================
   CATEGORIES
   ============================================ */
.cats-section { padding: 2.5rem 0 2rem; }

.cats-scroll-wrap { position: relative; padding: 0 50px; }

.cats-arrow {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5;
    transition: all 0.25s;
    color: var(--text-md);
    box-shadow: var(--shadow-sm);
}

.cats-arrow:hover {
    border-color: var(--primary);
    color: white; background: var(--primary);
    box-shadow: var(--shadow-primary);
}

.cats-arrow-prev { left: 0; }
.cats-arrow-next { right: 0; }

.cats-track {
    display: flex; gap: 0.85rem;
    overflow-x: auto; scroll-behavior: smooth;
    scrollbar-width: none; padding: 6px 2px;
}

.cats-track::-webkit-scrollbar { display: none; }

.cat-card {
    display: flex; align-items: center;
    gap: 0.75rem; padding: 0.75rem 1rem;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    min-width: 180px; flex-shrink: 0;
    transition: all 0.3s;
    text-decoration: none;
}

.cat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.cat-icon {
    width: 48px; height: 48px; min-width: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius);
    transition: transform 0.3s;
    overflow: hidden;
}

.cat-icon img {
    width: 28px; height: 28px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.cat-card:hover .cat-icon { transform: scale(1.08) rotate(3deg); }

.cat-body { display: flex; flex-direction: column; gap: 0.1rem; }
.cat-name { font-size: 0.88rem; font-weight: 600; color: var(--text); }
.cat-count { font-size: 0.7rem; color: var(--text-muted); }
/* ============================================
   SPECIAL / FEATURED SECTION
   ============================================ */
.special-section {
    padding: 2.5rem 0;
    background: var(--bg-light);
}

.special-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.special-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Timer Card */
.timer-card {
    background: linear-gradient(160deg, #1e1b4b 0%, #312e81 30%, #4338ca 70%, #6366f1 100%);
    border-radius: var(--radius-2xl);
    padding: 2rem 1.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.timer-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.timer-card::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -30px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.timer-badge {
    position: relative; z-index: 1;
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50px;
    font-size: 0.75rem; font-weight: 600;
    margin-bottom: 1rem;
}

.timer-title {
    position: relative; z-index: 1;
    font-size: 1.35rem; font-weight: 800;
    line-height: 1.3; margin-bottom: 0.35rem;
}

.timer-title span {
    font-size: 2.5rem; display: block;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.timer-desc {
    position: relative; z-index: 1;
    font-size: 0.82rem; opacity: 0.7;
    margin-bottom: 1.25rem;
}

.timer-countdown {
    position: relative; z-index: 1;
    display: flex; align-items: center;
    gap: 0.35rem; margin-bottom: 1.5rem;
    direction: ltr;
}

.timer-unit {
    display: flex; flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 0.45rem 0.5rem;
    min-width: 46px;
}

.timer-val {
    font-size: 1.2rem; font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.timer-lbl { font-size: 0.55rem; opacity: 0.7; margin-top: 0.15rem; }

.timer-sep { font-size: 1rem; font-weight: 700; opacity: 0.4; margin: 0 -0.1rem; }

.timer-btn {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center;
    gap: 0.4rem; padding: 0.6rem 1.15rem;
    background: white; color: var(--primary-dark);
    border-radius: 50px; font-weight: 700;
    font-size: 0.8rem;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.timer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: var(--primary-dark);
}

/* ============================================
   PRODUCT CARDS - PROFESSIONAL
   ============================================ */
.products-sec { padding: 2.5rem 0; }
.products-sec.alt { background: var(--bg-light); }

.products-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.p-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.p-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    border: 2px solid transparent;
    transition: border-color 0.3s;
    pointer-events: none;
    z-index: 1;
}

.p-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(99,102,241,0.1), 0 8px 20px rgba(0,0,0,0.06);
    border-color: transparent;
}

.p-card:hover::after {
    border-color: rgba(99,102,241,0.15);
}

/* Image */
.p-card-img {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

.p-card-img::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 35px;
    background: linear-gradient(to top, rgba(255,255,255,0.4), transparent);
    z-index: 1;
    pointer-events: none;
}

.p-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.p-card:hover .p-card-img img {
    transform: scale(1.08);
}

/* Badges */
.p-card-badge {
    position: absolute;
    top: 12px; right: 12px;
    padding: 0.22rem 0.6rem;
    color: white;
    font-size: 0.68rem; font-weight: 700;
    border-radius: 50px;
    z-index: 3;
    letter-spacing: 0.2px;
}

.p-card-badge.sale {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    box-shadow: 0 3px 10px rgba(236,72,153,0.25);
}

.p-card-badge.cat {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 3px 10px rgba(99,102,241,0.25);
}

.p-card-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 3px 10px rgba(16,185,129,0.25);
}

/* Hover Actions */
.p-card-actions {
    position: absolute;
    top: 12px; left: 12px;
    display: flex; flex-direction: column;
    gap: 0.35rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.35s;
    z-index: 3;
}

.p-card:hover .p-card-actions {
    opacity: 1;
    transform: translateX(0);
}

.p-act {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: white;
    border: none; border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: var(--text-md);
}

.p-act:hover {
    background: var(--primary);
    box-shadow: var(--shadow-primary);
    transform: scale(1.1);
}

.p-act:hover svg { fill: white; color: white; }
.p-act svg { width: 16px; height: 16px; transition: all 0.25s; }

/* Card Body */
.p-card-body {
    padding: 0.9rem 1.1rem 0.85rem;
}

.p-card-title {
    font-size: 0.88rem; font-weight: 600;
    color: var(--text);
    margin-bottom: 0.6rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.65em;
}

.p-card-title a { color: var(--text); transition: color 0.2s; }
.p-card-title a:hover { color: var(--primary); }

/* Footer */
.p-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-light);
}

/* Price */
.p-card-price {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.p-card-price span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.p-card-price del {
    font-size: 0.68rem;
    color: #b0b8c8;
    font-weight: 400;
    line-height: 1;
}

del span.woocommerce-Price-currencySymbol {
    font-size: 0.7rem;
}

.p-card-price del .woocommerce-Price-amount,
.p-card-price del .amount {
    font-size: 0.68rem !important;
    font-weight: 400 !important;
    color: #b0b8c8 !important;
}

.p-card-price ins { text-decoration: none; }

.p-card-price ins .woocommerce-Price-amount,
.p-card-price ins .amount {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

/* Cart Button */
.p-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.48rem 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: var(--shadow-primary);
    flex-shrink: 0;
    white-space: nowrap;
}

.p-cart-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

.p-cart-btn svg { width: 15px; height: 15px; fill: white; }

/* ============================================
   PROMO BANNERS
   ============================================ */
.promos-section { padding: 2.5rem 0; }

.promos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.promo-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: block;
    min-height: 190px;
    transition: transform 0.3s;
}

.promo-card:hover { transform: translateY(-4px); }

.promo-card img {
    width: 100%; height: 100%;
    object-fit: cover;
    position: absolute; inset: 0;
    transition: transform 0.5s;
}

.promo-card:hover img { transform: scale(1.05); }

.promo-overlay {
    position: relative; z-index: 2;
    height: 100%; min-height: 190px;
    display: flex; flex-direction: column;
    justify-content: center;
    padding: 1.5rem; color: white;
}

.promo-card-1 .promo-overlay { background: linear-gradient(135deg, rgba(236,72,153,0.6), rgba(244,114,182,0.2)); }
.promo-card-2 .promo-overlay { background: linear-gradient(135deg, rgba(249,115,22,0.6), rgba(251,146,60,0.2)); }
.promo-card-3 .promo-overlay { background: linear-gradient(135deg, rgba(99,102,241,0.6), rgba(139,92,246,0.2)); }
.promo-card-4 .promo-overlay { background: linear-gradient(135deg, rgba(16,185,129,0.6), rgba(52,211,153,0.2)); }

.promo-badge {
    display: inline-block; width: fit-content;
    padding: 0.2rem 0.55rem;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 0.65rem; font-weight: 600;
    margin-bottom: 0.4rem;
}

.promo-title {
    font-size: 1.1rem; font-weight: 800;
    margin-bottom: 0.2rem; line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.promo-sub {
    font-size: 0.78rem; opacity: 0.9;
    margin-bottom: 0.75rem;
}

.promo-link {
    display: inline-flex; align-items: center;
    gap: 0.3rem; font-size: 0.78rem;
    font-weight: 700; color: white;
    padding: 0.35rem 0.75rem;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    width: fit-content;
    transition: all 0.25s;
}

.promo-card:hover .promo-link { background: rgba(255,255,255,0.35); }

/* ============================================
   BLOG SECTION
   ============================================ */
.blog-sec { padding: 2.5rem 0; }

.blog-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.blog-card {
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-img {
    display: block;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-card-img img { transform: scale(1.06); }

.blog-card-date {
    position: absolute;
    top: 10px; right: 10px;
    background: white;
    border-radius: 10px;
    padding: 0.35rem 0.55rem;
    display: flex; flex-direction: column;
    align-items: center;
    line-height: 1; min-width: 42px;
    box-shadow: var(--shadow-sm);
}

.bcd-d { font-size: 1.1rem; font-weight: 800; color: var(--primary); }
.bcd-m { font-size: 0.6rem; font-weight: 500; color: var(--text-light); margin-top: 0.1rem; }

.blog-card-body { padding: 1.15rem; }

.blog-card-cat {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: var(--bg-warm);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.7rem; font-weight: 600;
    margin-bottom: 0.5rem;
}

.blog-card-title {
    font-size: 1rem; font-weight: 700;
    margin-bottom: 0.45rem;
    line-height: 1.5; color: var(--text);
}

.blog-card-title a { color: var(--text); }
.blog-card-title a:hover { color: var(--primary); }

.blog-card-excerpt {
    font-size: 0.82rem; color: var(--text-light);
    line-height: 1.7; margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    display: inline-flex; align-items: center;
    gap: 0.35rem; font-size: 0.82rem;
    font-weight: 600; color: var(--primary);
    transition: gap 0.25s;
}

.blog-card-link:hover { gap: 0.6rem; }
/* ============================================
   FOOTER - ULTRA PROFESSIONAL
   ============================================ */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    color: rgba(255,255,255,0.75);
    padding: 2.5rem 0 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99,102,241,0.4) 20%, 
        rgba(139,92,246,0.4) 50%, 
        rgba(99,102,241,0.4) 80%, 
        transparent 100%
    );
}

.site-footer::after {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 1;
}

/* Footer Widget */
.footer-widget {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-widget h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin: 0;
    position: relative;
    padding-bottom: 0.85rem;
    display: inline-block;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    width: 45px; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

.footer-widget p {
    font-size: 0.88rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* Footer Social */
.footer-social {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.footer-social-icon {
    width: 42px; height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 11px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: rgba(255,255,255,0.5);
    position: relative;
    overflow: hidden;
}

.footer-social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s;
}

.footer-social-icon svg {
    width: 18px; height: 18px;
    fill: currentColor;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.footer-social-icon:hover {
    border-color: transparent;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.35);
}

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

/* Footer Links */
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-widget ul li {
    position: relative;
}

.footer-widget ul li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    transition: all 0.25s;
    padding: 0.4rem 0;
    position: relative;
}

.footer-widget ul li a::before {
    content: '';
    width: 5px; height: 5px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.25s;
}

.footer-widget ul li a:hover {
    color: white;
    padding-right: 0.75rem;
}

.footer-widget ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Footer Contact */
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}

.footer-contact li svg {
    width: 20px; height: 20px;
    min-width: 20px;
    fill: var(--primary);
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.footer-contact li span {
    flex: 1;
}

/* Footer Bottom */
.footer-bottom {
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

/* License Badges */
.footer-licenses {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.license-badges {
    display: flex;
    gap: 0.6rem;
}

.license-badge {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    transition: all 0.3s;
    color: rgba(255,255,255,0.4);
}

.license-badge:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
    color: var(--primary);
    transform: translateY(-3px);
}

.license-badge svg {
    width: 20px; height: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2.5rem 0 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 0;
    }
}

/*tablet*/
@media (min-width : 768px) and (max-width : 1024px) {
	.hero-layout{
		grid-template-columns: 1fr 240px;
	}
	.main-navigation a{
		font-size:0.5rem;
	}
	img.custom-logo{
		max-width:80%;
	}
	.main-navigation a svg{
		width:12px;
		height:12px;
	}
	.site-title{
		font-size:0.6rem;
	}
	.search-box{
		padding:0.5rem;
	}
	.header-search{
		margin:0 1rem;
	}
	.special-products{
		grid-template-columns: repeat(2, 1fr);
	}
	.special-products .p-card:nth-child(3){
		display:none;
	}
	.products-grid-4{
		grid-template-columns:repeat(3, 1fr);
	}
	.products-grid-4 .p-card:nth-child(4){
		display:none;
	}
}


/*mobole*/
@media (max-width: 768px){
	.trust-item{
		 gap: 0.2rem;
    padding: 0 0.2rem;
    font-size: 0.46rem;
	}
	.trust-item svg{
		width:12px;
		height:12px;
	}
	.trust-strip{
		gap:0.2rem;
	}
	.hero-layout {
        grid-template-columns: 1fr;
	}
	.hero-side{
		flex-direction: row;
	}
	.slide-title{
		font-size: 1.5rem;
	}
	.btn-ghost{
		font-size: 0.55rem;
	}
	.btn-primary{
		font-size: 0.55rem;
	}
	.slide-desc{
		font-size: 0.85rem;
	}
	.side-card-title{
		 font-size: 1rem;
	}
	.side-card-link{
		font-size: 0.6rem;
	}
	.sec-title{
		font-size: 1rem;
		line-height: 2;
	}
	.sec-label{
		font-size: 0.58rem;
	}
	.sec-link{
		font-size: 0.65rem;
	}
	.special-layout{
		grid-template-columns: 1fr;
	} 
	.promos-grid{
		grid-template-columns: 1fr;
	}
	.products-grid-4{
		grid-template-columns: 1fr;
	}
	.blog-grid-3{
		 grid-template-columns: 1fr;
	}
	.special-products{
		grid-template-columns: 1fr;
	}
	.footer-social-icon svg{
		width:14px;
		height:14px;
	}
	.footer-social-icon{
		width:32px;
		height:32px;
	}
	.header-info span{
		font-size:11px;
	}
	
	.main-navigation ul{
	 position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff; /* رنگ دلخواه */
        padding: 0.75rem 1rem;
        border-top: 1px solid #ddd;
        z-index: 9999;

        display: flex!important;
        justify-content: space-around; /* آیتم‌ها کنار هم */
        align-items: center;

        /* برای جلوگیری از اسکرول شدن */
        box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
	}
}

/* ==================== Category Mega Menu Improvements ==================== */

/* Remove underline from category items */
.dropdown-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-md);
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-category-item:hover {
    background: #f3f4f6;
    color: var(--primary);
    text-decoration: none !important;
}

.dropdown-category-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: #fff;
}

/* Category thumbnail */
.category-thumb {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Remove underline from product cards */
.dropdown-product-card {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.dropdown-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
}

.dropdown-product-image {
    width: 30%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f9fafb;
}

.dropdown-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dropdown-product-card:hover .dropdown-product-image img {
    transform: scale(1.05);
}

.dropdown-product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dropdown-product-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.dropdown-product-price del {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 8px;
}


/* Category Icon Styles */
.dropdown-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-md);
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dropdown-category-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.dropdown-category-item .category-icon-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.dropdown-category-item:hover {
    background: #f3f4f6;
    color: var(--primary);
    text-decoration: none !important;
}

.dropdown-category-item.active {
    background: linear-gradient(135deg, var(--primary) 0%, #8b5cf6 100%);
    color: #fff;
}

.dropdown-category-item.active svg {
    stroke: #fff;
}

/* Loading State */
.dropdown-products-grid {
    position: relative;
    min-height: 100px;
}

.dropdown-products-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

.dropdown-products-grid.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */

.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 8px 0;
    z-index: 999;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    background: transparent;
    cursor: pointer;
}

.mobile-nav-item svg {
    transition: transform 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item.active svg {
    transform: scale(1.1);
}

.mobile-nav-badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(12px);
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}
/* Show on mobile */
@media (max-width: 768px) {
    /* Hide desktop header elements */
    .header-top {
        display: none;
    }
    
    .header-actions,
    .header-search,
    .main-navigation {
        display: none !important;
    }
    
    /* Show mobile elements */
    .mobile-header-actions,
    .mobile-menu-toggle,
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Mobile Header */
    .site-header {
        padding: 12px 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        position: relative;
    }
    
    /* Mobile Cart Button (Left Side) - ORDER 1 */
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        order: 1;
    }
    
    .mobile-cart-btn {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border: 1.5px solid var(--border);
        border-radius: 10px;
        color: var(--text-md);
        transition: all 0.25s;
    }
    
    .mobile-cart-btn:hover {
        border-color: var(--primary);
        color: var(--primary);
        background: rgba(99,102,241,0.04);
    }
    
    .mobile-cart-count {
        position: absolute;
        top: -6px;
        left: -6px;
        background: var(--accent);
        color: white;
        font-size: 0.65rem;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
        padding: 0 4px;
    }
    
    /* Logo (Center) - ORDER 2 */
    .site-branding {
        display: flex !important;
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .site-branding .custom-logo-link {
        display: flex;
        align-items: center;
    }
    
    .site-branding .custom-logo {
        max-height: 42px;
        width: auto;
    }
    
    .site-title {
        font-size: 1.1rem;
    }
    
    /* Mobile Menu Toggle (Right Side) - ORDER 3 */
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        background: transparent;
        border: 1.5px solid var(--border);
        border-radius: 10px;
        cursor: pointer;
        padding: 0;
        order: 3;
        z-index: 1001;
        transition: all 0.25s;
    }
    
    .mobile-menu-toggle:hover {
        border-color: var(--primary);
        background: rgba(99,102,241,0.04);
    }
    
    .menu-toggle-icon {
        width: 20px;
        height: 2px;
        background: var(--text-md);
        border-radius: 2px;
        transition: all 0.3s;
    }
    
    .mobile-menu-toggle.active .menu-toggle-icon:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .mobile-menu-toggle.active .menu-toggle-icon:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active .menu-toggle-icon:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Add padding to body to prevent content hiding behind nav */
    body {
        padding-bottom: 70px;
    }
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 1000;
    padding: 20px;
}

.mobile-search-overlay.active {
    display: block;
}

.mobile-search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.mobile-search-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.mobile-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
}

/* ============================================
   MOBILE MENU - SIDEBAR & BOTTOM NAV
   ============================================ */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

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

/* Mobile Menu Sidebar */
.mobile-menu-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.mobile-menu-sidebar.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.mobile-menu-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    transition: all 0.25s;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* Mobile Menu Body */
.mobile-menu-body {
    padding: 1rem 0 80px;
}

/* User Section */
.mobile-user-section {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary);
}

.mobile-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mobile-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mobile-user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.mobile-user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mobile-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s;
}

.mobile-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: white;
}

/* Menu Sections */
.mobile-menu-section {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.mobile-menu-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

/* Navigation Lists */
.mobile-nav-list,
.mobile-categories-list,
.mobile-quick-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li,
.mobile-categories-list li,
.mobile-quick-links li {
    margin-bottom: 0.25rem;
}

.mobile-nav-list a,
.mobile-categories-list a,
.mobile-quick-links a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem;
    color: var(--text-md);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s;
}

.mobile-nav-list a:hover,
.mobile-categories-list a:hover,
.mobile-quick-links a:hover {
    background: var(--bg-warm);
    color: var(--primary);
}

.mobile-categories-list a svg,
.mobile-quick-links a svg {
    color: var(--primary);
    flex-shrink: 0;
}

.cat-count {
    margin-right: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 0.5rem 0;
    z-index: 1000;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary);
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
}

.mobile-cart-badge {
    position: absolute;
    top: 0.25rem;
    right: 50%;
    transform: translateX(12px);
    background: var(--accent);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .header-container {
        padding: 0.5rem 0;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .header-search,
    .main-navigation,
    .header-actions {
        display: none !important;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Site Branding - Center */
    .site-branding {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
    
    .site-title {
        font-size: 0.95rem;
    }
    
    .site-logo img {
        max-height: 40px;
        width: auto;
    }
    
    /* Mobile Header Actions - Left Side (Cart) */
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        order: 3;
    }
    
    .mobile-cart-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-light);
        border: 1.5px solid var(--border);
        border-radius: 10px;
        color: var(--text-md);
        transition: all 0.25s;
        position: relative;
		order:2;
		margin-right:auto;
    }
    
    .mobile-cart-btn:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: white;
    }
    
    .mobile-cart-count {
        position: absolute;
        top: -6px;
        right: -6px;
        background: var(--accent);
        color: white;
        font-size: 0.65rem;
        font-weight: 700;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
    }
    
    /* Mobile Menu Toggle - Right Side (Hamburger) */
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        order: 1;
        z-index: 10;
    }
    
    .menu-toggle-icon {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text);
        position: relative;
    }
    
    .menu-toggle-icon::before,
    .menu-toggle-icon::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--text);
        left: 0;
        transition: all 0.3s;
    }
    
    .menu-toggle-icon::before {
        top: -7px;
    }
    
    .menu-toggle-icon::after {
        bottom: -7px;
    }
    
    /* Hamburger Animation */
    .mobile-menu-toggle.active .menu-toggle-icon {
        background: transparent;
    }
    
    .mobile-menu-toggle.active .menu-toggle-icon::before {
        top: 0;
        transform: rotate(45deg);
    }
    
    .mobile-menu-toggle.active .menu-toggle-icon::after {
        bottom: 0;
        transform: rotate(-45deg);
    }
    
    /* Fix Overflow Issues */
    body {
        padding-bottom: 70px;
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    #page {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .site {
        overflow-x: hidden !important;
    }
    
    .site-header {
        overflow: visible !important;
    }
    
    .container {
        max-width: 100%;
        padding: 0 15px;
        overflow-x: hidden;
    }
    
    /* Prevent horizontal scroll */
    * {
        box-sizing: border-box;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix for WooCommerce Shop Page */
    .woocommerce,
    .woocommerce-page {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .woocommerce .products,
    .woocommerce-page .products {
        overflow-x: hidden !important;
    }
    
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: 100% !important;
        margin: 0 0 1rem 0 !important;
    }
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Fix Shop Page Overflow in Mobile */
@media (max-width: 768px) {
    /* Reset WooCommerce default styles */
    .woocommerce .col2-set,
    .woocommerce-page .col2-set {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .woocommerce form .form-row,
    .woocommerce-page form .form-row {
        width: 100% !important;
        margin: 0 0 1rem 0 !important;
    }
    
    .woocommerce .woocommerce-ordering,
    .woocommerce .woocommerce-result-count {
        width: 100% !important;
        margin: 0 0 1rem 0 !important;
    }
    
    /* Fix product grid */
    .woocommerce ul.products,
    .woocommerce-page ul.products {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .woocommerce ul.products li.product,
    .woocommerce-page ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }
    
    /* Fix sidebar */
    .woocommerce .sidebar,
    .woocommerce-page .sidebar {
        width: 100% !important;
        margin: 1rem 0 0 0 !important;
    }
    
    /* Fix tables */
    .woocommerce table.shop_table,
    .woocommerce-page table.shop_table {
        width: 100% !important;
        overflow-x: auto !important;
        display: block !important;
    }
    
    /* Fix images */
    .woocommerce img,
    .woocommerce-page img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix buttons */
    .woocommerce .button,
    .woocommerce-page .button {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Mobile Categories Sidebar */
.mobile-categories-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
}

.mobile-categories-sidebar.active {
    right: 0;
}

.category-all {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    font-weight: 600;
}

.category-all svg {
    color: white !important;
}
/* Mobile Categories Section - Professional */
.mobile-categories-section {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.mobile-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mobile-category-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
}

.mobile-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.mobile-cat-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef0ff, #f5f3ff);
    position: relative;
}

.mobile-cat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.mobile-category-card:hover .mobile-cat-image img {
    transform: scale(1.1);
}

.mobile-cat-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mobile-cat-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

.mobile-cat-count {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.mobile-view-all-cats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.25s;
    text-decoration: none;
}

.mobile-view-all-cats:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
    color: white;
}

.mobile-view-all-cats svg {
    transition: transform 0.25s;
}

.mobile-view-all-cats:hover svg {
    transform: translateX(-3px);
}
/* Mobile Header Actions */
.mobile-header-actions {
    display: none;
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .header-container {
        padding: 0.5rem 0;
        position: relative;
    }
    
    .header-search,
    .main-navigation,
    .header-actions {
        display: none !important;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    .site-branding {
        margin: 0 auto;
    }
    
    /* Mobile Header Actions */
    .mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        position: absolute;
        left: 1rem;
		right:1rem;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .mobile-cart-btn {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--bg-light);
        border: 1.5px solid var(--border);
        border-radius: 10px;
        color: var(--text-md);
        transition: all 0.25s;
        position: relative;
    }
    
    .mobile-cart-btn:hover {
        background: var(--primary);
        border-color: var(--primary);
        color: white;
    }
    
    .mobile-cart-count {
        position: absolute;
        top: -6px;
        right: -6px;
        background: var(--accent);
        color: white;
        font-size: 0.65rem;
        font-weight: 700;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 2px solid white;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
    }
    
    .menu-toggle-icon {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--text);
        position: relative;
    }
    
    .menu-toggle-icon::before,
    .menu-toggle-icon::after {
        content: '';
        position: absolute;
        width: 24px;
        height: 2px;
        background: var(--text);
        left: 0;
    }
    
    .menu-toggle-icon::before {
        top: -7px;
    }
    
    .menu-toggle-icon::after {
        bottom: -7px;
    }
    
    /* Fix Overflow Issues */
    body {
        padding-bottom: 70px;
        overflow-x: hidden !important;
    }
    
    #page {
        overflow-x: hidden !important;
    }
    
    .site-header {
        overflow: visible !important;
    }
    
    /* Prevent horizontal scroll */
    * {
        max-width: 100%;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}
