@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
html { scrollbar-color: #2a2a2a #111; scrollbar-width: thin; }

:root {
    --primary: #BA7802;
    --primary-hover: #A56B02;
    --bg-dark: #0d0d0d;
    --bg-card: #1a1a1a;
    --bg-header: #111111;
    --bg-footer: #0a0a0a;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --text-muted: #777777;
    --border-color: #2a2a2a;
    --shadow: 0 4px 20px rgba(0,0,0,0.5);
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    direction: rtl;
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
}
body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== HEADER ===== */
.top-bar {
    background: #080808;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

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

.top-bar-left span {
    margin-left: 20px;
}

.top-bar-left i {
    margin-left: 6px;
    color: var(--primary);
}

.top-bar-right a {
    color: var(--text-muted);
    margin-right: 15px;
    font-size: 16px;
}

.top-bar-right a:hover {
    color: var(--primary);
}

header {
    position: relative;
    background: rgba(17,17,17,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 18px;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    margin-inline: max(20px, calc((100% - 1200px) / 2));
    border-radius: 50px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    text-decoration: none;
}

.logo-icon {
    width: 38px;
    height: 38px;
    border: 2px solid var(--primary);
    border-radius: 10px;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(186, 120, 2, 0.1), transparent);
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(186, 120, 2, 0.25);
    border-radius: 6px;
    transform: rotate(45deg);
}

.logo-icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border: 2px solid var(--primary);
    border-radius: 2px;
    opacity: 0.4;
}

.logo h1 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.3;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.logo:hover h1 {
    transform: scale(1.02);
}

.logo:hover .logo-icon {
    border-color: #D4AF37;
    box-shadow: 0 0 20px rgba(186, 120, 2, 0.2);
}

.logo-en {
    font-size: 19px;
    letter-spacing: 0.5px;
    direction: ltr;
    unicode-bidi: embed;
}

.logo-en span {
    color: var(--primary);
}

.logo-sep {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-muted);
    opacity: 0.4;
    margin: 0 2px;
}

.logo-fa {
    font-size: 18px;
    font-weight: 600;
}

.logo-fa span {
    color: var(--primary);
    font-weight: 700;
}

/* Navigation */
nav {
    display: flex;
    align-items: center;
}

nav > ul {
    display: flex;
    gap: 5px;
}

nav > ul > li {
    position: relative;
}

nav > ul > li > a {
    padding: 10px 18px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

nav > ul > li > a:hover,
nav > ul > li > a.active {
    color: var(--primary);
    background: rgba(212, 167, 98, 0.1);
}

nav > ul > li > a i {
    font-size: 12px;
}

/* Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    min-width: 220px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    z-index: 100;
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.3s ease;
}

.nav-footer { display: none; }

.dropdown-menu li a:hover {
    background: rgba(212, 167, 98, 0.08);
    color: var(--primary);
    padding-right: 25px;
}

nav > ul > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icons a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    position: relative;
    transition: all 0.3s ease;
}

.header-icons a:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* ===== USER DROPDOWN ===== */
.user-dropdown {
    position: relative;
}
.user-dropdown .dropdown-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 1001;
    transition: opacity 0.15s, visibility 0.15s;
    pointer-events: none;
}
.user-dropdown:hover .dropdown-menu,
.user-dropdown .dropdown-menu:hover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.user-dropdown::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 16px;
}
.user-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    border: none;
}
.user-dropdown .dropdown-menu a:hover {
    background: rgba(186,120,2,0.1);
    color: var(--primary);
}
.user-dropdown .dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 12px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wishlist */
.product-actions a .in-wishlist,
.product-actions a.in-wishlist i,
a .in-wishlist { color: var(--primary) !important; }
.product-actions a .in-wishlist i,
.product-actions a.in-wishlist i { color: var(--primary) !important; font-weight: 900; }
/* Mobile Toggle - hidden on laptop/desktop */
@media (min-width: 1056px) {
    .mobile-toggle, .menu-overlay { display: none !important; }
}
.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-primary);
    background: none;
    border: none;
    padding: 5px;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.75) 40%, rgba(13,13,13,0.85) 100%);
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}
@media (min-width: 993px) {
    .hero .container { padding-right: 0; }
}

.hero-content {
    max-width: none;
    width: 100%;
}
.hero-flex .hero-content {
    max-width: none;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(212, 167, 98, 0.15);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(212, 167, 98, 0.2);
}

.hero-content h1 {
    font-size: clamp(28px, 6vw, 52px);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero-content h1 span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
    opacity: 0.5;
}

.hero-content h1 .logo-en {
    color: inherit;
    display: inline;
    font-size: inherit;
}
.hero-content h1 .logo-en::after {
    display: none;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 2;
    margin-bottom: 35px;
    max-width: none;
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #D4AF37);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 167, 98, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 8px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-header h2 span {
    color: var(--primary);
}

/* ===== ABOUT SECTION ===== */
/* ===== BLOG SECTION ===== */
.section-header p {
    color: var(--text-muted);
    font-size: 15px;
}

/* ===== CATEGORIES ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: rgba(212, 167, 98, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: #000;
}

.category-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===== PRODUCTS ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #222;
}

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

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

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #000;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}
.contract-badge {
    right: auto;
    left: 12px;
    background: rgba(231,76,60,0.15);
    color: #e74c3c;
    border: 1px solid rgba(231,76,60,0.3);
    font-size: 10px;
}

.product-actions {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-actions a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 14px;
    border: 1px solid var(--border-color);
}

.product-actions a:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}
.product-info .product-price { justify-content: center; }
.product-info .add-to-cart { justify-content: center; }
.product-info .product-rating { justify-content: center; }

.product-category {
    font-size: 12px;
    color: var(--primary);
    margin-bottom: 5px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info h3 a:hover {
    color: var(--primary);
}

.product-info .product-price {
    margin-top: auto;
}

.product-info .product-rating {
    margin-top: 5px;
}

.product-info .add-to-cart {
    margin-top: 10px;
}

.product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.price-usd {
    display: block;
    width: 100%;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: -4px;
}

.price-old {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.price-current {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #f39c12;
}
.product-rating .stars { display: inline-flex; gap: 2px; }

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

.add-to-cart {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.cart-toggle { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; }
.cart-toggle .add-to-cart { width: 100%; }
.cart-toggle.in-cart .add-to-cart { display: none; }
.cart-toggle:not(.in-cart) .cart-qty-selector { display: none; }
.cart-qty-selector {
    display: flex; align-items: center; gap: 0; justify-content: center;
    background: var(--bg-dark); border: 1px solid var(--border-color);
    border-radius: 8px; overflow: hidden; direction: ltr; width: 100%;
    height: 44px;
}
.qty-btn {
    width: 34px; height: 34px; border: none; cursor: pointer;
    background: transparent; color: var(--text-secondary);
    font-size: 18px; font-weight: 700; display: flex;
    align-items: center; justify-content: center;
    transition: all 0.2s; user-select: none; line-height: 1;
}
.qty-btn:hover { background: var(--primary); color: #000; }
.qty-count {
    min-width: 30px; text-align: center; font-size: 14px;
    font-weight: 700; color: var(--text); padding: 4px 4px 0;
    font-family: 'Vazirmatn', sans-serif; line-height: 1;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    height: 400px;
    background: #222;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.about-content h2 span {
    color: var(--primary);
}

.about-content h2 .logo-en {
    color: inherit;
    font-size: inherit;
}
.about-content h2 .logo-en::after {
    display: none;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 2;
}

.about-info-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.about-info-item i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(186, 120, 2, 0.1);
    border: 1px solid rgba(186, 120, 2, 0.2);
    border-radius: 50%;
    color: var(--primary);
    font-size: 12px;
    flex-shrink: 0;
}
    color: var(--text-secondary);
}

.feature-item i {
    color: var(--primary);
    font-size: 16px;
}

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.testimonial-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(186,120,2,0.1);
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px;
    left: 18px;
    font-size: 60px;
    line-height: 1;
    color: var(--primary);
    opacity: 0.12;
    font-family: serif;
    pointer-events: none;
}

.testimonial-stars {
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    gap: 2px;
}

.testimonial-card p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 2;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #d4940a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #000;
    font-size: 15px;
    flex-shrink: 0;
}

.testimonial-author h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.testimonial-author span {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

.testimonial-source {
    margin-top: 6px;
    position: relative;
    z-index: 1;
}

.testimonial-source a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: rgba(186,120,2,0.1);
    border: 1px solid rgba(186,120,2,0.2);
    border-radius: 5px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: .3s
}

.testimonial-source a:hover {
    background: rgba(186,120,2,0.2);
}

.test-carousel-btn {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:2;
    width:40px;
    height:40px;
    border-radius:50%;
    background:var(--bg-card);
    border:1px solid var(--border-color);
    color:var(--primary);
    cursor:pointer;
    font-size:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 4px 15px rgba(0,0,0,0.3);
    transition:.3s;
}

.test-carousel-btn:hover {
    background:var(--primary);
    color:#000;
}

.test-carousel-btn-prev {
    right:-15px;
}

.test-carousel-btn-next {
    left:-15px;
}

/* ===== NEWSLETTER ===== */
.newsletter {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 50px;
    text-align: center;
}

.newsletter h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.newsletter p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--primary);
}

.newsletter-form button {
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary), #D4AF37);
    color: #000;
    border: none;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 167, 98, 0.3);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-about .logo {
    margin-bottom: 15px;
}
.footer-about .logo .logo-icon {
    width: 32px;
    height: 32px;
}
.footer-about .logo .logo-icon::after {
    font-size: 13px;
}
.footer-about .logo h1 {
    font-size: 16px;
}
.footer-about .logo .logo-en {
    font-size: 16px;
}
.footer-about .logo .logo-fa {
    font-size: 15px;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 2;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 15px;
}

.footer-contact i {
    color: var(--primary);
    width: 20px;
}

.footer-bottom {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--primary);
}

/* ===== PAGE BADGE ===== */
.page-badge {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px 0 5px;
}
.page-badge span {
    display: inline-block;
    padding: 10px 28px;
    background: linear-gradient(135deg, rgba(186,120,2,0.12), rgba(186,120,2,0.06));
    border: 1px solid rgba(186,120,2,0.25);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(186,120,2,0.08);
}
.page-badge i {
    margin-left: 8px;
    font-size: 14px;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 60px 0;
    text-align: center;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.page-header p {
    color: var(--text-muted);
    font-size: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 10px;
}

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

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
}

.contact-info-card i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 15px;
}

.contact-info-card h4 {
    font-size: 15px;
    margin-bottom: 5px;
}

.contact-info-card p {
    font-size: 13px;
    color: var(--text-muted);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 35px;
}

.contact-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

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

/* ===== CART / CHECKOUT ===== */
.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table th {
    text-align: right;
    padding: 15px;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    background: #222;
    overflow: hidden;
}

.cart-product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product-info h4 {
    font-size: 14px;
    font-weight: 600;
}

.cart-product-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.qty-input {
    width: 60px;
    padding: 8px;
    text-align: center;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Vazirmatn', sans-serif;
}

.cart-total {
    font-weight: 700;
    color: var(--primary);
}

.cart-remove {
    color: #e74c3c;
    cursor: pointer;
    font-size: 18px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 30px;
}

.cart-summary h3 {
    font-size: 18px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row.total {
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* ===== ACCOUNT ===== */
.account-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.account-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px;
}

.account-sidebar li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.account-sidebar li a:hover,
.account-sidebar li a.active {
    background: rgba(212, 167, 98, 0.1);
    color: var(--primary);
}

/* ===== SHOP SIDEBAR ===== */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

.shop-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
}

.shop-sidebar h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section {
    margin-bottom: 25px;
}

.filter-section label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.filter-section input[type="checkbox"] {
    accent-color: var(--primary);
}

/* Custom gold checkboxes */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
}

.checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-wrapper .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-wrapper:hover .checkmark {
    border-color: var(--primary);
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-wrapper input[type="checkbox"]:checked ~ .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 11px;
    color: #000;
}

.price-range {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.price-num { width: 90px !important; }
.price-num .num-btn { width: 28px !important; font-size: 16px !important; padding: 6px 0 !important; }
.price-num input { width: 34px !important; padding: 6px 0 !important; font-size: 11px !important; }

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.shop-toolbar p {
    font-size: 14px;
    color: var(--text-muted);
}

.shop-toolbar select {
    padding: 8px 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'Vazirmatn', sans-serif;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.cart-toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), #D4AF37);
    color: #000; padding: 14px 28px; border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif; font-size: 14px; font-weight: 600;
    z-index: 99999; box-shadow: 0 10px 40px rgba(186,120,2,0.4);
    animation: toastIn 0.3s ease; transition: all 0.5s;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.flash-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
    background: #27ae60; color: #fff; padding: 14px 28px;
    border-radius: 10px; font-size: 14px; font-weight: 600; z-index: 99999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    animation: slideDown 0.4s ease forwards;
    transition: all 0.5s;
}
.flash-toast.error { background: #e74c3c; }
@keyframes slideDown { to { opacity: 1; top: 30px; } }
/* Empty state */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state i { font-size: 64px; color: var(--text-muted); margin-bottom: 20px; display: block; }
.empty-state h2 { color: var(--text-secondary); margin-bottom: 10px; }
.empty-state p { color: var(--text-muted); margin-bottom: 25px; font-size: 14px; }

/* Message */
.message { padding: 14px 18px; border-radius: 10px; font-size: 13px; margin-bottom: 20px; }
.message-error { background: rgba(231,76,60,0.15); color: #e74c3c; }
.message-success { background: rgba(39,174,96,0.15); color: #27ae60; }

.pagination a.active,
.pagination a:hover {
    background: var(--primary);
    color: #000;
    border-color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .about-section {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .shop-layout {
        grid-template-columns: 1fr;
    }
    .account-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
    .section-header h2 {
        font-size: 24px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-info-cards {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .cart-table {
        display: block;
        overflow-x: auto;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .header-icons a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .header-icons a:last-child {
        display: none;
    }
    .newsletter {
        padding: 30px 20px;
    }
    .newsletter-form {
        flex-direction: column;
    }
}

/* Product Gallery Slider */
.product-gallery {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.gallery-main {
    position: relative;
}

.gallery-slide {
    width: 100%;
    display: none;
}

.gallery-slide:first-child {
    display: block;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-nav:hover {
    background: var(--primary);
}

.gallery-prev {
    right: 10px;
}

.gallery-next {
    left: 10px;
}

.product-detail-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.product-detail-gallery {
    width: 400px;
    flex-shrink: 0;
}

.product-detail-info {
    flex: 1;
}

@media (max-width: 900px) {
    .product-detail-layout {
        flex-direction: column;
    }
    .product-detail-gallery {
        width: 100%;
    }
    .product-detail-bottom {
        grid-template-columns: 1fr !important;
    }
}

.gallery-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 10;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    direction: rtl;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
    flex-shrink: 0;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary);
}

/* Product card gallery hover */
.product-card .product-image {
    position: relative;
    overflow: hidden;
}

.product-card .product-image .gallery-hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Description read-more */
.desc-container {
    position: relative;
}

.desc-text {
    color: var(--text-secondary);
    line-height: 2;
    font-size: 14px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.desc-text.desc-collapsed {
    max-height: 120px;
}

.desc-text:not(.desc-collapsed) {
    max-height: none;
}

.desc-toggle {
    display: block;
    margin-top: 12px;
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 6px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    transition: all 0.3s;
}

.desc-toggle:hover {
    background: var(--primary);
    color: #000;
}

/* product tags */
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-color); }
.product-tag { display: inline-block; padding: 3px 10px; background: rgba(186,120,2,0.15); border: 1px solid rgba(186,120,2,0.3); border-radius: 6px; font-size: 11px; color: var(--primary); }

/* number input spinners */
.num-input-wrap { display: inline-flex; align-items: center; gap: 0; background: var(--bg-dark); border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.num-input-wrap input[type=number] { width: 50px; padding: 12px 4px; text-align: center; background: transparent; border: none; color: var(--text-primary); font-family: 'Vazirmatn', sans-serif; font-size: 14px; outline: none; -moz-appearance: textfield; }
.num-input-wrap input::-webkit-outer-spin-button,
.num-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.num-btn { width: 40px; border: none; cursor: pointer; background: transparent; color: var(--text-secondary); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 10px 0; user-select: none; transition: all 0.25s; line-height: 1; }
.num-btn:first-child { border-radius: 8px 0 0 8px; }
.num-btn:last-child { border-radius: 0 8px 8px 0; }
.num-btn:hover { background: var(--primary); color: #000; }
.num-btn:active { background: #8a5a02; transform: scale(0.92); }

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px;
    }
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .top-bar-left span {
        font-size: 11px;
    }
    .logo h1 {
        font-size: 15px;
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* E-Namad badge */
.footer-enamad {
    margin-top: 20px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}
.footer-enamad img {
    max-width: 120px;
    height: auto;
    display: block;
}
.footer-enamad a {
    display: inline-block;
}

/* ===== HERO GEOMETRIC SHAPES ===== */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-shapes::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(45deg, rgba(186, 120, 2, 0.07) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(186, 120, 2, 0.07) 1px, transparent 1px);
    background-size: 60px 60px;
}

.shape {
    position: absolute;
    border: 2px solid rgba(186, 120, 2, 0.35);
    border-radius: 50%;
    animation: shapeFloat 20s ease-in-out infinite;
}

.shape-1 {
    width: clamp(200px, 30vw, 400px); height: clamp(200px, 30vw, 400px);
    top: -100px; right: -80px;
    animation-delay: 0s;
    border-width: 3px;
    border-color: rgba(186, 120, 2, 0.25);
    background: radial-gradient(circle at 30% 30%, rgba(186, 120, 2, 0.1), transparent 60%);
}

.shape-2 {
    width: clamp(150px, 20vw, 280px); height: clamp(150px, 20vw, 280px);
    bottom: 5%; left: -60px;
    animation-delay: -5s;
    border-color: rgba(186, 120, 2, 0.2);
    border-style: dashed;
}

.shape-3 {
    width: clamp(100px, 14vw, 180px); height: clamp(100px, 14vw, 180px);
    top: 25%; right: 15%;
    animation-delay: -10s;
    border-width: 3px;
    border-color: rgba(212, 167, 98, 0.25);
    box-shadow: inset 0 0 40px rgba(186, 120, 2, 0.12), 0 0 40px rgba(186, 120, 2, 0.08);
}

.shape-4 {
    width: clamp(70px, 9vw, 110px); height: clamp(70px, 9vw, 110px);
    bottom: 25%; right: 30%;
    animation-delay: -3s;
    background: rgba(186, 120, 2, 0.1);
    border: 2px solid rgba(186, 120, 2, 0.35);
    box-shadow: 0 0 50px rgba(186, 120, 2, 0.15);
}

.shape-5 {
    width: clamp(80px, 12vw, 150px); height: clamp(80px, 12vw, 150px);
    top: 10%; left: 10%;
    animation-delay: -8s;
    border: 2px solid rgba(186, 120, 2, 0.18);
    border-style: dashed;
    border-radius: 0;
    transform: rotate(45deg);
}

.shape-6 {
    width: clamp(40px, 5vw, 70px); height: clamp(40px, 5vw, 70px);
    top: 55%; left: 35%;
    animation-delay: -15s;
    background: rgba(212, 167, 98, 0.15);
    border: none;
    border-radius: 0;
    transform: rotate(45deg) skew(10deg, 10deg);
    box-shadow: 0 0 40px rgba(186, 120, 2, 0.15);
}

.shape-7 {
    position: absolute;
    width: clamp(120px, 18vw, 220px); height: clamp(120px, 18vw, 220px);
    bottom: 10%; right: 8%;
    border: 2px solid rgba(186, 120, 2, 0.2);
    border-radius: 40px;
    transform: rotate(45deg);
    animation: shapePulse 6s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(186, 120, 2, 0.08), transparent);
    box-shadow: 0 0 60px rgba(186, 120, 2, 0.1);
}

.shape-7::before {
    content: '';
    position: absolute;
    inset: 15px;
    border: 1px solid rgba(186, 120, 2, 0.15);
    border-radius: 25px;
    transform: rotate(-15deg);
}

.shape-8 {
    position: absolute;
    width: clamp(80px, 10vw, 130px); height: clamp(80px, 10vw, 130px);
    top: 8%; left: 28%;
    border: 2px solid rgba(212, 167, 98, 0.18);
    border-radius: 25px;
    transform: rotate(30deg);
    animation: shapePulse 5s ease-in-out infinite reverse;
    background: radial-gradient(circle at center, rgba(186, 120, 2, 0.08), transparent);
}

.shape-8::before {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(186, 120, 2, 0.12);
    border-radius: 15px;
    transform: rotate(-20deg);
}

/* Diamond shape */
.shape-9 {
    position: absolute;
    width: 0; height: 0;
    border-left: clamp(30px, 4vw, 50px) solid transparent;
    border-right: clamp(30px, 4vw, 50px) solid transparent;
    border-bottom: clamp(50px, 7vw, 90px) solid rgba(186, 120, 2, 0.2);
    top: 60%; left: 8%;
    animation: shapeFloat 22s ease-in-out infinite;
    animation-delay: -12s;
    filter: drop-shadow(0 0 20px rgba(186, 120, 2, 0.1));
}

/* Ring shape with dots */
.shape-ring {
    position: absolute;
    width: clamp(60px, 9vw, 120px); height: clamp(60px, 9vw, 120px);
    top: 40%; left: 60%;
    border: 2px dotted rgba(212, 167, 98, 0.25);
    border-radius: 50%;
    animation: shapeSpin 15s linear infinite;
}

.shape-ring::after {
    content: '';
    position: absolute;
    top: -4px; left: 50%;
    transform: translateX(-50%);
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
}

.shape-ring-2 {
    position: absolute;
    width: clamp(40px, 6vw, 80px); height: clamp(40px, 6vw, 80px);
    bottom: 40%; right: 20%;
    border: 1px solid rgba(186, 120, 2, 0.2);
    border-radius: 50%;
    animation: shapeSpin 20s linear infinite reverse;
}

.shape-ring-2::after {
    content: '';
    position: absolute;
    left: -4px; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.5;
}

/* Concentric circles */
.shape-concentric {
    position: absolute;
    width: clamp(90px, 13vw, 160px); height: clamp(90px, 13vw, 160px);
    bottom: 5%; right: 40%;
    border-radius: 50%;
    border: 1px solid rgba(186, 120, 2, 0.15);
    animation: shapeFloat 18s ease-in-out infinite;
    animation-delay: -6s;
}

.shape-concentric::before {
    content: '';
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    border: 1px solid rgba(186, 120, 2, 0.18);
}

.shape-concentric::after {
    content: '';
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    border: 1px solid rgba(186, 120, 2, 0.22);
    background: rgba(186, 120, 2, 0.08);
}

/* Golden line accents */
.shape-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(186, 120, 2, 0.2), transparent);
}

.shape-line-1 {
    width: clamp(150px, 25vw, 300px); height: 2px;
    top: 20%; left: -20px;
    transform: rotate(-12deg);
    opacity: 0.8;
}

.shape-line-2 {
    width: clamp(200px, 30vw, 400px); height: 1px;
    bottom: 35%; right: -60px;
    transform: rotate(20deg);
    background: linear-gradient(90deg, rgba(186, 120, 2, 0.15), transparent);
}

.shape-line-3 {
    width: clamp(100px, 15vw, 200px); height: 2px;
    top: 55%; left: 25%;
    transform: rotate(35deg);
    opacity: 0.7;
    background: linear-gradient(90deg, transparent, rgba(212, 167, 98, 0.15), transparent);
}

.shape-line-4 {
    position: absolute;
    width: 2px;
    height: clamp(80px, 12vh, 150px);
    bottom: 15%; left: 18%;
    background: linear-gradient(180deg, transparent, rgba(186, 120, 2, 0.15), transparent);
    transform: rotate(25deg);
}

.shape-line-5 {
    position: absolute;
    width: 2px;
    height: clamp(60px, 10vh, 120px);
    top: 15%; right: 35%;
    background: linear-gradient(180deg, transparent, rgba(186, 120, 2, 0.12), transparent);
    transform: rotate(-15deg);
}

.shape-dots {
    position: absolute;
    width: clamp(100px, 16vw, 180px); height: clamp(100px, 16vw, 180px);
    bottom: 25%; left: 5%;
    background-image: radial-gradient(circle, rgba(186,120,2,0.25) 2px, transparent 2px);
    background-size: 18px 18px;
    animation: shapeFloat 25s ease-in-out infinite;
    animation-delay: -7s;
    opacity: 0.9;
}

.shape-dots-2 {
    position: absolute;
    width: clamp(60px, 10vw, 120px); height: clamp(60px, 10vw, 120px);
    top: 12%; right: 40%;
    background-image: radial-gradient(circle, rgba(212,167,98,0.18) 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    animation: shapeFloat 20s ease-in-out infinite;
    animation-delay: -3s;
    opacity: 0.8;
}

/* Gold glow orbs */
.shape-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: glowPulse 8s ease-in-out infinite alternate;
}

.shape-glow-1 {
    width: clamp(200px, 30vw, 400px); height: clamp(200px, 30vw, 400px);
    top: -100px; left: -100px;
    background: radial-gradient(circle, rgba(186, 120, 2, 0.35), transparent);
    animation-delay: 0s;
}

.shape-glow-2 {
    width: clamp(150px, 20vw, 300px); height: clamp(150px, 20vw, 300px);
    bottom: -80px; right: -80px;
    background: radial-gradient(circle, rgba(212, 167, 98, 0.25), transparent);
    animation-delay: -4s;
}

/* Geometric triangle pattern */
.shape-tri-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(60deg, rgba(186, 120, 2, 0.05) 1px, transparent 1px),
        linear-gradient(-60deg, rgba(186, 120, 2, 0.05) 1px, transparent 1px);
    background-size: 80px 46px;
    background-position: 0 0, 40px 23px;
}

/* Hexagon shape */
.shape-hex {
    position: absolute;
    width: clamp(60px, 8vw, 100px); height: clamp(55px, 7vw, 90px);
    top: 70%; left: 55%;
    background: rgba(186, 120, 2, 0.12);
    clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
    animation: shapeFloat 24s ease-in-out infinite;
    animation-delay: -9s;
    border: none;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(25px, -35px) rotate(90deg); }
    50% { transform: translate(-15px, 25px) rotate(180deg); }
    75% { transform: translate(35px, 15px) rotate(270deg); }
}
@keyframes shapePulse {
    0%, 100% { transform: rotate(45deg) scale(1); opacity: 0.6; }
    50% { transform: rotate(45deg) scale(1.12); opacity: 1; }
}
@keyframes shapeSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes glowPulse {
    0% { opacity: 0.15; transform: scale(1); }
    100% { opacity: 0.35; transform: scale(1.25); }
}

@media (max-width: 768px) {
    .shape-7, .shape-8, .shape-dots, .shape-dots-2 { display: none; }
    .shape-line-2, .shape-line-3, .shape-line-4, .shape-line-5 { display: none; }
    .shape-9, .shape-ring, .shape-ring-2 { display: none; }
    .shape-concentric, .shape-tri-grid, .shape-hex { display: none; }
    .shape-glow-2 { display: none; }
}
.hero-divider {
    width: clamp(60px, 10vw, 80px);
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    margin: 20px 0;
    border-radius: 2px;
}
.hero-sep {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 300;
    color: var(--primary) !important;
    opacity: 0.5;
    margin: 0 8px;
    vertical-align: middle;
}

/* ===== RESPONSIVE MOBILE MENU ===== */
@media (max-width: 1055px) {
    header { position: sticky; top: 12px; z-index: 10001; margin-inline: 20px; }
    .header-inner { position: relative; padding: 4px 12px; }

    /* Nav sidebar */
    nav {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, #151515 0%, #111 100%);
        border-left: 1px solid rgba(186,120,2,0.1);
        z-index: 10002;
        padding: 80px 16px 24px;
        transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        overflow-y: auto;
        box-shadow: -10px 0 60px rgba(0,0,0,0.7), inset -1px 0 0 rgba(186,120,2,0.05);
    }
    nav.open { right: 0; }

    /* Main menu items */
    nav > ul {
        flex-direction: column;
        list-style: none;
        padding: 0;
        margin: 0;
        gap: 2px;
    }
    nav > ul > li > a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        color: #e0e0e0;
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
        border-radius: 10px;
        transition: all 0.2s;
    }
    nav > ul > li > a:hover,
    nav > ul > li > a.active {
        background: rgba(186, 120, 2, 0.12);
        color: #fff;
    }
    nav > ul > li > a i {
        width: 20px;
        text-align: center;
        font-size: 15px;
        color: var(--primary);
        opacity: 0.8;
    }

    /* Dropdown */
    nav .dropdown-menu {
        display: none;
        padding: 4px 0;
        margin: 4px 8px 8px;
        list-style: none;
        background: #1a1a1a;
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,0.06);
        position: static;
        opacity: 1;
        visibility: visible;
    }
    nav .dropdown-menu.open { display: block; }
    nav .dropdown-menu li a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        color: #b0b0b0;
        font-size: 14px;
        font-weight: 400;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.15s;
        margin: 1px 4px;
    }
    nav .dropdown-menu li a:hover {
        color: #fff;
        background: rgba(186, 120, 2, 0.15);
    }
    nav .dropdown-menu li a i {
        width: 16px;
        text-align: center;
        color: var(--primary);
        font-size: 12px;
        opacity: 0.7;
    }

    /* Chevron */
    nav > ul > li > a .fa-chevron-down {
        margin-right: auto;
        transition: transform 0.3s;
        font-size: 11px;
        opacity: 0.5;
    }
    li:has(.dropdown-menu.open) > a .fa-chevron-down {
        transform: rotate(180deg);
        opacity: 0.8;
    }

    /* Hide user area in header on mobile */
    .header-user-area { display: none; }
    .header-icons { gap: 4px; }

    /* --- Nav footer (user section) --- */
    .nav-footer {
        display: block;
        margin-top: 24px;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.06);
    }

    /* User card */
    .nav-user {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 16px;
        margin-bottom: 12px;
        background: linear-gradient(135deg, rgba(186,120,2,0.08), rgba(186,120,2,0.03));
        border-radius: 12px;
        border: 1px solid rgba(186,120,2,0.1);
    }
    .nav-user i {
        font-size: 28px;
        color: var(--primary);
        opacity: 0.9;
    }
    .nav-user span {
        font-size: 14px;
        font-weight: 600;
        color: #e0e0e0;
    }
    .nav-partner-badge {
        font-size: 9px;
        background: var(--primary);
        color: #000;
        padding: 2px 7px;
        border-radius: 3px;
        font-weight: 700;
        margin-right: auto;
    }

    /* Nav links */
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1px;
    }
    .nav-links a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        color: #999;
        font-size: 14px;
        font-weight: 400;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.15s;
    }
    .nav-links a:hover {
        background: rgba(255,255,255,0.04);
        color: #fff;
    }
    .nav-links a i {
        width: 18px;
        text-align: center;
        font-size: 14px;
        color: var(--primary);
        opacity: 0.6;
    }

    /* Guest state - centered buttons */
    .nav-links-guest a {
        justify-content: center;
        padding: 14px 16px;
        font-weight: 500;
        background: rgba(255,255,255,0.03);
        border-radius: 10px;
        margin-bottom: 4px;
    }
    .nav-links-guest a:hover {
        background: rgba(186,120,2,0.1);
        color: var(--primary);
    }
    .nav-links-guest a i {
        width: auto;
        opacity: 0.8;
    }

    .nav-divider {
        height: 1px;
        background: rgba(255,255,255,0.04);
        margin: 3px 16px;
    }
    .nav-cart-count {
        margin-right: auto;
        background: var(--primary);
        color: #000;
        font-size: 10px;
        font-weight: 700;
        padding: 1px 7px;
        border-radius: 8px;
        min-width: 20px;
        text-align: center;
        line-height: 1.6;
    }

    /* Mobile menu overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 10000;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        opacity: 0;
        transition: opacity 0.35s ease;
    }
    .menu-overlay.show {
        display: block;
        opacity: 1;
    }

    /* Mobile hamburger animation */
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 42px;
        height: 42px;
        cursor: pointer;
        font-size: 20px;
        color: var(--text-primary);
        background: linear-gradient(135deg, rgba(186,120,2,0.15), rgba(186,120,2,0.05));
        border: 1px solid rgba(186,120,2,0.2);
        border-radius: 12px;
        padding: 0;
        position: relative;
        z-index: 100000;
        transition: all 0.3s;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    .mobile-toggle:hover { background: linear-gradient(135deg, rgba(186,120,2,0.25), rgba(186,120,2,0.1)); border-color: rgba(186,120,2,0.35); transform: scale(1.05); }
    .mobile-toggle .hamburger-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 18px;
    }
    .mobile-toggle .hamburger-icon span {
        display: block;
        height: 2.5px;
        background: var(--primary);
        border-radius: 2px;
        transition: all 0.3s;
    }
    .mobile-toggle.open .hamburger-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .mobile-toggle.open .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }
    .mobile-toggle.open .hamburger-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    .mobile-toggle.open { background: linear-gradient(135deg, rgba(186,120,2,0.2), rgba(186,120,2,0.08)); border-color: var(--primary); }
}
@media (max-width: 768px) {
    .hero {
        margin-top: -80px;
        padding-top: 100px;
        padding-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 26px;
    }
    .hero-badge {
        font-size: 11px;
        padding: 5px 14px;
    }
    .hero-content p {
        font-size: 13px;
    }
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }
    .section-header h2 {
        font-size: 20px;
    }
    .cart-toast {
        width: 90%;
        right: 5%;
    }
    .blog-slide {
        min-width: 100% !important;
    }
}

/* Very narrow screens */
@media (max-width: 400px) {
    header { margin-inline: 8px; }
    .header-inner { padding: 4px 8px; gap: 6px; }
    .logo h1 { font-size: 14px; gap: 4px; }
    .logo-en { font-size: 14px; }
    .logo-fa { font-size: 13px; }
    .logo-sep { font-size: 12px; margin: 0; }
    .mobile-toggle { width: 36px; height: 36px; }
    .mobile-toggle .hamburger-icon { width: 16px; gap: 4px; }
    .mobile-toggle .hamburger-icon span { height: 2px; }
    .mobile-toggle.open .hamburger-icon span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
    .mobile-toggle.open .hamburger-icon span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
    nav { width: calc(100% - 30px); right: calc(-100% - 10px); }
    nav.open { right: 0; }
    .hero-content h1 { font-size: 22px; }
    .hero-content p { font-size: 12px; }
    .tracking-box { padding: 18px 14px; }
    .tracking-input-wrap input { font-size: 13px; padding: 10px 12px; }
}
@media (max-width: 768px) {
    .blog-single { padding: 0 !important; }
    .blog-single .container { padding: 0 !important; }
    .blog-single .container > div { padding: 0 !important; max-width: none !important; }
    .blog-single article { padding: 25px !important; border-radius: 0 !important; border-left: none !important; border-right: none !important; }
    .blog-single article > div:first-child { margin: -25px -25px 20px !important; height: 220px !important; border-radius: 0 !important; }
    .blog-content { font-size: 15px !important; line-height: 1.9 !important; }
}
@media (max-width: 480px) {
    .blog-single { padding: 0 !important; }
    .blog-single .container { padding: 0 !important; }
    .blog-single .container > div { padding: 0 !important; }
    .blog-single article { padding: 20px !important; }
    .blog-single article > div:first-child { margin: -20px -20px 15px !important; height: 180px !important; }
    .blog-content { font-size: 14px !important; }
}
@media (max-width: 360px) {
    header { margin-inline: 4px; }
    .header-inner { padding: 12px 6px; gap: 4px; }
    .logo h1 { font-size: 12px; }
    .logo-en { font-size: 12px; }
    .logo-fa { font-size: 11px; }
    .logo-sep { display: none; }
    .mobile-toggle { width: 32px; height: 32px; }
    .mobile-toggle .hamburger-icon { width: 14px; gap: 3px; }
    nav { width: calc(100% - 20px); }
    .hero-content h1 { font-size: 18px; }
    .hero-content p { font-size: 11px; line-height: 1.7; }
    .hero-badge { font-size: 10px; padding: 4px 10px; }
    .btn-group .btn { font-size: 12px; padding: 10px 16px; }
    .tracking-box { padding: 14px 10px; }
    .tracking-box h4 { font-size: 15px; }
    .tracking-box p { font-size: 12px; }
    .tracking-icon { width: 40px; height: 40px; font-size: 18px; }
    .blog-single article { padding: 16px !important; }
    .blog-single article > div:first-child { margin: -16px -16px 12px !important; height: 160px !important; }
    .blog-content { font-size: 13px !important; }
}
@media (max-width: 350px) {
    .hero-content h1 { font-size: 15px; }
    .hero-content p { font-size: 10px; line-height: 1.6; }
    .hero-badge { font-size: 9px; padding: 3px 8px; }
    .btn-group .btn { font-size: 10px; padding: 7px 10px; gap: 5px; }
    .btn-group { gap: 8px; }
    .tracking-box { padding: 10px 6px; }
    .tracking-box h4 { font-size: 13px; }
    .tracking-box p { font-size: 11px; }
    .tracking-icon { width: 34px; height: 34px; font-size: 16px; }
    .tracking-input-wrap input { font-size: 12px; padding: 8px 10px; }
    .tracking-input-wrap button { width: 40px; }
}
@media (max-width: 320px) {
    header { margin-inline: 2px; top: 6px !important; }
    .header-inner { padding: 6px 4px; gap: 3px; }
    .logo h1 { font-size: 10px; }
    .logo-en { font-size: 10px; }
    .logo-fa { font-size: 9px; }
    .mobile-toggle { width: 28px; height: 28px; }
    .mobile-toggle .hamburger-icon { width: 12px; gap: 3px; }
    nav { width: calc(100% - 10px); }
    .hero { padding-top: 100px !important; }
    .hero-content h1 { font-size: 15px; margin-bottom: 10px; }
    .hero-content p { font-size: 10px; margin-bottom: 20px; }
    .hero-badge { font-size: 9px; padding: 3px 8px; margin-bottom: 12px; }
    .btn-group .btn { font-size: 11px; padding: 8px 12px; }
    .tracking-box { padding: 10px 8px; }
    .tracking-box h4 { font-size: 13px; }
    .tracking-box p { font-size: 11px; }
    .tracking-icon { width: 34px; height: 34px; font-size: 15px; }
    .tracking-input-wrap input { font-size: 12px; padding: 8px 10px; }
}

/* ===== RESPONSIVE CART / CHECKOUT ===== */
@media (max-width: 768px) {
    .cart-table thead { display: none; }
    .cart-table tr {
        display: flex; flex-direction: column;
        padding: 16px 0; border-bottom: 1px solid var(--border-color);
    }
    .cart-table td {
        display: flex; align-items: center; justify-content: space-between;
        padding: 8px 0; border: none;
    }
    .cart-table td::before {
        content: attr(data-label);
        font-size: 12px; color: var(--text-muted); font-weight: 500;
        margin-left: auto; padding-left: 12px;
    }
    .cart-table td:nth-child(1)::before { content: 'محصول'; }
    .cart-table td:nth-child(2)::before { content: 'قیمت'; }
    .cart-table td:nth-child(3)::before { content: 'تعداد'; }
    .cart-table td:nth-child(4)::before { content: 'جمع'; }
    .cart-table td:nth-child(5)::before { content: ''; }
    .cart-product-img { width: 50px; height: 50px; }
    .cart-actions { flex-direction: column; gap: 8px; }
    .cart-actions .btn { width: 100%; justify-content: center; }
    .cart-summary { max-width: 100% !important; padding: 20px; }
    .cart-summary h3 { font-size: 16px; }
    .summary-row { font-size: 13px; }
    .summary-row.total { font-size: 16px; }

    /* Checkout form responsive */
    .checkout-form {
        grid-template-columns: 1fr !important;
    }
    .contact-form { padding: 20px; }
    .contact-form h3 { font-size: 17px; }
    .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .cart-table td { padding: 6px 0; font-size: 13px; }
    .cart-product-info h4 { font-size: 13px; }
    .num-input-wrap { height: 34px; }
    .num-input-wrap input { width: 32px !important; padding: 4px 2px !important; }
    .num-btn { width: 30px; }
    .contact-form { padding: 16px; }
}

/* Prevent body scroll when menu open */
body.menu-open {
    overflow: hidden;
}

/* Custom Aparat icon (not in FontAwesome) */
.fab.fa-aparat {
    display: inline-block !important;
    width: 1.15em !important;
    height: 1.15em !important;
    background: currentColor;
    mask: url(../img/aparat.svg) no-repeat center / contain;
    -webkit-mask: url(../img/aparat.svg) no-repeat center / contain;
    font-size: inherit;
    vertical-align: -0.125em;
    line-height: 1;
}
.fab.fa-aparat::before {
    content: '' !important;
    display: none !important;
}

/* Tracking search box in hero */
.hero-flex {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: space-between;
}
.hero-tracking {
    flex: 0 0 300px;
    order: 1;
}
.hero-content {
    flex: 1;
}
.tracking-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    backdrop-filter: blur(10px);
}
.tracking-box .tracking-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary), #8B5E02);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}
.tracking-box h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #fff;
}
.tracking-box p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.tracking-input-wrap {
    display: flex;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.3);
    transition: border-color 0.3s;
}
.tracking-input-wrap:focus-within {
    border-color: var(--primary);
}
.tracking-input-wrap input {
    flex: 1;
    padding: 12px 14px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    font-family: 'Vazirmatn', sans-serif;
    outline: none;
    text-align: center;
    direction: ltr;
    letter-spacing: 2px;
}
.tracking-input-wrap input::placeholder {
    color: rgba(255,255,255,0.3);
    letter-spacing: 0;
}
.tracking-input-wrap button {
    width: 48px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tracking-input-wrap button:hover {
    background: var(--primary-hover);
}
.tracking-msg {
    margin-top: 12px;
    font-size: 13px;
    display: none;
}
.tracking-msg.visible {
    display: block;
}
.tracking-error {
    color: #ff6b6b;
}
.tracking-success {
    color: #51cf66;
}

/* Tracking modal */
.tracking-modal {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tracking-modal.open {
    display: flex;
}
.tracking-modal-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}
.tracking-modal-content {
    position: relative;
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    background: #1a1a1a;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.tracking-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
}
.tracking-modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.tracking-modal-header h3 i {
    color: var(--primary);
    margin-left: 8px;
}
.tracking-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}
.tracking-modal-close:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.tracking-modal-body {
    padding: 24px;
}

/* Tracking result card inside modal */
.tracking-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.tracking-label {
    font-size: 14px;
    color: var(--text-secondary);
}
.tracking-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}
.tracking-badge.badge-warning { background: rgba(255,193,7,0.15); color: #ffc107; }
.tracking-badge.badge-info { background: rgba(13,202,240,0.15); color: #0dcaf0; }
.tracking-badge.badge-success { background: rgba(25,135,84,0.15); color: #198754; }
.tracking-badge.badge-danger { background: rgba(220,53,69,0.15); color: #dc3545; }
.tracking-result-details {
    display: grid;
    gap: 10px;
}
.tracking-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
}
.tracking-detail-label {
    font-size: 13px;
    color: var(--text-secondary);
}
.tracking-detail-value {
    font-size: 14px;
    color: #fff;
    font-weight: 600;
}
.tracking-code-highlight {
    color: var(--primary) !important;
    direction: ltr;
    font-family: monospace;
    letter-spacing: 1px;
}
.tracking-items {
    margin-top: 16px;
}
.tracking-items table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.tracking-items th {
    text-align: right;
    padding: 8px 10px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}
.tracking-items td {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #fff;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 992px) {
    .hero-flex {
        flex-direction: column;
        gap: 16px;
    }
    .hero-tracking {
        flex: none;
        width: 100%;
        max-width: 400px;
        order: 2;
    }
}
@media (max-width: 480px) {
    .tracking-box {
        padding: 20px 16px;
    }
    .tracking-box .tracking-icon {
        width: 40px; height: 40px; font-size: 18px; margin-bottom: 10px;
    }
    .tracking-box h4 { font-size: 14px; }
    .tracking-box p { font-size: 11px; }
    .tracking-modal-content {
        width: 95%;
        max-height: 90vh;
    }
}
@media (max-width: 380px) {
    .tracking-box {
        padding: 14px 10px;
    }
    .tracking-box .tracking-icon {
        width: 34px; height: 34px; font-size: 15px; margin-bottom: 8px;
    }
    .tracking-box h4 { font-size: 12px; }
    .tracking-box p { font-size: 10px; }
    .tracking-input-wrap input { font-size: 12px; padding: 8px 10px; }
    .tracking-input-wrap button { width: 36px; font-size: 14px; }
}

/* Auth box responsive */
.auth-box {
    box-sizing: border-box;
}
@media (max-width: 480px) {
    .auth-box { padding: 24px 18px !important; width: 92% !important; max-width: 92% !important; }
    .auth-box input { font-size: 15px !important; }
}
@media (max-width: 400px) {
    .auth-box { padding: 18px 12px !important; width: 96% !important; max-width: 96% !important; }
    .auth-box h1 { font-size: 17px !important; }
    .auth-box input { padding: 11px 12px !important; }
    .auth-box button { padding: 12px !important; font-size: 14px !important; }
}

/* Tracking delivery countdown */
.tracking-countdown {
    text-align: center;
    padding: 14px;
    background: rgba(186,120,2,0.08);
    border: 1px solid rgba(186,120,2,0.15);
    border-radius: 10px;
    margin-bottom: 16px;
}
.tracking-countdown .countdown-label {
    font-size: 12px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 4px;
}
.tracking-countdown .countdown-days {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}
.tracking-countdown .countdown-days span {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-right: 4px;
}
.tracking-countdown .countdown-expired {
    font-size: 15px;
    color: #51cf66;
    font-weight: 600;
}

/* Custom checkbox theme */
input[type="checkbox"]{-webkit-appearance:none;appearance:none;width:16px;height:16px;border:2px solid var(--border-color);border-radius:4px;background:var(--bg-dark);cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:.2s;flex-shrink:0;margin:0;vertical-align:middle}
input[type="checkbox"]:checked{background:var(--primary);border-color:var(--primary)}
input[type="checkbox"]:checked::after{content:'';width:5px;height:9px;border:solid #000;border-width:0 2px 2px 0;transform:rotate(45deg);display:block;margin-top:-2px}
input[type="checkbox"]:hover{border-color:var(--primary)}
input[type="checkbox"]:focus-visible{outline:2px solid var(--primary);outline-offset:2px}

/* Product delivery badge */
.product-delivery {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}
.product-delivery.in-stock {
    background: rgba(25,135,84,0.1);
    color: #198754;
    border: 1px solid rgba(25,135,84,0.2);
}
.product-delivery.pre-order {
    background: rgba(186,120,2,0.1);
    color: #BA7802;
    border: 1px solid rgba(186,120,2,0.2);
}


/* Firefox fixed-position fallback */
@supports (-moz-appearance:none) {
    .popup-overlay, .edu-popup-overlay, .tracking-modal { top:0; right:0; bottom:0; left:0; }
    .popup-modal, .edu-popup, .tracking-modal-content { max-height: calc(100vh - 40px); overflow-y: auto; }
}

/* Back to top button */
#backToTop {
    position: fixed; bottom: 30px; right: 30px; z-index: 99999;
    width: 50px; height: 50px; border-radius: 50%;
    background: var(--primary); color: #000; border: none;
    font-size: 20px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(186,120,2,0.4);
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
#backToTop.show { opacity: 1; visibility: visible; transform: translateY(0); }
#backToTop:hover { background: var(--primary-hover); transform: translateY(-3px); box-shadow: 0 6px 25px rgba(186,120,2,0.5); }
#backToTop.show:hover { transform: translateY(-3px); }
@media (max-width: 480px) { #backToTop { bottom: 20px; right: 20px; width: 44px; height: 44px; font-size: 18px; } }

/* Search box in tracking */
.tracking-search { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-color); }
.tracking-search .tracking-input-wrap input { font-size: 13px; }

.shop-search-box {
    display: flex; gap: 8px; margin-bottom: 20px;
}
.shop-search-box input {
    flex: 1; padding: 10px 14px;
    background: var(--bg-dark); border: 1px solid var(--border-color);
    border-radius: 8px; color: var(--text); font-size: 13px;
    font-family: 'Vazirmatn', sans-serif; outline: none;
    transition: border-color 0.3s;
}
.shop-search-box input:focus { border-color: var(--primary); }
.shop-search-box button {
    width: 42px; height: 42px; border-radius: 8px;
    background: var(--primary); color: #000; border: none;
    font-size: 16px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    transition: background 0.3s; flex-shrink: 0;
}
.shop-search-box button:hover { background: var(--primary-hover); }

/* Shop search — same style as tracking input */
.shop-search-wrap { margin-bottom: 20px; }
.shop-search-wrap input { text-align: right; direction: rtl; letter-spacing: 0; }
.shop-search-wrap input::placeholder { text-align: right; letter-spacing: 0; }