/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors matching the design */
    --primary-gray: #f5f5f5;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --medium-gray: #666666;
    --border-gray: #e0e0e0;
    --white: #ffffff;
    --black: #000000;
    --accent-color: #ff6b6b;
    --text-primary: #2c2c2c;
    --text-secondary: #666666;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-arabic: 'Tajawal', Arial, sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --element-spacing: 20px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.ar {
    font-family: var(--font-arabic);
}

.main-content {
    flex: 1;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: #e91e63;
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.announcement-slider {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.announcement-track {
    display: flex;
    width: 400%;
    animation: slideAnnouncement 10s infinite;
}

.announcement-track:hover {
    animation-play-state: paused;
}

.announcement-slide {
    width: 25%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 2.5s ease-in-out;
}

.announcement-slide p {
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.announcement-slide:hover p {
    transform: scale(1.05);
    color: #fff3e0;
}

@keyframes slideAnnouncement {
    0% { 
        transform: translateX(0); 
    }
    22% { 
        transform: translateX(0); 
    }
    25% { 
        transform: translateX(-25%); 
    }
    47% { 
        transform: translateX(-25%); 
    }
    50% { 
        transform: translateX(-50%); 
    }
    72% { 
        transform: translateX(-50%); 
    }
    75% { 
        transform: translateX(-75%); 
    }
    97% { 
        transform: translateX(-75%); 
    }
    100% { 
        transform: translateX(0); 
    }
}

.close-btn {
    position: absolute;
    right: 15px;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: white;
    background-color: #e91e63;
}

.close-btn:hover {
    opacity: 1;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo a {
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.language-switcher a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.language-switcher a.active {
    color: var(--accent-color);
    font-weight: 600;
}

.search-btn,
.user-btn,
.cart-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
    transition: color 0.3s ease;
    position: relative;
}

.search-btn:hover,
.user-btn:hover,
.cart-btn:hover {
    color: var(--accent-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 5px;
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.mobile-nav-menu a:hover {
    background-color: var(--background-secondary);
    color: var(--primary-color);
}

/* Mobile Menu Overlay */
.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Prevent scrolling when menu is open */
.menu-open {
    overflow: hidden;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-gray);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.mobile-nav-menu {
    list-style: none;
    padding: 20px;
}

.mobile-nav-menu li {
    margin-bottom: 15px;
}

.mobile-nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 500;
}

/* Hero Section */
.hero {
    background-color: var(--primary-gray);
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    position: relative;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Geometric Shapes - Matching the design */
.geometric-shape {
    position: absolute;
    border: 2px solid var(--medium-gray);
    opacity: 0.3;
}

.shape-1 {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    top: 20%;
    left: 10%;
}

.shape-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    left: 15%;
    transform: rotate(45deg);
}

.shape-3 {
    width: 200px;
    height: 120px;
    border-radius: 50%;
    top: 10%;
    right: 20%;
}

.shape-4 {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    top: 70%;
    right: 10%;
}

.shape-5 {
    width: 120px;
    height: 60px;
    top: 30%;
    left: 60%;
    transform: rotate(30deg);
}

.shape-6 {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    top: 50%;
    right: 40%;
}

.shape-7 {
    width: 160px;
    height: 80px;
    bottom: 20%;
    left: 30%;
    transform: rotate(-15deg);
}

.shape-8 {
    width: 70px;
    height: 140px;
    bottom: 10%;
    right: 30%;
    transform: rotate(60deg);
}

.hero-text {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-btn {
    display: inline-block;
    background-color: var(--black);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Product Categories */
.product-categories {
    padding: var(--section-padding);
    background-color: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 270px 270px;
    gap: 20px;
    max-width: 1140px;
    margin: 0 auto;
}

.category-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-item.large {
    grid-row: span 2;
}

.category-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-item.medium {
    height: 300px;
}

.category-item.large .category-image {
    height: 620px;
}

.category-image {
    width: 100%;
    height: 100%;
    background-color: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: var(--primary-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: var(--medium-gray);
}

.category-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--text-primary);
}

.category-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Banner Section */
.banner-section {
    padding: 40px 0;
    background-color: var(--white);
}

.banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.banner-item {
    background-color: var(--medium-gray);
    color: var(--white);
    padding: 60px 40px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.banner-item:hover {
    transform: translateY(-3px);
}

.banner-item.discount {
    background-color: var(--dark-gray);
}

.banner-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 16px;
    opacity: 0.9;
}

/* Best Seller Section */
.best-seller {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Support both old and new product card classes */
.product-item,
.product-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-item:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image .placeholder-image {
    background-color: var(--primary-gray);
    font-size: 40px;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .product-overlay {
    opacity: 1;
}

.add-to-cart {
    background-color: var(--white);
    color: var(--text-primary);
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.old-price {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

/* ================================
   MODERN PRODUCT CARD COMPONENT
   ================================ */

.product-card {
    background-color: var(--white);
    
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 16px;
    border: 1px solid #ffd27a;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Product Image Container */
.product-card__image-container {
    position: relative;
    width: 100%;
    height: 280px;
    background-color: var(--light-gray);
    overflow: hidden;
}

.product-card__image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 48px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* Badges Container */
.product-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Base Badge Styles */
.product-card__badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: badgeSlideIn 0.3s ease-out;
}

@keyframes badgeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sale Badge */
.product-card__badge--sale {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

/* Out of Stock Badge */
.product-card__badge--out-of-stock {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.4);
}

/* Best Seller Badge */
.product-card__badge--best-seller {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #000;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}

/* New Product Badge */
.product-card__badge--new {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

/* Custom Badge */
.product-card__badge--custom {
    background: linear-gradient(135deg, #6f42c1 0%, #59359a 100%);
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.4);
}

/* Out of Stock Product Styles */
.product-card--out-of-stock {
    opacity: 0.8;
}

.product-card--out-of-stock .product-card__image {
    filter: grayscale(50%);
    position: relative;
}

.product-card__out-of-stock-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    color: var(--white);
    padding: 20px 0 10px;
    text-align: center;
    z-index: 2;
}

.product-card__out-of-stock-text {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Disabled Button Styles */
.product-card__action-btn--disabled {
    background-color: #6c757d !important;
    color: var(--white) !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.product-card__action-btn--disabled:hover {
    background-color: #6c757d !important;
    transform: none !important;
}

.product-card__add-btn--disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.product-card__add-btn--disabled:hover {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Overlay and Actions */
.product-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.product-card:hover .product-card__overlay {
    opacity: 1;
    visibility: visible;
}

.product-card__actions {
    display: flex;
    gap: 12px;
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.product-card:hover .product-card__actions {
    transform: translateY(0);
}

.product-card__action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background-color: var(--white);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card__action-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.product-card__action-btn i {
    font-size: 16px;
}

/* Product Info */
.product-card__info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.product-card__title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.product-card__title-link:hover {
    color: var(--accent-color);
}

/* Rating */
.product-card__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.product-card__stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
    font-size: 14px;
}

.product-card__reviews-count {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Price */
.product-card__price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.product-card__current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.product-card__old-price {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: line-through;
    font-weight: 500;
}

/* Quick Add Button */
.product-card__quick-add {
    padding: 16px 20px 20px;
}

.product-card__add-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--text-primary) 0%, #555 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.product-card__add-btn:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, #e55a4f 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.product-card__add-btn i {
    font-size: 12px;
}

/* Responsive Design for Product Cards */
@media (max-width: 768px) {
    .product-card__image-container {
        height: 220px;
    }
    
    .product-card__info {
        padding: 16px;
    }
    
    .product-card__quick-add {
        padding: 12px 16px 16px;
    }
    
    .product-card__action-btn {
        width: 40px;
        height: 40px;
    }
    
    .product-card__action-btn i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-card__image-container {
        height: 200px;
    }
    
    .product-card__actions {
        gap: 8px;
    }
    
    .product-card__action-btn {
        width: 36px;
        height: 36px;
    }
}

/* Blog Section */
.blog-section {
    padding: var(--section-padding);
    background-color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
}

.blog-image .placeholder-image {
    font-size: 30px;
}

.blog-content {
    padding: 25px;
}

.blog-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.blog-content p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Instagram Section */
.instagram-section {
    padding: var(--section-padding);
    background-color: var(--light-gray);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    max-width: 900px;
    margin: 0 auto 30px;
}

.instagram-item {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.instagram-item:hover {
    transform: scale(1.05);
}

.instagram-item .placeholder-image {
    font-size: 24px;
    background-color: var(--primary-gray);
}

.instagram-next {
    text-align: center;
}

.next-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.next-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

/* Footer */
.footer {
    background-color: var(--white);
    color: var(--text-primary);
    margin-top: auto;
    border-top: 1px solid var(--border-gray);
}

/* Services Banner */
.services-banner {
    background-color: var(--light-gray);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* RTL Direction for Arabic */
.ar .service-item {
    text-align: right;
    direction: rtl;
}

/* LTR Direction for English */
.en .service-item {
    text-align: left;
    direction: ltr;
}

.service-item:hover {
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.service-icon {
    font-size: 28px;
    color: var(--accent-color);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    color: var(--text-primary);
    transform: scale(1.1);
}

.service-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.service-text p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Footer Main */
.footer-main {
    padding: 60px 0 40px 0;
}

/* Desktop Footer Layout (Default) */
.footer-desktop {
    display: block;
}

.footer-mobile {
    display: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.footer-column p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent-color);
}

.contact-info p {
    margin: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Social Media Links */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--light-gray);
    color: var(--text-secondary);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-links a:hover {
    background-color: var(--text-primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Specific social media colors on hover */
.social-links a.whatsapp-link:hover {
    background-color: #25D366;
    animation: whatsappPulse 1.5s infinite;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.social-links a[href*="facebook"]:hover {
    background-color: #1877F2;
}

.social-links a[href*="instagram"]:hover {
    background: linear-gradient(45deg, #F56040, #E1306C, #C13584, #833AB4);
}

.social-links a[href*="twitter"]:hover {
    background-color: #1DA1F2;
}

.social-links a[href*="youtube"]:hover {
    background-color: #FF0000;
}

.social-links a[href*="tiktok"]:hover {
    background-color: #000000;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    font-size: 14px;
}

.newsletter-form button {
    padding: 12px 20px;
    background-color: var(--text-primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--accent-color);
}

/* Mobile Footer Accordion (Hidden by default) */
.footer-accordion-item {
    border-bottom: 1px solid var(--border-gray);
}

.footer-accordion-btn {
    width: 100%;
    padding: 20px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.footer-accordion-btn:hover {
    background-color: var(--light-gray);
}

.footer-accordion-btn i {
    font-size: 14px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.footer-accordion-btn.active i {
    transform: rotate(45deg);
}

.footer-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--white);
}

.footer-accordion-content.active {
    max-height: 500px;
}

.footer-accordion-content > div,
.footer-accordion-content > ul,
.footer-accordion-content > p,
.footer-accordion-content > form {
    padding: 0 20px 20px 20px;
}

.footer-accordion-content ul {
    list-style: none;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    margin: 0;
}

.footer-accordion-content ul li {
    margin-bottom: 12px;
}

.footer-accordion-content ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-accordion-content ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    background-color: var(--white);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-gray);
}

.footer-bottom-content p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.footer-bottom-content strong {
    color: var(--text-primary);
}

/* Desktop styles - Ensure bottom nav is hidden and back to top is visible */
@media (min-width: 769px) {
    .bottom-nav {
        display: none !important;
    }
    
    .main-content {
        padding-bottom: 0;
    }
    
    .back-to-top {
        bottom: 30px !important;
        right: 30px !important;
        width: 50px !important;
        height: 50px !important;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

/* Mini Cart Modal */
.mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mini-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mini-cart-modal {
    position: absolute;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mini-cart-overlay.active .mini-cart-modal {
    right: 0;
}

.mini-cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
}

.mini-cart-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.mini-cart-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.mini-cart-close:hover {
    color: var(--text-primary);
}

.mini-cart-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    height: 100%;
}

.empty-cart-icon {
    font-size: 48px;
    color: var(--border-gray);
    margin-bottom: 20px;
}

.empty-cart h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.return-to-shop-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.return-to-shop-btn:hover {
    background-color: #ff5252;
}

.cart-items-list {
    padding: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-gray);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    background-color: var(--primary-gray);
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.cart-item-price {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: var(--accent-color);
}

.mini-cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-gray);
    background-color: var(--white);
}

.cart-total {
    text-align: center;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-primary);
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.view-cart-btn,
.checkout-btn {
    width: 100%;
    padding: 12px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-cart-btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-gray);
}

.view-cart-btn:hover {
    background-color: var(--primary-gray);
}

.checkout-btn {
    background-color: var(--accent-color);
    color: var(--white);
}

.checkout-btn:hover {
    background-color: #ff5252;
}

/* Search Modal */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    position: absolute;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: var(--white);
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.search-overlay.active .search-modal {
    right: 0;
}

.search-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white);
}

.search-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.search-close {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.search-close:hover {
    color: var(--text-primary);
}

.search-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.search-form {
    margin-bottom: 30px;
}

.search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 15px;
    border: 2px solid var(--border-gray);
    border-radius: 4px;
    font-size: 16px;
    background-color: var(--white);
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-submit-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.search-submit-btn:hover {
    color: var(--accent-color);
}

.search-suggestions h4,
.search-results h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-tag {
    display: inline-block;
    background-color: var(--primary-gray);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.result-item:hover {
    background-color: var(--primary-gray);
}

.result-image {
    width: 50px;
    height: 50px;
    background-color: var(--border-gray);
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.result-details {
    flex: 1;
}

.result-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.result-price {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 48px;
    color: var(--border-gray);
    margin-bottom: 20px;
}

.no-results h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.no-results p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {
    .mini-cart-modal,
    .search-modal {
        width: 100%;
        right: -100%;
    }
    
    .search-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Bottom Navigation Bar (Mobile Only) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: var(--white);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: block; /* Always visible on mobile */
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--border-gray);
}

.bottom-nav-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    max-width: 100%;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 12px;
    transition: all 0.3s ease;
    min-width: 0;
    flex: 1;
    border-radius: 8px;
    position: relative;
}

.bottom-nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.bottom-nav-item span:not(.nav-badge) {
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
}

.bottom-nav-item.active {
    color: var(--text-primary);
}

.bottom-nav-item:hover {
    color: var(--accent-color);
}

/* Navigation badges */
.nav-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.nav-badge:empty {
    display: none;
}

.cart-badge {
    background-color: var(--text-primary);
}

/* Back to Top Button */
.back-to-top {
    position: fixed !important;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #f5f5f5 !important;
    color: #666666 !important;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9999;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid 1px var(--dark-gray);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 28px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 9998;
    transition: all 0.3s ease;
    animation: whatsappFloat 2s ease-in-out infinite alternate;
}

@keyframes whatsappFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-10px); }
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background-color: #56cfe1 !important;
    transform: translateY(-3px) scale(1.05);
    transition: 0.3s;
}

.back-to-top:active {
    transform: translateY(-1px) scale(0.95);
}

.back-to-top i {
    font-size: 16px;
    line-height: 1;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 300px;
    font-size: 14px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-content i {
    font-size: 16px;
}

.notification-success {
    background: var(--success-color);
}

.notification-error {
    background: var(--error-color);
}

.notification-warning {
    background: var(--warning-color);
}

/* CSS Variables for notification colors */
:root {
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-secondary: #f8f9fa;
    --border-color: #dee2e6;
}

/* ================================
   PRODUCT DETAILS PAGE STYLES
   ================================ */

.product-details-container {
    padding: 40px 0;
    background: var(--white);
}

.product-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.main-image {
    position: relative;
    background: #E8F4F8;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}



.thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.thumbnail.active,
.thumbnail:hover {
    border-color: var(--primary-color);
}

/* Product Info */
.product-info {
    padding: 20px 0;
}

.product-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.product-price .currency {
    font-size: 20px;
    margin-right: 5px;
}

.product-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Product Options */
.product-options {
    margin-bottom: 30px;
}

.size-selector,
.color-selector {
    margin-bottom: 25px;
}

.option-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.selected-size,
.selected-color {
    font-weight: 700;
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.size-btn:hover,
.size-btn.active {
    border-color: var(--text-primary);
    background: var(--text-primary);
    color: var(--white);
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-btn:hover,
.color-btn.active {
    border-color: var(--text-primary);
    transform: scale(1.1);
}

.color-btn[style*="FFFFFF"] {
    border: 3px solid var(--border-color);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 45px;
    height: 50px;
    border: none;
    background: var(--background-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.3s ease;
}

.qty-btn:hover {
    background: var(--border-color);
}

#quantity {
    width: 60px;
    height: 50px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    background: var(--white);
}

.add-to-cart-btn {
    background: #40E0D0;
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.add-to-cart-btn:hover {
    background: #36C5B4;
}

.wishlist-btn {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.wishlist-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* WhatsApp Button */
.whatsapp-contact {
    margin-bottom: 30px;
}

.whatsapp-btn {
    background: #25D366;
    color: var(--white);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    color: var(--white);
    text-decoration: none;
}

.whatsapp-btn i {
    font-size: 18px;
}

/* Product Meta */
.product-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.meta-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 14px;
}

.meta-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 120px;
}

.meta-value {
    color: var(--text-secondary);
}

.availability.in_stock {
    color: var(--success-color);
    font-weight: 600;
}

.availability.out_stock {
    color: var(--error-color);
    font-weight: 600;
}

/* Product Tabs */
.product-tabs {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.tab-headers {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.tab-header {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-header.active,
.tab-header:hover {
    color: var(--text-primary);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    padding: 20px 0;
    line-height: 1.8;
    color: var(--text-secondary);
}

.tab-content.active {
    display: block;
}

.additional-info-table {
    width: 100%;
    border-collapse: collapse;
}

.additional-info-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.additional-info-table td:first-child {
    font-weight: 600;
    color: var(--text-primary);
    width: 150px;
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* ================================
   CHECKOUT PAGE STYLES
   ================================ */

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Checkout specific container */
.checkout-container {
    padding: 40px 0;
    background: var(--background-secondary);
    min-height: 100vh;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.checkout-main {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.checkout-sidebar {
    background: var(--background-secondary);
}

/* Form Sections */
.checkout-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.checkout-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.sign-in-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
}

.sign-in-link:hover {
    text-decoration: underline;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px 0;
}

/* Form Elements */
.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-row {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
}

.form-group.half {
    grid-column: span 1;
}

.form-group.third {
    grid-column: span 1;
}

.form-row.half {
    grid-template-columns: 1fr 1fr;
}

.form-row:has(.third) {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-input,
.form-select {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: var(--white);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-label {
    position: absolute;
    top: -8px;
    left: 12px;
    background: var(--white);
    padding: 0 5px;
    font-size: 12px;
    color: var(--text-secondary);
}

.info-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    cursor: help;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Radio Button Styles */
.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    width: 100%;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-mark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-mark {
    border-color: var(--primary-color);
}

.radio-label input[type="radio"]:checked + .radio-mark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Shipping Options */
.shipping-option {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: border-color 0.3s ease;
}

.shipping-option:hover {
    border-color: var(--primary-color);
}

.shipping-option .radio-label {
    justify-content: space-between;
}

.shipping-name {
    flex: 1;
    margin-left: 12px;
}

.shipping-price {
    font-weight: 600;
    color: var(--text-primary);
}

/* Payment Options */
.payment-security {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.payment-option {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: border-color 0.3s ease;
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option .radio-label {
    justify-content: space-between;
    align-items: center;
}

.payment-name {
    flex: 1;
    margin-left: 12px;
}

.payment-icons {
    display: flex;
    gap: 8px;
}

.payment-icon {
    height: 24px;
    width: auto;
}

/* Billing Options */
.billing-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.billing-options .radio-label {
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.billing-options .radio-label:hover {
    border-color: var(--primary-color);
}

/* Complete Order Button */
.complete-order-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 20px;
}

.complete-order-btn:hover {
    background: #0056b3;
}

/* Order Summary */
.order-summary {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
}

.summary-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-color);
}

.summary-toggle {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: none;
    color: var(--text-primary);
}

.summary-toggle i {
    transition: transform 0.3s ease;
}

.summary-content {
    padding: 20px;
}

/* Cart Items */
.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.item-image {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.item-quantity {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--text-primary);
    color: var(--white);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.item-details {
    flex: 1;
}

.item-name {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: var(--text-primary);
}

.item-variant {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 3px 0;
}

.item-sku {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 0;
}

.item-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Discount Section */
.discount-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.discount-input {
    display: flex;
    gap: 8px;
}

.discount-code-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
}

.apply-discount-btn {
    background: var(--text-primary);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.apply-discount-btn:hover {
    background: #333;
}

/* Order Totals */
.order-totals {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.total-row.total-final {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}