@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
    --bg: #FFFFFF;
    --bg-alt: #F5F5F5;
    --primary: #1A1A1A;
    --accent: #C9A96E;
    --accent-dark: #A8884D;
    --accent-light: #E8D5B0;
    --text: #1A1A1A;
    --text-light: #6B6B6B;
    --border: #E0E0E0;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-ar);
    background: var(--bg);
    color: var(--text);
    direction: rtl;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 1000;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    position: relative;
}

.main-nav .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.main-nav .nav-links {
    position: absolute;
    inset-inline-start: 0;
}

.main-nav .right-controls {
    position: absolute;
    inset-inline-end: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.logo {
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent);
}

.cart-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--accent);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    position: relative;
    padding: 4px 0;
}

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

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

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== LOGO IMAGE ===== */
.logo-img {
    height: 58px;
    max-width: 190px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ===== HEADER MOBILE ===== */
@media (max-width: 768px) {
    .main-nav {
        display: grid;
        grid-template-columns: 48px 1fr 48px;
        align-items: center;
        height: 72px;
        padding: 0 12px;
    }

    /* الهامبرغر على اليسار - العمود الأول */
    .main-nav .right-controls {
        position: static;
        grid-column: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    /* اللوغو في المنتصف - العمود الثاني */
    .main-nav .logo {
        position: static;
        transform: none;
        grid-column: 2;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* السلة على اليمين - العمود الثالث */
    .main-nav .cart-icon {
        grid-column: 3;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        margin-right: 0;
    }

    .logo-img {
        height: 54px;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        transition: left 0.4s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }
}

/* ===== HERO ===== */
.hero {
    margin-top: 72px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero-visual {
    display: none;
}

.hero-content {
    max-width: 700px;
    text-align: center;
}

.hero-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent-light);
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 6px 16px;
    border: 1px solid rgba(201,169,110,0.5);
    border-radius: 100px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s 0.15s ease both;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    line-height: 1.8;
    animation: fadeInUp 0.8s 0.3s ease both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 0.8s 0.45s ease both;
}

@media (max-width: 968px) {
    .hero-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-ar);
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,169,110,0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 48px;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent);
    margin: 12px auto 0;
    border-radius: 2px;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.product-card-image {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--bg-alt);
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-card-image .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f0ece3, #e8e2d6);
    color: var(--accent);
    font-size: 2.5rem;
}

.product-card-body {
    padding: 18px;
}

.product-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 8px;
}

.product-card-price .old-price,
.product-price-large .old-price {
    font-size: 0.9em;
    color: #999;
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: 400;
}

.product-card-price .current-price,
.product-price-large .current-price {
    color: var(--accent-dark);
}

.product-card-colors {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.product-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    text-indent: -9999px;
    overflow: hidden;
}

.product-card .btn {
    width: 100%;
}

/* ===== REVIEWS ===== */
.reviews-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    scrollbar-width: none;
}

.reviews-slider::-webkit-scrollbar {
    display: none;
}

.review-card {
    min-width: 320px;
    max-width: 380px;
    scroll-snap-align: start;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.review-stars {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}

.review-author {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

@media (max-width: 600px) {
    .review-card {
        min-width: 280px;
        padding: 20px;
    }
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: var(--radius);
    font-family: var(--font-ar);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    color: #fff;
    width: fit-content;
}

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

.contact-btn.whatsapp:hover {
    background: #1da851;
}

.contact-btn.facebook {
    background: #1877F2;
}

.contact-btn.facebook:hover {
    background: #1466d1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-ar);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--bg);
    direction: rtl;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item.active {
    border-color: var(--accent-light);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--bg);
    transition: var(--transition);
    border: none;
    width: 100%;
    text-align: right;
    font-family: var(--font-ar);
    color: var(--primary);
}

.faq-question:hover {
    background: var(--bg-alt);
}

.faq-question .faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--accent);
    flex-shrink: 0;
    margin-right: 12px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer-inner {
    padding: 0 24px 18px;
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* ===== FOOTER (logo, round social icons, contact) ===== */
.site-footer {
    background: #FBF7F0;
    color: var(--text);
    border-top: 1px solid #EADFC9;
    padding: 44px 0 0;
    text-align: center;
}
.site-footer .container { max-width: 760px; }
.footer-logo { display: inline-block; margin-bottom: 26px; }
.footer-logo img { height: 92px; width: auto; max-width: 220px; object-fit: contain; display: block; }
.footer-social {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    padding-bottom: 34px;
    border-bottom: 1px solid #EADFC9;
}
.social-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F3E6CF;
    color: #7A5A22;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.social-circle:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.footer-contact { padding: 28px 0 8px; text-align: right; }
.footer-contact h4 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #7A5A22;
    margin-bottom: 18px;
}
.contact-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    color: var(--text);
}
.contact-line .contact-text { flex: 1; font-size: 1.02rem; line-height: 1.6; }
.contact-line .contact-text[dir="ltr"] { text-align: right; }
.contact-icon {
    width: 54px;
    height: 54px;
    flex: none;
    border-radius: 50%;
    border: 1.5px solid #E2D2B4;
    background: #fff;
    color: #7A5A22;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.contact-line:hover .contact-icon { border-color: var(--accent); color: var(--accent-dark); }
.footer-bottom {
    padding: 22px 0 26px;
    margin-top: 14px;
    border-top: 1px solid #EADFC9;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}
@media (max-width: 480px) {
    .footer-logo img { height: 78px; }
    .footer-social { gap: 14px; }
    .social-circle { width: 62px; height: 62px; }
    .contact-icon { width: 48px; height: 48px; }
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}

/* ===== PRODUCTS PAGE ===== */
.page-header {
    margin-top: 72px;
    padding: 48px 0;
    background: var(--bg-alt);
    text-align: center;
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
}

.products-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.products-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 16px;
    flex: 1;
    max-width: 360px;
    transition: var(--transition);
}

.products-search:focus-within {
    border-color: var(--accent);
}

.products-search input {
    border: none;
    outline: none;
    font-family: var(--font-ar);
    font-size: 0.9rem;
    width: 100%;
    background: transparent;
    direction: rtl;
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-sort select {
    padding: 10px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-ar);
    font-size: 0.9rem;
    background: var(--bg);
    cursor: pointer;
    direction: rtl;
}

.products-sort select:focus {
    outline: none;
    border-color: var(--accent);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.pagination a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination .active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ===== SINGLE PRODUCT ===== */
.product-page {
    margin-top: 72px;
    padding: 40px 0;
}

.product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.product-gallery {
    position: relative;
}

.gallery-main {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
    margin-bottom: 16px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.gallery-main .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f0ece3, #e8e2d6);
    color: var(--accent);
    font-size: 4rem;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.gallery-thumb {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
}

.gallery-thumb.active {
    border-color: var(--accent);
}

.gallery-thumb:hover {
    border-color: var(--accent-light);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb .placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    color: var(--accent);
    font-size: 1.2rem;
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-price-large {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 8px;
}

.product-price-large .old-price {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
    font-weight: 400;
}

.product-price-large .current-price {
    color: var(--primary);
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.product-short-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

/* ===== ORDER FORM ===== */
.order-form {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
}

.order-form h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-ar);
    font-size: 0.9rem;
    transition: var(--transition);
    background: var(--bg);
    direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}

.color-swatches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #ddd;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    outline: none;
    display: inline-block;
    box-sizing: border-box;
    padding: 3px;
}

.color-swatch .color-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--swatch-bg, var(--swatch-color)) !important;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.color-swatch.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary);
}

.color-swatch.selected .color-inner {
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.3);
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch .color-name-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.color-swatch:hover .color-name-tooltip {
    opacity: 1;
}

.radio-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: 0.9rem;
}

.radio-option:hover {
    border-color: var(--accent-light);
}

.radio-option input[type="radio"] {
    width: auto;
    accent-color: var(--accent);
}

.radio-option.selected {
    border-color: var(--accent);
    background: rgba(201,169,110,0.05);
}

.price-display {
    background: var(--bg);
    border: 1.5px solid var(--accent-light);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.price-row:last-child {
    margin-bottom: 0;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-dark);
}

.order-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.form-buttons .btn {
    flex: 1;
    padding: 14px;
}

.form-buttons .btn-primary {
    flex: 2;
}

/* ===== CART PAGE ===== */
.cart-page {
    padding: 40px 0;
}

.cart-page .page-title {
    text-align: center;
    margin-bottom: 32px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}

.cart-item .item-image {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item .color-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ddd;
}

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

.cart-item .item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item .item-color {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.cart-item .item-price {
    font-size: 0.9rem;
    color: var(--accent-dark);
}

.cart-item .item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item .qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.cart-item .item-total {
    font-weight: 700;
    color: var(--accent-dark);
    min-width: 80px;
    text-align: left;
}

.cart-item .item-remove {
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    color: #e53e3e;
    cursor: pointer;
    font-size: 1rem;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
}

.cart-empty .empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.cart-empty h3 {
    margin-bottom: 8px;
}

.cart-empty p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.cart-checkout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    align-items: start;
}

.cart-summary {
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-error {
    color: #e53e3e;
    font-size: 0.8rem;
    margin-top: 4px;
}

.order-success {
    text-align: center;
    padding: 40px 20px;
}

.order-success .success-icon {
    width: 64px;
    height: 64px;
    background: #48bb78;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: #fff;
}

.order-success h3 {
    color: #48bb78;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .product-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .product-name {
        font-size: 1.4rem;
    }
}

/* ===== PRODUCT DESCRIPTION ===== */
.product-description {
    margin-bottom: 48px;
    padding: 32px;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    line-height: 1.9;
}

.product-description h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-description p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ===== PRODUCT IMAGES STACKED ===== */
.product-images-stacked {
    margin-bottom: 48px;
}

.product-images-stacked img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

/* ===== PRODUCT REVIEWS SECTION ===== */
.product-reviews-section {
    margin-bottom: 48px;
}

.product-reviews-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.review-item {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.review-item .review-stars {
    margin-bottom: 8px;
}

.review-item .review-comment {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 8px;
}

.review-item .review-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
}

.review-form {
    background: var(--bg-alt);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.review-form h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.star-rating-input {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    direction: ltr;
}

.star-rating-input label {
    font-size: 1.5rem;
    color: var(--border);
    cursor: pointer;
    transition: color 0.2s;
}

.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label {
    color: var(--accent);
}

.star-rating-input input {
    display: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.alert-success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

.alert-error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
/* ===== ORDER FORM: two fields side by side (first name | last name, wilaya | commune) ===== */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.form-row-2 > .form-group { min-width: 0; }
@media (max-width: 360px) {
    .form-row-2 { gap: 8px; }
    .form-row-2 .form-group input,
    .form-row-2 .form-group select { padding-left: 10px; padding-right: 10px; }
}

/* ===== ORDER FORM: delivery company with its logo ===== */
.form-group .courier-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    font-weight: 600;
}
.courier-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 32px;
    flex: 0 0 auto;
    color: var(--accent);
}
.courier-mark img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* ===== ORDER FORM: office chosen by the customer ===== */
.desk-group[hidden] { display: none; }
.desk-group .desk-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
}

/* ===== PRODUCT: sizes, and colors / sizes that are not available ===== */
.size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.size-option {
    min-width: 46px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    direction: ltr;
}
.size-option:hover { border-color: var(--accent-light); }
.size-option.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}
.size-option.unavailable,
.color-swatch.unavailable {
    cursor: not-allowed;
    opacity: 0.45;
    overflow: hidden;
}
.size-option.unavailable { color: var(--text-light); background: var(--bg-alt); }
.size-option.unavailable::after,
.color-swatch.unavailable::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 140%;
    height: 2px;
    background: #d33;
    transform: translate(-50%, -50%) rotate(-35deg);
    pointer-events: none;
}
.color-swatch.unavailable:hover { transform: none; }

/* ===== CATEGORIES (الأصناف) ===== */
/* Header menu: desktop = hover dropdown, phone = expandable list inside the ☰ menu */
.nav-cats { position: relative; }
.nav-cats-link { display: inline-flex !important; align-items: center; gap: 4px; }
.nav-cats .caret { transition: transform .25s ease; flex: none; }
.nav-cats-btn { display: none; }
.nav-cats-menu {
    position: absolute;
    top: 100%;
    right: -16px;
    padding-top: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    z-index: 1001;
}
.nav-cats:hover .nav-cats-menu,
.nav-cats:focus-within .nav-cats-menu { opacity: 1; visibility: visible; transform: none; }
.nav-cats:hover .nav-cats-link .caret { transform: rotate(180deg); }
.nav-cats-grid {
    display: grid;
    grid-template-columns: repeat(3, 120px);
    gap: 10px;
    background: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: var(--shadow-lg);
    padding: 16px 16px 10px;
    max-height: 70vh;
    overflow-y: auto;
}
.nav-cats-menu .nav-cats-all {
    display: block;
    background: #fff;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 14px 24px rgba(0,0,0,0.08);
    padding: 8px 16px 14px;
    text-align: center;
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent-dark);
}
.nav-cat { display: flex !important; flex-direction: column; align-items: center; gap: 6px; padding: 6px !important; border-radius: var(--radius); text-align: center; }
.nav-cat:hover { background: var(--bg-alt); }
.nav-cats-menu a::after { display: none !important; }
.nav-cat-img {
    width: 84px; height: 84px; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #f0ece3, #e8e2d6); font-size: 1.8rem;
    border: 2px solid var(--accent-light);
}
.nav-cat-img img { width: 100%; height: 100%; object-fit: cover; }
.nav-cat-name { font-size: .85rem; font-weight: 600; line-height: 1.3; }

@media (max-width: 768px) {
    .site-header .main-nav .nav-links { max-height: calc(100vh - 72px); overflow-y: auto; }
    .nav-cats-link { display: none !important; }
    .nav-cats-btn {
        display: flex; align-items: center; justify-content: center; gap: 6px;
        width: 100%; padding: 14px 20px; background: none; border: 0;
        border-top: 1px solid rgba(0,0,0,0.05);
        font-family: inherit; font-size: 1.1rem; font-weight: 500; color: var(--text); cursor: pointer;
    }
    .nav-cats.open .nav-cats-btn { color: var(--accent-dark); }
    .nav-cats.open .nav-cats-btn .caret { transform: rotate(180deg); }
    .nav-cats-menu {
        position: static; padding: 0; opacity: 1; visibility: visible; transform: none;
        display: none; background: var(--bg-alt);
    }
    .nav-cats.open .nav-cats-menu { display: block; }
    .nav-cats-grid {
        grid-template-columns: repeat(3, 1fr); gap: 6px;
        background: transparent; box-shadow: none; border-radius: 0; padding: 12px; max-height: none;
    }
    .nav-cats-menu .nav-cats-all { background: transparent; box-shadow: none; border-radius: 0; padding: 4px 16px 14px !important; font-size: .95rem !important; border: 0 !important; }
    .site-header .main-nav .nav-links .nav-cat { padding: 6px 2px !important; font-size: 1rem; border: 0 !important; }
    .nav-cat-img { width: 64px; height: 64px; font-size: 1.4rem; }
    .nav-cat-name { font-size: .8rem; }
}

/* Home page + categories page: category cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 230px));
    justify-content: center;
    gap: 20px;
}
.category-card {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: linear-gradient(145deg, #f0ece3, #e8e2d6);
    box-shadow: var(--shadow);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover img { transform: scale(1.06); }
.category-card .cat-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.category-card-body {
    position: absolute; inset: auto 0 0 0;
    padding: 40px 14px 14px;
    background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
    color: #fff; text-align: center;
}
.category-card-name { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.category-card-count { font-size: .8rem; opacity: .85; }
@media (max-width: 600px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .category-card-name { font-size: .95rem; }
}

/* Products page: category chips */
.category-chips {
    display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 20px;
    scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.category-chip {
    display: inline-flex; align-items: center; gap: 8px; flex: none;
    padding: 6px 16px 6px 8px; border: 1px solid var(--border); border-radius: 999px;
    font-size: .9rem; font-weight: 600; background: #fff; white-space: nowrap;
}
.category-chip.no-img { padding: 8px 18px; }
.category-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.category-chip:hover { border-color: var(--accent); }
.category-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-header .page-header-desc { color: var(--text-light); margin-top: 6px; }


/* ===================================================================
 * No blue flash when tapping a link or button on phones
 * =================================================================== */
html { -webkit-tap-highlight-color: transparent; }
*, *::before, *::after { -webkit-tap-highlight-color: transparent; }
a, button, input, select, textarea, label, [role="button"], .color-swatch, .product-color-dot { -webkit-tap-highlight-color: rgba(0,0,0,0); }
a:focus:not(:focus-visible), button:focus:not(:focus-visible), [role="button"]:focus:not(:focus-visible), .logo:focus { outline: none; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, .btn, .logo, .cart-icon, .hamburger, .color-swatch, .product-color-dot, .size-option, .radio-option { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }

/* ===================================================================
 * Product cards: color dots (1 to 4 colors), "not available" label
 * =================================================================== */
.product-card-link { display: block; }
.product-card-body { padding: 16px 18px 10px; }
a.product-card-name { display: block; }
.product-card-cta { padding: 0 18px 18px; }
.product-card-colors { flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.product-color-dot {
    position: relative;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #d6d6d6;
    background-clip: padding-box;
    appearance: none;
    -webkit-appearance: none;
    transition: box-shadow .2s ease, transform .2s ease;
}
.product-color-dot.selected { box-shadow: 0 0 0 2px var(--accent); }
.product-color-dot.unavailable { opacity: .55; cursor: pointer; }
.product-color-dot.unavailable::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 130%;
    height: 2px;
    background: #d33;
    transform: translate(-50%, -50%) rotate(-45deg);
    text-indent: 0;
}
.oos-badge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    background: rgba(26,26,26,.78);
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    text-align: center;
    padding: 7px 8px;
    pointer-events: none;
    letter-spacing: .01em;
    backdrop-filter: blur(2px);
}
.oos-badge[hidden] { display: none; }
.sale-badge {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    z-index: 3;
    background: #c62828;
    color: #fff;
    font-size: .8rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    direction: ltr;
}

/* Product page: the gallery shows «غير متوفر» on the picture of a color that is not available */
.gallery-main { position: relative; }
.gallery-main .oos-badge { font-size: 1rem; padding: 10px; }
.color-swatch.unavailable { cursor: pointer; }
.color-chosen-name { min-height: 1.4em; margin-top: 8px; font-size: .9rem; font-weight: 600; color: var(--text); }
.color-chosen-name.is-oos { color: #c62828; }

/* Cart: product photo with the color swatch on it */
.cart-item .item-image { position: relative; }
.cart-item .cart-item-photo { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-item .color-circle.on-photo { position: absolute; bottom: -4px; inset-inline-start: -4px; width: 22px; height: 22px; border: 2px solid #fff; box-shadow: 0 0 0 1px #ddd; }

/* ===================================================================
 * Promotion (animated image / video set in the admin)
 * =================================================================== */
.promo-banner { width: 100%; background: var(--bg-alt); line-height: 0; }
.promo-banner.promo-top { margin-top: 72px; }
.promo-top + .hero { margin-top: 0; }
.promo-top + .page-header { margin-top: 0; padding-top: 32px; }
.promo-banner .promo-media { width: 100%; height: auto; max-height: 420px; object-fit: contain; display: block; margin: 0 auto; }
.promo-banner .promo-link { display: block; }
.promo-popup {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: promoFade .25s ease;
}
.promo-popup[hidden] { display: none; }
.promo-popup-box { position: relative; max-width: min(520px, 100%); max-height: 86vh; line-height: 0; }
.promo-popup .promo-media { max-width: 100%; max-height: 86vh; width: auto; height: auto; border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.35); }
.promo-close {
    position: absolute;
    top: -14px;
    inset-inline-start: -14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: #fff;
    color: var(--primary);
    font-size: 24px;
    line-height: 38px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
body.promo-open { overflow: hidden; }
@keyframes promoFade { from { opacity: 0; } to { opacity: 1; } }

/* Desktop header: cart icon at the left edge (it was hidden behind the centered logo) */
@media (min-width: 769px) {
    .site-header .main-nav > .cart-icon {
        position: absolute;
        inset-inline-end: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ===================================================================
 * Discount strip (top of the home page): products slide from right to left
 * =================================================================== */
.sale-strip { padding: 22px 0 8px; background: linear-gradient(180deg, #fff5f5 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.sale-strip-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.sale-strip-title { background: #c62828; color: #fff; font-weight: 800; font-size: 1.05rem; padding: 4px 16px; border-radius: 999px; }
.sale-strip-sub { color: var(--text-light); font-size: .9rem; font-weight: 600; }

.sale-marquee {
    direction: ltr;         /* the row starts at the left edge; the cards stay RTL */
    overflow-x: auto; overflow-y: hidden;   /* native finger scrolling with momentum */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 10px 0 18px;   /* room for the card shadow and hover lift */
    cursor: grab;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.sale-marquee::-webkit-scrollbar { display: none; }
.sale-marquee.is-dragging { cursor: grabbing; -webkit-user-select: none; user-select: none; }
.sale-marquee.is-dragging .product-card { pointer-events: none; }
.sale-marquee img { -webkit-user-drag: none; }
.sale-track { display: flex; width: max-content; direction: ltr; }
.sale-group { display: flex; gap: 18px; padding-right: 18px; }
.sale-group > .product-card { direction: rtl; flex: 0 0 220px; width: 220px; }

@media (max-width: 600px) {
    .sale-strip { padding-top: 16px; }
    .sale-group { gap: 12px; padding-right: 12px; }
    .sale-group > .product-card { flex-basis: 165px; width: 165px; }
    .sale-group .product-card-body { padding: 12px 12px 6px; }
    .sale-group .product-card-cta { padding: 0 12px 12px; }
    .sale-group .product-card-price { font-size: 1rem; }
    .sale-group .product-card-price .old-price { display: block; margin: 0; font-size: .8em; line-height: 1.3; }
}
.sale-group .product-card-price span { white-space: nowrap; }

/* Landing-page images of a product (under the order form), one under the other, full width, no gaps */
.product-landing { max-width: 820px; margin: 0 auto 28px; }
.product-landing img { display: block; width: 100%; height: auto; }
/* Few discounted products: shown once each, starting from the right, no movement */
.sale-marquee.is-static { direction: rtl; cursor: default; -webkit-mask-image: none; mask-image: none; }
.sale-marquee.is-static .sale-track { direction: rtl; padding: 0 16px; margin: 0 auto; max-width: 1200px; width: auto; }


/* ===== ORDER NOW CTA (product page) ===== */
.order-now-cta {
    position: fixed;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 420px;
    padding: 15px 20px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-ar);
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(168,136,77,0.45);
    z-index: 998;
    transition: opacity .3s, transform .3s, background .3s;
    animation: order-cta-pulse 2s infinite;
}
.order-now-cta:hover { background: var(--accent-dark); color: #fff; }
.order-now-cta.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 120%);
}
@keyframes order-cta-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(168,136,77,0.45); }
    50% { box-shadow: 0 8px 32px rgba(168,136,77,0.75); }
}
.has-order-cta .whatsapp-float { bottom: 90px; }
.has-order-cta .site-footer { padding-bottom: 90px; }
