* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a1c2f;
    color: #f0f3f8;
    line-height: 1.5;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #0a1c2f;
    border-bottom: 2px solid #e6a017;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}
.logo img {
    height: 45px;
    border-radius: 10px;
}
.logo-text {
    font-weight: bold;
    line-height: 1.2;
}

/* Desktop navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}
.desktop-nav ul li a {
    color: #f0f3f8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}
.desktop-nav ul li a:hover {
    color: #e6a017;
}

/* Desktop dropdown */
.desktop-nav .dropdown {
    position: relative;
}
.desktop-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #112538;
    min-width: 180px;
    border-radius: 10px;
    padding: 10px 0;
    z-index: 100;
    list-style: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.desktop-nav .dropdown:hover .dropdown-menu {
    display: block;
}
.dropdown-menu li {
    padding: 5px 20px;
}
.dropdown-menu li a {
    color: #f0f3f8;
}

/* Header actions - spacing fixed */
.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}
.search-form {
    display: flex;
    gap: 5px;
}
.search-form input {
    padding: 6px 12px;
    border-radius: 30px;
    border: none;
    background: #1e3a5f;
    color: #f0f3f8;
}
.search-form input::placeholder {
    color: #b8c7de;
}
.search-form button {
    background: #e6a017;
    border: none;
    border-radius: 50%;
    width: 34px;
    cursor: pointer;
    color: #0a1c2f;
}
.search-form button:hover {
    background: #f5b82e;
}
.lang-switch a {
    color: #f0f3f8;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.9rem;
}
.lang-switch a.active {
    background: #e6a017;
    color: #0a1c2f;
}
.cart-icon {
    position: relative;
    color: #f0f3f8;
    font-size: 1.4rem;
}
.cart-icon span {
    position: absolute;
    top: -10px;
    right: -12px;
    background: #e6a017;
    color: #0a1c2f;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Mobile search (expandable icon) */
.mobile-search-wrapper {
    position: relative;
    display: none;
}
.mobile-search-icon {
    background: none;
    border: none;
    color: #f0f3f8;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
}
.mobile-search-form {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: #0a1c2f;
    border-radius: 30px;
    padding: 8px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.mobile-search-form.active {
    display: flex;
}
.mobile-search-form input {
    flex: 1;
    padding: 8px 12px;
    border-radius: 30px;
    border: none;
    background: #1e3a5f;
    color: #fff;
}
.mobile-search-form button {
    background: #e6a017;
    border: none;
    border-radius: 50%;
    width: 34px;
    margin-left: 5px;
    cursor: pointer;
}

/* Desktop / mobile visibility */
.desktop-only {
    display: block;
}
.mobile-only {
    display: none;
}
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background: #f0f3f8;
}

/* Mobile slide menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #0a1c2f;
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
    overflow-y: auto;
}
.mobile-menu.active {
    left: 0;
}
.mobile-menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #e6a017;
}
.mobile-menu-inner {
    padding: 80px 20px 30px;
}
.mobile-nav {
    list-style: none;
}
.mobile-nav li {
    margin-bottom: 15px;
}
.mobile-nav li a {
    color: #f0f3f8;
    text-decoration: none;
    font-size: 1.2rem;
    display: block;
    padding: 8px 0;
}
.dropdown-mobile {
    position: relative;
}
.mobile-dropdown-menu {
    display: none;
    list-style: none;
    padding-left: 20px;
    margin-top: 8px;
}
.mobile-dropdown-menu li a {
    font-size: 1rem;
    color: #b8c7de;
}
.dropdown-mobile.active .mobile-dropdown-menu {
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    background: #e6a017;
    color: #0a1c2f;
    padding: 10px 25px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background: #f5b82e;
    transform: scale(1.02);
}
.btn-outline {
    background: transparent;
    border: 1px solid #e6a017;
    color: #e6a017;
}
.btn-outline:hover {
    background: #e6a017;
    color: #0a1c2f;
}

/* Hero carousel */
.hero {
    position: relative;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
}
.hero-slide {
    display: none;
    position: relative;
    height: 450px;
    background-size: cover;
    background-position: center;
}
.hero-slide.active {
    display: block;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 28, 47, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}
.hero-overlay h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}
.hero-overlay p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
}
.prev { left: 10px; }
.next { right: 10px; }
.dots {
    text-align: center;
    margin-top: 10px;
}
.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background: #bbb;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}
.dot.active {
    background: #e6a017;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.product-card {
    background: #112538;
    border-radius: 20px;
    padding: 15px;
    text-align: center;
    transition: 0.2s;
    border: 1px solid #1e3a5f;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: #e6a017;
    box-shadow: 0 8px 20px rgba(230,160,23,0.2);
}
.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
}
.price {
    color: #e6a017;
    font-size: 1.4rem;
    font-weight: bold;
    margin: 10px 0;
}

/* Testimonials */
.testimonials {
    background: #112538;
    border-radius: 30px;
    padding: 40px 20px;
    margin: 40px 0;
    text-align: center;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.testimonial-card {
    background: #0a1c2f;
    padding: 20px;
    border-radius: 20px;
}
.stars i {
    color: #e6a017;
    margin: 10px 0;
}

/* Footer styles */
footer {
    background: #07172a;
    margin-top: 60px;
    padding: 40px 0 20px;
    border-top: 1px solid #e6a017;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 {
    margin-bottom: 15px;
    color: #e6a017;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 8px;
}
.footer-col a {
    color: #b8c7de;
    text-decoration: none;
}
.footer-col a:hover {
    color: #e6a017;
}
.social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #0a1c2f;
    border-radius: 50%;
    color: #f0f3f8;
    font-size: 1.2rem;
    transition: 0.2s;
    margin-right: 8px;
    margin-bottom: 5px;
}
.social a:hover {
    background: #e6a017;
    color: #0a1c2f;
    transform: translateY(-3px);
}
.payment-icons i, .payment-icons span {
    font-size: 1.8rem;
    margin-right: 10px;
}
.payment-icons .fa-cc-visa {
    color: #0057B8;
}
.payment-icons .fa-cc-mastercard {
    color: #F79E1B;
}
.payment-icons .fa-cc-apple-pay {
    color: #E0E0E0;
}
.payment-icons .mada {
    color: #9B6DFF;
    font-weight: bold;
}
.payment-icons .tabby {
    color: #4D7CFF;
    font-weight: bold;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e3a5f;
    padding-top: 20px;
    font-size: 0.8rem;
    margin-top: 20px;
}

/* Mobile footer: stack vertically */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
        text-align: center;
    }
    .footer-col {
        border-bottom: 1px solid #1e3a5f;
        padding-bottom: 20px;
    }
    .footer-col:last-child {
        border-bottom: none;
    }
    .social {
        justify-content: center;
    }
    .payment-icons {
        text-align: center;
    }
    .footer-bottom {
        text-align: center;
    }
}

/* Tablet: two columns */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* WhatsApp chat & back to top */
.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    padding: 12px 18px;
    font-size: 1rem;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #e6a017;
    color: #0a1c2f;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    display: none;
    z-index: 9999;
    font-size: 1.2rem;
    transition: 0.2s;
}
.back-to-top:hover {
    background: #f5b82e;
    transform: scale(1.05);
}

/* Force LTR for numbers */
.price, .total, .subtotal, .cart-total, .product-price, [class*="price"], [class*="total"] {
    direction: ltr !important;
    unicode-bidi: embed;
}

/* ===== RESPONSIVE STYLES (FIXED FOR TABLET & MOBILE) ===== */

/* Tablet and mobile (max-width: 1024px): hide desktop nav, show hamburger, adjust spacing */
@media (max-width: 1024px) {
    .desktop-nav {
        display: none !important;
    }
    .hamburger {
        display: flex !important;
    }
    .header-actions {
        gap: 16px;
        flex-wrap: nowrap;
        justify-content: flex-end;
    }
    .search-form input {
        width: 140px;
    }
    .lang-switch a {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
    .cart-icon {
        font-size: 1.4rem;
    }
}

/* Mobile only (max-width: 768px): use expandable search icon, tighter spacing */
@media (max-width: 768px) {
    .desktop-search {
        display: none !important;
    }
    .mobile-search-wrapper {
        display: block !important;
    }
    .header-actions {
        gap: 12px;
    }
    .lang-switch a {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    .cart-icon {
        font-size: 1.3rem;
    }
    .hero-slide {
        height: 300px;
    }
    .hero-overlay h2 {
        font-size: 1.6rem;
    }
    .product-card img {
        height: 150px;
    }
    .back-to-top {
        bottom: 80px;
    }
}

/* Desktop (above 1024px): hide mobile‑only elements */
@media (min-width: 1025px) {
    .mobile-search-wrapper {
        display: none !important;
    }
    .hamburger {
        display: none !important;
    }
}

