/* ==========================================================================
   Fruto Pampa Public Store - Apple-Style & Conversion Focused Stylesheet
   ========================================================================== */

:root {
    /* Color Palette - Apple Aesthetic & Fruto Pampa Identity */
    --bg-body: #F5F5F7;
    --bg-surface: #FFFFFF;
    --bg-translucent: #FFFFFF;
    
    /* Typography Colors */
    --text-main: #1D1D1F;
    --text-muted: #6E6E73;
    --text-light: #86868B;
    --text-white: #FFFFFF;
    
    /* Brand Accent Colors (Amber / Natural Nuts) */
    --accent: #D97706;
    --accent-hover: #B45309;
    --accent-light: rgba(217, 119, 6, 0.08);
    --accent-glow: rgba(217, 119, 6, 0.2);
    
    /* Secondary & Functional */
    --success: #10B981;
    --border-light: rgba(0, 0, 0, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.04);
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow-x: clip) {
    html, body {
        overflow-x: clip;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --------------------------------------------------------------------------
   Global Material Symbols & Fallback Protection (System-Wide)
   -------------------------------------------------------------------------- */
.material-symbols-rounded,
.material-symbols-outlined,
.material-icons,
[class*="material-symbols"] {
    font-family: 'Material Symbols Rounded', 'Material Symbols Outlined', 'Material Icons', sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'liga';

    /* CRITICAL PROTECTION: Bounded 1em box clips unrendered ligature text fallback */
    width: 1em;
    height: 1em;
    max-width: 1em;
    max-height: 1em;
    overflow: hidden;
    vertical-align: middle;
    flex-shrink: 0;
    user-select: none;
}

/* --------------------------------------------------------------------------
   Top Announcement Bar
   -------------------------------------------------------------------------- */
.top-bar {
    background-color: #111827;
    color: #F3F4F6;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    text-align: center;
    letter-spacing: 0.2px;
}

.top-bar-content {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-bar-badge {
    background: var(--accent);
    color: var(--text-white);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Header Apple-Style
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}

.brand-logo-img {
    height: 60px;
    max-height: 65px;
    max-width: 260px;
    width: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
}

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

.brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
    line-height: 1.1;
}

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

.brand-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Central Search Bar */
.header-search {
    flex: 1;
    max-width: 380px;
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: #F3F4F6;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    padding: 4px 6px 4px 16px;
    transition: var(--transition);
}

.search-form:focus-within {
    background: var(--bg-surface);
    border-color: var(--accent);
    box-shadow: var(--accent-glow);
}

.search-icon {
    color: var(--text-muted);
    font-size: 22px;
    margin-right: 8px;
    user-select: none;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    padding: 6px 0;
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: var(--accent);
    color: var(--text-white);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

/* User Actions (Right) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    color: var(--text-main);
    transition: var(--transition);
    background: transparent;
}

.action-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.action-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon {
    font-size: 26px;
    color: var(--text-main);
}

.action-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.action-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1;
}

.action-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.2;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--accent);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 700;
    height: 18px;
    min-width: 18px;
    padding: 0 5px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
}

.btn-b2b-nav {
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 600;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.btn-b2b-nav:hover {
    background: var(--accent);
    color: var(--text-white);
}

/* Secondary Navigation Bar (Categorías) */
.sub-nav {
    background: #FFFFFF;
    border-top: 1px solid var(--border-subtle);
    overflow: visible;
    position: relative;
}

.sub-nav::-webkit-scrollbar {
    display: none;
}

.sub-nav-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    row-gap: 0;
    column-gap: clamp(14px, 1.85vw, 28px);
}

.sub-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 0;
    font-size: clamp(11px, 0.88vw, 12px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
}

.sub-nav-link:hover, .sub-nav-link.active, .sub-nav-link[aria-expanded="true"] {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   Main Content Layout Container
   -------------------------------------------------------------------------- */
.main-content {
    width: 100%;
    max-width: 1320px;
    min-inline-size: 0;
    margin: 0 auto 60px auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .main-content {
        padding-left: 14px;
        padding-right: 14px;
    }
}

/* --------------------------------------------------------------------------
   Hero Slider (Sin Recortes & Sin Espaciado Superior)
   -------------------------------------------------------------------------- */
.hero-slider-section {
    position: relative;
    width: 100%;
    margin-top: 0;
    margin-bottom: 28px;
}

.hero-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1920 / 400;
    max-height: 400px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: #111827;
}

@media (max-width: 639px) {
    .main-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    .hero-slider-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    .hero-slider-container {
        aspect-ratio: unset !important;
        height: auto !important;
        max-height: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.slide-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.slide-item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 6s ease-out;
}

.slide-item.active .slide-img {
    transform: scale(1.04);
}

@media (max-width: 639px) {
    .slider-track, .slide-item, .slide-item a, .slide-item picture {
        height: auto !important;
        width: 100% !important;
    }
    .slide-img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        transform: none !important;
    }
    .slide-item.active .slide-img {
        transform: none !important;
    }
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.85) 0%, rgba(17, 24, 39, 0.5) 55%, rgba(17, 24, 39, 0.15) 100%);
    display: flex;
    align-items: center;
    padding: 0 6% 0 7%;
}

.slide-content {
    max-width: 580px;
    color: var(--text-white);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--text-white);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    margin-bottom: 14px;
}

.slide-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.8px;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slide-subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    line-height: 1.45;
}

.slide-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: var(--text-white);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
    transition: var(--transition);
}

.slide-cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.5);
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    opacity: 0.85;
}

.slider-arrow:hover {
    opacity: 1;
    background: var(--bg-surface);
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow-prev {
    left: 20px;
}

.slider-arrow-next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: var(--radius-full);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    width: 26px;
    background: var(--accent);
    border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   Trust Bar (Barra de Beneficios)
   -------------------------------------------------------------------------- */
.trust-bar {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.trust-bar-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.trust-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    position: relative;
}

.trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: var(--border-light);
}

.trust-icon-box {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-md);
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.trust-item:hover .trust-icon-box {
    background: var(--accent);
    color: var(--text-white);
    transform: scale(1.05);
}

.trust-icon-box .material-symbols-rounded {
    font-size: 28px;
}

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

.trust-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 2px;
}

.trust-desc {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Off-Canvas Cart Drawer (Carrito Lateral Apple-Style)
   -------------------------------------------------------------------------- */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: 420px;
    max-width: 92vw;
    background: #FFFFFF;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.14);
    z-index: 10050;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer.active {
    transform: translateX(0);
}

/* Header */
.cart-drawer-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-surface);
}

.cart-drawer-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-drawer-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.4px;
}

.cart-drawer-count-badge {
    background: var(--accent-light);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.cart-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: #F3F4F6;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cart-drawer-close:hover {
    background: #E5E7EB;
    color: var(--text-main);
    transform: rotate(90deg);
}

/* Body */
.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #F9FAFB;
    border-radius: var(--radius-md);
    padding: 12px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.cart-item-card:hover {
    border-color: rgba(0,0,0,0.1);
    background: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.cart-item-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
}

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

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

.cart-item-unit-price {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item-controls-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
}

.qty-control-box {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-full);
    padding: 2px 4px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    background: transparent;
}

.qty-btn:hover {
    background: #F3F4F6;
    color: var(--accent);
}

.qty-val,
.qty-val-input,
.card-qty-input {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
}

/* Ocultar flechas numéricas de navegadores en selectores de cantidad */
input[type="number"].qty-val-input::-webkit-inner-spin-button,
input[type="number"].qty-val-input::-webkit-outer-spin-button,
input[type="number"].card-qty-input::-webkit-inner-spin-button,
input[type="number"].card-qty-input::-webkit-outer-spin-button,
input[type="number"]#productDetailQty::-webkit-inner-spin-button,
input[type="number"]#productDetailQty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"].qty-val-input,
input[type="number"].card-qty-input,
input[type="number"]#productDetailQty {
    -moz-appearance: textfield;
}

.cart-item-subtotal {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.cart-item-remove {
    color: #9CA3AF;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.cart-item-remove:hover {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.08);
}

/* Empty State */
.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 20px;
    height: 100%;
}

.cart-empty-icon {
    font-size: 56px;
    color: #D1D5DB;
    margin-bottom: 16px;
}

.cart-empty-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
}

.cart-empty-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    max-width: 240px;
    line-height: 1.45;
}

.cart-empty-btn {
    background: var(--accent);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cart-empty-btn:hover {
    background: var(--accent-hover);
}

/* Footer (4 filas apiladas verticalmente sin colisión en PC ni Mobile) */
.cart-drawer-footer {
    padding: 14px 18px max(14px, calc(14px + env(safe-area-inset-bottom, 0px)));
    border-top: 1px solid #E5E7EB;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-drawer-summary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.cart-summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.cart-summary-total,
.cart-drawer-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid #E5E7EB;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.cart-summary-total-val,
.cart-drawer-total-amount {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.cart-drawer-checkout-btn {
    width: 100%;
    min-block-size: 46px;
    background: #D95D39;
    color: #FFFFFF;
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
    box-shadow: 0 4px 14px rgba(217, 93, 57, 0.28);
    text-decoration: none;
}

.cart-drawer-checkout-btn:hover:not(.is-disabled) {
    background: #C04A27;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217, 93, 57, 0.36);
}

/* --------------------------------------------------------------------------
   Grilla de Productos Pública (Apple-Style)
   -------------------------------------------------------------------------- */
.products-section {
    margin-top: 48px;
    margin-bottom: 48px;
}

.products-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.products-section-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.6px;
    color: var(--text-main);
    line-height: 1.2;
}

.products-section-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.products-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
}

.products-view-all:hover {
    color: var(--accent-hover);
    transform: translateX(3px);
}

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

/* Product Card Apple-Style */
.product-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    border-color: rgba(217, 119, 6, 0.25);
}

/* Top Image Container */
.product-card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #F9FAFB;
    position: relative;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

/* Floating Badges */
.product-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    z-index: 3;
    pointer-events: none;
}

.badge-tag {
    background: rgba(16, 185, 129, 0.9);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.badge-tag.badge-tacc {
    background: #00A859;
}

.badge-tag.badge-vegano {
    background: #10B981;
}

.badge-tag.badge-novedad {
    background: var(--accent);
}

.badge-tag.badge-b2c {
    background: #3B82F6;
}

/* Card Body */
.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-bottom: 16px;
}

.product-card-category {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.product-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-variant-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Price Box */
.product-card-price-box {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.product-price-label {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 2px;
}

.product-price-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.4px;
    line-height: 1.1;
}

.product-price-vat {
    font-size: 11px;
    color: #10B981;
    font-weight: 600;
    margin-left: 4px;
}

/* Action Button */
.product-card-btn {
    width: 100%;
    background: var(--accent);
    color: var(--text-white);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
    border: none;
    cursor: pointer;
}

.product-card-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

.product-card-btn:active {
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Footer Apple-Style
   -------------------------------------------------------------------------- */
.site-footer {
    background: #111827;
    color: #9CA3AF;
    font-size: 13px;
    padding-top: 48px;
    padding-bottom: 32px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1.1fr 1.2fr 1.3fr;
    gap: 32px;
    margin-bottom: 40px;
}

.footer-col-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 40px;
    width: 40px;
    border-radius: var(--radius-md);
}

.footer-logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #FFFFFF;
}

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

.footer-desc {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #9CA3AF;
}

.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #9CA3AF;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
}

.footer-payments {
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 11px;
}

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

/* --------------------------------------------------------------------------
   Responsive Layout (Mobile Adaptations)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-slider-container {
        aspect-ratio: 16 / 9;
        max-height: 400px;
    }
    .slide-title {
        font-size: 30px;
    }
    .trust-bar-grid {
        gap: 16px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        font-size: 12px;
    }
    .header-container {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 12px;
    }
    .header-search {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    .hero-slider-container {
        aspect-ratio: 4 / 3;
        max-height: 360px;
        border-radius: var(--radius-lg);
    }
    .slide-overlay {
        padding: 0 20px;
    }
    .slide-title {
        font-size: 24px;
    }
    .slide-subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }
    .slide-cta-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    /* Trust Bar Horizontal Slider on Mobile */
    .trust-bar {
        padding: 12px 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .trust-bar-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch;
        gap: 14px !important;
        padding: 4px 16px !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .trust-bar-grid::-webkit-scrollbar {
        display: none;
    }
    .trust-item {
        flex: 0 0 82% !important;
        min-width: 82% !important;
        max-width: 82% !important;
        scroll-snap-align: center !important;
        background: #FFFFFF !important;
        border: 1px solid #E5E7EB !important;
        border-radius: 20px !important;
        padding: 24px 20px !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.04) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
        border-bottom: none !important;
    }
    .trust-item:not(:last-child)::after {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   Checkout One-Page (Apple-Style Dual Column Layout)
   -------------------------------------------------------------------------- */
.checkout-container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: start;
    margin-top: 32px;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }
}

.checkout-card {
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.checkout-section-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
    width: 100%;
}

.address-row-1 {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    width: 100%;
}

.address-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
    width: 100%;
}

@media (max-width: 640px) {
    .form-group-grid, .address-row-2 {
        grid-template-columns: 1fr;
    }
    .address-row-1 {
        flex-direction: column;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    width: 100%;
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}

.form-label span.req {
    color: var(--danger);
    font-weight: 700;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-main);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    background: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* Payment Method Cards Select */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.payment-option-card {
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px 14px;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #FAFAFA;
    user-select: none;
}

.payment-option-card:hover {
    border-color: var(--accent);
    background: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.payment-option-card.selected {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12);
}

.payment-option-card input[type="radio"] {
    display: none;
}

.payment-option-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

.payment-option-card.selected .payment-option-title {
    color: var(--accent);
}

/* Warning Banner */
.min-purchase-alert {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.4;
}

.min-purchase-alert.success-min {
    background: #ECFDF5;
    border-color: #6EE7B7;
    color: #065F46;
}

.min-purchase-alert .material-symbols-rounded {
    font-size: 24px;
    flex-shrink: 0;
}

/* Modal de Agradecimiento Apple-Style */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.thankyou-card {
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .thankyou-card {
    transform: scale(1);
}

.thankyou-icon-box {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: #ECFDF5;
    color: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.thankyou-icon-box .material-symbols-rounded {
    font-size: 40px;
}

.thankyou-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.thankyou-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.order-badge-box {
    background: #F3F4F6;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    margin-bottom: 28px;
}

.order-badge-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.order-badge-number {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
}

/* ==========================================================================
   Global Loading State & Spinner (UX Feedback)
   ========================================================================== */
.btn-loading {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    white-space: nowrap !important;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

/* ==========================================================================
   Mobile UX Optimization (Native App Styling)
   ========================================================================== */

/* Scrollbar Hide Utility */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile Off-Canvas Navigation Drawer */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(17, 24, 39, 0.48);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 312px;
    max-width: 86vw;
    height: 100vh;
    height: 100dvh;
    background: #FFFFFF;
    z-index: 1060;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.mobile-nav-drawer.active {
    transform: translateX(0);
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: #1F2937;
    font-weight: 600;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
}

.mobile-nav-link:hover {
    background: #F9FAFB;
    color: #EA580C;
}

.mobile-nav-link.active,
.mobile-nav-link[aria-current="page"] {
    background: #FFF7ED;
    color: #C2410C;
    font-weight: 700;
    border-left-color: #EA580C;
}

.mobile-search-bar {
    display: none;
    background: #FFFFFF;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.mobile-search-bar.active {
    display: block;
}

/* ==========================================================================
   Responsive Header & Nav Drawer Strict Media Queries (Vanilla CSS Safeguards)
   ========================================================================== */

/* Desktop (>= 768px) */
@media (min-width: 768px) {
    .top-bar-mobile-text {
        display: none !important;
    }
    .top-bar-desktop-text {
        display: inline !important;
    }
    .mobile-hamburger-btn {
        display: none !important;
    }
    .mobile-search-toggle-btn {
        display: none !important;
    }
    .mobile-search-bar {
        display: none !important;
    }
    .mobile-nav-drawer,
    .mobile-nav-overlay {
        display: none !important;
    }
    .header-search {
        display: block !important;
    }
    .sub-nav {
        display: block !important;
    }
    .action-item.desktop-only {
        display: flex !important;
    }
    .brand-logo-img {
        height: 54px !important;
        max-height: 54px !important;
        width: auto !important;
    }
    .brand-info.desktop-only {
        display: flex !important;
    }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
    .top-bar-mobile-text {
        display: inline !important;
    }
    .top-bar-desktop-text {
        display: none !important;
    }
    .mobile-hamburger-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .mobile-search-toggle-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .header-search {
        display: none !important;
    }
    .sub-nav {
        display: none !important;
    }
    .action-item.desktop-only {
        display: none !important;
    }
    .brand-info.desktop-only {
        display: none !important;
    }
    .brand-logo-img {
        height: 38px !important;
        max-height: 38px !important;
        width: auto !important;
    }
    .header-container {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        align-items: center !important;
        padding: 0 14px !important;
        height: 64px !important;
        gap: 8px !important;
        overflow: visible !important;
    }
    .site-header,
    .site-header .header-actions,
    .site-header .action-item,
    .site-header .action-icon-wrap {
        overflow: visible !important;
        mask-image: none !important;
        -webkit-mask-image: none !important;
    }
    .mobile-search-bar {
        display: none;
    }
    .mobile-search-bar.active {
        display: block !important;
    }
}

/* Global Image Safety Constraint */
img {
    max-width: 100%;
    height: auto;
}





/* --- Mobile Small Layout Adjustments (<= 360px) --- */
@media (max-width: 360px) {
    /* Product Cards */
    .product-card-actions {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .product-card-actions .card-qty-selector {
        width: 100% !important;
        max-width: none !important;
        justify-content: space-between !important;
        flex: 0 0 auto !important;
    }
    .product-card-actions .product-card-btn {
        width: 100% !important;
        flex: 0 0 auto !important;
        margin-top: 2px !important;
    }

    /* Cart Sidebar */
    .cart-item-controls-row {
        flex-direction: column !important;
        align-items: flex-end !important;
    }
    .cart-item-controls-row .qty-control-box {
        width: 100% !important;
        justify-content: space-between !important;
    }
    .cart-item-subtotal {
        margin-top: 6px;
        font-size: 15px !important;
    }
}@media (max-width: 767px) { .cart-drawer { width: calc(100vw - 38px) !important; max-width: 400px !important; right: 0 !important; border-top-left-radius: 16px !important; border-bottom-left-radius: 16px !important; overflow: hidden !important; } .cart-drawer-close { width: 44px !important; height: 44px !important; } .cart-drawer-close .material-symbols-rounded { font-size: 28px !important; } }

@media (max-width: 767px) { .cart-drawer { width: calc(100vw - 38px) !important; max-width: 400px !important; right: 0 !important; border-top-left-radius: 16px !important; border-bottom-left-radius: 16px !important; overflow: hidden !important; z-index: 10050 !important; height: 100% !important; max-height: 100dvh !important; } .cart-drawer-overlay { background: rgba(0, 0, 0, 0.45) !important; z-index: 10040 !important; } }
body.cart-open .wa-floating-btn { display: none !important; }

@media (min-width: 769px) { .cart-drawer { width: 550px !important; } }

.cart-item-card { align-items: flex-start !important; } .cart-item-thumb { width: 72px !important; height: 72px !important; min-width: 72px !important; } .cart-item-name { font-size: 15px !important; margin-bottom: 2px; } .cart-item-unit-price { margin-bottom: 8px; display: block; }
