/* ==========================================================================
   CSS RESET & BASE VARIABLES
   ========================================================================== */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D4AF37;
    --accent-color: #A0522D;
    --light-color: #F9F5F0;
    --dark-color: #2C1810;
    --white: #FFFFFF;
    --gray: #8D8D8D;
    --light-gray: #F5F5F5;
    --success-color: #28a745;
    --error-color: #dc3545;
    
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    direction: rtl;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

h1 { font-size: 3rem; margin-bottom: 1rem; }
h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.8rem; margin-bottom: 1rem; }
p { margin-bottom: 1rem; color: var(--gray); }

/* ==========================================================================
   LAYOUT & UTILITIES
   ========================================================================== */
.section-title {
    text-align: center;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 100px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.center-title {
    text-align: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 50px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    background: transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white);
    box-shadow: var(--shadow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
}

.logo i {
    color: var(--secondary-color);
    font-size: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--dark-color);
    cursor: pointer;
    padding: 8px;
    position: relative;
    transition: var(--transition);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-icon:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.nav-icon.admin-access-btn {
    position: relative;
    background: linear-gradient(135deg, #8B4513, #D4AF37);
    color: white !important;
}

.nav-icon.admin-access-btn:hover {
    background: linear-gradient(135deg, #7a3809, #c19b2e);
    transform: scale(1.1);
}

.nav-icon.admin-access-btn::after {
    content: 'لوحة التحكم';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
}

.nav-icon.admin-access-btn:hover::after {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
}

.nav-icon.refresh-btn {
    color: var(--primary-color);
}

.nav-icon.refresh-btn:hover {
    color: var(--secondary-color);
    transform: rotate(180deg);
    transition: transform 0.5s ease;
}

.cart-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background: var(--secondary-color);
    color: var(--white);
    font-size: 12px;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    display: none;
}

.cart-count.added {
    animation: cartPulse 0.5s ease;
}

.menu-toggle {
    display: none;
}

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-color) 0%, #f0e6d6 100%);
    margin-top: 80px;
}

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

.slide.active {
    opacity: 1;
}

.slide-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    height: 100%;
    margin-top: 80px;
}

.slide-text {
    text-align: right;
}

.slide-title {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.slide-desc {
    font-size: 18px;
    color: var(--gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.slide-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.slider-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    right: 30px;
}

.next-btn {
    left: 30px;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ==========================================================================
   SECTIONS - COMMON PATTERNS
   ========================================================================== */
.two-column-section {
    padding: 80px 0;
    background: var(--white);
}

.two-column-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.column-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
}

/* ==========================================================================
   PRODUCT HIGHLIGHT
   ========================================================================== */
.product-highlight {
    padding: 80px 0;
    background: var(--light-color);
}

.highlight-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    max-width: 1000px;
    margin: 0 auto;
}

.highlight-image img {
    width: 100%;
    border-radius: 15px;
}

.product-name {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-desc {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* ==========================================================================
   PRODUCTS SECTION & CARDS
   ========================================================================== */
.products-section {
    padding: 80px 0;
    background: var(--white);
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 50px;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    border: none;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

.product-content {
    padding: 20px;
}

.product-title {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.product-description {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.5;
    height: 63px;
    overflow: hidden;
}

.product-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.old-price {
    color: var(--gray);
    text-decoration: line-through;
    font-size: 0.9rem;
    margin-left: 10px;
}

/* ==========================================================================
   CATEGORIES SECTION
   ========================================================================== */
.categories-section {
    padding: 80px 0;
    background: var(--light-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.category-card:hover {
    transform: scale(1.05);
}

.men-category {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                      url('img/mens.png');
}

.women-category {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                      url('img/womens.png');
}

.category-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    text-align: center;
}

.category-overlay h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.category-overlay p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

/* ==========================================================================
   FEATURED SECTION
   ========================================================================== */
.featured-section {
    padding: 80px 0;
    background: var(--white);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.featured-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

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

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.featured-content {
    padding: 20px;
}

.featured-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.featured-content p {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.5;
    height: 42px;
    overflow: hidden;
}

.featured-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: 80px 0;
    background: var(--light-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    animation: fadeInRight 1s ease;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.feature i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.feature h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.feature p {
    font-size: 14px;
    margin: 0;
}

.about-image {
    animation: fadeInLeft 1s ease;
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
}

/* ==========================================================================
   REVIEW SECTION
   ========================================================================== */
.review-section {
    padding: 80px 0;
    background: var(--white);
}

.review-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.review-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
}

.review-slider {
    position: relative;
    min-height: 200px;
    margin-bottom: 30px;
}

.review-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.review-slide.active {
    opacity: 1;
    position: relative;
}

.review-text {
    background: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.review-text p {
    font-size: 18px;
    line-height: 1.8;
    font-style: italic;
    color: var(--dark-color);
}

.review-author h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.review-author p {
    color: var(--gray);
    font-size: 14px;
}

.review-controls {
    display: flex;
    gap: 15px;
}

.review-nav-btn {
    background: var(--white);
    border: 2px solid var(--light-gray);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.review-nav-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ==========================================================================
   SPECIAL PERFUME SECTION
   ========================================================================== */
.special-perfume {
    padding: 80px 0;
    background: var(--light-color);
}

.special-perfume-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.special-perfume-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
}

.special-title {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.special-subtitle {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.special-desc {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.special-features {
    list-style: none;
    margin-bottom: 30px;
}

.special-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--dark-color);
}

.special-features i {
    color: var(--secondary-color);
    font-size: 18px;
}

.special-buttons {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   EMAIL OFFER
   ========================================================================== */
.email-offer {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #6b3a1c 100%);
    color: var(--white);
    text-align: center;
}

.email-title {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 15px;
}

.email-desc {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.email-form {
    max-width: 500px;
    margin: 0 auto;
}

.email-form .form-group {
    display: flex;
    gap: 10px;
}

.email-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    outline: none;
}

.email-form input:focus {
    box-shadow: 0 0 0 2px var(--secondary-color);
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
}

/* ==========================================================================
   CART MODAL
   ========================================================================== */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: flex-end;
    z-index: 2000;
}

.cart-modal.active {
    display: flex;
}

.cart-container {
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: slideLeft 0.3s ease;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--primary-color);
}

.cart-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    background: var(--light-gray);
    margin-bottom: 10px;
}

.cart-item:last-child {
    margin-bottom: 0;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.quantity-btn {
    background: var(--white);
    border: 1px solid var(--gray);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.quantity {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
}

.remove-item:hover {
    color: #c82333;
}

.cart-summary {
    padding: 20px;
    border-top: 1px solid var(--light-gray);
    background: var(--white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: bold;
}

.total-price {
    color: var(--primary-color);
}

.checkout-btn {
    width: 100%;
}

.empty-cart {
    text-align: center;
    padding: 50px 20px;
    color: var(--gray);
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--light-gray);
}

.empty-cart p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ==========================================================================
   CHECKOUT MODAL
   ========================================================================== */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

.checkout-modal.active {
    display: flex;
}

.checkout-container {
    width: 90%;
    max-width: 500px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    flex-shrink: 0;
}

.close-checkout {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
}

.close-checkout:hover {
    color: var(--primary-color);
}

.checkout-form {
    padding: 20px;
    height: 100%;
    flex: 1;
    overflow-y: auto;
    max-height: 70vh;
    padding-right: 10px;
}

.checkout-form::-webkit-scrollbar {
    width: 5px;
}

.checkout-form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.checkout-form::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.checkout-form::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group label i {
    color: var(--primary-color);
    margin-left: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light-gray);
    border-radius: var(--border-radius-sm);
    font-family: 'Tajawal', sans-serif;
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
    min-height: 80px !important;
    max-height: 100% !important;
    resize: vertical !important;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.form-actions .btn {
    flex: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-title {
    font-size: 20px;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

.link-column ul {
    list-style: none;
}

.link-column li {
    margin-bottom: 10px;
}

.link-column a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    transition: var(--transition);
    text-decoration: none;
}

.link-column a:hover {
    color: var(--secondary-color);
    padding-right: 5px;
}

.link-column ul li a[href*="admin.html"] {
    color: #D4AF37 !important;
    font-weight: 600;
}

.link-column ul li a[href*="admin.html"]:hover {
    color: #8B4513 !important;
}

.payment-methods,
.social-media {
    text-align: center;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    font-size: 30px;
    color: rgba(255,255,255,0.8);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.copyright {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* ==========================================================================
   NOTIFICATIONS & MODALS
   ========================================================================== */
.notification {
    position: fixed !important;
    top: 100px !important;
    right: 20px !important;
    background: #28a745 !important;
    color: white !important;
    padding: 15px 25px !important;
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3) !important;
    z-index: 99999 !important;
    animation: slideInRight 0.3s ease !important;
    font-family: 'Tajawal', sans-serif !important;
    font-size: 14px !important;
    max-width: 300px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: none !important;
}

.notification.error {
    background: #dc3545 !important;
}

.notification.success {
    background: #28a745 !important;
}

.sync-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    z-index: 10000;
    animation: slideInUp 0.3s ease;
}

.sync-notification.error {
    background: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.sync-notification.info {
    background: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   CONFIRM OVERLAY
   ========================================================================== */
.confirm-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.confirm-overlay.active {
    display: flex;
}

.confirm-box {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 18px;
    width: 320px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    animation: pop .25s ease;
}

.confirm-message {
    font-size: 17px;
    margin-bottom: 20px;
    color: #333;
}

.confirm-actions {
    display: flex;
    gap: 10px;
}

.btn-yes {
    flex: 1;
    padding: 10px;
    background: #27ae60;
    border: none;
    color: white;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
}

.btn-yes:hover { background: #1e874b; }

.btn-no {
    flex: 1;
    padding: 10px;
    background: #e74c3c;
    border: none;
    color: white;
    font-size: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
}

.btn-no:hover { background: #c0392b; }

/* ==========================================================================
   CATEGORY SECTIONS ON HOME PAGE
   ========================================================================== */
.category-section {
    margin-bottom: 60px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-color);
}

.category-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-title i {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.view-all {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--secondary-color);
    gap: 12px;
}

.view-all i {
    font-size: 12px;
}

.products-grid.category-view {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.products-grid.category-view .product-card:nth-child(n+5) {
    display: none;
}

/* ==========================================================================
   LOAD MORE BUTTON
   ========================================================================== */
.load-more-btn {
    display: block;
    margin: 30px auto;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    color: var(--primary-color);
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    width: auto;
    min-width: 250px;
}

.load-more-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.load-more-btn i {
    margin-left: 8px;
    font-size: 14px;
}

.all-shown-message {
    text-align: center;
    padding: 15px;
    color: var(--success-color);
    font-size: 14px;
    margin: 20px auto;
}

.all-shown-message i {
    margin-left: 8px;
}

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

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(100%); }
}

@keyframes slideLeft {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

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

@keyframes cartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* ------------------- 1024px and below ------------------- */
@media (max-width: 1024px) {
    .slide-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 100px;
    }
    
    .slide-text {
        text-align: center;
    }
    
    .two-column-inner,
    .review-inner,
    .special-perfume-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .highlight-box {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ------------------- 768px and below ------------------- */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Navbar */
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        width: 200px;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow-heavy);
        border-radius: var(--border-radius-sm);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    p { font-size: 14px; }
    
    .section-title { font-size: 28px; }
    .center-title { font-size: 28px; }
    
    /* Hero Slider */
    .hero-slider {
        height: 70vh;
        min-height: 500px;
        min-height: auto;
        height: auto;
        overflow: visible;
    }
    
    .slide {
        position: relative !important;
        opacity: 1 !important;
        display: none;
        height: auto;
        padding: 20px 0;
    }
    
    .slide.active {
        display: block;
        animation: fadeIn 0.5s ease;
    }
    
    .slide-content {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px 15px;
        gap: 20px;
        height: auto;
        padding-top: 40px;
    }
    
    .slide-image {
        order: -1;
        width: 100%;
        max-width: 280px;
        margin: 0 auto 20px;
        display: block;
    }
    
    .slide-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        max-height: 240px;
    }
    
    .slide-title { font-size: 28px; margin-bottom: 15px; }
    .slide-desc { font-size: 16px; margin-bottom: 20px; }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .prev-btn { right: 15px; }
    .next-btn { left: 15px; }
    
    .slider-dots {
        position: relative;
        bottom: 0;
        left: 0;
        transform: none;
        margin-top: 20px;
        justify-content: center;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-primary,
    .btn-outline {
        min-width: 140px;
    }
    
    .load-more-btn {
        width: 90%;
        margin: 20px auto;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    /* Forms */
    .email-form .form-group {
        flex-direction: column;
    }
    
    .special-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    /* Checkout Modal */
    .checkout-container {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px !important;
        max-height: 85vh !important;
    }
    
    .checkout-header {
        padding: 15px !important;
    }
    
    .checkout-header h3 {
        font-size: 1.2rem !important;
    }
    
    .checkout-form {
        padding: 15px !important;
    }
    
    .form-group label {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
    
    .form-actions {
        flex-direction: column !important;
        gap: 10px !important;
        margin-top: 20px !important;
    }
    
    .form-actions .btn {
        width: 100% !important;
        padding: 10px !important;
        font-size: 14px !important;
    }
    
    /* Category Header */
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .view-all {
        align-self: flex-end;
    }
    
    /* Products Section */
    .products-section {
        padding: 40px 15px !important;
        width: 100%;
    }
    
    .products-section .products-grid,
    .products-section .products-grid.category-view {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px;
        width: 100%;
        padding: 0;
    }
    
    .products-section .product-card {
        width: 100% !important;
        margin: 0 !important;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        overflow: hidden;
    }
    
    .products-section .product-image {
        width: 100%;
        height: 220px;
    }
    
    .products-section .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .products-section .product-content {
        padding: 15px;
    }
    
    .products-section .product-title {
        font-size: 16px;
        margin-bottom: 8px;
        height: auto;
    }
    
    .products-section .product-description {
        font-size: 13px;
        margin-bottom: 12px;
        height: auto;
    }
    
    .products-section .product-price {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .products-section .price {
        font-size: 18px;
    }
    
    /* Other Sections */
    .two-column-section,
    .product-highlight,
    .products-section,
    .categories-section {
        padding: 40px 0 !important;
    }
    
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-slider,
    .hero,
    .hero-section {
        margin-top: 80px;
        min-height: auto;
        height: auto;
        overflow: visible;
    }
}

/* ------------------- 480px and below ------------------- */
@media (max-width: 480px) {
    .hero-slider {
        min-height: 400px;
        margin-top: 60px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slide-desc {
        font-size: 15px;
    }
    
    .slide-image img {
        height: 200px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .cart-container {
        max-width: 100%;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .products-section .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .products-section .product-image {
        height: 200px;
    }
}

/* ==========================================================================
   FIXES & ENHANCEMENTS
   ========================================================================== */
/* Ensure articles visibility */
.product-card,
.featured-card,
.category-card {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Fix sections flow */
.two-column-section,
.product-highlight,
.products-section,
.categories-section,
.featured-section,
.about-section,
.review-section,
.special-perfume,
.email-offer {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.container {
    position: relative;
    z-index: 2;
}

.products-grid,
.featured-grid,
.categories-grid {
    position: relative;
    z-index: 3;
}

/* Fix body scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    html {
        scroll-behavior: smooth;
    }
    
    .hero-slider,
    .slide,
    .slide-content {
        min-height: auto;
        height: auto;
    }
    
    .product-highlight {
        margin-top: 0;
    }
    
    .highlight-box {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
}
.slide-content {
    margin-top: 80px;
}
