/* =========================================
   El Watanya Store - Design System v3.0.0
   Based on: Industrial Tech / Green Theme
   Developer: Nasr Soft - Py Eng Ahmed Nasr
   ========================================= */

/* === Design Tokens === */
:root {
    /* Primary Colors */
    --primary: #0D503C;
    --primary-hover: #0A3D2E;
    --primary-light: rgba(13, 80, 60, 0.08);
    --primary-gradient: linear-gradient(135deg, #0D503C, #10B981);

    /* Secondary Colors */
    --secondary: #10B981;
    --secondary-hover: #059669;

    /* Accent Colors */
    --accent: #F59E0B;
    --accent-hover: #D97706;

    /* Background Colors */
    --bg: #FFFFFF;
    --bg-alt: #F8FAFB;
    --bg-dark: #0F172A;
    --bg-darker: #020617;

    /* Surface Colors */
    --surface: #FFFFFF;
    --surface-hover: #F1F5F9;
    --surface-active: #E2E8F0;

    /* Border Colors */
    --border: #E2E8F0;
    --border-light: #F1F5F9;
    --border-dark: #CBD5E1;

    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-inverse: #FFFFFF;

    /* Status Colors */
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Spacing (8px base) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;

    /* Z-Index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;

    /* Font Sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;

    /* Font Weights */
    --weight-light: 300;
    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: var(--transition-base);
}

a:hover {
    color: var(--secondary-hover);
}

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

ul, ol {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.section-padding {
    padding: var(--space-20) 0;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-family: 'Cairo', sans-serif;
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-base);
    text-align: center;
    line-height: 1.5;
    white-space: nowrap;
}

.btn-primary {
    background: var(--secondary);
    color: var(--text-inverse);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-inverse);
    border-color: var(--text-inverse);
}

.btn-secondary:hover {
    background: var(--text-inverse);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--text-inverse);
}

.btn-accent {
    background: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
}

.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
    border-radius: var(--radius-xl);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* === Top Bar === */
.top-bar {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    font-size: var(--text-sm);
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

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

.top-bar-right, .top-bar-left {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.top-bar-item i {
    color: var(--secondary);
    font-size: var(--text-xs);
}

.top-bar-item a {
    color: rgba(255,255,255,0.7);
}

.top-bar-item a:hover {
    color: var(--secondary);
}

.top-bar-social {
    display: flex;
    gap: var(--space-3);
}

.top-bar-social a {
    color: rgba(255,255,255,0.5);
    font-size: var(--text-sm);
    transition: var(--transition-base);
}

.top-bar-social a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

/* === Header === */
.site-header {
    background: var(--bg-dark);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.header-logo img {
    height: 50px;
    width: auto;
}

.site-logo-text {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: var(--weight-extrabold);
    color: var(--text-inverse);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-inverse);
    font-size: var(--text-xl);
}

.header-search {
    flex: 1;
    max-width: 480px;
}

.search-form {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid transparent;
    transition: var(--transition-base);
}

.search-form:focus-within {
    border-color: var(--secondary);
    background: rgba(255,255,255,0.15);
}

.search-form input {
    flex: 1;
    padding: var(--space-3) var(--space-5);
    border: none;
    background: transparent;
    font-family: 'Cairo', sans-serif;
    font-size: var(--text-sm);
    color: var(--text-inverse);
    outline: none;
}

.search-form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-form button {
    padding: var(--space-3) var(--space-5);
    background: var(--secondary);
    color: var(--text-inverse);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
    font-size: var(--text-sm);
}

.search-form button:hover {
    background: var(--secondary-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    transition: var(--transition-base);
    color: var(--text-inverse);
    background: rgba(255,255,255,0.1);
}

.header-action-btn:hover {
    background: var(--secondary);
    color: var(--text-inverse);
}

.header-action-btn i {
    font-size: var(--text-lg);
}

/* === Navigation === */
.main-nav {
    background: var(--primary);
    position: sticky;
    top: 80px;
    z-index: var(--z-fixed);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
    color: rgba(255,255,255,0.9);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    transition: var(--transition-base);
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    background: rgba(255,255,255,0.1);
    color: var(--text-inverse);
}

.nav-menu li.current-menu-item::after,
.nav-menu li.current_page_item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--accent);
    border-radius: var(--radius-full);
}

.nav-call-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255,255,255,0.15);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    transition: var(--transition-base);
    white-space: nowrap;
}

.nav-call-btn:hover {
    background: var(--text-inverse);
    color: var(--primary);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-5);
    color: var(--text-inverse);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    font-size: var(--text-base);
}

/* === Hero Slider === */
.hero-slider {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--bg-dark);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark), rgba(13, 80, 60, 0.6));
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
}

.slide-title {
    font-size: var(--text-5xl);
    font-weight: var(--weight-extrabold);
    color: var(--text-inverse);
    line-height: 1.2;
    margin-bottom: var(--space-4);
}

.slide-subtitle {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-8);
    line-height: 1.8;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    color: var(--text-inverse);
    font-size: var(--text-base);
    cursor: pointer;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.slider-prev {
    right: var(--space-6);
}

.slider-next {
    left: var(--space-6);
}

.slider-dots {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: var(--space-2);
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition-base);
}

.slider-dot.active {
    background: var(--secondary);
    width: 32px;
}

/* === Features Bar === */
.features-bar {
    background: var(--bg);
    padding: var(--space-6) 0;
    box-shadow: var(--shadow-lg);
    margin-top: calc(-1 * var(--space-8));
    position: relative;
    z-index: 5;
    border-radius: var(--radius-xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--border-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.feature-item:hover {
    background: var(--primary-light);
}

.feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: var(--primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: var(--secondary);
}

.feature-info h4 {
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: 2px;
}

.feature-info p {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* === Section Header === */
.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: var(--weight-extrabold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.section-desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

.section-line {
    display: flex;
    justify-content: center;
    margin-top: var(--space-4);
}

.section-line span {
    width: 48px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
}

/* === Trust Stats === */
.trust-section {
    background: var(--bg);
    padding: var(--space-16) 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.trust-item {
    text-align: center;
    padding: var(--space-8) var(--space-6);
    background: var(--primary-light);
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.trust-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-4);
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--text-inverse);
}

.trust-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: var(--weight-bold);
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: var(--space-1);
}

.trust-label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    font-weight: var(--weight-medium);
}

/* === Categories === */
.categories-section {
    background: var(--bg-alt);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.category-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    transition: var(--transition-slow);
    display: block;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.category-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.category-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--secondary);
    opacity: 0.5;
}

.category-info {
    padding: var(--space-5);
}

.category-info h3 {
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--secondary);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
    transition: var(--transition-base);
}

.category-card:hover .category-link {
    gap: var(--space-2);
    color: var(--secondary-hover);
}

/* === Flash Deals === */
.flash-deals {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    position: relative;
    overflow: hidden;
}

.flash-deals::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-full);
}

.flash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
    gap: var(--space-5);
}

.flash-title-area {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.flash-icon {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    color: var(--text-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.flash-deals .section-title {
    color: var(--text-inverse);
}

.flash-deals .section-desc {
    color: rgba(255,255,255,0.7);
}

.flash-countdown {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    display: block;
    width: 60px;
    height: 60px;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--accent);
    line-height: 56px;
}

.countdown-label {
    display: block;
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.6);
    margin-top: var(--space-1);
}

.countdown-separator {
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--accent);
    margin-bottom: var(--space-6);
}

.flash-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

/* === Product Cards === */
.flash-products .product,
.products .product {
    background: var(--bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
    border: 1px solid var(--border);
}

.flash-products .product:hover,
.products .product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--secondary);
}

.flash-products .product .woocommerce-loop-product__title,
.products .product .woocommerce-loop-product__title {
    padding: 0 var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: var(--weight-semibold);
}

.flash-products .product .price,
.products .product .price {
    padding: 0 var(--space-4);
    color: var(--secondary);
    font-weight: var(--weight-bold);
    font-size: var(--text-lg);
}

.flash-products .product .price del,
.products .product .price del {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.flash-products .product .price ins,
.products .product .price ins {
    text-decoration: none;
}

.flash-products .product .button,
.products .product .button {
    margin: var(--space-3) var(--space-4) var(--space-4);
    background: var(--secondary);
    color: var(--text-inverse);
    border-radius: var(--radius-md);
    font-weight: var(--weight-semibold);
    transition: var(--transition-base);
    border: none;
}

.flash-products .product .button:hover,
.products .product .button:hover {
    background: var(--secondary-hover);
    color: var(--text-inverse);
}

.sale-badge {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    background: var(--danger);
    color: var(--text-inverse);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    z-index: 2;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-12);
    color: rgba(255,255,255,0.6);
    font-size: var(--text-lg);
}

/* === About Section === */
.about-section {
    background: var(--bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-2xl);
}

.about-placeholder {
    width: 100%;
    height: 400px;
    background: var(--primary-light);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--secondary);
    opacity: 0.3;
}

.about-badge {
    position: absolute;
    bottom: calc(-1 * var(--space-6));
    right: var(--space-8);
    background: var(--primary-gradient);
    color: var(--text-inverse);
    padding: var(--space-6) var(--space-8);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.badge-number {
    display: block;
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    line-height: 1;
}

.badge-text {
    font-size: var(--text-sm);
    opacity: 0.9;
}

.about-content .section-title {
    text-align: right;
}

.about-content .section-line {
    justify-content: flex-start;
}

.about-text {
    font-size: var(--text-base);
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

/* === CTA Section === */
.cta-section {
    background: var(--primary-gradient);
    padding: var(--space-16) 0;
    text-align: center;
    color: var(--text-inverse);
}

.cta-section h2 {
    font-size: var(--text-4xl);
    font-weight: var(--weight-extrabold);
    margin-bottom: var(--space-4);
}

.cta-section p {
    font-size: var(--text-lg);
    opacity: 0.9;
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background: var(--text-inverse);
    color: var(--primary);
    border-color: var(--text-inverse);
}

.cta-section .btn:hover {
    background: transparent;
    color: var(--text-inverse);
}

/* === Newsletter === */
.newsletter-section {
    position: relative;
    padding: var(--space-20) 0;
    background: var(--bg-dark);
    background-size: cover;
    background-position: center;
}

.newsletter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-dark), rgba(13, 80, 60, 0.8));
}

.newsletter-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: var(--text-3xl);
    font-weight: var(--weight-extrabold);
    color: var(--text-inverse);
    margin-bottom: var(--space-2);
}

.newsletter-content p {
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-8);
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--bg);
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-4) var(--space-5);
    border: none;
    font-family: 'Cairo', sans-serif;
    font-size: var(--text-sm);
    outline: none;
}

.newsletter-form button {
    padding: var(--space-4) var(--space-6);
    background: var(--secondary);
    color: var(--text-inverse);
    border: none;
    font-family: 'Cairo', sans-serif;
    font-weight: var(--weight-bold);
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--secondary-hover);
}

/* === Footer === */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
}

.footer-main {
    padding: var(--space-16) 0 var(--space-10);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-10);
}

.footer-logo img {
    height: 45px;
    margin-bottom: var(--space-4);
}

.footer-logo h3 {
    color: var(--text-inverse);
    font-size: var(--text-xl);
    font-weight: var(--weight-extrabold);
    margin-bottom: var(--space-4);
}

.footer-logo h3 i {
    color: var(--secondary);
    margin-left: var(--space-2);
}

.footer-about p {
    margin-bottom: var(--space-5);
    line-height: 1.9;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--text-inverse);
    transform: translateY(-3px);
}

.footer-title {
    color: var(--text-inverse);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-5);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 3px;
    background: var(--secondary);
    border-radius: var(--radius-full);
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: var(--text-sm);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-links a::before {
    content: '\f104';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-right: var(--space-2);
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.footer-contact-list i {
    color: var(--secondary);
    width: 18px;
    text-align: center;
    margin-top: 3px;
}

.footer-contact-list a {
    color: rgba(255,255,255,0.6);
}

.footer-contact-list a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-5) 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-sm);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
}

.developer-credit {
    color: rgba(255,255,255,0.4);
}

/* === Mobile Bottom Nav === */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    height: 60px;
    z-index: var(--z-fixed);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-top: 1px solid var(--border-light);
}

.mobile-bottom-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    transition: var(--transition-base);
    padding: var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.mobile-nav-item i {
    font-size: var(--text-xl);
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--secondary);
}

/* === Quick Menu (Bottom Sheet) === */
.quick-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: var(--z-fixed);
    backdrop-filter: blur(4px);
}

.quick-menu-overlay.active {
    display: block;
}

.quick-menu-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: var(--space-6);
    z-index: calc(var(--z-fixed) + 1);
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.quick-menu-sheet.active {
    transform: translateY(0);
}

.quick-menu-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-5);
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.quick-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'Cairo', sans-serif;
}

.quick-menu-item:hover {
    background: var(--primary-light);
}

.quick-menu-item i {
    font-size: var(--text-2xl);
    color: var(--secondary);
}

.quick-menu-item span {
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
}

/* === Breadcrumb === */
.breadcrumb-wrap {
    background: var(--bg-dark);
    padding: var(--space-4) 0;
    color: rgba(255,255,255,0.6);
    font-size: var(--text-sm);
}

.breadcrumb-wrap a {
    color: rgba(255,255,255,0.6);
}

.breadcrumb-wrap a:hover {
    color: var(--secondary);
}

.breadcrumb-wrap .sep {
    margin: 0 var(--space-3);
    opacity: 0.4;
}

/* === Back to Top === */
.back-to-top {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    width: 48px;
    height: 48px;
    background: var(--secondary);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-base);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: var(--z-sticky);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-hover);
    transform: translateY(-3px);
}

/* === Page Templates === */
.page-header {
    background: var(--bg-dark);
    padding: var(--space-16) 0;
    text-align: center;
    color: var(--text-inverse);
}

.page-header h1 {
    font-size: var(--text-4xl);
    font-weight: var(--weight-extrabold);
}

.content-area {
    padding: var(--space-16) 0;
}

.page-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-10);
}

/* === Single Post === */
.single-post-content {
    background: var(--bg);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.single-post-content h1 {
    font-size: var(--text-2xl);
    font-weight: var(--weight-extrabold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.post-meta {
    display: flex;
    gap: var(--space-5);
    color: var(--text-muted);
    font-size: var(--text-sm);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--border);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.single-post-content .entry-content {
    line-height: 2;
    font-size: var(--text-base);
}

.single-post-content .entry-content p {
    margin-bottom: var(--space-5);
}

.single-post-content .entry-content img {
    border-radius: var(--radius-lg);
    margin: var(--space-5) 0;
}

/* === 404 Page === */
.error-404 {
    text-align: center;
    padding: var(--space-20) 0;
}

.error-404 h1 {
    font-size: 8rem;
    font-weight: var(--weight-bold);
    color: var(--secondary);
    line-height: 1;
}

.error-404 p {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    margin: var(--space-5) 0 var(--space-8);
}

/* === Sidebar === */
.sidebar .widget {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.sidebar .widget-title {
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--secondary);
}

/* === WooCommerce === */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-5);
}

.woocommerce ul.products li.product {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}

.woocommerce ul.products li.product img {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    margin: 0 !important;
}

.woocommerce .star-rating {
    display: none;
}

.woocommerce .woocommerce-result-count {
    font-family: 'Cairo', sans-serif;
    color: var(--text-secondary);
}

.woocommerce .woocommerce-ordering select {
    font-family: 'Cairo', sans-serif;
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--border);
}

/* === Featured Products === */
.featured-products, .all-products-section {
    background: var(--bg-alt);
}

/* === Product Card (Redesigned) === */
.product-card {
    background: var(--bg);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--secondary);
}

/* Badges */
.product-badges {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    align-items: flex-end;
}

.product-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: var(--weight-bold);
    line-height: 1.4;
    letter-spacing: 0.3px;
    backdrop-filter: blur(8px);
}

.badge-sale {
    background: var(--danger);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.badge-cat {
    background: rgba(255,255,255,0.9);
    color: var(--primary);
    border: 1px solid var(--border);
}

/* Image */
.product-image-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-alt);
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-hover-actions {
    position: absolute;
    bottom: var(--space-3);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: var(--space-2);
    opacity: 0;
    transition: all 0.3s ease;
}

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

.hover-action {
    width: 42px;
    height: 42px;
    background: var(--bg);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: var(--text-sm);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    text-decoration: none;
}

.hover-action:hover {
    background: var(--secondary);
    color: var(--text-inverse);
}

/* Body */
.product-body {
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    flex: 1;
}

.product-cat-label {
    font-size: var(--text-xs);
    color: var(--secondary);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    min-height: 48px;
}

.product-name a {
    color: var(--text-primary);
    text-decoration: none;
}

.product-name a:hover {
    color: var(--secondary);
}

.product-pricing {
    font-size: var(--text-xl);
    font-weight: var(--weight-extrabold);
    color: var(--secondary);
    margin: var(--space-1) 0;
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.product-pricing del {
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: var(--weight-normal);
    text-decoration: line-through;
}

.product-pricing ins {
    text-decoration: none;
    color: var(--secondary);
}

/* Add to Cart Button */
.btn-cart {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--primary);
    color: var(--text-inverse);
    border: none;
    border-radius: var(--radius-lg);
    font-family: 'Cairo', sans-serif;
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: auto;
}

.btn-cart:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 80, 60, 0.3);
}

.btn-cart:active {
    transform: translateY(0);
}

.btn-cart.btn-disabled {
    background: var(--text-muted);
    cursor: not-allowed;
}

.btn-cart.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Out of stock */
.out-of-stock {
    color: var(--danger);
    font-weight: var(--weight-semibold);
    font-size: var(--text-sm);
}

/* Load More */
.load-more-wrap {
    text-align: center;
    margin-top: var(--space-12);
}

.load-more-btn {
    min-width: 280px;
}

.load-more-count {
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.load-more-count span {
    color: var(--secondary);
    font-weight: var(--weight-bold);
}

/* Section More Link */
.section-more {
    text-align: center;
    margin-top: var(--space-10);
}

/* === Animations === */
.animate-in {
    animation: slideUp 0.6s ease forwards;
    opacity: 0;
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

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