/* 
    Selah - Premium Judaica Landing Page
    Colors:
    - Primary: #2C1E16 (Dark Brown)
    - Gold: #B89947 (Gold)
    - Background: #FDFBF7 (Bone White)
*/

:root {
    --primary-color: #2C1E16;
    --gold-color: #B89947;
    --gold-hover: #C5A059;
    --bg-color: #FDFBF7;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --text-muted: #665C54;
    --header-height: 80px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Cinzel', serif;
    --space: 1rem;
    --radius: 6px;
    --tap: 44px;
    --transition-standard: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-soft: 0 4px 20px rgba(44, 30, 22, 0.08);
    --shadow-elevated: 0 10px 40px rgba(44, 30, 22, 0.12);
}

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

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, .logo-text {
    font-family: var(--font-display);
    font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 5vw, 3.2rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.8rem); margin-bottom: 0.8rem; }

p { font-weight: 300; }

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

ul { list-style: none; }

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

.logo-text {
    font-size: 1.8rem;
    letter-spacing: 0.15em;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 5px;
}

.logo-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-color);
    transform: scaleX(0.7);
    transform-origin: left;
}

/* Header */
.site-top {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-color, #fdfbf7);
}

header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    top: auto;
    z-index: 1;
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition-standard);
    border-bottom: 1px solid rgba(184, 153, 71, 0.1);
}

header.scrolled {
    height: 70px;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 768px) {
    header.scrolled {
        height: var(--header-height); /* Keep consistent height on mobile to prevent gaps */
    }
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
}

.nav-menu ul li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    color: var(--primary-color);
    position: relative;
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-color);
    transition: var(--transition-standard);
}

.nav-menu ul li a:hover::after {
    width: 100%;
}

.nav-menu ul li a:hover {
    color: var(--gold-color);
}

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

.cart-icon-container {
    position: relative;
    cursor: pointer;
    transition: var(--transition-standard);
    min-width: var(--tap);
    min-height: var(--tap);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (hover: hover) {
    .cart-icon-container:hover {
        color: var(--gold-color);
        transform: scale(1.1);
    }
}

#cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--gold-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    line-height: 1;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    min-width: var(--tap);
    min-height: var(--tap);
    align-items: center;
    justify-content: center;
    padding: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--gold-color);
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    padding: 4rem 2rem;
    background: radial-gradient(circle at 100% 0%, rgba(184, 153, 71, 0.05) 0%, transparent 50%);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1.2s ease-out;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: var(--shadow-elevated);
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border: 1px solid var(--gold-color);
    top: -20px;
    left: -20px;
    z-index: -1;
}

.hero-image::after {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border: 1px solid var(--gold-color);
    bottom: -20px;
    right: -20px;
    z-index: -1;
}

.hero-content {
    max-width: 500px;
    animation: slideUp 1s ease-out;
}

.hero-badge {
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--gold-color);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--gold-color);
}

.hero-title {
    line-height: 1.1;
    color: var(--primary-color);
    font-size: clamp(1.75rem, 5vw, 3.2rem);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-standard);
    min-height: var(--tap);
}

.btn-gold {
    background-color: var(--gold-color);
    color: var(--white);
}

.btn-dark {
    background-color: var(--primary-color);
    color: var(--white);
    width: 100%;
}

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

@media (hover: hover) {
    .btn-gold:hover {
        background-color: var(--gold-hover);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(184, 153, 71, 0.3);
    }

    .btn-dark:hover {
        background-color: #4A3B3B;
        transform: translateY(-2px);
    }

    .btn-outline:hover {
        background: rgba(184, 153, 71, 0.1);
        transform: translateY(-3px);
    }
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
    background-color: var(--primary-color);
    color: var(--white);
}

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

.benefit-card {
    text-align: center;
}

.benefit-icon {
    color: var(--gold-color);
    margin-bottom: 1.5rem;
    transform: scale(1.5);
}

.benefit-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--gold-color);
}

.benefit-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Catalog Section */
.catalog {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.separator-gold {
    width: 60px;
    height: 3px;
    background: var(--gold-color);
    margin: 1.5rem auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.product-card {
    background: var(--card-bg);
    border-bottom: 3px solid transparent;
    transition: var(--transition-standard);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-img {
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
    background: #F0EEEA;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-standard);
}

@media (hover: hover) {
    .product-card:hover .product-img img {
        transform: scale(1.08);
    }

    .product-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-elevated);
        border-bottom-color: var(--gold-color);
    }
}

.product-info {
    padding: 2rem 1.5rem;
    text-align: center;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

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

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-logo .logo-text {
    color: var(--white);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.footer-logo p {
    opacity: 0.7;
    font-size: 0.95rem;
}

.footer-grid h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold-color);
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links ul li a {
    font-size: 0.95rem;
    opacity: 0.8;
    transition: var(--transition-standard);
    display: inline-block;
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--gold-color);
    padding-left: 5px;
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact p i {
    width: 20px;
    height: 20px;
    color: var(--gold-color);
    flex-shrink: 0;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition-standard);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a i, 
.social-icons a svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.social-icons a:hover {
    opacity: 1;
    color: var(--gold-color);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

/* Marca de agua ortodoxa — Magen David · @vini.ltc · BH */
.selah-watermark {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    max-width: 720px;
    margin: 1.25rem auto 0;
    padding: 0.85rem 1.25rem 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: left;
}
.selah-watermark .magen-david {
    flex-shrink: 0;
    color: #B89947;
    margin-top: 2px;
}
.selah-watermark a {
    color: #B89947;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.selah-watermark a:hover {
    color: #d4b56a;
}
.selah-watermark p {
    margin: 0;
    opacity: 1;
    font-size: inherit;
}

@media (max-width: 600px) {
    .selah-watermark {
        font-size: 0.72rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-logo .logo-text::after {
        left: 50%;
        transform: translateX(-50%) scaleX(0.7);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        padding-top: var(--header-height);
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-standard);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }

    .logo-text {
        font-size: 1.45rem;
    }

    .logo-text::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .container {
        padding: 0 1.2rem;
        width: 100%;
        max-width: 100%;
    }

    .hero {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 2rem 1.2rem;
        min-height: auto;
    }

    .hero-image {
        order: -1;
        width: 80%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-image::before,
    .hero-image::after {
        display: none;
    }

    .hero-image img {
        max-height: 300px;
        object-fit: contain;
    }

    .hero-content {
        order: 0;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.5rem 1.2rem;
        margin: 0 auto 1rem;
        display: inline-block;
        width: fit-content;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }

    .benefits {
        padding: 3rem 1rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-card {
        padding: 1.5rem;
        text-align: center;
    }

    .benefit-icon {
        margin: 0 auto 1rem;
    }

    .catalog {
        padding: 3rem 1rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .catalog-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.8rem;
        margin-bottom: 2rem;
        padding-bottom: 0.35rem;
        scrollbar-width: none;
    }

    .catalog-filters::-webkit-scrollbar {
        display: none;
    }

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

    .product-card {
        padding: 0;
    }

    .product-info {
        padding: 1rem 0.75rem 1.1rem;
    }

    .product-card .product-info h3 {
        font-size: 0.95rem;
        line-height: 1.25;
    }

    .product-card .product-price {
        font-size: 1rem;
        margin-bottom: 0.85rem;
    }

    .product-card .btn {
        min-height: var(--tap);
        padding: 0.7rem 0.8rem;
        font-size: 0.75rem;
        width: 100%;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        width: 100%;
    }

    .footer-logo,
    .footer-links,
    .footer-contact,
    .footer-social {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links ul {
        align-items: center;
        padding-left: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-bottom {
        padding: 1.5rem 1rem;
    }

    .header-actions {
        gap: 0.8rem;
    }

    .btn {
        min-height: var(--tap);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .filter-btn {
        min-height: 40px;
        padding: 0.5rem 1.2rem;
        flex-shrink: 0;
    }

    .kosher-announcement {
        padding: 1.6rem 0;
    }

    .kosher-announcement h3 {
        font-size: 1.15rem;
    }

    .kosher-announcement .btn {
        width: 100%;
        white-space: normal;
        justify-content: center;
    }

    .search-box-wrapper {
        min-width: 0;
        width: 100%;
    }

    .search-sort-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
}

/* --- CATALOG FILTERS --- */
.catalog-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--gold-color);
    color: var(--primary-color);
    padding: 0.8rem 2.5rem;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.filter-btn:hover {
    background: rgba(184, 153, 71, 0.1);
}

.filter-btn.active {
    background: var(--gold-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(184, 153, 71, 0.3);
}

@media (max-width: 480px) {
    .catalog-filters {
        gap: 0.8rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }
}

/* --- REVEAL ON SCROLL --- */
/* --- CART DRAWER --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-standard);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    background: var(--bg-color);
    z-index: 2001;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(184, 153, 71, 0.2);
}

.cart-items-container {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(184, 153, 71, 0.1);
}

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

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

.cart-item-info h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.cart-item-info p {
    color: var(--gold-color);
    font-weight: 700;
}

.remove-item {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.7;
}

.remove-item:hover {
    opacity: 1;
}

.empty-cart-msg {
    text-align: center;
    margin-top: 3rem;
    opacity: 0.6;
    font-style: italic;
}

.cart-footer {
    padding: 2rem;
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
    background: #fdfaf5;
}

/* Checkout form fields (extracted from inline styles) */
.customer-quick-fields {
    margin-bottom: 1rem;
}

.customer-quick-fields label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 3px;
}

.customer-quick-fields input,
.customer-quick-fields textarea,
.cart-input,
.coupon-input-row input,
.search-box-wrapper input,
.sort-select {
    font-size: 16px;
}

.customer-quick-fields input,
.customer-quick-fields textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0dcd4;
    border-radius: var(--radius);
    font-size: 16px;
    margin-bottom: 8px;
    box-sizing: border-box;
    font-family: inherit;
}

.customer-quick-fields textarea {
    resize: vertical;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.btn-coupon-apply {
    padding: 6px 14px;
    font-size: 0.82rem;
    min-height: var(--tap);
}

.coupon-msg[hidden],
.cart-discount-row[hidden],
.clear-search-btn[hidden],
.search-predictions-dropdown[hidden] {
    display: none !important;
}

.modal-quote {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(184, 153, 71, 0.2);
}

.modal-quote[hidden] {
    display: none !important;
}

.modal-quote p {
    font-style: italic;
    color: var(--gold-color);
    font-family: var(--font-display);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Kosher announcement banner (extracted from inline) */
.kosher-announcement {
    background: linear-gradient(135deg, #1f432f 0%, #173324 100%);
    color: #fff;
    padding: 2.2rem 0;
    border-top: 1px solid #B89947;
    border-bottom: 1px solid #B89947;
}

.kosher-announcement-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.kosher-announcement-copy {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.kosher-announcement-icon {
    background: #B89947;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.kosher-announcement h3 {
    color: #fff;
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    font-family: var(--font-display);
}

.kosher-announcement p {
    color: #d1e7dd;
    font-size: 0.95rem;
}

.kosher-announcement strong {
    color: #B89947;
}

.kosher-announcement .btn {
    white-space: nowrap;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    border-radius: var(--radius);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link-kosher {
    color: var(--gold-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.nav-link-kosher i,
.nav-link-kosher svg {
    width: 15px;
    height: 15px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
}

.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

/* filtering states */
.product-card.hidden-filter {
    display: none;
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
    }
    
    .cart-header {
        padding: 1.2rem;
    }
    
    .cart-items-container {
        padding: 1.2rem;
    }
    
    .cart-item-img {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-info h4 {
        font-size: 0.9rem;
    }
    
    .cart-footer {
        padding: 1.5rem;
    }
    
    .cart-total {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

/* --- PRODUCT MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    background: rgba(44, 30, 22, 0.7);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-standard);
    overscroll-behavior: contain;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay[hidden] {
    display: none !important;
}

.modal-content {
    background: var(--bg-color);
    width: 900px;
    max-width: 95%;
    max-height: min(90vh, 100dvh);
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
}

.close-modal-btn:hover {
    transform: rotate(90deg);
    color: var(--gold-color);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    max-height: inherit;
}

.modal-img-container {
    background: #f0eeea;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

.modal-img-container img {
    width: 100%;
    height: 100%;
    max-height: min(70vh, 520px);
    object-fit: cover;
}

.modal-info {
    padding: 3rem;
    padding-bottom: 1.25rem;
    overflow-y: auto;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.modal-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    flex-shrink: 0;
}

.modal-description {
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1 1 auto;
}

.modal-description ul {
    margin-top: 1rem;
}

.modal-description li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.modal-description li::before {
    content: "•";
    color: var(--gold-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.modal-actions {
    margin-top: auto;
    padding-top: 1.25rem;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, var(--bg-color) 70%, transparent);
}

@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        max-height: min(92vh, 100dvh);
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 12px 12px 0 0;
        transform: translateY(24px);
    }

    .modal-overlay.active .modal-content {
        transform: translateY(0);
    }
    
    .modal-body {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        min-height: 0;
    }
    
    .modal-img-container {
        height: 160px;
        max-height: 28vh;
        flex-shrink: 0;
    }

    .modal-img-container img {
        max-height: 160px;
    }
    
    .modal-info {
        padding: 1.25rem 1.2rem 1.5rem;
        overflow-y: auto;
        text-align: center;
        flex: 1 1 auto;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }

    .modal-info h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        padding-right: 2rem;
    }
    
    .modal-description {
        margin: 1rem 0;
        font-size: 0.85rem;
    }
    
    .modal-description li {
        display: block;
        text-align: left;
        margin-bottom: 0.6rem;
        padding-left: 1.2rem;
        font-size: 0.85rem;
    }

    .modal-description li::before {
        content: "•";
        color: var(--gold-color);
        position: absolute;
        left: 0;
    }
    
    .modal-actions {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Specific delays for a cascading effect */
.benefit-card:nth-child(2) { transition-delay: 0.1s; }
.benefit-card:nth-child(3) { transition-delay: 0.2s; }

.product-card:nth-child(even) { transition-delay: 0.05s; }
/* --- ERROR PAGES --- */
.error-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-color: var(--bg-color);
}

.error-content {
    max-width: 600px;
}

.error-code {
    font-size: 8rem;
    font-family: 'Cinzel', serif;
    color: var(--gold-color);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.error-message {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
}

.error-actions .btn {
    padding: 1rem 3rem;
}

@media (max-width: 768px) {
    .error-code { font-size: 5rem; }
    .error-title { font-size: 1.8rem; }
}

/* --- ADMIN LOGIN (hidden on public storefront; available at admin.selah.lat) --- */
.admin-login-btn {
    display: none !important;
}

/* Narrow phones: single-column catalog */
@media (max-width: 479px) {
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        margin: 0 auto;
        gap: 1.25rem;
    }

    .product-card .product-info h3 {
        font-size: 1rem;
    }

    .product-card .btn {
        font-size: 0.8rem;
    }

    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .cart-header {
        padding: 1.25rem;
    }

    .cart-items-container {
        padding: 1.25rem;
    }

    .cart-footer {
        padding: 1.25rem;
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }

    .cart-item-img {
        width: 60px;
        height: 60px;
    }

    .kosher-announcement-copy {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* ===========================
   Shabbat Notice Banner
   =========================== */
.shabbat-notice {
    background: linear-gradient(135deg, #2C1E16 0%, #3d2d1f 100%);
    color: var(--white);
    padding: 1rem 0;
    position: relative;
    z-index: 1;
    margin: 0;
    border-top: 1px solid rgba(184, 153, 71, 0.35);
    border-bottom: 2px solid var(--gold-color);
    animation: shabbatFadeIn 0.35s ease-out;
}

@keyframes shabbatFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.shabbat-notice-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    position: relative;
}

.shabbat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gold-color);
    border-radius: 50%;
    flex-shrink: 0;
}

.shabbat-icon i {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.shabbat-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    max-width: 800px;
}

.shabbat-text strong {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold-color);
    letter-spacing: 0.05em;
}

.shabbat-text span {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.95;
}

.close-shabbat-btn {
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-standard);
    border-radius: 4px;
    flex-shrink: 0;
}

.close-shabbat-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-color);
}

.close-shabbat-btn i {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .shabbat-notice {
        padding: 0.75rem 0;
    }
    
    .shabbat-notice-content {
        gap: 0.75rem;
    }
    
    .shabbat-icon {
        width: 36px;
        height: 36px;
    }
    
    .shabbat-icon i {
        width: 18px;
        height: 18px;
    }
    
    .shabbat-text {
        gap: 0.15rem;
    }
    
    .shabbat-text strong {
        font-size: 1rem;
    }
    
    .shabbat-text span {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .shabbat-notice-content {
        flex-wrap: wrap;
        text-align: center;
        justify-content: center;
    }
    
    .close-shabbat-btn {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
}

/* ===================================================
   ANIMACIONES DE SCROLL & CARGA DE PRODUCTOS (v2.0)
   =================================================== */

/* 1. Reveal al hacer Scroll */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    transform: translateX(-40px);
}
.reveal-left.revealed {
    transform: translateX(0);
}

.reveal-right {
    transform: translateX(40px);
}
.reveal-right.revealed {
    transform: translateX(0);
}

.reveal-scale {
    transform: scale(0.92);
}
.reveal-scale.revealed {
    transform: scale(1);
}

/* Retardo en cascada (stagger) para elementos en cuadrícula */
.benefits-grid .benefit-card:nth-child(1) { transition-delay: 0.1s; }
.benefits-grid .benefit-card:nth-child(2) { transition-delay: 0.25s; }
.benefits-grid .benefit-card:nth-child(3) { transition-delay: 0.4s; }

/* 2. Shimmer & Skeleton Loader para Productos */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.skeleton-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #ede8de;
    overflow: hidden;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 15px rgba(44, 30, 22, 0.05);
}

.skeleton-box {
    background: linear-gradient(90deg, #f3f0e8 25%, #fdfbf7 50%, #f3f0e8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.6s infinite linear;
    border-radius: 6px;
}

.skeleton-img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
}

.skeleton-title {
    width: 75%;
    height: 22px;
}

.skeleton-price {
    width: 40%;
    height: 20px;
}

.skeleton-btn {
    width: 100%;
    height: 42px;
    border-radius: 6px;
    margin-top: auto;
}

/* 3. Animación de entrada de productos */
@keyframes productEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card.animate-in {
    animation: productEntrance 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 4. Micro-animaciones en Product Card */
.product-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
}

@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-8px) scale(1.015);
        box-shadow: 0 16px 36px rgba(44, 30, 22, 0.12), 0 0 20px rgba(184, 153, 71, 0.15);
        border-color: rgba(184, 153, 71, 0.5);
    }

    .product-card:hover .product-img img {
        transform: scale(1.08) rotate(0.5deg);
    }
}

.product-card .product-img img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 5. Micro-animación de Carrito al añadir */
@keyframes cartBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3) rotate(-12deg); }
    60% { transform: scale(1.15) rotate(8deg); }
    100% { transform: scale(1) rotate(0); }
}

.cart-icon-container.bounce {
    animation: cartBounce 0.55s ease forwards;
}

/* =========================================================
   6. LIVE PREDICTIVE SEARCH & SORTING BAR (JUDAICA)
   ========================================================= */
.search-sort-bar {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
}

.search-box-wrapper {
    position: relative;
    flex: 1;
    min-width: 280px;
}

.search-box-wrapper .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.search-box-wrapper input {
    width: 100%;
    padding: 0.85rem 2.6rem 0.85rem 2.8rem;
    background: #ffffff;
    border: 1.5px solid #dcd7ce;
    border-radius: 30px;
    font-size: 16px;
    font-family: inherit;
    color: var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    box-sizing: border-box;
}

.search-box-wrapper input:focus {
    outline: none;
    border-color: var(--gold-color);
    box-shadow: 0 4px 20px rgba(184, 153, 71, 0.2);
}

.search-box-wrapper .clear-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.search-box-wrapper .clear-search-btn:hover {
    color: #dc2626;
}

/* Dropdown de Predicciones en Vivo */
.search-predictions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(44, 30, 22, 0.15);
    border: 1px solid rgba(184, 153, 71, 0.3);
    max-height: 420px;
    overflow-y: auto;
    z-index: 100;
    padding: 0.5rem;
    animation: fadeInDown 0.2s ease forwards;
}

.prediction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f2eee6;
}

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

.prediction-item:hover {
    background: #faf8f5;
    transform: translateX(4px);
}

.prediction-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #faf8f5;
    border-radius: 6px;
    padding: 4px;
    border: 1px solid #e0dcd4;
}

.prediction-info {
    flex: 1;
}

.prediction-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.prediction-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.prediction-price {
    font-weight: 700;
    color: var(--gold-color);
    font-size: 0.95rem;
    white-space: nowrap;
}

.prediction-btn-add {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.prediction-btn-add:hover {
    background: var(--gold-color);
}

.no-predictions-msg {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Selector de Ordenamiento */
.sort-box-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sort-box-wrapper label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.sort-select {
    padding: 0.65rem 1.2rem;
    border-radius: 20px;
    border: 1.5px solid #dcd7ce;
    background: #ffffff;
    font-size: 16px;
    font-family: inherit;
    color: var(--primary-color);
    cursor: pointer;
    outline: none;
    transition: all 0.25s ease;
}

.sort-select:focus {
    border-color: var(--gold-color);
}

/* Cupones en Carrito */
.cart-coupon-box {
    margin: 1rem 0;
    padding: 0.8rem;
    background: #faf8f5;
    border-radius: 6px;
    border: 1px solid #e0dcd4;
}

.coupon-input-row {
    display: flex;
    gap: 8px;
}

.coupon-input-row input {
    flex: 1;
    padding: 0.55rem 0.8rem;
    border: 1px solid #e0dcd4;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    text-transform: uppercase;
    font-weight: 600;
    box-sizing: border-box;
}

.coupon-input-row input:focus {
    outline: none;
    border-color: var(--gold-color);
}

.coupon-msg {
    font-size: 0.78rem;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 4px;
}

.coupon-msg.success {
    background: #ecfdf5;
    color: #065f46;
}

.coupon-msg.error {
    background: #fef2f2;
    color: #991b1b;
}

.cart-discount-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #16a34a;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding: 4px 0;
}

.cart-discount-row[hidden] {
    display: none !important;
}


