/* ===================================
   Global Styles & CSS Variables
   =================================== */
:root {
    --primary-color: #2ecc71;
    --primary-dark: #27ae60;
    --primary-light: #52d681;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    --font-primary: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    --box-shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 10px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 1.8rem;
}

.logo-image {
    height: 130px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
    transition: var(--transition);
}

.logo a:hover .logo-image {
    transform: scale(1.05);
}

.logo span {
    display: none;
}

.nav-menu {
    flex: 1;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lang-switcher {
    background: transparent;
    border: 1px solid var(--gray-300);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.lang-switcher:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-login {
    display: none; /* Temporairement désactivé */
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-cart {
    position: relative;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-color);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: all;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s infinite alternate;
}

@keyframes kenBurns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.85) 0%, rgba(52, 152, 219, 0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: 700px;
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-prev,
.hero-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.hero-prev:hover,
.hero-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-prev {
    left: 30px;
}

.hero-next {
    right: 30px;
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--white);
    width: 30px;
    border-radius: 6px;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.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-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ===================================
   Categories Section
   =================================== */
.categories {
    background: var(--gray-100);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    font-size: 2rem;
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(10deg);
}

.category-card h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.category-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.category-count {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ===================================
   Products Section
   =================================== */
.products-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 15px;
    background: var(--success);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-quick-view {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-quick-view:hover {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.product-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 15px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.product-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price .unit {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.product-price .old-price {
    font-size: 1rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: var(--gray-100);
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.qty-input {
    width: 45px;
    height: 32px;
    border: none;
    text-align: center;
    font-weight: 600;
}

.btn-add-cart {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ===================================
   Packs Section
   =================================== */
.packs {
    background: var(--gray-100);
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.pack-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.pack-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.pack-card.featured {
    border: 3px solid var(--primary-color);
}

.pack-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 20px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
}

.pack-badge.popular {
    background: var(--accent-color);
}

.pack-image {
    height: 250px;
    overflow: hidden;
}

.pack-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.pack-card:hover .pack-image img {
    transform: scale(1.1);
}

.pack-info {
    padding: 25px;
}

.pack-name {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.pack-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.pack-items {
    margin-bottom: 25px;
}

.pack-items li {
    padding: 8px 0;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pack-items i {
    color: var(--success);
}

.pack-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.pack-price {
    display: flex;
    flex-direction: column;
}

.pack-price .price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pack-price .old-price {
    font-size: 1.1rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

/* ===================================
   Features Section
   =================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    border-radius: 50%;
    font-size: 2.2rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    transform: rotateY(360deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3,
.footer-column h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-column p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light-color);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-links i {
    margin-right: 8px;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================
   WhatsApp Float Button
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }
}

/* ===================================
   Cart Sidebar
   =================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.cart-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.cart-close:hover {
    color: var(--accent-color);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-remove {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.cart-item-remove:hover {
    background: var(--danger);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .navbar {
        padding: 12px 0;
    }
    
    .nav-wrapper {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    
    .logo {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 0;
    }
    
    .logo a {
        justify-content: center;
        display: flex;
    }
    
    .logo-image {
        height: 190px !important;
        max-height: none !important;
    }
    
    .nav-actions {
        order: 2;
        gap: 12px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .nav-menu {
        order: 3;
        position: fixed;
        top: 170px;
        left: -100%;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transition: left 0.3s ease;
        padding: 20px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .lang-switcher {
        padding: 10px 14px;
        font-size: 0.85rem;
        min-width: auto;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .btn-login {
        display: none !important;
    }
    
    .btn-cart {
        padding: 10px 14px;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-sidebar .cart-items {
        max-height: calc(100vh - 250px);
        overflow-y: auto;
    }
    
    .cart-footer {
        position: sticky;
        bottom: 0;
        background: var(--white);
        z-index: 10;
        padding-bottom: 20px;
    }
    
    #checkoutBtn {
        padding: 15px !important;
        font-size: 1.1rem !important;
        font-weight: 700;
        min-height: 50px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .logo-image {
        height: 70px;
    }
    
    .hero {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .nav-wrapper {
        justify-content: center;
        flex-direction: column;
    }
    
    .logo {
        order: 1;
    }
    
    .nav-actions {
        gap: 10px;
        flex-wrap: nowrap;
        width: 100%;
        order: 2;
    }
    
    .logo-image {
        height: 170px !important;
    }
    
    .lang-switcher {
        padding: 9px 13px;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .btn-login {
        display: none !important;
    }
    
    .btn-cart {
        padding: 9px 13px;
        font-size: 0.95rem;
    }
    
    .nav-menu {
        top: 160px;
    }
    
    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .hero-prev {
        left: 15px;
    }
    
    .hero-next {
        right: 15px;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 10px 0;
    }
    
    .nav-wrapper {
        gap: 10px;
        padding: 0 10px;
        justify-content: center;
        flex-direction: column;
    }
    
    .logo {
        order: 1;
        margin-bottom: 0;
    }
    
    .nav-actions {
        order: 2;
        width: 100%;
    }
    
    .logo-image {
        height: 150px !important;
        max-height: none !important;
    }
    
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 50px 0;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .packs-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
    
    .nav-actions {
        gap: 8px;
        flex-wrap: nowrap;
        width: auto;
    }
    
    .lang-switcher {
        font-size: 0.75rem;
        padding: 8px 12px;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .btn-login {
        display: none !important;
    }
    
    .btn-cart {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    .nav-menu {
        top: 140px;
    }
    
    .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.7rem;
        top: -6px;
        right: -6px;
    }
}

/* ===================================
   RTL Support for Arabic
   =================================== */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .nav-list {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-content {
    align-items: flex-end;
}

[dir="rtl"] .hero-prev {
    left: auto;
    right: 30px;
}

[dir="rtl"] .hero-next {
    right: auto;
    left: 30px;
}

[dir="rtl"] .product-badge,
[dir="rtl"] .pack-badge {
    right: auto;
    left: 15px;
}

[dir="rtl"] .product-overlay,
[dir="rtl"] .pack-image {
    direction: ltr;
}

[dir="rtl"] .product-footer,
[dir="rtl"] .pack-footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .product-actions,
[dir="rtl"] .cart-item-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-links i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .cart-sidebar {
    right: auto;
    left: -400px;
}

[dir="rtl"] .cart-sidebar.active {
    left: 0;
    right: auto;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

[dir="rtl"] .logo a {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo-image {
    margin-left: 10px;
    margin-right: 0;
}

[dir="rtl"] .btn-login,
[dir="rtl"] .lang-switcher {
    flex-direction: row-reverse;
}

[dir="rtl"] .pack-items li,
[dir="rtl"] .pricing-features li {
    flex-direction: row-reverse;
}

[dir="rtl"] .pack-items i,
[dir="rtl"] .pricing-features i {
    margin-right: 0;
    margin-left: 12px;
}

[dir="rtl"] .social-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .hero-buttons {
    flex-direction: row-reverse;
}

[dir="rtl"] .cart-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-link:hover,
[dir="rtl"] .nav-link.active {
    padding-left: 0;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}

/* Arabic Font Support */
[dir="rtl"] body,
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
    font-family: 'Poppins', 'Cairo', 'Tajawal', sans-serif;
}

/* Mobile RTL adjustments */
@media (max-width: 968px) {
    [dir="rtl"] .hero-prev {
        right: 15px;
        left: auto;
    }
    
    [dir="rtl"] .hero-next {
        left: 15px;
        right: auto;
    }
    
    [dir="rtl"] .logo a {
        flex-direction: row;
    }
    
    [dir="rtl"] .nav-actions {
        flex-direction: row;
    }
}

@media (max-width: 576px) {
    [dir="rtl"] .whatsapp-float {
        left: 20px;
        right: auto;
    }
    
    [dir="rtl"] .cart-sidebar {
        left: -100%;
        right: auto;
    }
}
