﻿/* ===== Variables ===== */
:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-lighter: #ede9fe;
    --primary-dark: #5b21b6;
    --accent: #c084fc;
    --gold: #c9a96e;
    --bg: #faf8ff;
    --bg-alt: #f3f0ff;
    --text: #1e1b4b;
    --text-light: #6b7280;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(124, 58, 237, 0.12);
    --shadow-hover: 0 8px 30px rgba(124, 58, 237, 0.22);
    --radius: 16px;
    --transition: all 0.3s ease;
}

/* ===== Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Tajawal', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== Discount Banner ===== */
.discount-banner {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--accent));
    color: white;
    padding: 10px 0;
    z-index: 1100;
    overflow: hidden;
}

.banner-scroll {
    display: inline-block;
    white-space: nowrap;
    animation: scrollBanner 20s linear infinite;
    font-weight: 700;
    font-size: 0.95rem;
}

@keyframes scrollBanner {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

body.has-banner .navbar { top: 40px; }
body.has-banner .hero { margin-top: 40px; }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--primary);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-lighter);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 62px;
    width: 100%;
    background: white;
    z-index: 999;
    flex-direction: column;
    padding: 15px 20px;
    box-shadow: var(--shadow);
    border-top: 1px solid #f3f4f6;
}

body.has-banner .mobile-menu { top: 102px; }

.mobile-menu.active { display: flex; }

.mobile-menu a {
    padding: 12px 20px;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    border-radius: 8px;
}

.mobile-menu a:hover { background: var(--primary-lighter); }

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1596462502278-27bfdc403348?w=1920&q=80') center/cover no-repeat;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(91, 33, 182, 0.65);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(124, 58, 237, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-logo-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.8);
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    background: #1a0a2e;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    text-shadow: 2px 2px 20px rgba(0,0,0,0.15);
    margin-bottom: 15px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 30px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--white);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: var(--primary-lighter);
}

/* ===== Section Styles ===== */
.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 40px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ===== Search ===== */
.nav-search {
    position: relative;
    flex: 0 1 280px;
}

.nav-search input, .products-search input {
    width: 100%;
    padding: 10px 18px;
    border: 2px solid var(--primary-light);
    border-radius: 25px;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    background: var(--bg);
}

.nav-search input:focus, .products-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.products-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto 25px;
}

.search-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    z-index: 1200;
    max-height: 350px;
    overflow-y: auto;
    margin-top: 5px;
}

.search-dropdown.active { display: block; }

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid #f3f4f6;
}

.search-item:hover { background: var(--primary-lighter); }

.search-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg-alt);
}

.search-item-info { flex: 1; }
.search-item-info h4 { font-size: 0.9rem; color: var(--text); }
.search-item-info span { font-size: 0.8rem; color: var(--text-light); }

/* ===== Product Status Badges ===== */
.product-card .status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.status-badge.bestseller {
    background: #fbbf24;
    color: #92400e;
}

.status-badge.special {
    background: #a78bfa;
    color: white;
}

.status-badge.soldout {
    background: #6b7280;
    color: white;
}

.product-card.sold-out {
    opacity: 0.7;
    pointer-events: none;
}

.product-card.sold-out .product-image::after {
    content: 'Ù†ÙØ°Øª Ø§Ù„ÙƒÙ…ÙŠØ©';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.product-image { position: relative; }

/* ===== Filter Bar ===== */
.filter-section {
    padding: 100px 0 20px;
    background: var(--white);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-light);
    background: var(--white);
    color: var(--primary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ===== Products ===== */
.products-section {
    padding: 30px 0 80px;
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card .discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.product-image {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    overflow: hidden;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    padding: 10px;
}

.product-info {
    padding: 15px 20px;
}

.product-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text);
}

.product-meta {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.product-meta span {
    margin-left: 10px;
}

.product-brand {
    display: inline-block;
    background: var(--primary-lighter);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price .original-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 400;
    margin-right: 8px;
}

.product-size {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== About ===== */
.about-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 2;
}

.about-features { display: grid; gap: 15px; }

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-weight: 500;
}

.feature-icon { font-size: 1.4rem; }

/* ===== Brands ===== */
.brands-section {
    padding: 60px 0;
    background: var(--white);
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.brand-logo {
    height: 50px;
    opacity: 0.7;
    transition: var(--transition);
    filter: grayscale(30%);
}

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* ===== Delivery ===== */
.delivery-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.delivery-card {
    text-align: center;
    padding: 35px 20px;
    background: var(--white);
    border-radius: var(--radius);
    transition: var(--transition);
    border: 2px solid transparent;
}

.delivery-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.delivery-icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.delivery-card h3 { font-size: 1.2rem; margin-bottom: 5px; color: var(--primary-dark); }
.delivery-card p { color: var(--text-light); font-size: 0.95rem; }

/* ===== Contact ===== */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ede9fe, #faf8ff);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.social-btn.whatsapp { background: #25d366; }
.social-btn.instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.tiktok { background: #000; }

/* ===== Footer ===== */
.footer {
    padding: 25px 0;
    text-align: center;
    background: var(--text);
    color: var(--white);
}

/* ===== Cart Icon ===== */
.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: var(--transition);
}

.cart-icon:hover { background: var(--primary-lighter); transform: scale(1.1); }

.cart-icon.bump {
    animation: cartBump 0.4s ease;
}

@keyframes cartBump {
    0% { transform: scale(1); }
    30% { transform: scale(1.3) rotate(-5deg); }
    50% { transform: scale(1.4) rotate(5deg); }
    70% { transform: scale(1.2) rotate(-3deg); }
    100% { transform: scale(1); }
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ===== Cart Sidebar ===== */
.cart-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1300;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.active { display: block; opacity: 1; }

.cart-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: white;
    z-index: 1400;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 25px rgba(0,0,0,0.15);
}

html[dir="rtl"] .cart-sidebar {
    left: auto;
    right: 0;
    transform: translateX(100%);
    box-shadow: -4px 0 25px rgba(0,0,0,0.15);
}

.cart-sidebar.active {
    transform: translateX(0) !important;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.cart-header h3 { font-size: 1.2rem; color: var(--primary-dark); }

.cart-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.cart-close:hover { color: var(--primary); transform: rotate(90deg); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.cart-empty span { font-size: 3rem; display: block; margin-bottom: 15px; }

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-alt);
    border-radius: 12px;
    margin-bottom: 10px;
    animation: slideInItem 0.3s ease;
}

@keyframes slideInItem {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.cart-item img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    border-radius: 8px;
    background: white;
}

.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.9rem; margin-bottom: 3px; }
.cart-item-info .cart-item-brand { font-size: 0.75rem; color: var(--text-light); }
.cart-item-info .cart-item-price { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-top: 4px; }

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--primary-light);
    background: white;
    color: var(--primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-qty button:hover { background: var(--primary); color: white; }
.cart-item-qty span { font-weight: 700; min-width: 20px; text-align: center; }

.cart-item-remove {
    align-self: flex-start;
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: var(--transition);
}

.cart-item-remove:hover { opacity: 1; transform: scale(1.2); }

.cart-footer {
    padding: 15px 20px;
    border-top: 1px solid #f3f4f6;
    background: var(--bg);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 14px;
    background: #25d366;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    margin-bottom: 8px;
}

.btn-checkout:hover { background: #1da851; transform: translateY(-2px); }

.btn-clear-cart {
    width: 100%;
    padding: 10px;
    background: none;
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    transition: var(--transition);
}

.btn-clear-cart:hover { background: #fef2f2; }

/* ===== Quantity Selector ===== */
.qty-selector {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--primary-light);
    border-radius: 25px;
    overflow: hidden;
    background: white;
}

.qty-selector button {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary-lighter);
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-selector button:hover { background: var(--primary); color: white; }
.qty-selector span { min-width: 30px; text-align: center; font-weight: 700; font-size: 0.95rem; }

.qty-sm { transform: scale(0.85); transform-origin: center; }

/* ===== Product Card Actions ===== */
.product-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px 12px;
    gap: 8px;
}

.product-card-actions .btn-add-cart {
    flex: 1;
    border-radius: 25px;
    padding: 8px 12px;
    font-size: 0.85rem;
}

/* ===== PDP Modal ===== */
.pdp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.pdp-modal {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: pdpSlideIn 0.35s ease;
}

@keyframes pdpSlideIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.pdp-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--bg-alt);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

html[dir="rtl"] .pdp-close { left: auto; right: 15px; }
.pdp-close:hover { background: var(--primary-lighter); color: var(--primary); }

.pdp-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.pdp-image {
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: 20px 0 0 20px;
    min-height: 300px;
}

html[dir="rtl"] .pdp-image { border-radius: 0 20px 20px 0; }

.pdp-image img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.pdp-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdp-info h2 { font-size: 1.4rem; color: var(--text); }

.pdp-meta {
    display: flex;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.pdp-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.pdp-price .original-price {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 1.1rem;
    font-weight: 400;
    margin-left: 8px;
}

.pdp-qty {
    display: flex;
    align-items: center;
    gap: 15px;
}

.pdp-qty label { font-weight: 600; color: var(--text-light); }

.pdp-add-btn {
    margin-top: 10px;
    border-radius: 12px !important;
    padding: 14px !important;
    font-size: 1.05rem !important;
}

/* ===== Delivery Option in Cart ===== */
.cart-delivery-option {
    margin-bottom: 15px;
}

.cart-delivery-option label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text);
}

.delivery-toggle {
    display: flex;
    gap: 8px;
}

.delivery-opt {
    flex: 1;
    padding: 10px 8px;
    border: 2px solid var(--primary-light);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
    text-align: center;
}

.delivery-opt.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.delivery-opt:hover:not(.active) { background: var(--primary-lighter); }

/* ===== Flying Animation Dynamic ===== */
.flying-product.animate {
    animation: flyToCartDynamic 0.8s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

@keyframes flyToCartDynamic {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    40% { transform: translate(calc(var(--fly-dx) * 0.3), calc(var(--fly-dy) * 0.3 - 80px)) scale(0.8); opacity: 1; }
    100% { transform: translate(var(--fly-dx), var(--fly-dy)) scale(0.2); opacity: 0.5; }
}

@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .about-content { grid-template-columns: 1fr; }
    .section-title { font-size: 1.8rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-image { height: 160px; }
    .product-info { padding: 10px 12px; }
    .product-info h3 { font-size: 0.85rem; }
    .filter-section { padding-top: 80px; }
    .nav-search { flex: 0 1 180px; }
    .nav-search input { padding: 8px 12px; font-size: 0.8rem; }
    .cart-sidebar { width: 100vw; max-width: 100vw; }
    .logo-text { font-size: 0.95rem; }
    .logo-img { height: 32px; width: 32px; }
    .navbar { padding: 10px 0; }
    .pdp-content { grid-template-columns: 1fr; }
    .pdp-image { border-radius: 20px 20px 0 0; min-height: 200px; }
    html[dir="rtl"] .pdp-image { border-radius: 20px 20px 0 0; }
    .product-card-actions { flex-direction: column; }
    .product-card-actions .qty-sm { transform: scale(0.8); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .about-content { grid-template-columns: 1fr; }
    .section-title { font-size: 1.8rem; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .product-image { height: 160px; }
    .product-info { padding: 10px 12px; }
    .product-info h3 { font-size: 0.85rem; }
    .filter-section { padding-top: 80px; }
    .nav-search { flex: 0 1 150px; }
    .nav-search input { padding: 8px 12px; font-size: 0.8rem; }
    .cart-sidebar { width: 100vw; max-width: 100vw; }
    .logo-text { font-size: 0.9rem; }
    .logo-img { height: 30px; width: 30px; }
    .navbar { padding: 8px 0; }
    .pdp-content { grid-template-columns: 1fr; }
    .pdp-image { border-radius: 20px 20px 0 0; min-height: 200px; }
    html[dir="rtl"] .pdp-image { border-radius: 20px 20px 0 0; }
    .product-card-actions { flex-direction: column; }
    .product-card-actions .qty-sm { transform: scale(0.8); }
}

/* ===== Custom updates: filters and multi-size ===== */
.filter-toggle-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
}

.filter-toggle-btn {
    background: var(--primary-lighter);
    color: var(--primary);
    border: 2px solid var(--primary-light);
    padding: 8px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-toggle-btn:hover {
    background: var(--primary);
    color: white;
}

.filter-panel {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-group { margin-bottom: 15px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group h4 { font-size: 0.9rem; color: var(--primary-dark); margin-bottom: 10px; font-weight: 700; }
.filter-group > div { display: flex; flex-wrap: wrap; gap: 8px; }
.product-card-controls { padding: 0 20px 12px; }
.card-size-selector, .card-size-single { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--bg-alt); border-radius: 12px; font-size: 0.85rem; color: var(--text-light); }
.card-size-selector label, .card-size-single span { font-weight: 600; }
.card-size-single strong { color: var(--text); font-weight: 700; }
.size-select { flex: 1; border: 1px solid var(--primary-light); border-radius: 10px; padding: 8px 10px; font-family: 'Tajawal', sans-serif; background: white; color: var(--text); }
.feature-icon, .delivery-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--primary-lighter); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 900; flex-shrink: 0; }
.delivery-icon { width: 52px; height: 52px; margin: 0 auto 12px; }
.pdp-meta { display: flex; gap: 15px; color: var(--text-light); font-size: 0.9rem; flex-wrap: wrap; }
.pdp-size-section { display: flex; flex-direction: column; gap: 10px; }
.pdp-size-section label { font-weight: 700; color: var(--text); }
.pdp-size-options { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp-size-btn { padding: 9px 14px; border: 2px solid var(--primary-light); background: white; color: var(--primary); border-radius: 999px; font-family: 'Tajawal', sans-serif; font-weight: 700; cursor: pointer; transition: var(--transition); }
.pdp-size-btn.active, .pdp-size-btn:hover { background: var(--primary); border-color: var(--primary); color: white; }
.btn-checkout.disabled { opacity: 0.75; }
@media (max-width: 768px) {
    .filter-toggle-bar { justify-content: center; }
    .product-card-controls { padding: 0 12px 10px; }
    .card-size-selector, .card-size-single { flex-direction: column; align-items: stretch; }
}

