/* Fonts loaded via <link> in index.html (Rubik + Assistant, Hebrew-native) */

:root {
    /* Brand palette — faithful to original purple + orange, refined vibrant */
    --primary-color: #7C3AED;   /* was: purple  */
    --primary-dark: #5B21B6;
    --primary-light: #A78BFA;
    --secondary-color: #F97316; /* was: orange  */
    --secondary-dark: #EA580C;
    --secondary-light: #FB923C;
    --accent-color: #6a11cb;

    /* Neutrals (subtle purple tint for cohesion) */
    --text-color: #2A2342;
    --text-muted: #6B6480;
    --light-bg: #F7F5FB;
    --surface: #ffffff;
    --dark-bg: #1A1428;
    --border-color: #E7E2F2;
    --white: #ffffff;

    /* Gradients */
    --gradient-brand: linear-gradient(120deg, var(--primary-color), var(--secondary-color));
    --gradient-hero: linear-gradient(160deg, #2A1259 0%, #4C1D95 50%, #7C3AED 100%);

    /* Colored / playful shadows */
    --shadow-sm: 0 2px 10px rgba(42, 35, 66, 0.07);
    --shadow-md: 0 10px 28px rgba(42, 35, 66, 0.10);
    --shadow-lg: 0 20px 44px rgba(42, 35, 66, 0.16);
    --shadow-primary: 0 10px 30px rgba(124, 58, 237, 0.35);
    --shadow-secondary: 0 10px 30px rgba(249, 115, 22, 0.35);

    /* Radii */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.3s var(--ease-out);

    /* Typography */
    --font-heading: 'Rubik', 'Assistant', sans-serif;
    --font-body: 'Assistant', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 0;
    margin-left: 1rem;
    overflow: visible;
}

.logo-img {
    width: 50px;
    height: 50px;
    margin-left: 1rem;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    white-space: nowrap;
    overflow: visible;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 1rem;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section — redesigned: dramatic purple wash, readable solid heading */
.hero {
    position: relative;
    color: var(--white);
    text-align: center;
    margin: 0;
    width: 100%;
    padding: clamp(90px, 14vw, 150px) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    z-index: 1;
}

/* Ambient glow blobs (purple + orange) */
.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    width: 380px;
    height: 380px;
    background: var(--primary-light);
    top: -90px;
    inset-inline-start: -80px;
    animation: heroFloat 9s var(--ease-out) infinite alternate;
}

.hero::after {
    width: 420px;
    height: 420px;
    background: var(--secondary-color);
    bottom: -120px;
    inset-inline-end: -90px;
    animation: heroFloat 11s var(--ease-out) infinite alternate-reverse;
}

@keyframes heroFloat {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(0, 28px, 0); }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--dark-bg);
    background-image:
        radial-gradient(circle at 78% 18%, rgba(249, 115, 22, 0.40), transparent 42%),
        radial-gradient(circle at 18% 82%, rgba(124, 58, 237, 0.55), transparent 48%),
        linear-gradient(160deg, rgba(26, 18, 40, 0.93) 0%, rgba(76, 29, 149, 0.86) 55%, rgba(124, 58, 237, 0.80) 100%),
        url('../images/hero-3d.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.hero-badge i {
    color: var(--secondary-light);
}

.hero-content h1 {
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2rem, 5.2vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-content p {
    font-size: clamp(1.05rem, 2.4vw, 1.3rem);
    color: rgba(255, 255, 255, 0.92);
    max-width: 560px;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform var(--transition), box-shadow var(--transition),
                background-color var(--transition), filter var(--transition);
}

.btn:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

.btn:active {
    transform: translateY(-1px);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(124, 58, 237, 0.50);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
    box-shadow: var(--shadow-secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(249, 115, 22, 0.50);
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.services h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

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

.service-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
    padding-bottom: 1.5rem;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-bottom: 1.25rem;
    transition: transform var(--transition);
}

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

.service-card h3 {
    margin: 0 1.5rem 0.5rem;
    color: var(--primary-color);
    font-size: 1.35rem;
}

.service-card p {
    margin: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-card .btn {
    margin: 0 1.5rem;
    align-self: flex-start;
}

/* Contact Section */
.contact {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.contact-title {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    width: 100%;
}

.contact-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.contact-form .form-group {
    margin-bottom: 1.2rem;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s;
    outline: none;
    direction: rtl;
    text-align: right;
}

.contact-form .form-group input {
    height: 42px;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.contact-form .form-group textarea {
    height: 150px;
    resize: vertical;
    font-size: 1rem;
}

.contact-form .form-group textarea[readonly] {
    font-size: 1.4rem;
    padding: 1.5rem;
}

.contact-form .form-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.contact-form .form-submit .btn {
    font-size: 1.4rem;
    padding: 1.2rem 2.5rem;
}

.contact-form .delivery-info {
    font-size: 1.4rem;
}

@media (max-width: 768px) {
    .contact {
        padding: 2rem 0;
    }
    
    .contact-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-title::after {
        width: 80px;
        height: 3px;
        bottom: -10px;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .contact-form .form-group {
        margin-bottom: 0.8rem;
    }
    
    .contact-form .form-group input,
    .contact-form .form-group textarea {
        font-size: 1rem;
        padding: 0.7rem 1rem;
        height: 42px;
    }
    
    .contact-form .form-group input {
        height: 42px;
    }
    
    .contact-form .form-group textarea {
        height: 150px;
    }
    
    .contact-form .form-submit .btn {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }
    
    .contact-form .delivery-info {
        font-size: 1rem;
    }

    .contact-form .form-submit {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        position: relative;
        gap: 0.5rem;
    }
    
    .logo {
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
        overflow: visible;
        margin-right: auto;
        order: 1;
    }
    
    /* Fix for RTL margins in mobile */
    [dir="rtl"] .logo {
        margin-left: 0;
        margin-right: 0;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
        object-fit: contain;
        display: block;
    }
    
    .logo h1 {
        font-size: 1.2rem;
        white-space: nowrap;
        overflow: visible;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--white);
        width: 100%;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
    }
    
    .main-nav li {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-color);
        padding: 0.5rem;
        order: 3;
        margin-right: 0.5rem;
    }
    
    .cart-icon {
        margin: 0;
        order: 2;
        position: static;
    }
    
    [dir="rtl"] .cart-icon {
        margin: 0 0.5rem;
    }
}

/* Mobile Menu Toggle JS Support */
.main-nav.active {
    display: block;
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-bg {
        background-position: center center;
        background-size: cover;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-img {
        height: 220px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
        padding: 0;
    }
    
    /* שדות קלט אחידים בכל הטפסים */
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    textarea,
    .contact-form .form-group input,
    .contact-form .form-group textarea,
    .special-requests-form .form-group input,
    .special-requests-form .form-group textarea {
        font-size: 16px !important;
        padding: 0.5rem 0.7rem !important;
        height: 40px !important;
        border-radius: 6px !important;
        margin-bottom: 8px !important;
        border: 1px solid #ddd !important;
        width: 90% !important;
        box-sizing: border-box !important;
    }

    .form-group,
    .contact-form .form-group,
    .special-requests-form .form-group {
        margin-bottom: 10px !important;
        width: 100% !important;
    }

    .form-group textarea,
    .contact-form .form-group textarea,
    .special-requests-form .form-group textarea {
        height: 120px !important;
        resize: vertical !important;
        width: 90% !important;
    }

    /* כפתורי שליחה אחידים */
    .form-submit .btn,
    .contact-form .form-submit .btn,
    .special-requests-form .form-submit .btn {
        width: 90% !important;
        font-size: 16px !important;
        padding: 0.8rem 1rem !important;
        border-radius: 6px !important;
        margin-top: 10px !important;
    }
    
    /* גודל כותרות שדות דומה */
    .contact-form label,
    .special-requests-form label {
        font-size: 14px;
        margin-bottom: 4px;
        display: block;
    }
    
    /* תיקון למעברי שורה ברשימת מוצרים */
    .product-list-item {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 5px;
    }
    
    /* תיקון לטופס הזמנה במובייל */
    .contact-form .delivery-info {
        margin-top: 15px;
        width: 100%;
    }
    
    .contact-form .row {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .contact-form .form-group {
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* Footer Styles */
.footer {
    background-color: var(--dark-bg);
    background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    background-repeat: no-repeat;
    background-size: 100% 4px;
    background-position: top center;
    color: #fff;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.contact-info {
    text-align: center;
}

.contact-info h3 {
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.7rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--secondary-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Scroll reveal — JS adds .reveal to below-the-fold elements, then .is-visible */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.services-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.services-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background: rgba(26, 20, 40, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    margin: 60px auto;
    padding: 40px 30px 30px 30px;
    border-radius: 12px;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    position: relative;
    animation: fadeIn 0.4s;
}

.close-modal {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}
.close-modal:hover {
    color: var(--secondary-color);
}

@media (max-width: 600px) {
    .modal-content {
        padding: 25px 10px 20px 10px;
        max-width: 95vw;
    }
}

/* About Section */
.about {
    padding: 60px 0;
    background-color: var(--light-bg);
}

.about h2 {
    text-align: center;
    margin-bottom: 30px;
    display: block;
    width: 100%;
    color: var(--primary-color);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-family: var(--font-heading);
    font-weight: 700;
}

.about p {
    font-size: 1.2rem;
    line-height: 1.9;
    margin: 0 auto;
    max-width: 820px;
    text-align: center;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-color);
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.about-highlight {
    background: #e6f0fa;
    color: #1a365d;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(66,153,225,0.07);
    margin: 0 2px;
    display: inline-block;
    transition: background 0.3s;
}
.about-strong {
    color: #4299e1;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

[dir="rtl"] .main-nav ul {
    padding-right: 0;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
    margin-left: 0;
    margin-right: 0;
}

/* Category Modal Styles */
.category-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 20, 40, 0.72);
    z-index: 1000;
    overflow-y: auto;
}

.category-modal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 4px 32px rgba(0,0,0,0.18);
    width: 90vw;
    max-width: 1100px;
    margin: 3rem auto;
    direction: rtl;
}

@media (max-width: 768px) {
    .category-modal .modal-content {
        padding: 1rem;
        max-width: 98vw;
        margin: 1rem auto;
    }
}

.category-modal .close-modal {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
    transition: color 0.3s;
    z-index: 10;
}

.category-modal .close-modal:hover {
    color: var(--accent-color);
}

[dir="rtl"] .category-modal .close-modal {
    left: auto;
    right: 1rem;
}

/* RTL Support for Modal */
[dir="rtl"] .category-modal .modal-content {
    text-align: right;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 20px auto;
        padding: 1rem;
        width: 95%;
    }
}

/* Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-left: 0;
    margin-right: -2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Cart Modal */
#cart-items {
    max-height: 400px;
    overflow-y: auto;
    margin: 1rem 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 6px;
    margin-left: 10px;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}

.cart-item-name {
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    font-weight: 500;
    color: var(--accent-color);
}

.cart-item-remove {
    cursor: pointer;
    color: #f44336;
    padding: 0.3rem;
    transition: color 0.2s;
    margin-right: auto;
}

.cart-item-remove:hover {
    color: #d32f2f;
}

.cart-total {
    margin-top: 1.5rem;
    font-weight: bold;
    text-align: left;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .cart-item {
        padding: 0.6rem;
    }
    
    .cart-item-image {
        width: 40px;
        height: 40px;
    }
    
    .cart-item-name,
    .cart-item-price {
        font-size: 0.9rem;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cart-actions button {
        width: 100%;
    }
}

/* RTL Support */
[dir="rtl"] .cart-icon {
    margin-left: 0;
    margin-right: 0;
}

[dir="rtl"] .cart-count {
    right: auto;
    left: -8px;
}

[dir="rtl"] .cart-total {
    text-align: right;
}

[dir="rtl"] .cart-actions {
    justify-content: flex-start;
}

/* Notifications */
/* ===== Toast notifications: stacked container so they never overlap ===== */
.notification-container {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    max-width: 92vw;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}

.notification {
    pointer-events: auto;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
    max-width: 92vw;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
    animation: notifIn 0.28s ease-out;
    direction: rtl;
}

.notification.success { background-color: #2ecc71; }
.notification.error   { background-color: #e74c3c; }
.notification.warning { background-color: #f39c12; }

@keyframes notifIn {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== Order confirmation modal ===== */
.order-confirmation-content {
    max-width: 480px !important;
    text-align: center;
    padding-top: 3rem;
}

[dir="rtl"] .order-confirmation-content { text-align: center; }

.confirmation-check {
    font-size: 4.2rem;
    line-height: 1;
    color: #2ecc71;
    margin-bottom: 0.5rem;
    animation: confirmPop 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes confirmPop {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.18); }
    100% { transform: scale(1); opacity: 1; }
}

.order-confirmation-content h2 {
    margin: 0.25rem 0 0.75rem;
    color: var(--text-color);
}

.confirmation-lead {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.6rem;
}

.confirmation-text {
    color: #5b5470;
    line-height: 1.65;
    margin-bottom: 1.1rem;
}

.confirmation-note {
    font-size: 0.92rem;
    color: #7a7390;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.confirmation-phone {
    display: inline-block;
    margin-top: 0.25rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    direction: ltr;
}

.confirmation-phone:hover { text-decoration: underline; }

.confirmation-ok {
    min-width: 180px;
}

/* Section Headers */
section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    width: 100%;
    color: var(--primary-color);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.contact-title,
.section-title,
section h2 {
    text-align: center;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    width: 100%;
}

.contact-title::after,
.section-title::after,
section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 5px;
    border-radius: var(--radius-pill);
    background: var(--gradient-brand);
}

@media (max-width: 768px) {
    section h2,
    .contact-title,
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    section h2::after,
    .contact-title::after,
    .section-title::after {
        width: 80px;
        height: 3px;
        bottom: -10px;
    }
}

/* Product Cards */
.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    display: block;
    margin-bottom: 15px;
}

.product-card {
    --glow: 124, 58, 237; /* dominant colour (rgb triplet), set per-card by JS */
    position: relative;
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    will-change: transform;
    /* transform is animated by JS (live tilt); CSS owns the rest */
    transition: box-shadow var(--transition), border-color var(--transition);
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Theme-coloured glow keyed to the product image; mouse users also get a live
   3D tilt layered on by JS, reduced-motion keeps the lift alone. */
.product-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 18px 40px -14px rgba(var(--glow), .5),
        0 5px 14px rgba(var(--glow), .24);
    border-color: rgba(var(--glow), .5);
}

.product-card h3 {
    margin: 0 15px 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.product-card p {
    margin: 0 15px 15px;
    color: var(--text-color);
    font-size: 0.9rem;
    flex-grow: 1;
}

.product-price {
    font-weight: bold;
    color: var(--accent-color);
    margin: 0 15px 15px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin: 0 15px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform:scale(0.1)} 
    to {transform:scale(1)}
}

.close-image-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-image-modal:hover {
    color: var(--secondary-color);
}

/* Add cursor pointer to product images */
.product-img {
    cursor: pointer;
    transition: opacity 0.3s;
}

.product-img:hover {
    opacity: 0.9;
}

/* RTL support for image modal */
[dir="rtl"] .close-image-modal {
    right: auto;
    left: 35px;
}

/* Form styles */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1.4rem;
}

.form-group textarea {
    height: 300px;
    resize: vertical;
}

.form-group textarea[readonly] {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    cursor: default;
    font-family: 'Assistant', sans-serif;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.4rem;
    padding: 1.5rem;
}

/* No Products Message */
.no-products {
    width: 100%;
    padding: 40px 20px;
    background-color: var(--light-bg);
    border-radius: 8px;
    text-align: center;
    grid-column: 1 / -1;
}

.no-products p {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Success Icon */
.success-icon {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: white;
    color: #4CAF50; /* צבע ירוק */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 1000;
}

.success-icon i {
    font-size: 30px;
}

.success-icon.show {
    opacity: 1;
    transform: scale(1);
}

/* עבור RTL */
html[dir="rtl"] .success-icon {
    right: 20px;
    left: auto;
}

/* Custom Request Section */
.custom-request {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    text-align: center;
}

.custom-request h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.custom-request p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.custom-request .btn {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
}

@media (max-width: 768px) {
    .form-submit {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .delivery-info {
        margin-top: 0.5rem;
    }
}

/* Special Requests Section */
.special-requests {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.special-requests .section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.special-requests-content {
    max-width: 800px;
    margin: 0 auto;
}

.special-requests .custom-request {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.special-requests .custom-request h3,
.special-requests .custom-request p {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.special-requests .custom-request p:last-of-type {
    margin-bottom: 2rem;
}

.special-requests-form {
    margin-top: 2.5rem;
    text-align: center;
}

.special-requests-form .form-group {
    margin-bottom: 1.2rem;
}

.special-requests-form .form-group input,
.special-requests-form .form-group textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
    transition: border-color 0.3s;
    outline: none;
    direction: rtl;
    text-align: right;
}

.special-requests-form .form-group input {
    height: 42px;
}

.special-requests-form .form-group textarea {
    height: 150px;
    resize: vertical;
}

.special-requests-form .form-group input:focus,
.special-requests-form .form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.special-requests-form .form-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.special-requests-form .form-submit .btn {
    font-size: 1.4rem;
    padding: 1.2rem 2.5rem;
}

@media (max-width: 768px) {
    .special-requests {
        padding: 2rem 0;
    }
    
    .special-requests .custom-request {
        padding: 1.5rem;
    }
    
    .special-requests .custom-request h3 {
        font-size: 1.3rem;
    }
    
    .special-requests .custom-request p {
        font-size: 1rem;
    }
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.payment-option {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
}

.payment-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.payment-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.qr-section, .phone-section {
    text-align: center;
    width: 100%;
}

.qr-code-container {
    margin: 1rem auto;
}

.qr-code {
    width: 180px;
    height: 180px;
    border: 1px solid #ddd;
    border-radius: 8px;
    object-fit: contain;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0.5rem 0;
}

.total-amount {
    font-size: 1.2rem;
    margin-top: 0.5rem;
    color: var(--accent-color);
    font-weight: bold;
}

.back-button {
    margin-top: 1.5rem;
}

.payment-note {
    text-align: center;
    margin-top: 1.5rem;
    padding: 1rem;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.payment-note button {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .payment-details {
        flex-direction: column;
    }
    
    .qr-section, .phone-section {
        width: 100%;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
    
    .phone-number {
        font-size: 1.2rem;
    }
}

/* Payment Instructions in Cart */
.payment-instructions {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: center;
    border: 1px dashed var(--primary-color);
}

.payment-instructions p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.payment-instructions p:last-child {
    margin-bottom: 0;
    color: var(--accent-color);
    font-weight: 500;
}

.payment-phone {
    font-weight: bold;
    color: var(--primary-color);
}

/* Payment Reminder in Order Form */
.payment-reminder {
    background-color: #fff3e0;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2.5rem;
    text-align: center;
    border-right: 4px solid var(--secondary-color);
}

.payment-reminder p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.payment-reminder p:first-child {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.payment-reminder p:last-child {
    margin-bottom: 0;
    color: var(--primary-color);
    font-weight: 500;
}

#order-total-amount {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .payment-instructions p,
    .payment-reminder p {
        font-size: 1rem;
    }
    
    .payment-reminder {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .payment-instructions {
        padding: 1rem;
    }
}

/* Payment Actions */
.payment-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1rem;
}

@media (max-width: 768px) {
    .payment-actions {
        flex-direction: column;
    }
    
    .payment-actions button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .product-img {
        height: 140px;
    }
    
    .product-card h3 {
        font-size: 1rem;
        margin: 0.5rem 0;
    }
    
    .product-card p {
        font-size: 0.9rem;
    }
    
    .product-card .product-price {
        font-size: 1.1rem;
    }
    
    .product-card .btn {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
    }
    
    /* Responsive Footer */
    .footer-content {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-bg {
        background-position: center center;
        background-size: cover;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .product-img {
        height: 120px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
        padding: 0;
    }
    
    /* שדות קלט אחידים בכל הטפסים */
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    textarea,
    .contact-form .form-group input,
    .contact-form .form-group textarea,
    .special-requests-form .form-group input,
    .special-requests-form .form-group textarea {
        font-size: 16px !important;
        padding: 0.5rem 0.7rem !important;
        height: 40px !important;
        border-radius: 6px !important;
        margin-bottom: 8px !important;
        border: 1px solid #ddd !important;
        width: 90% !important;
        box-sizing: border-box !important;
    }

    .form-group,
    .contact-form .form-group,
    .special-requests-form .form-group {
        margin-bottom: 10px !important;
        width: 100% !important;
    }

    .form-group textarea,
    .contact-form .form-group textarea,
    .special-requests-form .form-group textarea {
        height: 120px !important;
        resize: vertical !important;
        width: 90% !important;
    }

    /* כפתורי שליחה אחידים */
    .form-submit .btn,
    .contact-form .form-submit .btn,
    .special-requests-form .form-submit .btn {
        width: 90% !important;
        font-size: 16px !important;
        padding: 0.8rem 1rem !important;
        border-radius: 6px !important;
        margin-top: 10px !important;
    }
    
    /* גודל כותרות שדות דומה */
    .contact-form label,
    .special-requests-form label {
        font-size: 14px;
        margin-bottom: 4px;
        display: block;
    }
    
    /* תיקון למעברי שורה ברשימת מוצרים */
    .product-list-item {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: 5px;
    }
    
    /* תיקון לטופס הזמנה במובייל */
    .contact-form .delivery-info {
        margin-top: 15px;
        width: 100%;
    }
    
    .contact-form .row {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .contact-form .form-group {
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}

/* תיקון לכותרת העגלה */
.category-modal h2 {
    position: relative;
    margin-top: 0;
    padding-top: 0;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
}

[dir="rtl"] .category-modal h2 {
    padding-left: 0;
    padding-right: 2.5rem;
}

/* Modal Content on Mobile */
@media (max-width: 768px) {
    .category-modal .modal-content {
        padding: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    /* Improve scroll behavior */
    .category-modal .modal-content::-webkit-scrollbar {
        width: 6px;
    }
    
    .category-modal .modal-content::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }
    
    .category-modal .modal-content::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 10px;
    }
    
    /* Optimize images in the modal */
    .category-modal .product-img {
        transition: transform 0.2s;
    }
    
    .category-modal .product-img:active {
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .logo {
        margin-left: 0.5rem;
        margin-right: 0;
        flex-direction: row-reverse;
    }
    
    .logo {
        position: relative;
        right: auto;
        left: auto;
    }
    
    .logo h1 {
        font-size: 1.2rem;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero-bg {
        background-color: var(--dark-bg);
        background-image:
            radial-gradient(circle at 80% 15%, rgba(249, 115, 22, 0.40), transparent 45%),
            radial-gradient(circle at 15% 85%, rgba(124, 58, 237, 0.55), transparent 50%),
            linear-gradient(160deg, rgba(26, 18, 40, 0.94) 0%, rgba(76, 29, 149, 0.88) 55%, rgba(124, 58, 237, 0.82) 100%),
            url('../images/hero-3d-mobile.jpg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .hero-buttons .btn {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        width: 100%;
    }
}

/* התאמה לטאבלט */
@media (min-width: 769px) and (max-width: 1023px) {
    .hero {
        padding: 100px 0;
    }
    
    .hero-bg {
        background-position: center center;
    }
}

/* התאמה למחשב */
@media (min-width: 1024px) {
    .hero {
        padding: 100px 0;
    }
    
    .hero-bg {
        background-position: center center;
    }
}

/* התאמה למסכים גדולים */
@media (min-width: 1440px) {
    .hero {
        padding: 100px 0;
    }
    
    .hero-bg {
        background-position: center center;
    }
}

/* התאמה ספציפית לאייפון ומסכים קטנים */
@media only screen 
and (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero-bg {
        background-position: center center;
        background-size: cover;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
}

.category-modal .product-card {
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    margin-bottom: 15px;
    padding: 0;
}

.category-modal .product-img {
    width: 100%;
    margin-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.category-modal .product-card h3 {
    margin: 10px 8px 5px 8px;
    font-size: 1rem;
}

.category-modal .product-card p {
    margin: 0 8px 5px 8px;
    font-size: 0.9rem;
}

.category-modal .product-price {
    font-weight: 700;
    margin: 5px 8px;
    font-size: 1.1rem;
}

.category-modal .product-actions {
    padding: 0 8px 10px 8px;
}

.category-modal .product-actions .btn {
    font-size: 0.9rem;
    padding: 6px 12px;
    width: 100%;
}

@media (max-width: 480px) {
    .category-modal .product-card h3 {
        font-size: 0.9rem;
        margin: 8px 6px 4px 6px;
    }
    
    .category-modal .product-card p {
        font-size: 0.8rem;
        margin: 0 6px 4px 6px;
    }
    
    .category-modal .product-price {
        font-size: 1rem;
        margin: 4px 6px;
    }
    
    .category-modal .product-actions {
        padding: 0 6px 8px 6px;
    }
    
    .category-modal .product-actions .btn {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}

/* הצהרת נגישות */
.accessibility-statement {
    padding: 60px 0;
    background-color: var(--light-bg);
    margin-top: 3rem;
}

/* סגנון מודאל הנגישות */
.accessibility-content {
    max-width: 800px !important;
    padding: 2.5rem !important;
}

.accessibility-content h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.accessibility-content h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.accessibility-content h3 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.accessibility-content p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.accessibility-content ul {
    padding-right: 2rem;
    margin-bottom: 1.5rem;
}

.accessibility-content li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.accessibility-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.accessibility-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .accessibility-content {
        padding: 1.5rem !important;
    }
    
    .accessibility-content h2 {
        font-size: 1.8rem;
    }
    
    .accessibility-content h3 {
        font-size: 1.3rem;
    }
    
    .accessibility-content p, 
    .accessibility-content li {
        font-size: 1rem;
    }
} 
/* ===================================================================
   בורר צבעים למוצרים — כפתור "בחר צבע" + חלון צף (popover)
   color-picker.js + products-config.js
   =================================================================== */

/* עוטף ממרכז את הכפתור בתוך הכרטיס */
.color-picker {
    text-align: center;
    margin: 2px 0 14px;
}

/* ----- כפתור הפותח את חלון הצבעים, יושב בתוך כרטיס המוצר ----- */
.color-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    padding: 9px 14px;
    width: auto;
    max-width: 100%;
    background: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-pill);
    color: var(--text-color, #2A2433);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.color-trigger:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.color-trigger:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

.color-trigger[aria-expanded="true"] {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* העיגול הקטן שמראה את הצבע הנבחר כרגע */
.color-trigger-dot {
    width: 18px;
    height: 18px;
    border-radius: var(--radius-pill);
    background-color: var(--swatch, #ccc);
    border: 1px solid rgba(0, 0, 0, 0.18);
    flex: 0 0 auto;
    box-shadow: inset 0 0 0 2px var(--white);
}

.color-trigger-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.color-trigger-caret {
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.color-trigger[aria-expanded="true"] .color-trigger-caret {
    transform: rotate(180deg);
}

/* ----- שכבת רקע חצי-שקופה מאחורי החלון ----- */
.color-popover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3900;
    background: rgba(20, 12, 38, 0.14);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.color-popover-backdrop.show {
    opacity: 1;
}

/* ----- החלון הצף עצמו (נטען על document.body, position:fixed) ----- */
.color-popover {
    position: fixed;
    z-index: 4000;
    width: 300px;
    max-width: calc(100vw - 24px);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg, 18px);
    box-shadow: 0 18px 50px rgba(20, 12, 38, 0.28), 0 4px 14px rgba(20, 12, 38, 0.12);
    padding: 16px;
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top center;
    transition: opacity 0.16s ease, transform 0.16s ease;
    pointer-events: none;
}

.color-popover.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* החלון עצמו ממוקד בפתיחה — בלי טבעת מיקוד עליו (הוא ברור ויזואלית);
   הכפתורים והצבעים בתוכו שומרים על טבעת מיקוד משלהם */
.color-popover:focus,
.color-popover:focus-visible {
    outline: none;
}

.color-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.color-popover-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color, #2A2433);
}

.color-popover-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: var(--radius-pill);
    background: var(--surface, #F5F2FB);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: background var(--transition), color var(--transition);
}

.color-popover-close:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.color-popover-close:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

/* רשת הצבעים בתוך החלון */
.color-swatches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 6px;
}

/* כל תא = עיגול צבע + שם הצבע מתחתיו */
.color-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 2px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md, 12px);
    cursor: pointer;
    font-family: inherit;
    transition: background var(--transition);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.color-cell:hover {
    background: var(--surface, #F5F2FB);
}

.color-cell:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 1px;
}

.color-swatch {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    background-color: var(--swatch, #ccc);
    border: 1px solid rgba(0, 0, 0, 0.12);
    transition: transform var(--transition), box-shadow var(--transition);
}

.color-cell:hover .color-swatch {
    transform: translateY(-2px);
}

.color-cell-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.2;
}

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

.color-cell.is-selected .color-cell-name {
    color: var(--primary-color);
}

/* צבע לא זמין — מופיע אבל אפור, מסומן בקו, ולא ניתן לבחירה */
.color-cell.is-unavailable {
    cursor: not-allowed;
}

.color-cell.is-unavailable .color-swatch {
    filter: grayscale(0.75);
    opacity: 0.5;
}

.color-cell.is-unavailable:hover .color-swatch {
    transform: none;
}

.color-cell.is-unavailable .color-cell-name {
    opacity: 0.6;
}

.color-cell.is-unavailable .color-swatch::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to top left,
        transparent 43%, rgba(176, 0, 0, 0.85) 46%,
        rgba(176, 0, 0, 0.85) 54%, transparent 57%);
}

.color-unavailable-note {
    margin-top: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #b00020;
    text-align: center;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity var(--transition), max-height var(--transition);
}

.color-unavailable-note.show {
    opacity: 1;
    max-height: 2.4em;
}

/* כשכל הצבעים אזלו */
.product-card.product-unavailable .product-img {
    filter: grayscale(0.6);
    opacity: 0.8;
}

/* שורת הצבע בתוך עגלת הקניות */
.cart-item-color {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* אנימציית "נדנוד" קלה כשלוחצים על צבע שאינו זמין */
@keyframes swatch-nudge {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

.color-cell.nudge .color-swatch {
    animation: swatch-nudge 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
    .color-trigger,
    .color-trigger-caret,
    .color-popover,
    .color-popover-backdrop,
    .color-cell,
    .color-swatch,
    .color-cell.nudge .color-swatch,
    .color-unavailable-note {
        transition: none;
        animation: none;
    }
}

/* ============================================================
   ENHANCEMENTS v4.5 — featured strip, product badges,
   fly-to-cart, how-it-works band, floating WhatsApp button
   ============================================================ */

/* --- shared section kicker / eyebrow --- */
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    margin-bottom: .9rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .85rem;
    color: var(--primary-dark);
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.18);
    border-radius: var(--radius-pill);
}
.section-kicker i { color: var(--secondary-color); }
.section-sub {
    max-width: 560px;
    margin: 18px auto 0;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.6;
}

/* --- Featured products --- */
.featured {
    padding: 80px 0 70px;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(124, 58, 237, 0.06), transparent 55%),
        radial-gradient(120% 120% at 0% 100%, rgba(249, 115, 22, 0.06), transparent 55%),
        var(--surface);
}
.featured .container { text-align: center; }

/* --- Infinite horizontal scroller (marquee) --- */
.featured-strip {
    position: relative;
    margin-top: 38px;
}
.featured-strip::before,
.featured-strip::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(28px, 7vw, 72px);
    z-index: 3;
    pointer-events: none;
}
.featured-strip::before {
    left: 0;
    background: linear-gradient(to right, var(--surface), rgba(255, 255, 255, 0));
}
.featured-strip::after {
    right: 0;
    background: linear-gradient(to left, var(--surface), rgba(255, 255, 255, 0));
}
.featured-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    padding: 24px 4px 46px;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.featured-scroller::-webkit-scrollbar { display: none; }
.featured-scroller.dragging { cursor: grabbing; }
.featured-track {
    display: flex;
    gap: 26px;
    width: max-content;
}
.featured-track img { -webkit-user-drag: none; user-drag: none; }
.featured-card {
    --glow: 124, 58, 237; /* per-card dominant colour (rgb triplet), set by JS */
    position: relative;
    flex: 0 0 clamp(220px, 26vw, 280px);
    text-align: start;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    will-change: transform;
    /* transform is animated by JS (live tilt); CSS owns the rest */
    transition: box-shadow var(--transition), border-color var(--transition), opacity var(--transition);
}
/* Hover-highlight: spotlight the hovered card, gently dim its neighbours */
.featured-scroller:hover .featured-card { opacity: .5; }
.featured-scroller .featured-card:hover { opacity: 1; }
/* Theme-coloured glow. Mouse users also get a 3D tilt layered on by JS;
   keyboard focus + reduced-motion fall back to this lift alone. */
.featured-card:hover,
.featured-card:focus-visible {
    transform: translateY(-8px);
    box-shadow:
        0 18px 44px -12px rgba(var(--glow), .5),
        0 6px 16px rgba(var(--glow), .26);
    border-color: rgba(var(--glow), .55);
    outline: none;
}
.featured-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--light-bg);
}
.featured-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s var(--ease-out);
}
.featured-card:hover .featured-media img { transform: scale(1.06); }
.featured-cat {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 2;
    padding: .35rem .85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .78rem;
    color: #fff;
    background: rgba(26, 20, 40, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius-pill);
}
.featured-body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
}
.featured-body h3 {
    margin: 0;
    font-size: 1.18rem;
    color: var(--text-color);
}
.featured-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: .9rem;
}
.featured-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary-color);
}
.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: .92rem;
    color: var(--secondary-dark);
    transition: gap var(--transition);
}
.featured-card:hover .featured-cta { gap: .75rem; }

/* --- Product badges (injected by enhancements.js) --- */
.product-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 3;
    padding: .32rem .72rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .2px;
    color: #fff;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(42, 35, 66, 0.18);
    pointer-events: none;
}
.badge-new { background: linear-gradient(120deg, var(--secondary-color), var(--secondary-dark)); }
.badge-colors {
    background: var(--surface);
    color: var(--primary-dark);
    border: 1px solid var(--primary-light);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.16);
}
.badge-colors i { margin-inline-end: .28rem; color: var(--primary-color); }

/* --- How it works --- */
.how-it-works {
    padding: 80px 0;
    background: var(--light-bg);
}
.how-it-works .container { text-align: center; }
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 46px;
}
.step-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px 22px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.step-num {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    background: var(--gradient-brand);
    border-radius: 50%;
    box-shadow: var(--shadow-primary);
}
.step-icon {
    font-size: 1.9rem;
    color: var(--primary-color);
    margin-bottom: .85rem;
}
.step-card h3 { margin: 0 0 .5rem; font-size: 1.12rem; color: var(--text-color); }
.step-card p { margin: 0; font-size: .92rem; color: var(--text-muted); line-height: 1.6; }

/* --- Floating WhatsApp button --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    z-index: 900;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 1.7rem;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
    transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    z-index: -1;
    animation: waPulse 2.4s ease-out infinite;
}
.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 14px 32px rgba(37, 211, 102, 0.55);
    color: #fff;
}
@keyframes waPulse {
    0%   { transform: scale(1);   opacity: .55; }
    70%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* --- Fly to cart --- */
.fly-clone {
    position: fixed;
    z-index: 1500;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    will-change: transform, opacity;
}
.cart-icon.cart-bounce { animation: cartBounce .5s var(--ease-out); }
@keyframes cartBounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.28); }
    55%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .featured-card { flex-basis: 76vw; max-width: 300px; }
    .featured-track { gap: 16px; }
    .steps-grid { grid-template-columns: 1fr; gap: 36px; }
    .whatsapp-float {
        width: 52px; height: 52px; font-size: 1.5rem;
        bottom: 18px; inset-inline-start: 18px;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float::before { animation: none; }
    .cart-icon.cart-bounce { animation: none; }
    .featured-card:hover .featured-media img { transform: none; }
    .fly-clone { display: none; }
}

/* ============================================================
   ENHANCEMENTS v4.6 — scroll-reveal stagger, header scroll
   state, scroll-to-top button, empty-cart badge
   ============================================================ */

/* --- Sticky header: condensed/blurred state once scrolled --- */
.header {
    transition: box-shadow var(--transition), background-color var(--transition);
}
.header.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.82);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
}

/* --- Scroll-to-top button (opposite corner from WhatsApp) --- */
.scroll-top {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: 900;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    background: var(--gradient-brand);
    box-shadow: var(--shadow-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.9);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
}
.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.scroll-top:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-lg); }

/* --- Cart count: collapse when empty --- */
.cart-count { transition: opacity var(--transition), transform var(--transition); }
.cart-count.is-empty { opacity: 0; transform: scale(0); pointer-events: none; }

/* --- Staggered reveal for the steps grid --- */
.steps-grid .reveal:nth-child(2) { transition-delay: .08s; }
.steps-grid .reveal:nth-child(3) { transition-delay: .16s; }
.steps-grid .reveal:nth-child(4) { transition-delay: .24s; }

@media (max-width: 600px) {
    .scroll-top { width: 46px; height: 46px; bottom: 18px; inset-inline-end: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-top, .header { transition: opacity var(--transition); transform: none; }
    .scroll-top.show { transform: none; }
    .header.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: var(--white);
    }
}
