:root {
    --bg-dark: #070707;
    --bg-card: #0d0d0d;
    --bg-input: #0a0a0a;
    --primary-gold: #c3a475;
    --primary-green: #152d1f;
    --primary-green-hover: #1e3f2c;
    --text-white: #ffffff;
    --text-gray: #a5a5a5;
    --text-muted: #666666;
    --border-subtle: rgba(255, 255, 255, 0.04);
    --border-medium: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(195, 164, 117, 0.2);
    --danger: #c0392b;
    --success: #27ae60;
    --warning: #f39c12;
    --font-logo: 'Cinzel', serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-subtitle: 'Cormorant Garamond', serif;
    --font-persian: 'Vazirmatn', sans-serif;
    --font-body: 'Didact Gothic', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    --glow-gold: 0 0 0 4px rgba(195, 164, 117, 0.18), 0 0 20px rgba(195, 164, 117, 0.12), 0 0 40px rgba(21, 45, 31, 0.15);
    --glow-gold-light: 0 0 0 3px rgba(195, 164, 117, 0.12), 0 0 12px rgba(195, 164, 117, 0.08);
    --glow-green: 0 0 0 4px rgba(21, 45, 31, 0.5), 0 0 20px rgba(21, 45, 31, 0.3), 0 0 40px rgba(195, 164, 117, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
}

*:focus,
*:active,
*:focus-visible,
*:visited,
*:hover {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
    box-shadow: var(--glow-gold) !important;
    border-color: rgba(195, 164, 117, 0.35) !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-persian);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* جلوگیری سراسری از سرریز افقی - همه عناصر داخل عرض صفحه بمانند */
html {
    overflow-x: hidden;
    max-width: 100%;
}
img {
    max-width: 100%;
}

/* ============================================
   HEADER
   ============================================ */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 5%;
    background: rgba(7, 7, 7, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(195, 164, 117, 0.06);
}

.main-header.scrolled {
    padding: 10px 5%;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-logo);
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 4px;
    color: var(--primary-gold);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.logo:hover {
    text-shadow: 0 0 20px rgba(195, 164, 117, 0.3);
}

.logo:active {
    text-shadow: 0 0 20px rgba(195, 164, 117, 0.5), 0 0 40px rgba(195, 164, 117, 0.3);
}

.nav-menu {
    display: flex;
    gap: 28px;
}

.nav-menu a {
    color: var(--text-white);
    font-size: 11.5px;
    font-weight: 500;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 6px 0;
    text-transform: uppercase;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-gold);
    transition: var(--transition-smooth);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-gold);
}

.header-icons {
    display: flex;
    gap: 20px;
    font-size: 18px;
    cursor: pointer;
    align-items: center;
}

.header-icons i,
.header-icons a {
    transition: var(--transition-smooth);
    padding: 6px;
    border-radius: 50%;
    color: var(--text-white);
}

.header-icons i:hover,
.header-icons a:hover {
    color: var(--primary-gold);
}

.cart-icon-header {
    position: relative;
}

.cart-count-header {
    position: absolute;
    top: -2px;
    left: -4px;
    background: var(--primary-green);
    border: 1.5px solid var(--primary-gold);
    color: var(--primary-gold);
    font-size: 9px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 300;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-gold);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: center;
}

.mobile-menu-toggle span:nth-child(2) {
    width: 18px;
    margin-right: 6px;
}

.mobile-menu-toggle span:nth-child(3) {
    width: 21px;
    margin-right: 3px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    width: 24px;
    margin: 0;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px;
    margin: 0;
}

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 250;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(4px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, #0a1a10 0%, #0d0d0d 100%);
    z-index: 260;
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 8px 0 50px rgba(0, 0, 0, 0.5);
    padding: 80px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid rgba(195, 164, 117, 0.1);
}

.mobile-menu-panel.open {
    transform: translateX(0);
}

.mobile-menu-section {
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 20px 16px 8px;
    margin-top: 8px;
    opacity: 0.6;
}

.mobile-menu-section:first-child {
    margin-top: 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.mobile-menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(21, 45, 31, 0.6), rgba(21, 45, 31, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
    z-index: -1;
}

.mobile-menu-item:hover::before,
.mobile-menu-item:active::before {
    opacity: 1;
}

.mobile-menu-item:hover,
.mobile-menu-item:active {
    color: var(--primary-gold);
    border-color: rgba(195, 164, 117, 0.15);
    transform: translateX(-4px);
}

.mobile-menu-item svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    flex-shrink: 0;
}

.mobile-menu-divider {
    height: 1px;
    background: linear-gradient(to left, rgba(195, 164, 117, 0.15), transparent);
    margin: 4px 16px;
    border-radius: 50px;
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.94);
    z-index: 200;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(20px);
}

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

.search-container {
    width: 90%;
    max-width: 650px;
    position: relative;
    transform: translateY(-30px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-input-field {
    width: 100%;
    padding: 18px 60px 18px 24px;
    background: #0f1010;
    border: 1px solid rgba(195, 164, 117, 0.15);
    border-radius: 4px;
    font-size: 18px;
    color: var(--text-white);
    font-family: var(--font-heading);
    transition: all 0.4s ease;
}

.search-input-field::placeholder {
    color: rgba(255, 255, 255, 0.2);
    font-family: var(--font-subtitle);
    font-style: italic;
}

.search-close-btn {
    position: absolute;
    top: -55px;
    right: 0;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 13px;
    cursor: pointer;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    transition: var(--transition-fast);
}

.search-close-btn:hover {
    color: var(--primary-gold);
}

.search-results {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-family: var(--font-heading);
    font-size: 13px;
}

.search-result-item:hover {
    background: rgba(195, 164, 117, 0.05);
    border-color: rgba(195, 164, 117, 0.1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-green);
    color: var(--text-white);
    padding: 12px 30px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
    position: relative;
}

.btn-primary:focus-visible {
    box-shadow: var(--glow-gold) !important;
}

.btn-primary:active {
    box-shadow: var(--glow-gold) !important;
    transform: scale(0.96);
    transition: all 0.1s ease;
}

.btn-primary i {
    font-size: 12px;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background-color: var(--primary-green-hover);
    border-color: var(--primary-gold);
}

.btn-primary:hover i {
    transform: translateX(-5px);
}

.btn-danger {
    padding: 8px 14px;
    background: transparent;
    border: 1px solid rgba(192, 57, 43, 0.3);
    border-radius: 4px;
    color: var(--danger);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 9px;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.btn-danger:hover {
    background: rgba(192, 57, 43, 0.08);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 9px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    height: 65vh;
    min-height: 420px;
    max-height: 640px;
    display: flex;
    align-items: center;
    padding: 0 8%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-family: var(--font-logo);
    font-size: 80px;
    font-weight: 300;
    color: var(--primary-gold);
    letter-spacing: 12px;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-family: var(--font-subtitle);
    font-style: italic;
    font-size: 26px;
    color: #4eb075;
    margin-bottom: 8px;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 35px;
    letter-spacing: 2px;
}

/* ============================================
   CATEGORIES SECTION
   ============================================ */
.categories-section {
    padding: 30px 5% 60px 5%;
    background-color: var(--bg-dark);
}

.section-label {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-bottom: 25px;
    opacity: 0.7;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

/* گرید محصولات صفحه اصلی - ریسپانسیو (موبایل ۲ ستون) */
.home-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
@media (min-width: 600px) {
    .home-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}
@media (min-width: 900px) {
    .home-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.home-products-grid .product-card { min-width: 0; }

.category-card {
    position: relative;
    height: 480px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.category-card:focus-visible,
.category-card:active,
.category-card.card-clicked {
    box-shadow: var(--glow-gold) !important;
    border-color: rgba(195, 164, 117, 0.3) !important;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.category-card .card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-smooth);
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 25%, transparent);
}

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

.card-content {
    position: absolute;
    bottom: 30px;
    right: 25px;
    z-index: 2;
}

.card-content h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

.card-content a {
    color: var(--text-gray);
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    padding: 4px 0;
    border-radius: 2px;
    text-transform: uppercase;
}

.card-content a:active,
.card-content a:focus-visible {
    box-shadow: var(--glow-gold-light) !important;
    color: var(--primary-gold);
}

.card-content a:hover {
    color: var(--primary-gold);
}

/* ============================================
   COLLECTION FEATURES
   ============================================ */
.collection-features-section {
    padding: 40px 5%;
}

.collection-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 25px;
    align-items: center;
}

.collection-banner {
    background-color: #0b1510;
    padding: 40px;
    border-radius: 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.collection-banner .badge {
    color: #4eb075;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: block;
    text-transform: uppercase;
}

.collection-banner h2 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.collection-banner p {
    color: var(--text-gray);
    margin-bottom: 35px;
    font-family: var(--font-subtitle);
    font-style: italic;
    font-size: 15px;
}

.collection-img {
    height: 100%;
    min-height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.feature-icon {
    font-size: 24px;
    color: #4eb075;
    background-color: rgba(78, 176, 117, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.feature-text h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.feature-text p {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--text-gray);
    letter-spacing: 0.3px;
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */
.products-page {
    padding: 30px 5% 80px;
    min-height: 100vh;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

.page-header {
    margin-bottom: 35px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-gold);
}

.breadcrumb span {
    color: var(--primary-gold);
}

.breadcrumb i {
    font-size: 7px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-white);
}

.page-subtitle {
    font-family: var(--font-subtitle);
    font-style: italic;
    font-size: 15px;
    color: var(--text-gray);
    margin-top: 4px;
}

.products-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 30px;
    align-items: start;
}

.products-area {
    min-width: 0;
}

.filters-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 28px 22px;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.filters-sidebar::-webkit-scrollbar {
    width: 3px;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 50px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
}

.filters-header h3 {
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 3px;
    font-weight: 600;
    color: var(--text-white);
}

.reset-btn {
    background: none;
    border: none;
    color: #c0392b;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    padding: 6px 10px;
    border-radius: 3px;
}

.reset-btn:hover {
    background: rgba(192, 57, 43, 0.1);
    color: #e74c3c;
}

.filter-group {
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border-subtle);
}

.filter-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group-title {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group-title .count {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 200px;
    overflow-y: auto;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.3px;
    color: var(--text-gray);
}

.filter-option:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.02);
}

.filter-option input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(195, 164, 117, 0.25);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.filter-option input:checked~.custom-checkbox {
    background: var(--primary-green);
    border-color: var(--primary-gold);
}

.filter-option input:checked~.custom-checkbox::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    color: var(--primary-gold);
}

.filter-option input:checked~.option-text {
    color: var(--text-white);
    font-weight: 600;
}

.option-text {
    transition: var(--transition-fast);
}

.option-count {
    font-size: 9px;
    color: var(--text-muted);
    margin-right: auto;
}

.color-options-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.color-option:hover {
    background: rgba(255, 255, 255, 0.03);
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-option.selected .color-dot {
    border-color: var(--primary-gold);
    box-shadow: 0 0 14px rgba(195, 164, 117, 0.35);
    transform: scale(1.08);
}

.color-option.selected .color-dot::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    color: #fff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
}

.color-label {
    font-family: var(--font-heading);
    font-size: 9px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.color-option.selected .color-label {
    color: var(--primary-gold);
}

.size-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.size-btn {
    padding: 8px 6px;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-gray);
    background: transparent;
    transition: all 0.25s ease;
    text-align: center;
}

.size-btn:hover {
    border-color: var(--border-gold);
    color: var(--text-white);
}

.size-btn.selected {
    background: var(--primary-green);
    border-color: var(--primary-gold);
    color: var(--text-white);
    font-weight: 700;
    box-shadow: 0 0 12px rgba(195, 164, 117, 0.15);
}

.price-range-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
}

.price-inputs input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 11px;
}

.price-inputs span {
    color: var(--text-muted);
    font-size: 11px;
}

.price-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.price-preset {
    padding: 5px 10px;
    border: 1px solid var(--border-medium);
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 9px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.2s ease;
}

.price-preset:hover {
    border-color: var(--border-gold);
    color: var(--text-white);
}

.price-preset.active {
    background: var(--primary-green);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.filter-actions {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.filter-apply-btn {
    flex: 1;
    padding: 11px;
    background: var(--primary-green);
    border: 1px solid var(--primary-gold);
    border-radius: 4px;
    color: var(--text-white);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-apply-btn:hover {
    background: var(--primary-green-hover);
    box-shadow: 0 0 20px rgba(195, 164, 117, 0.15);
}

.filter-cancel-btn {
    flex: 1;
    padding: 11px;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    color: var(--text-gray);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.filter-cancel-btn:hover {
    border-color: #555;
    color: var(--text-white);
}

.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-filter-toggle:hover {
    border-color: var(--border-gold);
}

.filters-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 260;
}

.filters-overlay.open {
    display: block;
}

.filters-close-btn {
    display: none;
    background: none;
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    color: var(--text-white);
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.active-filter-count {
    background: var(--primary-gold);
    color: var(--bg-dark);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
}

.products-count {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.products-count strong {
    color: var(--text-white);
}

.custom-sort {
    position: relative;
    min-width: 230px;
    z-index: 50;
}

.sort-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    -webkit-user-select: none;
    user-select: none;
}

.sort-trigger:hover {
    border-color: var(--border-gold);
}

.sort-trigger .trigger-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-trigger .trigger-label i {
    color: var(--primary-gold);
    font-size: 10px;
}

.sort-trigger .trigger-arrow {
    transition: transform 0.3s ease;
    color: var(--primary-gold);
    font-size: 10px;
}

.custom-sort.open .sort-trigger .trigger-arrow {
    transform: rotate(180deg);
}

.custom-sort.open .sort-trigger {
    border-color: var(--primary-gold);
    box-shadow: var(--glow-gold) !important;
}

.sort-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 60;
}

.custom-sort.open .sort-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-align: right;
    border-bottom: 1px solid var(--border-subtle);
}

.sort-option:last-child {
    border-bottom: none;
}

.sort-option:hover {
    background: rgba(195, 164, 117, 0.05);
    color: var(--text-white);
}

.sort-option.active {
    color: var(--primary-gold);
    background: rgba(21, 45, 31, 0.3);
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    border-color: var(--border-gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: translateY(-4px);
}

.product-card:active,
.product-card.card-clicked {
    transform: scale(0.97);
    box-shadow: var(--glow-green) !important;
    border-color: rgba(21, 45, 31, 0.6) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

/* کارتی که نزدیک‌ترین به وسط صفحه‌ست (موقع اسکرول) با این کلاس مشخص می‌شه */
.product-card.is-centered {
    border-color: #2ecc71;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.55), 0 12px 32px rgba(46, 204, 113, 0.2);
}

.product-card.is-centered .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-card.is-centered .product-card-img::after {
    opacity: 1;
}

.product-card-img {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-color: #161616;
    position: relative;
    overflow: hidden;
}

.product-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
    opacity: 0;
    transition: all 0.4s ease;
}

.product-card:hover .product-card-img::after {
    opacity: 1;
}

.product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.badge {
    font-family: var(--font-heading);
    font-size: 8px;
    letter-spacing: 1.5px;
    padding: 5px 9px;
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

.badge-new {
    background: var(--primary-green);
    color: #fff;
}

.badge-sale {
    background: #c0392b;
    color: #fff;
}

.badge-discount {
    background: var(--primary-gold);
    color: var(--bg-dark);
}

.product-actions {
    position: absolute;
    bottom: 14px;
    left: 14px;
    z-index: 2;
    display: flex;
    gap: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all 0.3s ease;
}

.product-action-btn:hover {
    background: var(--primary-green);
    border-color: var(--primary-gold);
    box-shadow: 0 0 16px rgba(195, 164, 117, 0.3);
}

.product-card-info {
    padding: 16px 14px;
}

.product-card-category {
    font-family: var(--font-heading);
    font-size: 8px;
    letter-spacing: 2.5px;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.product-card-name {
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    color: var(--text-white);
    line-height: 1.4;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-gold);
}

.old-price {
    font-family: var(--font-heading);
    font-size: 11px;
    color: #555;
    text-decoration: line-through;
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-muted);
}

.stars {
    color: var(--primary-gold);
}

.no-products {
    text-align: center;
    padding: 80px 20px;
    display: none;
}

.no-products svg {
    width: 64px;
    height: 64px;
    stroke: var(--text-muted);
    margin-bottom: 18px;
    opacity: 0.4;
}

.no-products h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.no-products p {
    font-family: var(--font-subtitle);
    font-style: italic;
    color: var(--text-muted);
    font-size: 14px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.page-btn {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-gray);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: var(--border-gold);
    color: var(--text-white);
}

.page-btn.active {
    background: var(--primary-green);
    border-color: var(--primary-gold);
    color: var(--text-white);
    font-weight: 700;
}

.page-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.main-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.product-page,
.main-content > .container {
    max-width: 1300px;
    width: 100%;
    margin: 0 auto;
    padding: 30px 5% 80px;
    box-sizing: border-box;
    overflow-x: hidden;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    max-width: 100%;
}

.gallery {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease;
}

.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.thumb {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid var(--border-medium);
    transition: var(--transition-fast);
    opacity: 0.5;
}

.thumb:hover {
    opacity: 0.8;
    border-color: var(--border-gold);
}

.thumb.active {
    border-color: var(--primary-gold);
    opacity: 1;
    box-shadow: 0 0 12px rgba(195, 164, 117, 0.3);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.product-category {
    font-family: var(--font-heading);
    font-size: 9px;
    letter-spacing: 3px;
    color: var(--primary-gold);
    text-transform: uppercase;
}

.product-name {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 1.4;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 11px;
}

.rating-count {
    color: var(--text-muted);
}

.product-price-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.discount-badge {
    background: var(--primary-green);
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
}

.product-description {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-gray);
    line-height: 2;
}

.option-label {
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
}

.qty-btn {
    width: 42px;
    height: 42px;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    color: var(--text-white);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:first-child {
    border-radius: 0 4px 4px 0;
}

.qty-btn:last-child {
    border-radius: 4px 0 0 4px;
}

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

.qty-input {
    width: 56px;
    height: 42px;
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-left: none;
    border-right: none;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
}

.add-to-cart-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-hover));
    border: 1px solid var(--primary-gold);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    margin-top: 8px;
}

.add-to-cart-btn:hover {
    box-shadow: 0 0 30px rgba(195, 164, 117, 0.2);
    transform: translateY(-2px);
}

.add-to-cart-btn:active {
    transform: scale(0.96);
}

.stock-info {
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.in-stock {
    color: #4eb075;
}

.low-stock {
    color: #f0a04b;
}

.details-section {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.detail-item {
    display: flex;
    gap: 8px;
    font-size: 11px;
}

.detail-label {
    color: var(--text-muted);
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    min-width: 100px;
}

.detail-value {
    color: var(--text-white);
    font-family: var(--font-heading);
}

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-muted);
    gap: 12px;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-medium);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ============================================
   CART PAGE
   ============================================ */
.cart-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 5% 80px;
    flex: 1;
    width: 100%;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

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

.cart-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 18px;
    display: flex;
    gap: 16px;
    transition: var(--transition-fast);
    position: relative;
}

.cart-item:hover {
    border-color: var(--border-gold);
}

.cart-item-img {
    width: 100px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--bg-input);
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-item-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.cart-item-meta {
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-item-meta span {
    color: var(--primary-gold);
}

.cart-item-price {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-gold);
    margin-top: auto;
}

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

.remove-btn {
    background: none;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px 8px;
    font-size: 12px;
    transition: var(--transition-fast);
}

.remove-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.cart-empty svg {
    width: 64px;
    height: 64px;
    stroke: var(--text-muted);
    margin-bottom: 18px;
    opacity: 0.3;
}

.cart-empty h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.cart-empty p {
    font-family: var(--font-subtitle);
    font-style: italic;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.cart-empty .btn-shop {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-green);
    border: 1px solid var(--primary-gold);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 2px;
    transition: var(--transition-fast);
}

.cart-empty .btn-shop:hover {
    background: var(--primary-green-hover);
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 24px;
    position: sticky;
    top: 90px;
}

.cart-summary h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.summary-row.total {
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-gold);
}

.summary-row.discount {
    color: #4eb075;
}

.promo-code {
    display: flex;
    gap: 8px;
    margin: 18px 0;
}

.promo-code input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 11px;
}

.promo-code button {
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--border-gold);
    border-radius: 4px;
    color: var(--primary-gold);
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.promo-code button:hover {
    background: rgba(195, 164, 117, 0.08);
}

.checkout-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-hover));
    border: 1px solid var(--primary-gold);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
}

.checkout-btn:hover {
    box-shadow: 0 0 30px rgba(195, 164, 117, 0.2);
    transform: translateY(-2px);
}

.checkout-btn:active {
    transform: scale(0.96);
}

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 5% 80px;
    flex: 1;
}

.checkout-form {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 32px;
}

.form-section {
    margin-bottom: 28px;
}

.form-section-title {
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 2px;
    color: var(--primary-gold);
    margin-bottom: 16px;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group.full {
    grid-column: 1/-1;
}

/* قیمت و توضیح اختصاصی هر سایز (پنل ادمین) */
.size-price-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.size-price-row {
    display: grid;
    grid-template-columns: 50px 1fr 1.4fr;
    gap: 8px;
    align-items: center;
}

.size-price-label {
    font-family: var(--font-heading);
    font-size: 12px;
    color: var(--primary-gold);
    text-align: center;
    background: rgba(195,164,117,0.08);
    border: 1px solid rgba(195,164,117,0.2);
    border-radius: 6px;
    padding: 8px 4px;
}

.size-price-empty {
    font-family: var(--font-heading);
    font-size: 11px;
    color: var(--text-muted);
    padding: 8px 2px;
}

/* جدول‌ها با اسکرول افقی روی موبایل، تا پنل ادمین از شکل نیفتد */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive .data-table {
    min-width: 640px;
}

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 12px;
}

.form-textarea {
    min-height: 60px;
    resize: vertical;
}

.form-select option {
    background: #111;
    color: var(--text-white);
}

.order-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-hover));
    border: 1px solid var(--primary-gold);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
}

.btn-submit:hover {
    box-shadow: 0 0 30px rgba(195, 164, 117, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   AUTH PAGES (Login, Register, Complete Profile)
   ============================================ */

.auth-container {
    position: relative;
    z-index: 1;
    width: 500px;
    max-width: 94vw;
    margin-top: 40px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 40px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.8s ease;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-white);
    margin-bottom: 4px;
}

.auth-subtitle {
    font-family: var(--font-subtitle);
    font-style: italic;
    font-size: 13px;
    color: var(--text-muted);
}

.steps-indicator {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 28px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-medium);
    transition: all 0.3s ease;
}

.step-dot.done {
    background: var(--primary-gold);
}

.step-dot.active {
    background: var(--primary-gold);
    box-shadow: 0 0 10px rgba(195, 164, 117, 0.5);
    width: 28px;
    border-radius: 20px;
}

.auth-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.auth-step.active {
    display: block;
}

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

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-fast);
    pointer-events: none;
}

.form-input:focus~.input-icon {
    color: var(--primary-gold);
}

.password-toggle {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

.password-toggle:hover {
    color: var(--primary-gold);
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-hover));
    border: 1px solid var(--primary-gold);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.btn-auth:hover {
    box-shadow: 0 0 30px rgba(195, 164, 117, 0.2);
    transform: translateY(-2px);
}

.btn-auth:active {
    transform: scale(0.95);
}

.btn-back {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-back:hover {
    border-color: #555;
    color: var(--text-white);
}

.code-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 22px;
    direction: ltr;
}

.code-inputs input {
    width: 48px;
    height: 56px;
    text-align: center;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.code-inputs input:focus {
    border-color: var(--primary-gold);
}

.timer-text {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.timer-text span {
    color: var(--primary-gold);
}

.resend-link {
    display: block;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--primary-gold);
    cursor: pointer;
    margin-bottom: 18px;
}

.resend-link:hover {
    text-decoration: underline;
}

.welcome-message {
    text-align: center;
    padding: 20px 0;
}

.welcome-icon {
    font-size: 56px;
    color: var(--primary-gold);
    margin-bottom: 14px;
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.welcome-message h2 {
    font-family: var(--font-heading);
    font-size: 19px;
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.welcome-message p {
    font-family: var(--font-subtitle);
    font-style: italic;
    font-size: 14px;
    color: var(--text-muted);
}

.auth-footer {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-gold);
    font-weight: 600;
    transition: var(--transition-fast);
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-text {
    color: var(--danger);
    font-family: var(--font-heading);
    font-size: 10px;
    letter-spacing: 0.5px;
    margin-top: 6px;
    display: none;
}

.error-text.show {
    display: block;
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(180deg, #0a1a10 0%, #0d0d0d 60%, #070707 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.admin-login-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.admin-login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 40px 32px;
    width: 400px;
    max-width: 92vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.admin-login-card .admin-logo {
    font-family: var(--font-logo);
    font-size: 32px;
    letter-spacing: 6px;
    color: var(--primary-gold);
    margin-bottom: 8px;
}

.admin-login-card h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 24px;
    color: var(--text-white);
}

.admin-login-card input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 13px;
    transition: var(--transition-fast);
}

.admin-login-card button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-hover));
    border: 1px solid var(--primary-gold);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    text-transform: uppercase;
}

.login-error {
    color: var(--danger);
    font-family: var(--font-heading);
    font-size: 10px;
    margin-top: 8px;
    display: none;
}

.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--bg-card);
    border-left: 1px solid var(--border-subtle);
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-sidebar-logo {
    font-family: var(--font-logo);
    font-size: 24px;
    letter-spacing: 5px;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 30px;
}

.admin-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 12px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--text-gray);
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.admin-nav-item:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.02);
}

.admin-nav-item.active {
    color: var(--primary-gold);
    background: rgba(21, 45, 31, 0.4);
    border-color: rgba(195, 164, 117, 0.15);
}

.admin-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 12px;
}

.admin-logout-btn {
    margin: 12px;
    padding: 11px;
    background: transparent;
    border: 1px solid rgba(192, 57, 43, 0.2);
    border-radius: 6px;
    color: var(--danger);
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.admin-logout-btn:hover {
    background: rgba(192, 57, 43, 0.08);
}

.admin-content {
    padding: 30px;
    overflow-y: auto;
}

.admin-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-tab.active {
    display: block;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-header h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    letter-spacing: 2px;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-card .stat-icon {
    font-size: 24px;
    color: var(--primary-gold);
    margin-bottom: 8px;
}

.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
}

.stat-card .stat-label {
    font-family: var(--font-heading);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-heading);
    font-size: 11px;
}

.data-table th {
    text-align: right;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--primary-gold);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-gray);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.data-table img {
    width: 40px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.badge-status {
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 9px;
    letter-spacing: 1px;
}

.badge-success {
    background: rgba(39, 174, 96, 0.15);
    color: var(--success);
}

.badge-warning {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning);
}

.badge-danger {
    background: rgba(192, 57, 43, 0.15);
    color: var(--danger);
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 24px;
    max-width: 700px;
}

.bulk-actions {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 8px;
    padding: 18px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bulk-actions span {
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--primary-gold);
}

.bulk-actions input {
    width: 100px;
    padding: 8px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 11px;
}

.bulk-actions select {
    padding: 8px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 11px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 30px;
    width: 500px;
    max-width: 94vw;
    max-height: 85vh;
    overflow-y: auto;
}

.modal h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

/* ============================================
   PROFILE PAGE (Complete Profile)
   ============================================ */
.avatar-upload-section {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 16px;
    cursor: pointer;
}

.avatar-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 34px;
    font-weight: 700;
    color: var(--primary-gold);
}

.avatar-upload-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.avatar-upload-section:hover .avatar-upload-overlay {
    opacity: 1;
}

.avatar-upload-overlay i {
    font-size: 22px;
    color: var(--primary-gold);
}

#avatarUpload {
    display: none;
}

.info-banner {
    background: rgba(21, 45, 31, 0.3);
    border: 1px solid rgba(195, 164, 117, 0.1);
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-banner i {
    font-size: 18px;
    color: var(--primary-gold);
    flex-shrink: 0;
}

.info-banner .info-content {
    flex: 1;
}

.info-banner .info-label {
    font-family: var(--font-heading);
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--primary-gold);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.info-banner .info-value {
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.3px;
    color: var(--text-muted);
}

.info-banner .info-badge {
    background: var(--primary-green);
    border: 1px solid var(--primary-gold);
    border-radius: 20px;
    padding: 4px 10px;
    font-family: var(--font-heading);
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--primary-gold);
}

.disabled-note {
    font-family: var(--font-heading);
    font-size: 8px;
    letter-spacing: 1px;
    color: var(--primary-gold);
    margin-top: 4px;
}

.bio-textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    padding: 12px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 12px;
    transition: var(--transition-fast);
}

.bio-textarea:focus {
    box-shadow: var(--glow-gold) !important;
    border-color: rgba(195, 164, 117, 0.35) !important;
}

.bio-count {
    text-align: left;
    font-family: var(--font-heading);
    font-size: 9px;
    color: var(--text-muted);
    margin-top: 4px;
    direction: ltr;
}

.btn-save {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-hover));
    border: 1px solid var(--primary-gold);
    border-radius: 4px;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.btn-save:hover {
    box-shadow: 0 0 30px rgba(195, 164, 117, 0.2);
    transform: translateY(-2px);
}

.btn-save:active {
    transform: scale(0.95);
}

.btn-skip {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border-medium);
    border-radius: 4px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-skip:hover {
    border-color: #555;
    color: var(--text-white);
}

.success-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-green);
    border: 1px solid var(--primary-gold);
    border-radius: 6px;
    padding: 14px 24px;
    z-index: 300;
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--text-white);
    display: none;
    animation: slideDown 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
    background-color: #050505;
    padding: 70px 5% 20px 5%;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 0.8fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: var(--font-logo);
    color: var(--primary-gold);
    font-size: 28px;
    letter-spacing: 5px;
    margin-bottom: 5px;
}

.brand-block .est {
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-gray);
    display: block;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.footer-desc {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.8;
}

.footer-block h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    margin-bottom: 20px;
    color: #e5e5e5;
    letter-spacing: 1px;
    font-weight: 600;
}

.links-block ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-block a {
    color: var(--text-gray);
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    display: inline-block;
    padding: 2px 0;
    border-radius: 2px;
}

.links-block a:active,
.links-block a:focus-visible {
    box-shadow: var(--glow-gold-light) !important;
    color: var(--primary-gold);
}

.links-block a:hover {
    color: var(--primary-gold);
    padding-right: 5px;
}

.contact-block p {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.newsletter-block p {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    width: 100%;
}

.newsletter-form input {
    flex: 1;
    background-color: #0f1010;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    color: var(--text-white);
    border-radius: 0 4px 4px 0;
    outline: none;
    font-family: var(--font-body);
    font-size: 13px;
    transition: var(--transition-smooth);
}

.newsletter-form input::placeholder {
    font-family: var(--font-subtitle);
    font-style: italic;
    color: rgba(255, 255, 255, 0.2);
}

.newsletter-form input:focus {
    box-shadow: var(--glow-gold) !important;
    border-color: rgba(195, 164, 117, 0.3) !important;
}

.newsletter-form button {
    background-color: var(--primary-green);
    border: none;
    color: var(--text-white);
    padding: 0 20px;
    border-radius: 4px 0 0 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.newsletter-form button:active,
.newsletter-form button:focus-visible {
    box-shadow: var(--glow-gold) !important;
}

.newsletter-form button:hover {
    background-color: var(--primary-green-hover);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-gray);
    letter-spacing: 2px;
}

.dev-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.dev-section h4 {
    font-family: var(--font-heading);
    font-size: 12px;
    margin-bottom: 15px;
    color: var(--text-gray);
    font-weight: 400;
    letter-spacing: 1px;
}

.dev-section a {
    color: var(--primary-gold);
    font-family: var(--font-heading);
    font-size: 12px;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dev-section a:hover {
    color: #fff;
    padding-right: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-layout {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: auto;
        z-index: 100;
        flex-direction: row;
        padding: 8px;
        border-left: none;
        border-top: 1px solid var(--border-subtle);
    }

    .admin-sidebar-logo {
        display: none;
    }

    .admin-nav {
        flex-direction: row-reverse;
        direction: ltr;
        overflow-x: auto;
        padding: 0;
    }

    .admin-nav-item {
        flex-shrink: 0;
        direction: rtl;
        padding: 8px 12px;
        font-size: 10px;
    }

    .admin-logout-btn {
        margin: 0 4px;
        padding: 8px 12px;
        font-size: 10px;
        flex-shrink: 0;
    }

    .admin-content {
        padding: 20px 16px 100px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .size-price-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .size-price-label {
        width: fit-content;
    }

    .table-responsive .data-table {
        font-size: 10px;
        min-width: 560px;
    }

    .edit-product-form, .add-product-form, .modal {
        width: 94vw;
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-section {
        height: 55vh;
        min-height: 360px;
    }

    .hero-title {
        font-size: 48px;
        letter-spacing: 8px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 380px;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .products-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        max-width: 85vw;
        height: 100vh;
        z-index: 270;
        overflow-y: auto;
        border-radius: 0;
        padding: 80px 20px 20px;
        max-height: 100vh;
    }

    .filters-sidebar.open {
        display: block;
    }

    .mobile-filter-toggle {
        display: flex;
    }

    .filters-close-btn {
        display: flex;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card-img {
        height: 220px;
    }

    .product-card-info {
        padding: 12px 10px;
    }

    .product-card-name {
        font-size: 11px;
    }

    .current-price {
        font-size: 13px;
    }

    .collection-grid {
        grid-template-columns: 1fr;
    }

    .collection-img {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-title {
        font-size: 24px;
    }

    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-sort {
        min-width: 100%;
    }

    .details-section {
        grid-template-columns: 1fr;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-img {
        width: 100%;
        height: 200px;
    }

    .cart-item-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card-img {
        height: 280px;
    }

    .auth-card {
        padding: 28px 18px;
    }

    .code-inputs input {
        width: 40px;
        height: 48px;
        font-size: 18px;
    }

    .code-inputs {
        gap: 6px;
    }
}

@media (min-width: 769px) {

    .mobile-menu-panel,
    .mobile-menu-overlay {
        display: none !important;
    }
}
/* ============================================
   انیمیشن‌های مدرن سایت (۲۰۲۶) — اسکرول‌ریویل، هاور، shine دکمه
   ============================================ */

/* عناصر هنگام ورود به دید، محو و بالا می‌آیند */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* افکت shine روی دکمه‌های اصلی هنگام هاور */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    right: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: skewX(-20deg);
    transition: right 0.7s ease;
    pointer-events: none;
}

.btn-primary:hover::after {
    right: 130%;
}

/* لودر ظریف عکس‌های محصول هنگام لود */
img.reveal-img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.reveal-img.loaded {
    opacity: 1;
}

/* افکت شمارش عدد آماری در پنل ادمین */
.stat-value {
    transition: color 0.3s ease;
}

/* کاربرانی که ترجیح می‌دهند حرکت کمتری ببینند */
@media (prefers-reduced-motion: reduce) {
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .btn-primary::after {
        display: none !important;
    }
    * {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}
