/*
Theme Name: زویا
Theme URI: https://zoya.ir
Author: HIDDENEYE
Author URI: https://hiddeneye.studio
Description: قالب تخصصی فروشگاه قطعات کامپیوتر زویا با پشتیبانی کامل ووکامرس
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zoya
Domain Path: /languages
Tags: e-commerce, rtl, dark-mode, responsive, woocommerce
*/

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --glass: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo i {
    -webkit-text-fill-color: var(--primary);
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.3rem;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    transform: scale(1.1);
    color: var(--primary);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50%;
    font-weight: bold;
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-container {
    width: 90%;
    max-width: 700px;
    position: relative;
}

.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.5rem 3rem 1.5rem 1.5rem;
    background: var(--dark);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    color: var(--light);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.2rem;
    outline: none;
    transition: all 0.3s;
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.search-submit {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.search-submit:hover {
    background: var(--primary-dark);
}

.search-close {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: 2px solid var(--glass-border);
    color: var(--light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.search-close:hover {
    border-color: var(--danger);
    color: var(--danger);
    transform: translateX(-50%) rotate(90deg);
}

.search-results {
    margin-top: 1rem;
    max-height: 400px;
    overflow-y: auto;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem;
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s;
    border-radius: 12px;
}

.search-result-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.search-result-item .title {
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.search-result-item .price {
    color: var(--success);
    font-weight: 600;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1rem 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    z-index: 1001;
}

.user-dropdown:hover .user-menu,
.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.user-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: var(--dark);
    border-top: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.user-menu a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.user-menu .divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.5rem 1rem;
}

.user-menu .user-name {
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 0.5rem;
}

/* Mobile Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--dark);
    z-index: 999;
    padding: 6rem 2rem 2rem;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s;
}

.mobile-menu-links a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.mobile-menu-links i {
    font-size: 1.3rem;
    width: 30px;
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--glass-border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.hero-image {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.floating-card {
    position: absolute;
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: float 4s ease-in-out infinite;
}

.floating-card:nth-child(2) {
    top: 10%;
    left: -20px;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    bottom: 20%;
    right: -20px;
    animation-delay: 2s;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--accent);
}

.floating-card span {
    font-weight: 700;
    font-size: 0.9rem;
}

/* Categories */
.categories {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--light);
    display: block;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.category-icon {
    width: 80px;
    height: 80px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    transition: all 0.3s;
}

.category-card:hover .category-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Products */
.products {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.03), transparent);
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: rgba(99, 102, 241, 0.3);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--danger);
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.product-badge.new {
    background: var(--success);
}

.product-image {
    position: relative;
    height: 250px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    transition: bottom 0.3s;
}

.product-card:hover .product-actions {
    bottom: 0;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-decoration: none;
    display: inline-block;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    text-decoration: none;
    color: var(--light);
    display: block;
}

.product-title:hover {
    color: var(--primary);
}

.product-specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--gray);
}

.product-specs span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.price {
    display: flex;
    flex-direction: column;
}

.price-old {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.9rem;
}

.price-new {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--success);
}

.add-to-cart {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.add-to-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.add-to-cart.added {
    background: var(--success);
}

/* Features */
.features {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-box {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.8));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 15px 30px rgba(6, 182, 212, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    transform: rotate(-5deg);
    transition: transform 0.3s;
}

.feature-box:hover .feature-icon {
    transform: rotate(0deg) scale(1.1);
}

.feature-box h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.feature-box p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--dark);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    justify-content: flex-start;
}

.footer-brand p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* WooCommerce Specific */
.woocommerce-page .content-area {
    max-width: 1400px;
    margin: 100px auto 4rem;
    padding: 0 2rem;
}

.woocommerce-breadcrumb {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.woocommerce-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.woocommerce-result-count {
    color: var(--gray);
}

.woocommerce-ordering select {
    background: var(--dark);
    color: var(--light);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
}

/* Single Product */
.single-product .product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
}

.single-product .woocommerce-product-gallery {
    border-radius: 16px;
    overflow: hidden;
}

.single-product .summary {
    padding: 1rem;
}

.single-product .product_title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.single-product .price {
    font-size: 1.8rem;
    color: var(--success);
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.single-product .cart {
    margin-top: 2rem;
}

.single-product .quantity input {
    background: var(--darker);
    color: var(--light);
    border: 1px solid var(--glass-border);
    padding: 0.8rem;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
}

.single-product .single_add_to_cart_button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.single-product .single_add_to_cart_button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Cart & Checkout */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    max-width: 1400px;
    margin: 100px auto 4rem;
    padding: 0 2rem;
}

.woocommerce table.shop_table {
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

.woocommerce table.shop_table th {
    background: rgba(99, 102, 241, 0.1);
    color: var(--light);
    padding: 1rem;
}

.woocommerce table.shop_table td {
    border-top: 1px solid var(--glass-border);
    padding: 1rem;
    color: var(--light);
}

.woocommerce-cart .cart-collaterals .cart_totals {
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.woocommerce .woocommerce-checkout #customer_details {
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.woocommerce form .form-row input,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    background: var(--darker);
    color: var(--light);
    border: 1px solid var(--glass-border);
    padding: 0.8rem;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
}

.woocommerce button.button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.woocommerce button.button:hover {
    background: var(--primary-dark);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    padding: 0.8rem 1.2rem;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination span.current {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeInUp 0.8s ease forwards;
}

/* Loading Animation */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
/* ================================
   SINGLE PRODUCT — RESPONSIVE FIX
   ================================ */

.single-product-area {
    max-width: 1400px;
    margin: 100px auto 4rem;
    padding: 0 2rem;
}

.zoya-single-product {
    animation: fadeInUp 0.6s ease;
}

.zoya-product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 3rem;
}

/* Gallery */
.zoya-product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zoya-gallery-main {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(6, 182, 212, 0.05));
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.zoya-main-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 16px;
    transition: transform 0.4s;
}

.zoya-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.8rem;
}

.zoya-thumb {
    aspect-ratio: 1;
    background: var(--darker);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.zoya-thumb:hover,
.zoya-thumb.active {
    border-color: var(--primary);
}

.zoya-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Product Info */
.zoya-product-cat {
    display: inline-block;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 0.5rem;
    padding: 0.3rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
}

.zoya-product-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.zoya-product-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.zoya-product-price .woocommerce-Price-amount {
    font-size: 1.8rem;
}

.zoya-product-price del {
    color: var(--gray);
    font-size: 1.2rem;
    margin-left: 1rem;
}

.zoya-product-short-desc {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.zoya-product-stock {
    margin-bottom: 1.5rem;
}

.zoya-product-stock .in-stock {
    color: var(--success);
    font-weight: 600;
}

.zoya-product-stock .out-stock {
    color: var(--danger);
    font-weight: 600;
}

.zoya-product-cart {
    margin-bottom: 2rem;
}

.zoya-product-cart .quantity {
    display: inline-flex;
    align-items: center;
    margin-left: 1rem;
}

.zoya-product-cart .quantity input {
    background: var(--darker);
    color: var(--light);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    width: 80px;
    text-align: center;
}

.zoya-product-cart .single_add_to_cart_button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.zoya-product-cart .single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.zoya-product-meta-footer {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: var(--gray);
    font-size: 0.9rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

/* Tabs */
.zoya-product-tabs {
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.zoya-tabs-nav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.zoya-tab-btn {
    background: none;
    border: none;
    color: var(--gray);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.zoya-tab-btn:hover {
    color: var(--light);
    background: rgba(255,255,255,0.05);
}

.zoya-tab-btn.active {
    background: var(--primary);
    color: white;
}

.zoya-tab-content {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.zoya-tab-content.active {
    display: block;
}

.zoya-tab-inner {
    color: var(--gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

.zoya-tab-inner p {
    margin-bottom: 1rem;
}

/* Related */
.zoya-related-products {
    margin-top: 4rem;
}

.zoya-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

/* ================================
   MY ACCOUNT — ORDERS STYLING
   ================================ */

.zoya-account-page {
    max-width: 1400px;
    margin: 100px auto 4rem;
    padding: 0 2rem;
}

.zoya-account-header {
    margin-bottom: 2rem;
}

.zoya-account-header h1 {
    font-size: 2rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.zoya-account-header h1 i {
    color: var(--primary);
    font-size: 2.5rem;
}

.zoya-account-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Sidebar Nav */
.zoya-account-nav {
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1rem;
    position: sticky;
    top: 100px;
}

.zoya-account-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.zoya-account-nav li {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.zoya-account-nav li.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.zoya-account-nav li.is-active a {
    color: white;
}

.zoya-account-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    color: var(--gray);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-radius: 12px;
}

.zoya-account-nav a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--light);
}

.zoya-account-nav li.is-active a:hover {
    background: transparent;
}

.zoya-account-nav i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Content Area */
.zoya-account-content {
    background: var(--dark);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    min-height: 500px;
}

.zoya-account-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

/* Orders Table */
.zoya-orders-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.zoya-orders-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--darker);
    font-size: 0.95rem;
}

.zoya-orders-table thead th {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(99, 102, 241, 0.1));
    color: var(--light);
    padding: 1.2rem 1.5rem;
    text-align: right;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.zoya-orders-table tbody tr {
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s;
}

.zoya-orders-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

.zoya-orders-table tbody td {
    padding: 1.2rem 1.5rem;
    color: var(--light);
    vertical-align: middle;
}

.zoya-orders-table .order-id {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.zoya-orders-table .order-id:hover {
    color: var(--secondary);
}

.zoya-orders-table time {
    color: var(--gray);
    font-size: 0.9rem;
}

.order-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.order-status.status-processing,
.order-status.status-completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.order-status.status-pending,
.order-status.status-on-hold {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
}

.order-status.status-cancelled,
.order-status.status-refunded,
.order-status.status-failed {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.order-total {
    font-weight: 700;
    color: var(--light);
    font-size: 1rem;
}

.order-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-order-action {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
}

.btn-order-action.pay,
.btn-order-action.view {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.btn-order-action.pay:hover,
.btn-order-action.view:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.btn-order-action.cancel {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.btn-order-action.cancel:hover {
    background: var(--danger);
    color: white;
}

/* No Orders */
.zoya-no-orders {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--darker);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

.zoya-no-orders i {
    font-size: 4rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
    display: block;
}

.zoya-no-orders p {
    color: var(--gray);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Pagination in orders */
.woocommerce-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.woocommerce-pagination .button {
    background: var(--primary);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.woocommerce-pagination .button:hover {
    background: var(--primary-dark);
}

/* ================================
   RESPONSIVE — MOBILE FIXES
   ================================ */

@media (max-width: 968px) {
    .zoya-product-main {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .zoya-gallery-main {
        min-height: 300px;
        padding: 1rem;
    }

    .zoya-main-image {
        max-height: 300px;
    }

    .zoya-gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }

    .zoya-product-title {
        font-size: 1.5rem;
    }

    .zoya-product-price {
        font-size: 1.4rem;
    }

    .zoya-product-price .woocommerce-Price-amount {
        font-size: 1.4rem;
    }

    .zoya-tabs-nav {
        gap: 0.3rem;
    }

    .zoya-tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .zoya-account-grid {
        grid-template-columns: 1fr;
    }

    .zoya-account-nav {
        position: static;
        margin-bottom: 1.5rem;
    }

    .zoya-account-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .zoya-account-nav li {
        flex: 1;
        min-width: 140px;
    }

    .zoya-account-content {
        padding: 1.5rem;
    }

    .zoya-orders-table thead {
        display: none;
    }

    .zoya-orders-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--glass-border);
        border-radius: 16px;
        padding: 1rem;
    }

    .zoya-orders-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .zoya-orders-table tbody td:last-child {
        border-bottom: none;
    }

    .zoya-orders-table tbody td::before {
        content: attr(data-title) ": ";
        font-weight: 700;
        color: var(--light);
        margin-left: 1rem;
    }

    .order-actions {
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .single-product-area {
        padding: 0 1rem;
        margin-top: 80px;
    }

    .zoya-product-main {
        padding: 1rem;
        border-radius: 16px;
    }

    .zoya-gallery-main {
        min-height: 250px;
    }

    .zoya-main-image {
        max-height: 250px;
    }

    .zoya-gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .zoya-product-title {
        font-size: 1.3rem;
    }

    .zoya-product-price {
        font-size: 1.2rem;
    }

    .zoya-product-price .woocommerce-Price-amount {
        font-size: 1.2rem;
    }

    .zoya-product-cart .single_add_to_cart_button {
        width: 100%;
        justify-content: center;
    }

    .zoya-product-meta-footer {
        flex-direction: column;
        gap: 0.8rem;
    }

    .zoya-product-tabs {
        padding: 1rem;
        border-radius: 16px;
    }

    .zoya-tabs-nav {
        flex-direction: column;
        gap: 0.3rem;
    }

    .zoya-tab-btn {
        width: 100%;
        text-align: center;
    }

    .zoya-account-page {
        padding: 0 1rem;
        margin-top: 80px;
    }

    .zoya-account-nav li {
        min-width: 100%;
    }

    .zoya-account-content {
        padding: 1rem;
    }

    .btn-order-action {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .order-actions {
        width: 100%;
        justify-content: stretch;
    }

    .order-actions .btn-order-action {
        flex: 1;
        justify-content: center;
    }
}
/* Responsive */
@media (max-width: 968px) {
    .nav-links, .nav-actions .icon-btn:not(.cart-btn):not(.user-btn) {
        gap: 15px; /* این خط فاصله بین آیکون‌ها رو تنظیم می‌کنه */
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        order: -1;
    }

    .floating-card {
        display: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .single-product .product {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .search-container {
        width: 95%;
    }
}
.header-auth-buttons {
    display: flex;
    gap: 15px;
}

.btn-auth {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-auth.login {
    color: #f8fafc;
    border: 1px solid #334155;
}

.btn-auth.register {
    background: #6366f1;
    color: white;
}
/* ==================== فیکس گالری و موبایل ==================== */
@media (max-width: 768px) {
    .zoya-product-main {
        flex-direction: column !important;
    }
    .zoya-product-gallery {
        width: 100% !important;
    }
}

/* ==================== فیکس محصولات مرتبط ==================== */
.zoya-related-products .products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
}

@media (max-width: 992px) {
    .zoya-related-products .products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .zoya-related-products .products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* بهتر کردن تب‌ها */
.zoya-tabs-nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.zoya-tab-btn {
    padding: 0.8rem 1.2rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-weight: 600;
    cursor: pointer;
}

.zoya-tab-btn.active {
    color: #00ffaa;
    border-bottom: 2px solid #00ffaa;
}