/* Variables */
:root {
    --primary-red: #ff130e;
    --dark-red: #cc0f0b;
    --bg-white: #ffffff;
    --bg-light: #f5f5f5;
    --text-dark: #111111;
    --text-gray: #555555;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
}

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

.text-red {
    color: var(--primary-red);
}

.bg-light {
    background-color: var(--bg-light);
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -0.5px;
}

/* Typography & Links */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--text-dark);
    color: white;
}

.btn-secondary:hover {
    background-color: black;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border-color: white;
    color: white;
}

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

.btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 65px;
    width: auto;
    display: block;
}

.nav-flag-img {
    height: 35px;
    width: 35px;
    object-fit: cover;
    border-radius: 50%;
    margin-left: 10px;
    border: 2px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a:not(.btn) {
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
}

.nav-links a:not(.btn):hover {
    color: var(--primary-red);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* Language Switcher */
.lang-switcher {
    margin-left: 10px;
}

.lang-btn {
    background: var(--bg-light);
    border: 1px solid #ddd;
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

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

/* RTL Support */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .nav-links {
    margin-right: auto;
    margin-left: 0;
}

body.rtl .nav-flag-img {
    margin-left: 0;
    margin-right: 10px;
}

body.rtl .category-title {
    border-left: none;
    border-right: 4px solid var(--primary-red);
    padding-left: 0;
    padding-right: 15px;
}

body.rtl .about-text h2 {
    text-align: right;
}

/* Hero Slider Section */
.hero-slider {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.slider-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Slide Overlay for text readability */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Slider Dots Navigation */
.slider-dots {
    position: absolute;
    bottom: 30px; /* المسافة من الأسفل */
    left: 50%;
    transform: translateX(-50%);
    z-index: 15; /* لتظهر فوق الصور والمحتوى */
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5); /* لون أبيض شفاف */
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--primary-red); /* اللون الأحمر عند التنشيط */
    width: 30px; /* تصبح أطول قليلاً لتعطي شكلاً عصرياً */
    border-radius: 10px;
}

/* Trust Bar */
.trust-bar {
    background-color: var(--text-dark);
    color: white;
    padding: 25px 0;
}

.trust-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1.1rem;
}

.trust-item i {
    color: var(--primary-red);
    font-size: 1.5rem;
}

/* Product Counter Section */
.product-counter-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%) !important;
    color: white !important;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--primary-red);
    display: block !important;
}

.product-counter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,19,14,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.product-counter-wrapper {
    position: relative;
    z-index: 2;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px;
}

.counter-icon {
    font-size: 3.5rem;
    color: var(--primary-red) !important;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 15px rgba(255,19,14,0.4));
    animation: floatIcon 3s infinite ease-in-out;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.product-counter {
    font-size: 6.5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(to bottom, #ffffff 30%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5));
    font-family: 'Inter', sans-serif;
    display: inline-block;
}

.counter-label {
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--primary-red) !important;
    margin-top: -5px;
}

.counter-desc {
    font-size: 1.1rem;
    color: #888 !important;
    max-width: 650px;
    margin: 20px auto 0;
    line-height: 1.6;
    font-weight: 300;
}

/* Products */
.category-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    border-left: 4px solid var(--primary-red);
    padding-left: 15px;
}

.category-desc {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.mt-50 {
    margin-top: 50px;
}

/* About Section */
.about-text p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

.about-subtitle {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.4;
}

.about-small-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-top: 30px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slogan-img {
    height: 60px;
    margin-top: 20px;
}

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

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative; /* Added for absolute positioning of fiche-btn */
}

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

.product-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 30px;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.product-info p {
    color: var(--text-gray);
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom: 4px solid var(--primary-red);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Distributor Section Modern Layout */
.distributor {
    background: linear-gradient(rgba(17, 17, 17, 0.9), rgba(17, 17, 17, 0.9)), url('partnership.jpg.jpeg') center/cover no-repeat;
    position: relative;
    color: white;
    padding: 100px 0;
}

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

.dist-heading {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.1;
}

.dist-subtext {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
}

.distributor-benefits {
    list-style: none;
    margin-bottom: 30px;
}

.distributor-benefits li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dist-form-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    color: var(--text-dark);
}

.dist-form-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
}

.dist-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dist-error {
    background-color: #fceaea;
    color: #c53030;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    border-left: 4px solid #c53030;
}

@media (max-width: 992px) {
    .dist-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .dist-heading {
        font-size: 2.2rem;
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    text-align: left;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-gray);
    font-size: 1.05rem;
}

.quote {
    font-size: 1.5rem;
    color: var(--primary-red);
    font-weight: 800;
    margin-top: 30px;
    font-style: italic;
}

.slogan-img {
    max-width: 300px;
    height: auto;
    margin-top: 30px;
    display: block;
}

.about-img-container {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

/* Order Form */
.order-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    border-top: 5px solid var(--primary-red);
}

.orderForm {
    display: grid;
    gap: 20px;
}

#orderForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: 1 / -1;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(255, 19, 14, 0.1);
}

.form-success {
    grid-column: 1 / -1;
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 4px;
    text-align: center;
    font-size: 1.05rem;
    border-left: 5px solid #28a745;
}

.hidden {
    display: none;
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info p {
    color: #aaa;
    margin: 15px 0;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
}

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

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #aaa;
}

.footer-contact a {
    color: #aaa;
}

.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #777;
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

/* B2B Order List Styles */
.b2b-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.product-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    transition: var(--transition);
    position: relative; /* Added for absolute positioning of fiche-btn */
}

.product-entry:hover {
    box-shadow: var(--shadow-md);
    border-color: #ddd;
}

.product-list-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-list-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: var(--bg-white);
    border-radius: 6px;
    border: 1px solid #eee;
    padding: 5px;
}

.product-name-col {
    display: flex;
    flex-direction: column;
}

.product-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.product-subtext {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 4px;
}

.qty-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 5px 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.qty-container label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    margin: 0;
}

.qty-input-large {
    width: 60px;
    height: 35px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-red);
}

.qty-input-large:focus {
    outline: none;
    border-color: var(--primary-red);
}

.qty-input-large::-webkit-inner-spin-button, 
.qty-input-large::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
.qty-input-large {
    -moz-appearance: textfield;
}

/* Order Page Styles */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 8px;
    width: fit-content;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-red);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: var(--transition);
}

/* Fiche Technique Button */
.fiche-btn {
    position: absolute;
    bottom: 12px;
    right: 15px;
    font-size: 11px;
    color: var(--primary-red);
    text-decoration: underline;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.fiche-btn:hover {
    color: var(--dark-red);
    transform: scale(1.05);
}

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

.qty-count {
    font-weight: bold;
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--text-dark);
}

/* Remove default arrows from number input */
.qty-count::-webkit-inner-spin-button, 
.qty-count::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}
.qty-count {
    -moz-appearance: textfield;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.order-summary-panel, .checkout-form-panel {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.order-summary-panel h3, .checkout-form-panel h3 {
    margin-bottom: 20px;
    color: var(--primary-red);
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
}

.cart-items-list {
    list-style: none;
    margin-bottom: 20px;
    min-height: 100px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.empty-cart-msg {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    padding-top: 20px;
    border-top: 2px solid var(--text-dark);
}

.hidden {
    display: none !important;
}

#advancedOrderForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#confirmOrderBtn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* News Section */
.news-section {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.news-card.text-only {
    border-top: 5px solid var(--primary-red);
}

.news-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    unicode-bidi: plaintext; /* Automatically detects RTL for Arabic */
}

.news-date {
    font-size: 0.85rem;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.news-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.news-content p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    margin-top: auto;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-red);
    align-self: flex-start;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-red);
    padding-left: 5px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .distributor-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 1150px) {
    /* Navbar */
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
        box-shadow: var(--shadow-md);
        z-index: 999;
    }
    .nav-links.active {
        left: 0;
    }

    body.rtl .nav-links {
        left: auto;
        right: -100%;
    }

    body.rtl .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .nav-logo-img {
        height: 50px;
    }
    .nav-flag-img {
        height: 25px;
        width: 25px;
    }
}

@media (max-width: 768px) {
    /* Hero Slider */
    .hero-slider {
        min-height: 70vh;
    }
    .hero-title {
        font-size: 2.5rem !important;
    }
    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 20px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    .hero-buttons .btn {
        width: 100%;
    }

    /* Section titles */
    .section-title {
        font-size: 1.8rem;
    }
    .section {
        padding: 60px 0;
    }

    /* Trust bar */
    .trust-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .trust-item {
        font-size: 0.95rem;
    }

    /* Products */
    .product-grid {
        grid-template-columns: 1fr;
    }
    .category-title {
        font-size: 1.5rem;
    }
    .product-img {
        height: 220px;
    }

    /* B2B Order List */
    .product-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }
    .b2b-list {
        max-width: 100%;
    }
    .product-list-img {
        width: 70px;
        height: 70px;
    }
    .product-name {
        font-size: 1rem;
    }
    .qty-container {
        width: 100%;
        justify-content: center;
    }

    /* Order & Checkout */
    #orderForm {
        grid-template-columns: 1fr;
    }
    .order-form-wrapper {
        padding: 30px 20px;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .order-summary-panel, .checkout-form-panel {
        padding: 20px 15px;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-text h2 {
        text-align: center;
    }
    body.rtl .about-text h2 {
        text-align: center;
    }
    .slogan-img {
        margin: 20px auto 0;
    }

    /* Distributor */
    .dist-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .dist-form-row {
        grid-template-columns: 1fr;
    }
    .dist-heading {
        font-size: 2.2rem;
    }
    .distributor {
        padding: 60px 0;
    }
    .dist-form-card {
        padding: 25px 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-contact p {
        justify-content: center;
    }
    .footer-logo-img {
        margin: 0 auto 15px;
    }

    /* Floating WhatsApp */
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        bottom: 20px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .nav-logo-img {
        height: 40px;
    }
    .nav-flag-img {
        height: 15px;
    }
    .product-entry {
        padding: 12px;
    }
    .product-list-img {
        width: 60px;
        height: 60px;
    }
    .order-summary-panel, .checkout-form-panel {
        padding: 15px 12px;
    }
}
.attribution {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #666;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.attribution a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.attribution a:hover {
    color: white;
    text-decoration: underline;
}
@media (max-width: 768px) { .product-counter { font-size: 4.5rem !important; } .counter-label { font-size: 1.2rem !important; letter-spacing: 3px !important; } .product-counter-section { padding: 60px 20px !important; } }
