/**
 * Kashan Mall - Main Stylesheet
 * دیزاینی Glassmorphism بە ڕەنگی سوور بۆ فرۆشگای دەرشی ئیرانی
 */

/* ==================== Variables ==================== */
:root {
    /* رەنگە سوورەکان - Persian Red Theme */
    --primary-red: #9d1629;
    --primary-red-light: #e63946;
    --primary-red-dark: #9d1629;
    --secondary-red: #dc143c;
    --accent-gold: #daa520;
    --accent-cream: #faf9f6;
    
    /* رەنگەکانی زێڕین */
    --gold: #ffd700;
    --gold-light: #ffe55c;
    --gold-dark: #daa520;
    
    /* رەنگە بنەڕەتیەکان */
    --white: #ffffff;
    --white-glass: rgba(255, 255, 255, 0.15);
    --white-glass-hover: rgba(255, 255, 255, 0.25);
    --black: #1a1a1a;
    --text-dark: #2c2c2c;
    --text-light: #f5f5f5;
    --border-glass: rgba(255, 255, 255, 0.3);
    
    /* سێبەرەکان */
    --shadow-glass: 0 8px 32px rgba(196, 30, 58, 0.2);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-text: 2px 2px 4px rgba(0, 0, 0, 0.5);
    
    /* فۆنتەکان */
    --font-main: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ==================== Reset & Base ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-light);
    background: var(--black);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* ==================== Background ==================== */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
 
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

.background-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../images/background/1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    mix-blend-mode: overlay;
}

.background-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(196, 30, 58, 0.1) 0%, 
        rgba(0, 0, 0, 0.5) 100%
    );
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ==================== Glass Effect ==================== */
.glass-effect {
    background: var(--white-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-glass);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.glass-effect:hover {
    background: var(--white-glass-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.3);
}

/* ==================== Container ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Responsive - Container */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

/* ==================== Header ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--spacing-sm) 0;
    margin-bottom: var(--spacing-md);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-image {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: var(--shadow-text);
    margin-bottom: 0.25rem;
}

.logo .subtitle {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 400;
}

.main-nav {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: var(--white-glass);
    border-color: var(--border-glass);
    transform: translateY(-2px);
}

.nav-link.admin-link {
    background: var(--accent-gold);
    color: var(--black);
    font-weight: 600;
}

.nav-link.admin-link:hover {
    background: var(--gold-light);
}

/* ==================== Hero Section ==================== */
.hero {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.hero-content {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: var(--shadow-text);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--accent-cream);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
    padding: var(--spacing-md);
    min-width: 150px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: var(--shadow-text);
}

.stat-label {
    display: block;
    font-size: 1rem;
    color: var(--white);
    margin-top: 0.5rem;
}

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

/* ==================== Products Section ==================== */
.products-section {
    padding: var(--spacing-lg) 0;
}

.section-header {
    text-align: center;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: var(--shadow-text);
    margin-bottom: var(--spacing-sm);
}

.section-description {
    font-size: 1.2rem;
    color: var(--accent-cream);
}

/* Responsive - Section Header */
@media (max-width: 768px) {
    .section-header {
        padding: var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        padding: 1rem 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .section-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.product-card {
    padding: var(--spacing-md);
    cursor: pointer;
    animation: fadeIn 0.6s ease;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
}

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

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

.featured-badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--black);
    background: var(--accent-gold);
    border-radius: var(--radius-sm);
    z-index: 2;
}

.product-info {
    padding: var(--spacing-sm) 0;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.product-name-ku {
    font-size: 1.1rem;
    color: var(--accent-gold);
    margin-bottom: var(--spacing-sm);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin: var(--spacing-sm) 0;
}

.meta-item {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--white);
}

.btn-view-details {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: var(--spacing-sm);
}

.btn-view-details:hover {
    background: var(--primary-red-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    font-size: 1.2rem;
    color: var(--accent-cream);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== About Section ==================== */
.about-section {
    padding: var(--spacing-xl) 0;
}

.about-content {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1000px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--accent-cream);
    margin-bottom: var(--spacing-md);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-item {
    text-align: center;
    padding: var(--spacing-md);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.feature-item h4 {
    font-size: 1.3rem;
    color: var(--accent-gold);
    margin-bottom: var(--spacing-sm);
}

.feature-item p {
    color: var(--white);
    font-size: 1rem;
}

/* ==================== Contact Section ==================== */
.contact-section {
    padding: var(--spacing-xl) 0;
}

.contact-content {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.contact-icon {
    font-size: 2rem;
}

.contact-item h4 {
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--white);
    font-size: 1rem;
}

/* ==================== Footer ==================== */
.footer {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-md);
    text-align: center;
}

.footer p {
    color: var(--white);
    margin: 0.5rem 0;
}

.footer-tagline {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ==================== Modal ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--spacing-lg);
    animation: slideUp 0.3s ease;
}

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

.close-modal {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.9), rgba(150, 20, 40, 0.9));
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.4);
}

.close-modal:hover {
    background: linear-gradient(135deg, rgba(220, 38, 38, 1), rgba(180, 25, 45, 1));
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.6);
}

.close-modal:active {
    transform: rotate(90deg) scale(0.95);
}

/* ==================== Responsive ==================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
}


/* ==================== Categories Section ==================== */
.categories-section {
    padding: var(--spacing-xl) 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.category-box {
    position: relative;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.category-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-gold), var(--primary-red));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.category-box:hover::before {
    opacity: 1;
}

.category-box:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.2);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.category-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.category-name-ar {
    font-size: 1.4rem;
    color: var(--accent-gold);
    margin-bottom: var(--spacing-sm);
}

.category-description {
    font-size: 1rem;
    color: var(--accent-cream);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.category-count {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(218, 165, 32, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
}

/* ==================== Category Page ==================== */
.category-header {
    padding: var(--spacing-xl) 0;
}

.category-header-content {
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.back-link {
    display: inline-block;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--gold-light);
    transform: translateX(-5px);
}

.category-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: var(--shadow-text);
    margin-bottom: 0.5rem;
}

.category-title-ar {
    font-size: 2rem;
    color: var(--accent-gold);
    margin-bottom: var(--spacing-md);
}

.category-stats {
    margin-top: var(--spacing-md);
}

.stat-badge {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

/* ==================== Responsive Categories ==================== */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-box {
        min-height: 200px;
    }
    
    .category-title {
        font-size: 2rem;
    }
}


/* Category Image Styles */
.category-icon img {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 50% !important; /* بازنەیی */
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border: 3px solid rgba(196, 30, 58, 0.3);
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.category-box:hover .category-icon img {
    transform: scale(1.15);
    filter: drop-shadow(0 8px 20px rgba(196, 30, 58, 0.8)) brightness(1.1);
    background: rgba(196, 30, 58, 0.1);
    border-color: rgba(196, 30, 58, 0.8);
}

/* Current Image Preview in Forms */
.current-image-preview {
    margin-bottom: 1rem;
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.current-image-preview img {
    border: 3px solid rgba(196, 30, 58, 0.3);
    border-radius: 50% !important;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}


/* Logo Image Styles */
.logo-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.logo-image:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(196, 30, 58, 0.5));
}

/* Admin Panel Logo Preview - Circle */
#logoPreview {
    transition: all 0.3s ease;
}

#logoPreview img {
    border-radius: 50% !important;
    object-fit: contain;
    width: 200px !important;
    height: 200px !important;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border: 3px solid rgba(196, 30, 58, 0.3);
    transition: all 0.3s ease;
}

#logoPreview img:hover {
    border-color: rgba(196, 30, 58, 0.6);
    transform: scale(1.05);
}


/* ========================================
   RESPONSIVE DESIGN - دیزاینی گونجاو
   ======================================== */

/* ==================== Mobile Menu Toggle ==================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
    color: var(--accent-gold);
}

/* ==================== Tablet - 1024px ==================== */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ==================== Mobile - 768px ==================== */
@media (max-width: 768px) {
    /* Header */
    .header-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .logo {
        width: 100%;
        justify-content: center;
    }
    
    .logo-image {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text .subtitle {
        font-size: 0.8rem;
    }
    
    /* Navigation */
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        background: rgba(0, 0, 0, 0.5);
        padding: 1rem;
        border-radius: 10px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 1rem;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
    }
    
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        top: 1rem;
        right: 1rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        min-width: 100%;
    }
    
    /* Categories */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-box {
        padding: 1.5rem;
    }
    
    .category-icon {
        font-size: 3rem;
    }
    
    .category-icon img {
        width: 80px !important;
        height: 80px !important;
    }
    
    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-card {
        padding: 1rem;
    }
    
    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* About Section */
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-text {
        max-width: 100%;
    }
    
    /* Contact Section */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        max-width: 95%;
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .product-details-grid {
        grid-template-columns: 1fr;
    }
    
    .product-detail-image {
        max-height: 250px;
    }
}

/* ==================== Small Mobile - 480px ==================== */
@media (max-width: 480px) {
    /* Typography */
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .logo-text h1 {
        font-size: 1.2rem;
    }
    
    /* Spacing */
    .section {
        padding: 2rem 0;
    }
    
    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Category Icons */
    .category-icon {
        font-size: 2.5rem;
    }
    
    .category-icon img {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* Product Cards */
    .product-name {
        font-size: 1.1rem;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
    
    /* Modal */
    .close-modal {
        font-size: 1.8rem;
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }
    
    .modal-content {
        padding: 1rem;
    }
}

/* ==================== Extra Small - 360px ==================== */
@media (max-width: 360px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    .category-box {
        padding: 1rem;
    }
    
    .product-card {
        padding: 0.8rem;
    }
}

/* ==================== Landscape Mobile ==================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .header,
    .footer,
    .nav,
    .btn,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .background-overlay {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .glass-effect {
        background: white !important;
        backdrop-filter: none !important;
    }
}

/* ==================== Videos Section ==================== */
.videos-section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
    margin-top: var(--spacing-md);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.video-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid var(--border-glass);
}

.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.35);
    border-color: var(--accent-gold);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.92;
}

.video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.18);
    opacity: 1;
}

.play-button svg {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
    width: 70px;
    height: 70px;
}

.video-info {
    padding: 1.3rem;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-title-ar {
    font-size: 1.05rem;
    color: var(--accent-gold);
    margin-bottom: 0.6rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.video-description {
    font-size: 0.9rem;
    color: var(--accent-cream);
    line-height: 1.55;
    opacity: 0.88;
    margin-top: 0.6rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ==================== Video Modal ==================== */
#videoModal .modal-content {
    padding: 2rem;
}

#videoModalBody h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--accent-gold);
    text-shadow: var(--shadow-text);
}

.video-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.video-embed-container iframe,
.video-embed-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ==================== Responsive - Videos ==================== */
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.3rem;
    }
}

@media (max-width: 768px) {
    .videos-section {
        padding: var(--spacing-md) 0;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .video-card {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
    
    .video-title {
        font-size: 1.15rem;
    }
    
    .video-title-ar {
        font-size: 1rem;
    }
    
    .video-description {
        font-size: 0.9rem;
    }
    
    .play-button {
        width: 65px;
        height: 65px;
    }
    
    .play-button svg {
        width: 65px;
        height: 65px;
    }
    
    .video-info {
        padding: 1.2rem;
    }
    
    .featured-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.7rem;
    }
    
    #videoModal .modal-content {
        padding: 1rem;
        max-width: 95%;
        margin: 1rem;
    }
    
    #videoModalBody h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .videos-section {
        padding: var(--spacing-sm) 0;
    }
    
    .videos-grid {
        gap: 1.2rem;
        padding: 0 0.8rem;
    }
    
    .video-card {
        border-radius: var(--radius-md);
    }
    
    .video-thumbnail {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
}

@media (max-width: 480px) {
    .videos-section {
        padding: 1.5rem 0;
    }
    
    .videos-grid {
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .video-card {
        border-radius: var(--radius-sm);
    }
    
    .video-info {
        padding: 1rem;
    }
    
    .video-title {
        font-size: 1.05rem;
        line-height: 1.4;
        margin-bottom: 0.4rem;
    }
    
    .video-title-ar {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .video-description {
        font-size: 0.85rem;
        line-height: 1.5;
        -webkit-line-clamp: 3;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
    }
    
    .play-button svg {
        width: 60px;
        height: 60px;
    }
    
    .featured-badge {
        top: 0.6rem;
        right: 0.6rem;
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }
    
    #videoModal .modal-content {
        padding: 0.8rem;
        margin: 0.5rem;
        border-radius: var(--radius-md);
    }
    
    #videoModalBody h2 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
}

/* تایبەت بۆ مۆبایلی زۆر بچووک */
@media (max-width: 375px) {
    .videos-grid {
        padding: 0 0.3rem;
    }
    
    .video-info {
        padding: 0.9rem;
    }
    
    .video-title {
        font-size: 1rem;
    }
    
    .video-title-ar {
        font-size: 0.85rem;
    }
    
    .video-description {
        font-size: 0.8rem;
    }
    
    .play-button {
        width: 55px;
        height: 55px;
    }
    
    .play-button svg {
        width: 55px;
        height: 55px;
    }
}

/* ==================== Featured Video Badge ==================== */
.video-card .featured-badge {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 10;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: rgba(255, 215, 0, 0.93);
    color: var(--primary-red-dark);
    backdrop-filter: blur(10px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* ==================== Loading Animation for Videos ==================== */
.video-card {
    animation: fadeInUp 0.6s ease forwards;
}

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

/* Stagger animation for multiple videos */
.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }
.video-card:nth-child(4) { animation-delay: 0.4s; }
.video-card:nth-child(5) { animation-delay: 0.5s; }
.video-card:nth-child(6) { animation-delay: 0.6s; }

/* ==================== Language Switcher ==================== */
.language-switcher {
    position: relative;
    display: inline-block;
    margin: 0 0.5rem;
}

.lang-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--white-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-family: var(--font-main);
}

.lang-button:hover {
    background: var(--white-glass-hover);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
}

.lang-icon {
    font-size: 1.2rem;
}

.lang-text {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.lang-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.lang-button.active .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 150px;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.lang-option:hover {
    background: var(--white-glass);
    padding-right: 1.3rem;
}

.lang-option.active {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    color: var(--white);
    font-weight: 600;
}

.lang-flag {
    font-size: 1.3rem;
}

/* ==================== Responsive - Language Switcher ==================== */
@media (max-width: 768px) {
    .language-switcher {
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .lang-button {
        width: 100%;
        justify-content: center;
    }
    
    .lang-dropdown {
        right: 0;
        left: 0;
        width: 100%;
    }
}

/* ==================== RTL/LTR Support ==================== */
[dir="rtl"] .lang-dropdown {
    right: 0;
    left: auto;
}

[dir="ltr"] .lang-dropdown {
    left: 0;
    right: auto;
}

[dir="rtl"] .lang-option:hover {
    padding-right: 1rem;
    padding-left: 1.3rem;
}

[dir="ltr"] .lang-option:hover {
    padding-left: 1rem;
    padding-right: 1.3rem;
}

/* ==================== Mobile Touch Improvements ==================== */
@media (max-width: 768px) {
    /* باشترکردنی تاچ بۆ ڤیدیۆکان */
    .video-card {
        -webkit-tap-highlight-color: rgba(196, 30, 58, 0.3);
        touch-action: manipulation;
    }
    
    .video-thumbnail {
        cursor: pointer;
        -webkit-touch-callout: none;
    }
    
    /* قەبارەی باشتر بۆ دوگمەکان */
    .play-button {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* فاصڵەی باشتر بۆ دەق */
    .video-title {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .video-description {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Prevent text selection */
    .video-card * {
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Allow text selection only for titles */
    .video-title,
    .video-description {
        -webkit-user-select: text;
        user-select: text;
    }
}

/* ==================== Mobile Video Modal ==================== */
@media (max-width: 768px) {
    #videoModal {
        padding: 0;
    }
    
    #videoModal .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .video-embed-container {
        border-radius: 0;
    }
    
    #videoModalBody h2 {
        padding: 0 1rem;
    }
}

/* ==================== Landscape Mode for Mobile ==================== */
@media (max-width: 768px) and (orientation: landscape) {
    .videos-section {
        padding: 1rem 0;
    }
    
    .section-header {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .section-description {
        font-size: 0.85rem;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .video-info {
        padding: 0.8rem;
    }
    
    .video-title {
        font-size: 0.95rem;
    }
}

/* ==================== Very Small Screens ==================== */
@media (max-width: 320px) {
    .videos-section {
        padding: 1rem 0;
    }
    
    .videos-grid {
        gap: 0.8rem;
        padding: 0 0.3rem;
    }
    
    .video-card {
        border-radius: 8px;
    }
    
    .video-info {
        padding: 0.8rem;
    }
    
    .video-title {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }
    
    .video-title-ar {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .video-description {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
    }
    
    .play-button svg {
        width: 50px;
        height: 50px;
    }
    
    .featured-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
    }
}


/* ====================================
   WHATSAPP FLOATING BUTTON
   ==================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px; /* بۆ RTL */
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 15px rgba(37, 211, 102, 0.4),
        0 8px 30px rgba(37, 211, 102, 0.2);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 6px 25px rgba(37, 211, 102, 0.6),
        0 12px 45px rgba(37, 211, 102, 0.3);
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.whatsapp-float svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Pulse Animation */
@keyframes whatsappPulse {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(37, 211, 102, 0.4),
            0 8px 30px rgba(37, 211, 102, 0.2);
    }
    50% {
        box-shadow: 
            0 4px 15px rgba(37, 211, 102, 0.6),
            0 8px 30px rgba(37, 211, 102, 0.4),
            0 0 0 10px rgba(37, 211, 102, 0.1),
            0 0 0 20px rgba(37, 211, 102, 0.05);
    }
}

/* Wiggle on Hover */
@keyframes whatsappWiggle {
    0%, 100% { transform: scale(1.15) rotate(0deg); }
    25% { transform: scale(1.15) rotate(-5deg); }
    50% { transform: scale(1.15) rotate(5deg); }
    75% { transform: scale(1.15) rotate(-5deg); }
}

.whatsapp-float:hover {
    animation: whatsappWiggle 0.5s ease;
}

/* ====================================
   RESPONSIVE - MOBILE
   ==================================== */

@media screen and (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media screen and (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
}

/* بۆ زمانی LTR (ئەگەر زیادبکرێت) */
html[dir="ltr"] .whatsapp-float {
    right: auto;
    left: 30px;
}

@media screen and (max-width: 768px) {
    html[dir="ltr"] .whatsapp-float {
        left: 20px;
    }
}

@media screen and (max-width: 480px) {
    html[dir="ltr"] .whatsapp-float {
        left: 15px;
    }
}

/* ====================================
   ACCESSIBILITY
   ==================================== */

.whatsapp-float:focus {
    outline: 3px solid rgba(37, 211, 102, 0.5);
    outline-offset: 5px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none !important;
        transition: none !important;
    }
    
    .whatsapp-float:hover {
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .whatsapp-float {
        border: 2px solid white;
    }
}

/* Print - Hide WhatsApp Button */
@media print {
    .whatsapp-float {
        display: none !important;
    }
}
