:root {
    --primary-color: #d4a373; /* elegant soft gold/nude */
    --primary-hover: #b5835a;
    --bg-color: #faf9f8;
    --text-color: #333;
    --light-text: #777;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    direction: ltr; /* Default LTR, changes to RTL for Arabic */
    padding-top: 80px; /* Offset for fixed navbar */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.rtl {
    direction: rtl;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

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

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

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

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

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

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

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn-lang {
    background: transparent;
    border: 1px solid var(--text-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

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

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.4rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.rtl .cart-count {
    right: auto;
    left: -8px;
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: url('https://images.unsplash.com/photo-1616683693504-3ea7e9ad6fec?q=80&w=1974&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    animation: fadeIn 1s ease-out;
}

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

.hero-title {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    line-height: 1.15;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--text-color);
    margin-bottom: 2.2rem;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Moving Product Ticker Section */
.product-ticker-section {
    width: 100%;
    background: #fff8f5;
    border-top: 1.5px solid #ebd9ce;
    border-bottom: 1.5px solid #ebd9ce;
    overflow: hidden;
    padding: 0.8rem 0;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.03);
    z-index: 5;
    position: relative;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
}

.ticker-items {
    display: flex;
    width: max-content;
    animation: marquee 35s linear infinite;
    gap: 3rem;
}

/* Hover to pause scrolling */
.product-ticker-section:hover .ticker-items {
    animation-play-state: paused;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
    text-decoration: none;
}

.ticker-item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
}

.ticker-item span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
}

@keyframes marquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Category Bar on Home */
.category-bar-section {
    padding: 4rem 5%;
    background: linear-gradient(135deg, #faf9f8 0%, #fff5f0 100%);
    text-align: center;
}

.cat-bar-title {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.cat-bar-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.category-bar {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0 1.5rem;
}

.category-bar::-webkit-scrollbar {
    height: 6px;
}
.category-bar::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.category-item {
    flex: 0 0 auto;
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid rgba(212, 163, 115, 0.15);
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.category-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(212, 163, 115, 0.25);
    border-color: var(--primary-color);
}

.cat-img-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: #faf8f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.cat-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.category-item:hover .cat-img-wrap img {
    transform: scale(1.08);
}

.cat-label {
    padding: 0.85rem 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    letter-spacing: 1px;
    background: var(--white);
    transition: var(--transition);
}

.category-item:hover .cat-label {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .category-item {
        width: 145px;
    }
    .cat-img-wrap {
        height: 145px;
    }
}

/* Sections */
.section-padding {
    padding: 5rem 5%;
    flex: 1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* Products Page Layout (Categories Sidebar + Grid) */
.products-container {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.categories-sidebar {
    width: 250px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    flex-shrink: 0;
}

.categories-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #eee;
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: block;
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.categories-list a:hover, .categories-list a.active {
    color: var(--primary-color);
    background: #fdfbfb;
    padding-left: 1.5rem; /* slight indent on hover */
}

body.rtl .categories-list a:hover, body.rtl .categories-list a.active {
    padding-left: 1.2rem;
    padding-right: 1.5rem;
}

/* Products Section Grid */
.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-content: start;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

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

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Contact Page Specific */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}
.contact-text {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 2rem;
}
.social-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.btn-insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.btn-whatsapp { background: #25D366; }
.btn-facebook { background: #1877F2; }

/* About Page Specific */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    z-index: 2000;
    padding: 2rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

body.rtl .cart-sidebar {
    right: auto;
    left: -400px;
    box-shadow: 5px 0 20px rgba(0,0,0,0.1);
}

.cart-sidebar.open {
    right: 0;
}

body.rtl .cart-sidebar.open {
    left: 0;
    right: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

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

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

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.cart-item-shade, .cart-item-qty {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.cart-item-shade strong, .cart-item-qty strong {
    color: var(--text-color);
}

.cart-item-price {
    font-size: 0.92rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
    font-weight: 700;
}

.remove-item {
    color: #ff4757;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0.9rem;
}

.cart-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: var(--transition);
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #fff;
    padding: 3rem 5%;
    text-align: center;
    margin-top: auto;
}

/* ===========================
   SELECT ITEM BUTTON
=========================== */
.btn-select-item {
    display: inline-block;
    background: transparent;
    color: var(--primary-color);
    padding: 0.75rem 1.8rem;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    letter-spacing: 0.5px;
}

.btn-select-item:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 163, 115, 0.35);
}

/* Improved product card layout */
.product-img-wrap {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    background: #faf8f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.product-img-wrap .product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 0;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrap .product-img {
    transform: scale(1.06);
}

.product-card-body {
    text-align: center;
}

/* Cart item shade */
.cart-item-shade {
    font-size: 0.82rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
    font-weight: 600;
}

/* ===========================
   PRODUCT DETAIL MODAL
=========================== */
.product-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal-overlay.open {
    display: flex;
    opacity: 1;
}

.product-modal {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { transform: translateY(30px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1);      opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    color: var(--text-color);
}

.modal-close-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

body.rtl .modal-close-btn {
    right: auto;
    left: 1rem;
}

.modal-body {
    display: flex;
    gap: 0;
}

/* Modal left: Image */
.modal-img-section {
    width: 45%;
    flex-shrink: 0;
    background: #faf8f6;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    padding: 1rem;
}

body.rtl .modal-img-section {
    border-radius: 0 20px 20px 0;
    order: 2;
}

.modal-img-section img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Modal right: Details */
.modal-details-section {
    flex: 1;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

body.rtl .modal-details-section {
    order: 1;
    text-align: right;
}

.modal-product-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.2;
}

.modal-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* Options section */
.modal-options-wrap {
    display: block;
}

.modal-options-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 170px;
    overflow-y: auto;
    padding: 0.25rem;
    border-radius: 8px;
}

.modal-options-grid::-webkit-scrollbar {
    width: 5px;
}
.modal-options-grid::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.shade-btn {
    min-width: 44px;
    padding: 0.4rem 0.6rem;
    border: 1.5px solid #e0d8d0;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.shade-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff8f3;
}

.shade-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(212, 163, 115, 0.4);
}

.modal-shade-error {
    color: #e74c3c;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.4rem;
}

/* Qty Controls */
.modal-qty-wrap {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.qty-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid #e0d8d0;
    border-radius: 30px;
    overflow: hidden;
}

.qty-btn {
    width: 38px;
    height: 38px;
    background: #f9f6f3;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.qty-number {
    min-width: 40px;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
}

.modal-add-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    border-radius: 12px;
    margin-top: auto;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    nav {
        padding: 1rem 4%;
    }
    .logo {
        font-size: 1.5rem;
    }
    .nav-links {
        gap: 1.2rem;
    }
    .hero {
        padding: 0 4%;
    }
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 0.8rem 4%;
        gap: 0.6rem;
    }
    .nav-links {
        display: flex;
        order: 3;
        width: 100%;
        justify-content: space-around;
        padding-top: 0.5rem;
        border-top: 1px solid #f0e6df;
        gap: 0.4rem;
    }
    .nav-links a {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
    }
    .hero {
        justify-content: center;
        text-align: center;
        padding: 0 1.5rem;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .products-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    .categories-sidebar {
        width: 100%;
    }

    /* Mobile modal layout adjustments */
    .modal-body {
        flex-direction: column;
    }
    .modal-img-section {
        width: 100%;
        min-height: 240px;
        border-radius: 20px 20px 0 0;
    }
    body.rtl .modal-img-section {
        border-radius: 20px 20px 0 0;
        order: unset;
    }
    body.rtl .modal-details-section {
        order: unset;
    }
    .modal-details-section {
        padding: 1.5rem;
        gap: 1rem;
    }
    .modal-product-name {
        font-size: 1.3rem;
    }
    .modal-options-grid {
        max-height: 140px;
    }
}

/* Sub-category Filter Tabs for Nails */
.sub-cat-filter-wrap {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1.5px solid #f0e6df;
}

.sub-cat-filter-btn {
    padding: 0.6rem 1.4rem;
    border: 2px solid #e0d8d0;
    border-radius: 25px;
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.sub-cat-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff8f3;
}

.sub-cat-filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.35);
}

/* Sidebar Sub-categories Accordion Dropdown Menu */
.cat-has-sub {
    display: flex;
    flex-direction: column;
}

.cat-has-sub .cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sub-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    margin-left: 0.5rem;
}

body.rtl .sub-arrow {
    margin-left: 0;
    margin-right: 0.5rem;
}

.cat-has-sub.open .sub-arrow {
    transform: rotate(180deg);
}

.sub-categories-menu {
    list-style: none;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
}

.cat-has-sub.open .sub-categories-menu {
    display: flex;
}

.sub-cat-link {
    font-size: 0.9rem;
    color: #666;
    text-decoration: none;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    transition: var(--transition);
    display: block;
}

.sub-cat-link:hover, .sub-cat-link.active {
    color: var(--primary-color);
    background: #fff5ee;
    font-weight: 700;
}

/* Badge Coming Soon */
.badge-coming-soon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 14px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

body.rtl .badge-coming-soon {
    right: auto;
    left: 10px;
}

