/* ============================================
   MAIN STYLES - فروشگاه پویان
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background: linear-gradient(-45deg, #f0f4f8, #d9e2ec, #c7d2e6, #e0e7ff);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    border-radius: 10px;
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease;
}

/* ============================================
   OVERLAY
   ============================================ */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.overlay.active {
    display: block;
    opacity: 1;
}

/* ============================================
   SIDEBARS
   ============================================ */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    height: 100%;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    padding: 2rem 1.5rem;
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,0.1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}
.mobile-sidebar.open {
    right: 0;
}
.mobile-sidebar .close-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-sidebar .close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}
.mobile-sidebar .sidebar-logo {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255,255,255,0.1);
}
.mobile-sidebar .sidebar-logo i {
    color: #60a5fa;
    margin-left: 10px;
}
.mobile-sidebar .nav-item {
    display: block;
    color: #e2e8f0;
    text-decoration: none;
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s;
    font-size: 1.05rem;
    border: 1px solid transparent;
}
.mobile-sidebar .nav-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(-8px);
}
.mobile-sidebar .nav-item i {
    margin-left: 12px;
    width: 24px;
    color: #60a5fa;
}
.mobile-sidebar .nav-item.active {
    background: rgba(59,130,246,0.2);
    border-color: rgba(59,130,246,0.3);
}
.mobile-categories {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-categories h4 {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.mobile-categories a {
    display: block;
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 0.95rem;
}
.mobile-categories a:hover {
    background: rgba(255,255,255,0.05);
}
.mobile-categories a i {
    margin-left: 10px;
    color: #60a5fa;
    width: 20px;
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -420px;
    width: 400px;
    height: 100%;
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.4,0,0.2,1);
    padding: 0;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.1);
    box-shadow: 10px 0 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open {
    left: 0;
}
.cart-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.cart-sidebar-header h3 {
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-sidebar-header h3 i {
    color: #3b82f6;
}
.cart-sidebar-header .close-cart {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-sidebar-header .close-cart:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}
.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}
.cart-items-list .empty-cart {
    text-align: center;
    color: #94a3b8;
    padding: 3rem 0;
}
.cart-items-list .empty-cart i {
    font-size: 3rem;
    color: #475569;
    margin-bottom: 1rem;
}
.cart-sidebar-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    align-items: center;
}
.cart-sidebar-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
}
.cart-sidebar-item .item-info {
    flex: 1;
}
.cart-sidebar-item .item-info h4 {
    color: #e2e8f0;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}
.cart-sidebar-item .item-info .item-price {
    color: #60a5fa;
    font-weight: 700;
    font-size: 0.9rem;
}
.cart-sidebar-item .item-info .item-qty {
    color: #94a3b8;
    font-size: 0.8rem;
}
.cart-sidebar-item .remove-item {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.2);
    color: #ef4444;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
}
.cart-sidebar-item .remove-item:hover {
    background: rgba(239,68,68,0.25);
}
.cart-sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.cart-sidebar-footer .cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    margin-bottom: 1rem;
}
.cart-sidebar-footer .cart-total span:last-child {
    font-size: 1.3rem;
    font-weight: 800;
    color: #60a5fa;
}
.cart-sidebar-footer .checkout-link {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
}
.cart-sidebar-footer .checkout-link:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}

/* ============================================
   MAIN WRAPPER
   ============================================ */
.main-content-wrapper {
    flex: 1;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    width: 100%;
    position: relative;
}
.main-content-wrapper.shrink-cart {
    transform: translateX(80px);
    opacity: 0.6;
    filter: blur(3px);
    pointer-events: none;
}
.main-content-wrapper.shrink-menu {
    transform: translateX(-80px);
    opacity: 0.6;
    filter: blur(3px);
    pointer-events: none;
}

/* ============================================
   HEADER
   ============================================ */
.glass-header {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 8px 32px rgba(59,130,246,0.05);
    padding: 0.6rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.logo a {
    font-size: 1.4rem;
    font-weight: 900;
    color: #0f172a;
    text-decoration: none;
    background: rgba(255,255,255,0.3);
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo a i {
    color: #3b82f6;
}
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.nav-links a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    transition: all 0.25s;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    border: 1px solid transparent;
    cursor: pointer;
}
.nav-links a:hover,
.nav-links a.active {
    background: rgba(255,255,255,0.45);
    border-color: rgba(255,255,255,0.7);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transform: translateY(-2px);
    color: #0f172a;
}
.nav-links a i {
    transition: transform 0.3s;
}
.nav-links a:hover i {
    transform: scale(1.2) rotate(-10deg);
}

.hamburger {
    display: none;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
    flex-direction: column;
    gap: 4px;
    z-index: 1001;
}
.hamburger:hover {
    background: rgba(255,255,255,0.3);
}
.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #1e293b;
    border-radius: 3px;
    transition: all 0.3s;
}
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.cart-toggle-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    color: #1e293b;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
    font-family: 'Vazirmatn', sans-serif;
    position: relative;
    font-weight: 600;
}
.cart-toggle-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.02);
}
.cart-toggle-btn .cart-count {
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    padding: 0.05rem 0.5rem;
    font-size: 0.7rem;
    min-width: 20px;
    text-align: center;
    font-weight: 700;
}

.auth-btn {
    background: rgba(59,130,246,0.1);
    color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
}
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ============================================
   PRODUCTS GRID - نسخه ریسپانسیو کامل
   ============================================ */
.product-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* دسکتاپ: 4 ستون */
@media (min-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* تبلت بزرگ: 3 ستون */
@media (min-width: 992px) and (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* تبلت کوچک: 2 ستون */
@media (min-width: 577px) and (max-width: 991px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* موبایل: 2 ستون */
@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

/* موبایل خیلی کوچک: 1 ستون */
@media (max-width: 380px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

/* ============================================
   PRODUCT CARD - ریسپانسیو کامل
   ============================================ */
.product-card {
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    min-height: 380px;
}
.product-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.5);
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 20px 40px rgba(59,130,246,0.15);
}

.product-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #e2e8f0;
    flex-shrink: 0;
}

/* دسکتاپ */
@media (min-width: 992px) {
    .product-img-wrapper {
        height: 200px;
    }
}

/* تبلت */
@media (min-width: 577px) and (max-width: 991px) {
    .product-img-wrapper {
        height: 180px;
    }
}

/* موبایل */
@media (max-width: 576px) {
    .product-img-wrapper {
        height: 140px;
    }
}

@media (max-width: 400px) {
    .product-img-wrapper {
        height: 120px;
    }
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}
.product-badges .badge {
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    backdrop-filter: blur(4px);
}
.badge-hot {
    background: #fbbf24;
    color: #1e293b;
}
.badge-new {
    background: #34d399;
    color: #1e293b;
}
.badge-sale {
    background: #f87171;
    color: #fff;
}
.badge-discount {
    background: rgba(239,68,68,0.9);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
}

.quick-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(0.8);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    border: none;
    font-weight: 600;
    color: #1e293b;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.8rem;
}
.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translate(-50%,-50%) scale(1);
}
.quick-view-btn:hover {
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.3rem 0;
}

.product-details h4 {
    font-weight: 700;
    color: #0f172a;
    margin: 0.3rem 0 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* دسکتاپ */
@media (min-width: 992px) {
    .product-details h4 {
        font-size: 1rem;
        height: 2.8rem;
    }
}

/* تبلت */
@media (min-width: 577px) and (max-width: 991px) {
    .product-details h4 {
        font-size: 0.95rem;
        height: 2.6rem;
    }
}

/* موبایل */
@media (max-width: 576px) {
    .product-details h4 {
        font-size: 0.8rem;
        height: 2.2rem;
    }
}

@media (max-width: 400px) {
    .product-details h4 {
        font-size: 0.7rem;
        height: 1.8rem;
    }
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    margin-top: 0.2rem;
    min-height: 1.2rem;
}
.product-rating .stars {
    color: #fbbf24;
    font-size: 0.7rem;
}
.product-rating .stars i {
    margin: 0 1px;
}
.product-rating .rating-count {
    color: #64748b;
    font-size: 0.65rem;
}

/* دسکتاپ */
@media (min-width: 992px) {
    .product-rating .stars {
        font-size: 0.8rem;
    }
}

/* موبایل */
@media (max-width: 576px) {
    .product-rating .stars {
        font-size: 0.55rem;
    }
    .product-rating .rating-count {
        font-size: 0.55rem;
    }
}

.price-section {
    margin-top: auto;
    padding-top: 0.3rem;
}
.price-section .price {
    font-weight: 700;
    color: #075985;
    display: inline-block;
    padding: 0.1rem 0.6rem;
    border-radius: 30px;
    background: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}
.price-section .old-price {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 0.7rem;
    margin-right: 0.3rem;
}

/* دسکتاپ */
@media (min-width: 992px) {
    .price-section .price {
        font-size: 1rem;
    }
}

/* موبایل */
@media (max-width: 576px) {
    .price-section .price {
        font-size: 0.75rem;
        padding: 0.05rem 0.4rem;
    }
    .price-section .old-price {
        font-size: 0.6rem;
    }
}

.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.65rem;
    padding: 0.05rem 0.5rem;
    border-radius: 20px;
    margin-top: 0.2rem;
}
.stock-status.in-stock {
    color: #10b981;
}
.stock-status.low-stock {
    color: #f59e0b;
}
.stock-status.out-of-stock {
    color: #ef4444;
}

/* موبایل */
@media (max-width: 576px) {
    .stock-status {
        font-size: 0.55rem;
        padding: 0.05rem 0.3rem;
    }
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
}
.quantity-selector button {
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
}
.quantity-selector button:hover {
    background: rgba(255,255,255,0.5);
    transform: scale(1.1);
}
.quantity-selector span {
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 26px;
    text-align: center;
}

/* موبایل */
@media (max-width: 576px) {
    .quantity-selector button {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
    }
    .quantity-selector span {
        font-size: 0.75rem;
        min-width: 20px;
    }
}

.btn-group {
    display: flex;
    gap: 0.3rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.btn-group .add-to-cart-btn,
.btn-group .details-btn {
    flex: 1;
    min-width: 60px;
    padding: 0.4rem 0.5rem;
    text-align: center;
    justify-content: center;
    border-radius: 40px;
    font-family: 'Vazirmatn', sans-serif;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-size: 0.75rem;
}
.add-to-cart-btn {
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.3);
    color: #1e293b;
}
.add-to-cart-btn:hover:not(.out-of-stock) {
    background: rgba(59,130,246,0.25);
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(59,130,246,0.2);
}
.add-to-cart-btn.out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
}
.details-btn {
    background: rgba(139,92,246,0.15);
    border: 1px solid rgba(139,92,246,0.3);
    color: #1e293b;
}
.details-btn:hover {
    background: rgba(139,92,246,0.25);
    transform: scale(1.03);
    box-shadow: 0 4px 20px rgba(139,92,246,0.2);
}

/* موبایل */
@media (max-width: 576px) {
    .btn-group .add-to-cart-btn,
    .btn-group .details-btn {
        font-size: 0.6rem;
        padding: 0.3rem 0.4rem;
        min-width: 40px;
        border-radius: 30px;
    }
    .btn-group .add-to-cart-btn i,
    .btn-group .details-btn i {
        font-size: 0.55rem;
    }
}

@media (max-width: 400px) {
    .btn-group .add-to-cart-btn,
    .btn-group .details-btn {
        font-size: 0.5rem;
        padding: 0.2rem 0.3rem;
        min-width: 35px;
        gap: 2px;
    }
    .btn-group .add-to-cart-btn i,
    .btn-group .details-btn i {
        font-size: 0.45rem;
    }
}

/* ============================================
   HERO SECTION - ریسپانسیو
   ============================================ */
.hero-section {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(12px);
    border-radius: 32px;
    padding: 3rem;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(59,130,246,0.05) 0%, transparent 60%);
    animation: heroShine 10s ease-in-out infinite;
    pointer-events: none;
}
@keyframes heroShine {
    0%,100% { transform: translate(0,0) rotate(0deg); }
    50% { transform: translate(10%,5%) rotate(2deg); }
}
.hero-section > * {
    position: relative;
    z-index: 1;
}
.hero-section .hero-icon {
    font-size: 4rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.hero-section h1 .highlight {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-section p {
    font-size: 1.2rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}
.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-buttons .btn-primary {
    padding: 0.8rem 2.5rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}
.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59,130,246,0.4);
}
.hero-buttons .btn-secondary {
    padding: 0.8rem 2.5rem;
    background: rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    color: #1e293b;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.hero-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.5);
    transform: translateY(-3px);
}

/* موبایل */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    .hero-section .hero-icon {
        font-size: 3rem;
    }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }
    .hero-section h1 {
        font-size: 1.5rem;
    }
    .hero-section p {
        font-size: 0.9rem;
    }
    .hero-section .hero-icon {
        font-size: 2.5rem;
    }
}

/* ============================================
   STATS SECTION - ریسپانسیو
   ============================================ */
.stats-section {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* دسکتاپ */
@media (min-width: 992px) {
    .stats-section {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* تبلت */
@media (min-width: 577px) and (max-width: 991px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

/* موبایل */
@media (max-width: 576px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
}

@media (max-width: 380px) {
    .stats-section {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

.stat-card {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
}
.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.35);
}
.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #3b82f6;
}
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}
.stat-card .stat-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* موبایل */
@media (max-width: 576px) {
    .stat-card {
        padding: 1rem;
        border-radius: 16px;
    }
    .stat-card .stat-icon {
        font-size: 1.8rem;
    }
    .stat-card .stat-number {
        font-size: 1.4rem;
    }
    .stat-card .stat-label {
        font-size: 0.75rem;
    }
}

/* ============================================
   CATEGORIES - ریسپانسیو
   ============================================ */
.categories-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (min-width: 577px) and (max-width: 991px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.8rem;
    }
}

@media (max-width: 400px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
}

.category-card {
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem 1rem;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
    text-decoration: none;
    color: #1e293b;
}
.category-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.category-card .cat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
}
.category-card .cat-name {
    font-weight: 600;
    font-size: 0.95rem;
}
.category-card .cat-count {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.2rem;
}

/* موبایل */
@media (max-width: 576px) {
    .category-card {
        padding: 1rem 0.5rem;
        border-radius: 16px;
    }
    .category-card .cat-icon {
        font-size: 1.8rem;
    }
    .category-card .cat-name {
        font-size: 0.8rem;
    }
    .category-card .cat-count {
        font-size: 0.65rem;
    }
}

/* ============================================
   SECTION TITLE - ریسپانسیو
   ============================================ */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.section-title h2 {
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

@media (min-width: 992px) {
    .section-title h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 1.2rem;
        gap: 6px;
    }
    .section-title h2 i {
        font-size: 1rem;
    }
    .section-title .view-all {
        font-size: 0.8rem;
    }
}

/* ============================================
   BRANDS - ریسپانسیو
   ============================================ */
.brands-section {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 3rem;
}
.brands-grid {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 992px) {
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 576px) {
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 1rem;
    }
    .brands-section {
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }
}

.brand-item {
    text-align: center;
    padding: 1rem;
    border-radius: 16px;
    transition: all 0.3s;
    opacity: 0.6;
    filter: grayscale(1);
    border: 1px solid transparent;
}
.brand-item:hover {
    opacity: 1;
    filter: grayscale(0);
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}
.brand-item .brand-icon {
    font-size: 2.5rem;
    color: #1e293b;
}
.brand-item .brand-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 0.3rem;
}

/* موبایل */
@media (max-width: 576px) {
    .brand-item .brand-icon {
        font-size: 1.8rem;
    }
    .brand-item .brand-name {
        font-size: 0.7rem;
    }
}

/* ============================================
   FOOTER - نسخه روشن و هماهنگ با متن‌های تیره
   ============================================ */
.glass-footer {
    background: #f8fafc;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid rgba(0,0,0,0.06);
    color: #475569;
    padding: 3rem 2rem 1.5rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}
.glass-footer .footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .glass-footer .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .glass-footer .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .glass-footer {
        padding: 2rem 1rem 1rem;
    }
}

@media (max-width: 400px) {
    .glass-footer .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.glass-footer .footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    color: #0f172a;
    border-bottom: 2px solid rgba(59,130,246,0.15);
    padding-bottom: 0.7rem;
    position: relative;
}
.glass-footer .footer-col p,
.glass-footer .footer-col a {
    color: #475569;
    text-decoration: none;
    line-height: 2;
    font-size: 0.95rem;
    transition: all 0.3s;
    display: block;
}
.glass-footer .footer-col a:hover {
    color: #3b82f6;
    transform: translateX(-5px);
}
.glass-footer .footer-col a i {
    color: #3b82f6;
    margin-left: 8px;
    width: 20px;
}
.glass-footer .footer-bottom {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
    position: relative;
    z-index: 1;
}
.glass-footer .footer-bottom .gold-text {
    color: #fbbf24;
    font-weight: 700;
}

/* ============================================
   TOAST OVERLAY - ریسپانسیو
   ============================================ */
.toast-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.3s ease;
}
.toast-overlay.active {
    display: flex;
}
@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.toast-popup {
    background: rgba(15,23,42,0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 420px;
    width: 90%;
    text-align: center;
    animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}
@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* موبایل */
@media (max-width: 576px) {
    .toast-popup {
        padding: 1.5rem 1.5rem;
        border-radius: 20px;
        max-width: 95%;
    }
    .toast-popup .toast-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    .toast-popup .toast-title {
        font-size: 1.1rem;
    }
    .toast-popup .toast-message {
        font-size: 0.85rem;
    }
    .toast-popup .toast-actions {
        flex-direction: column;
    }
    .toast-popup .toast-actions button,
    .toast-popup .toast-actions a {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   FORM STYLES - ریسپانسیو
   ============================================ */
.admin-form .form-group label {
    display: block;
    color: #0f172a;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.admin-form .form-group .required {
    color: #ef4444;
}
.admin-form .form-group input,
.admin-form .form-group select,
.admin-form .form-group textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.3);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 10px;
    color: #1e293b;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
}
.admin-form .form-group input:focus,
.admin-form .form-group select:focus,
.admin-form .form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.alert-success {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    color: #34d399;
}
.alert-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.2);
    color: #f87171;
}

/* ============================================
   RESPONSIVE - OVERALL
   ============================================ */

/* تبلت */
@media (max-width: 992px) {
    .nav-links {
        display: none !important;
    }
    .hamburger {
        display: flex !important;
    }
    .auth-desktop {
        display: none !important;
    }
    .glass-header {
        padding: 0.5rem 1rem;
    }
}

/* موبایل */
@media (max-width: 768px) {
    .glass-header {
        padding: 0.5rem 1rem;
    }
    .logo a {
        font-size: 1.1rem;
        padding: 0.2rem 0.8rem;
    }
    .cart-toggle-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    .cart-toggle-btn span:not(.cart-count) {
        display: none;
    }
    .auth-btn {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    .auth-btn span {
        display: none;
    }
    .auth-dropdown-menu {
        left: auto !important;
        right: 0 !important;
        min-width: 180px !important;
    }
    .main-content {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    .main-content-wrapper.shrink-cart {
        transform: translateX(60px);
    }
    .main-content-wrapper.shrink-menu {
        transform: translateX(-60px);
    }
}

/* موبایل خیلی کوچک */
@media (max-width: 480px) {
    .glass-header {
        padding: 0.3rem 0.5rem;
    }
    .logo a {
        font-size: 0.95rem;
        padding: 0.15rem 0.6rem;
        border-radius: 30px;
    }
    .logo a i {
        font-size: 0.85rem;
    }
    .cart-toggle-btn {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.75rem !important;
        border-radius: 20px !important;
    }
    .cart-toggle-btn .cart-count {
        font-size: 0.6rem !important;
        min-width: 16px !important;
        padding: 0.05rem 0.3rem !important;
    }
    .auth-btn {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.75rem !important;
        border-radius: 20px !important;
    }
    .hamburger {
        padding: 0.3rem 0.5rem !important;
    }
    .hamburger span {
        width: 20px;
        height: 2px;
    }
    .mobile-sidebar {
        width: 260px;
        right: -280px;
    }
    .cart-sidebar {
        width: 280px;
        left: -300px;
    }
    .main-content-wrapper.shrink-cart {
        transform: translateX(40px);
        opacity: 0.4;
        filter: blur(4px);
    }
    .main-content-wrapper.shrink-menu {
        transform: translateX(-40px);
        opacity: 0.4;
        filter: blur(4px);
    }
}

/* ============================================
   GPU ACCELERATION
   ============================================ */
.product-card,
.category-card,
.stat-card,
.hero-section,
.product-grid > *,
.categories-grid > * {
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.progress-bar {
    will-change: transform;
    transform-origin: left center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.glass-header {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.main-content-wrapper {
    will-change: transform;
    backface-visibility: hidden;
}

.product-img-wrapper img {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    image-rendering: auto;
}

.product-card,
.category-card {
    contain: layout style paint;
}

/* 2026 responsive/image normalization */
html{scroll-behavior:smooth}body{font-family:"Vazirmatn",Tahoma,sans-serif;overflow-x:hidden}img,picture,svg{max-width:100%;height:auto}.product-img-wrapper{aspect-ratio:1/1;overflow:hidden}.product-img-wrapper img,.product-img-wrapper picture{width:100%;height:100%}.product-img-wrapper img{object-fit:contain;padding:.6rem;background:#fff}.content-image,.hero-image img,.about-image img{width:100%;height:auto;object-fit:cover;border-radius:20px}.container,main{width:min(100% - 2rem,1400px);margin-inline:auto}@media(max-width:992px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.main-nav{display:none!important}}@media(max-width:640px){.container,main{width:min(100% - 1rem,1400px)}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:.7rem!important}.product-card{min-width:0}.product-details{padding:.8rem!important}.product-details h4{font-size:.86rem!important}.hero-section{padding:2rem 1rem!important;border-radius:20px!important;min-height:auto!important}.section-header{align-items:flex-start;gap:.75rem}.section-header h2{font-size:1.05rem!important}.header-container{padding-inline:.25rem}.logo-text .sub{display:none}.cart-label,.cart-total{display:none!important}}@media(max-width:380px){.product-grid{grid-template-columns:1fr!important}}
