/* Root Variables for Light & Dark Themes */
:root {
    /* Light Theme Colors */
    --primary-color: #e91e63;
    --primary-hover: #c2185b;
    --secondary-color: #673ab7;
    --accent-color: #ff5722;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    
    /* Text Colors */
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-tertiary: #f5f5f5;
    --bg-card: #ffffff;
    
    /* Border Colors */
    --border-color: #e0e0e0;
    --border-hover: #bdbdbd;
    
    /* Shadow */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--warning-color) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(233, 30, 99, 0.1) 0%, rgba(103, 58, 183, 0.1) 100%);
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}

/* Dark Theme */
[data-theme="dark"] {
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2d2d2d;
    --bg-card: #1e1e1e;
    
    --border-color: #333333;
    --border-hover: #555555;
    
    /* Dark theme shadow adjustments */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.6);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.7);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.8);
}

/* Dark theme logo adjustments */
[data-theme="dark"] .brand-logo {
    filter: drop-shadow(0 2px 4px rgba(255,255,255,0.1));
}

[data-theme="dark"] .brand-logo:hover {
    filter: drop-shadow(0 4px 8px rgba(255,255,255,0.2));
}

/* Square hero-style tiles shared by products and sections */
.product-card,
.section-card {
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    aspect-ratio: 1 / 1;
    display: block;
    isolation: isolate;
}

.product-card:hover,
.section-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card::after,
.section-card::after {
    content: none;
}

.product-card .product-image,
.section-card .product-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.product-card .product-image img,
.product-card .product-image .image-placeholder,
.section-card .product-image img,
.section-card .product-image .image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card .product-image .image-placeholder,
.section-card .product-image .image-placeholder {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-name-overlay,
.section-card .product-name-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    min-height: 40%;
    pointer-events: none;
}

.product-card .product-name,
.section-card .product-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.product-card .product-description,
.product-card .product-price,
.product-card .product-colors,
.product-card .product-stock,
.product-card .view-details-hint,
.product-card .product-actions,
.product-card .add-to-cart,
.product-card .product-discount {
    display: none !important;
}

@media (max-width: 600px) {
    .product-card,
    .section-card {
        border-radius: 16px;
    }

    .product-card .product-name,
    .section-card .product-name {
        font-size: 1.05rem;
    }

    .product-card .product-name-overlay,
    .section-card .product-name-overlay {
        padding: 1.1rem 1rem;
        min-height: 35%;
    }
}

.modal-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.modal-thumbnails .thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.modal-thumbnails .thumbnail.active {
    border-color: var(--primary-color);
}

.modal-thumbnails .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-section {
    flex: 1;
    padding-left: 2rem;
    max-width: 500px;
}

.modal-product-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modal-rating .stars {
    color: #ffd700;
}

.modal-rating .rating-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-price {
    margin-bottom: 1.5rem;
}

.modal-price .current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 0.5rem;
}

.modal-price .old-price {
    font-size: 1.125rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.modal-option-group {
    margin-bottom: 1.5rem;
}

.modal-option-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-option-group .color-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modal-option-group .color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.modal-option-group .color-option.selected {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.modal-option-group .size-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.modal-option-group .size-option {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
    color: var(--text-primary);
}

.modal-option-group .size-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.modal-quantity {
    margin-bottom: 1.5rem;
}

.modal-quantity label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-stock {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    color: var(--success-color);
}

.modal-stock.low-stock {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger-color);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-actions .add-to-cart {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.modal-actions .add-to-cart:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.modal-actions .btn-secondary {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.modal-actions .btn-secondary:hover {
    border-color: var(--primary-color);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

/* Wishlist feedback animation */
@keyframes fadeInOut {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20%, 80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Enhanced product cards for section pages */

/* Square hero-style product cards */
.product-card {
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    aspect-ratio: 1 / 1;
    display: flex;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-card::after {
    content: none;
}

.product-card .product-image {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.product-card .product-image img,
.product-card .product-image .image-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card .product-image .image-placeholder {
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card .product-name-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.8) 100%);
    display: flex;
    align-items: flex-end;
    min-height: 40%;
}

.product-card .product-name {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.product-card .product-description,
.product-card .product-price,
.product-card .product-colors,
.product-card .product-stock,
.product-card .view-details-hint,
.product-card .product-actions,
.product-card .add-to-cart,
.product-card .product-discount {
    display: none !important;
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-info-section {
        padding-left: 0;
        padding-top: 1rem;
        max-width: 100%;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .add-to-cart,
    .modal-actions .btn-secondary {
        width: 100%;
        min-width: auto;
    }
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Developer signature link */
.dev-signature {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    padding: 0 4px;
}

.dev-signature::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s ease;
}

.dev-signature:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.dev-signature:hover {
    filter: brightness(1.2);
}

/* Search result badge */
.search-badge-active {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    background: var(--gradient-primary);
    color: #fff;
    padding: .6rem 1rem;
    border-radius: 50px;
    font-size: .9rem;
    margin-top: .5rem;
    box-shadow: var(--shadow-md);
    animation: fadeIn .4s ease;
}
.search-badge-active button {
    background: var(--bg-secondary);
    border: none;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text-primary); cursor: pointer; font-size: 1.1rem;
    transition: background .3s;
}
.search-badge-active button:hover { background: var(--bg-tertiary); }
@keyframes fadeIn { from { opacity:0; transform: translateY(-6px);} to { opacity:1; transform: translateY(0);} }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
}

/* Cart totals enhancement */
.cart-total .old-total {
    text-decoration: line-through;
    color: var(--text-muted);
    font-weight: 400;
}

.cart-total .discount-row span:last-child {
    color: var(--success-color);
    font-weight: 600;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.nav-brand:hover {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
}

.brand-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-brand h2 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.nav-brand span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
    margin-top: -2px;
    font-weight: 400;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-fast);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Search Box */
.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 25px;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    padding: 4px 8px;
    width: 200px;
    color: var(--text-primary);
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box button {
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.search-box button:hover {
    color: var(--primary-color);
}

/* Cart Toggle */
.cart-toggle {
    position: relative;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.cart-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Shopping Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: 10000;
    transition: right var(--transition-normal);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.cart-close:hover {
    color: var(--danger-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.cart-item:hover {
    background: var(--bg-secondary);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.cart-item-options {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.cart-item-quantity button:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.cart-item-quantity input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 4px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.cart-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.cart-remove:hover {
    color: var(--danger-color);
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.cart-total {
    margin-bottom: 1rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.total-final {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
}

.discount-section {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.discount-section input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.discount-section button {
    padding: 0.75rem 1rem;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.discount-section button:hover {
    background: var(--primary-color);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.checkout-btn:hover {
    transform: translateY(-2px);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23f8fafc20" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    background-size: cover;
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-logo-img {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.2));
    transition: all 0.4s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

.hero-logo-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 12px 48px rgba(0,0,0,0.3));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.hero-features .feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.hero-features .feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hero-features .feature-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.hero-features .feature-item span {
    font-weight: 600;
    color: var(--text-primary);
}

/* Sections Section */
.sections {
    padding: 80px 0;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.75rem;
}

@media (max-width: 768px) {
    .sections-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .sections-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .section-card .product-name {
        font-size: 0.98rem;
    }
}

.loading-sections {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* Section Page Styles */
.section-header-page {
    padding: 2rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.section-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.section-icon-large {
    font-size: 3rem;
    background: var(--gradient-primary);
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.section-details h1 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-details p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.section-stats {
    display: flex;
    gap: 1rem;
}

.products-count {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.section-products {
    padding-top: 3rem;
}

.loading-state {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-secondary);
}

.empty-state, .error-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state .empty-icon, .error-state .error-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3, .error-state h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-state p, .error-state p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .section-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .section-icon-large {
        font-size: 2.5rem;
        min-width: auto;
    }
    
    .section-details h1 {
        font-size: 1.5rem;
    }
    
    .section-details p {
        font-size: 0.9rem;
    }
    
    .debug-section {
        padding: 0.75rem !important;
        margin: 0.5rem 0 !important;
        font-size: 0.75rem !important;
    }
    
    .debug-section h3 {
        font-size: 0.875rem !important;
    }
}

.empty-sections, .sections-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.sections-error .error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--error-color);
}

.sections-error h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    transition: all var(--transition-normal);
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    background: var(--gradient-accent);
}

.category-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Products Section */
.products {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.75rem;
}

/* Mobile responsive for products - 2 columns */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .product-card {
        border-radius: 16px;
    }

    .product-card .product-name-overlay {
        padding: 1rem 0.9rem 1.1rem;
        min-height: 35%;
    }

    .product-card .product-name {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .product-card .product-name {
        font-size: 0.98rem;
    }
}

/* أحجام أصغر جداً (هواتف صغيرة) */
@media (max-width: 480px) {
    .product-image {
        height: 145px; /* تقليل طفيف إضافي للشاشات الأصغر */
    }
}

.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}


.product-image {
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
    display: block;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45% !important;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.035);
}

.product-image .image-placeholder {
    font-size: 3rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-discount {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--danger-color);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 24px rgba(233, 30, 99, 0.35);
}

/* Performance hints */
.product-card {
    will-change: transform, opacity;
    contain: content;
    backface-visibility: hidden;
}

.product-image img {
    will-change: transform, opacity;
    content-visibility: auto;
    object-position: center 40% !important;
}

/* قص بديل اختياري يمكن استخدامه بإضافة صنف على البطاقة */
.product-image.crop-upper img { object-position: center 25% !important; }
.product-image.crop-middle img { object-position: center 50% !important; }
.product-image.crop-lower img { object-position: center 70% !important; }

/* Prefer transform-based hover only */
.product-card:hover {
    transform: translateY(-6px);
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-action {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.product-action:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-price .current-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price .old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 1rem;
}

.product-colors {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.color-dot:hover {
    transform: scale(1.2);
}

.product-stock {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.product-stock.low-stock {
    color: var(--warning-color);
    font-weight: 600;
}

.add-to-cart {
    width: 100%;
    padding: 0.75rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.add-to-cart:hover {
    transform: translateY(-2px);
}

/* Load More - Modern Design */
.load-more-wrapper {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.load-more-section {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.load-more-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 20px 20px 0 0;
}

.products-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.showing-count {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.total-count {
    font-weight: 500;
}

.load-more-btn.modern {
    position: relative;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 200px;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.3);
}

.load-more-btn.modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(233, 30, 99, 0.4);
}

.load-more-btn.modern:active {
    transform: translateY(-1px);
}

.load-more-btn.modern:disabled {
    cursor: not-allowed;
    opacity: 0.8;
    transform: none;
}

.btn-text {
    transition: all 0.3s ease;
}

.btn-icon {
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.btn-icon i {
    font-size: 1rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 0.6s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, var(--text-muted), transparent);
    animation: shimmer 2s infinite;
    opacity: 0.4;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Load More Container for Section Page */
.load-more-container {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.load-more-btn {
    position: relative;
    padding: 1rem 2rem;
    border-radius: 25px;
    border: none;
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.remaining-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 0.5rem;
}

.loading-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin-small 1s linear infinite;
}

@keyframes spin-small {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product card animations */
.product-card {
    transition: all 0.3s ease;
}

.product-card:nth-child(odd) {
    animation: slideInLeft 0.6s ease-out;
}

.product-card:nth-child(even) {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .load-more-section {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .load-more-btn.modern {
        min-width: 160px;
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    padding: 1rem;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

[data-theme="dark"] .product-modal {
    background: rgba(0, 0, 0, 0.9);
}

.product-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 1000px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10001;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.close-modal:hover {
    color: var(--danger-color);
    transform: scale(1.1);
}

.modal-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    padding: 2.5rem;
}

.main-image {
    width: 100%;
    height: 450px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.thumbnail-images {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-details h2 {
    color: var(--text-primary);
    font-size: 2rem;
    margin: 0;
    line-height: 1.2;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.stars {
    color: var(--warning-color);
    font-size: 1.1rem;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-description {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border-right: 4px solid var(--primary-color);
}

.product-description h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.product-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.product-options {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.product-options h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.size-options {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.size-option {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all var(--transition-fast);
    min-width: 45px;
    text-align: center;
}

.size-option:hover,
.size-option.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.color-option {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--transition-fast);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.color-option:hover,
.color-option.active {
    border-color: var(--text-primary);
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.color-option.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.quantity-selector {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
}

.quantity-selector h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.qty-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 700;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

#quantityInput {
    width: 80px;
    text-align: center;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.stock-info {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin: 1rem 0;
    border-right: 4px solid var(--success-color);
}

.stock-count {
    color: var(--success-color);
    font-weight: 600;
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.add-to-cart-btn {
    flex: 2;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.wishlist-btn {
    flex: 1;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wishlist-btn:hover {
    border-color: var(--danger-color);
    color: var(--danger-color);
    transform: translateY(-2px);
}

.stock-info {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin: 1rem 0;
    border-right: 4px solid var(--success-color);
}

.stock-count {
    color: var(--success-color);
    font-weight: 600;
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.add-to-cart-btn {
    flex: 2;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform var(--transition-fast);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
}

.wishlist-btn {
    flex: 1;
    padding: 1rem;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.wishlist-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 80px 0;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.features-text h2 {
    margin-bottom: 2rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-item i {
    color: var(--success-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-item p {
    margin: 0;
}

.features-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: white;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    height: 200px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-info p {
    margin-bottom: 1.5rem;
}

.project-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.project-status.completed {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.project-status.ongoing {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

/* Store Features Section */
.store-features {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.3);
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(233, 30, 99, 0.4);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* Responsive Design for Features */
@media (max-width: 768px) {
    .store-features {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .feature-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.25rem;
    width: 24px;
}

.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section p {
    margin-bottom: 1.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: var(--shadow-md);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-muted);
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .main-image {
        height: 300px;
    }
    
    .product-details h2 {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .add-to-cart-btn,
    .wishlist-btn {
        width: 100%;
        flex: none;
    }
    
    .size-options,
    .color-options {
        justify-content: center;
    }
    
    .quantity-controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-modal {
        padding: 0.5rem;
    }
    
    .modal-content {
        width: 98%;
        max-height: 98vh;
        border-radius: 16px;
    }
    
    .modal-body {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail {
        width: 70px;
        height: 70px;
    }
    
    .product-details h2 {
        font-size: 1.3rem;
    }
    
    .current-price {
        font-size: 1.3rem;
    }
    
    .size-option {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .color-option {
        width: 40px;
        height: 40px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .brand-logo {
        height: 40px;
    }

    .nav-brand {
        gap: 0.75rem;
        padding: 0.25rem;
    }

    .nav-brand h2 {
        font-size: 1.3rem;
    }

    .nav-brand span {
        font-size: 0.75rem;
    }

    .hero-logo-img {
        height: 200px; /* Increased from 80px for better visibility on mobile */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .features-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.875rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .services,
    .features,
    .projects,
    .contact {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-logo-img {
        height: 80px; /* Increased from 60px for very small screens */
    }

    .hero-title {
        font-size: 2rem;
    }

    .stat-item {
        padding: 1.5rem;
        min-width: 120px;
    }

    .stat-item h3 {
        font-size: 2rem;
    }

    .service-card,
    .contact-form {
        padding: 2rem;
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
        font-size: 4rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Category card selected state */
.category-card.selected {
    background: var(--primary-color);
    color: white;
    transform: scale(0.95);
    box-shadow: var(--shadow-xl);
}

.category-card.selected .category-icon {
    background: var(--bg-secondary);
    transform: scale(1.05);
    opacity: 0.8;
}

.category-card.selected h3,
.category-card.selected p {
    color: white;
}

/* Enhanced responsive styles for categories */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .category-card {
        padding: 2rem;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .category-card h3 {
        font-size: 1.1rem;
    }
    
    .category-card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Customer Information Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.4s ease-out;
    direction: rtl;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.close-modal {
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--danger-color);
    background: rgba(244, 67, 54, 0.1);
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: var(--transition-fast);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-cancel {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: 'Cairo', sans-serif;
}

.btn-cancel:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.btn-confirm {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: 'Cairo', sans-serif;
    box-shadow: var(--shadow-md);
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-confirm:active {
    transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .btn-confirm {
        width: 100%;
        padding: 1rem;
    }
}

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.api-error-state {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.2);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #d32f2f;
    margin-bottom: 2rem;
}

.api-error-state i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f44336;
}

.api-error-message {
    margin-bottom: 2rem;
}

.api-error-state p {
    margin: 0.5rem 0;
}

.api-error-state small {
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Products by Sections Styles */
.products-by-sections {
    max-width: 1200px;
    margin: 0 auto;
}

.section-products {
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.section-products:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.section-products .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-products .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
}

.section-products .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-products .section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.section-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.explore-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.explore-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.explore-more-btn:hover i {
    transform: translateX(-3px);
}

.explore-more-btn i {
    transition: var(--transition-normal);
    font-size: 1rem;
}

.explore-more-btn:active {
    transform: translateY(0);
}

/* Responsive Design for Section Products */
@media (max-width: 768px) {
    .section-products {
        margin-bottom: 2rem;
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .section-products .section-title {
        font-size: 1.5rem;
    }
    
    .section-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .section-products .product-info p {
        display: none; /* إخفاء الوصف في الهاتف */
    }
    
    .section-products .product-description {
        display: none; /* إخفاء الوصف في الهاتف */
    }
    
    .explore-more-btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-products .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .section-products .product-info p {
        display: none; /* إخفاء الوصف في الهاتف */
    }
    
    .section-products .product-description {
        display: none; /* إخفاء الوصف في الهاتف */
    }
    
    .explore-more-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Sections Loading Animation */
.sections-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.loading-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-dots {
    display: flex;
    gap: 0.5rem;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: bounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.sections-loading h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.sections-loading p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

/* Empty and Error Section Styles */
.empty-section, .error-section {
    opacity: 0.8;
    border: 2px dashed var(--border-color);
}

.empty-section-content, .error-section-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-section-content i, .error-section-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-section-content p, .error-section-content p {
    font-size: 1.1rem;
    margin: 0;
}

.error-section-content {
    color: var(--danger-color);
}

.error-section-content i {
    color: var(--warning-color);
}

.retry-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.retry-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.explore-more-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--text-muted);
}

.explore-more-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* No Sections and Error Messages */
.no-sections-message, .sections-error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 3rem 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.no-sections-message i, .sections-error-message i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.sections-error-message i {
    color: var(--warning-color);
}

.no-sections-message h3, .sections-error-message h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
}

.no-sections-message p, .sections-error-message p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0 0 2rem 0;
    max-width: 400px;
}
