/* ============================================
   ShopFL - Main Stylesheet
   Mobile-first, responsive, performance-optimized
   ============================================ */

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

:root {
    --primary: #8B4C70;
    --primary-dark: #6B3A56;
    --primary-light: #B76E97;
    --secondary: #2C5530;
    --secondary-light: #4A8B50;
    --accent: #D4A843;
    --text: #2D2D2D;
    --text-light: #666;
    --text-muted: #999;
    --bg: #FDFBF8;
    --bg-alt: #F5F0EB;
    --white: #FFFFFF;
    --border: #E8E0D8;
    --danger: #C0392B;
    --success: #27AE60;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1200px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.3; }
h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.6rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 1rem; }

.prose { line-height: 1.8; }
.prose p { margin-bottom: 1rem; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-secondary { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); color: var(--text); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
.btn-block { display: block; width: 100%; }

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

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 1rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
}
.logo-icon { font-size: 1.8rem; color: var(--primary); }
img.logo-icon { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; }
.logo-text { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; }

/* Navigation */
.main-nav { flex: 1; }
.nav-list { display: flex; list-style: none; gap: 0.2rem; align-items: center; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.8rem;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav-link:hover { color: var(--primary); background: var(--bg-alt); }
.dropdown-arrow { font-size: 0.7rem; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    min-width: 200px;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 50;
}
.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text);
    font-size: 0.9rem;
}
.dropdown-link:hover { background: var(--bg-alt); color: var(--primary); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }

.country-switcher { position: relative; display: flex; align-items: center; gap: 0.3rem; }
.country-active { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 1.1rem; line-height: 1; padding: 0.3rem 0.55rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; }
.country-active-label { font-size: 0.8rem; font-weight: 600; color: var(--text, #333); }
.country-active-caret { font-size: 0.7rem; color: var(--text-muted); }
@media (max-width: 640px) { .country-active-label { display: none; } }
.country-form { display: block; margin: 0; }
.country-link { background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.25rem 0.5rem; font-size: 1rem; cursor: pointer; opacity: 0.85; transition: opacity 0.2s, border-color 0.2s; line-height: 1; width: 100%; text-align: left; white-space: nowrap; }
.country-link:hover { opacity: 1; border-color: var(--primary); background: #f7f7f7; }
.country-link-label { font-size: 0.8rem; margin-left: 0.3rem; }
.country-switcher-menu { position: absolute; top: calc(100% + 0.4rem); right: 0; background: var(--white, #fff); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 4px 12px rgba(0,0,0,0.08); display: none; flex-direction: column; gap: 0.2rem; padding: 0.4rem; min-width: 12em; z-index: 30; }
.country-switcher:hover .country-switcher-menu,
.country-switcher:focus-within .country-switcher-menu { display: flex; }

.country-flash { margin-top: 1rem; }
.country-flash-box { background: #fff4e5; border: 1px solid #ffb774; color: #8a4b00; padding: 0.8rem 1rem; border-radius: var(--radius); font-weight: 600; }

/* Variants */
.variant-options { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 0.8rem; margin: 0 0 1rem; }
.variant-options legend { padding: 0 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.variant-option { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.6rem; border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; }
.variant-option:hover { background: #f7f7f7; }
.variant-option input[type="radio"]:checked ~ .variant-label { font-weight: 700; }
.variant-option:has(input:checked) { border-color: var(--primary); background: #fff7f0; }
.variant-label { flex: 1; }
.variant-price { font-weight: 600; color: var(--primary); white-space: nowrap; }

.country-context { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; color: var(--text-muted); background: #faf7f2; padding: 0.4rem 0.8rem; border-radius: var(--radius); margin: 0 0 0.8rem; }
.country-context-flag { font-size: 1.1rem; }

/* Country picker on home */
.country-picker { background: #faf7f2; }
.country-picker-heading { text-align: center; margin: 0 0 0.3rem; font-size: 1.4rem; }
.country-picker-sub { text-align: center; color: var(--text-muted); margin: 0 0 1rem; font-size: 0.9rem; }
.country-picker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.8rem; max-width: 720px; margin: 0 auto; padding: 0 1rem; }
.country-picker-form { margin: 0; }
.country-picker-btn { width: 100%; padding: 0.9rem 0.5rem; background: var(--white, #fff); border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; font-size: 0.95rem; transition: border-color 0.15s, transform 0.1s; }
.country-picker-btn:hover { border-color: var(--primary); transform: translateY(-2px); }
.country-picker-btn.is-active { border-color: var(--primary); background: #fff7f0; }
.country-picker-flag { font-size: 2rem; line-height: 1; }
.country-picker-label { font-weight: 600; }
.currency-toggle-form { display: inline; }
.currency-toggle { background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.2rem 0.5rem; font-size: 0.75rem; font-weight: 600; cursor: pointer; color: var(--text-muted); transition: all 0.2s; }
.currency-toggle:hover { border-color: var(--primary); color: var(--primary); }
.currency-toggle.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

.lang-link {
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}
.lang-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.cart-link {
    position: relative;
    color: var(--text);
    font-size: 1.3rem;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: var(--white);
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    position: relative;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: var(--text);
    left: 0;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* === Breadcrumbs === */
.breadcrumbs { background: var(--bg-alt); padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.breadcrumb-list { display: flex; flex-wrap: wrap; list-style: none; gap: 0.3rem; font-size: 0.85rem; }
.breadcrumb-item + .breadcrumb-item::before { content: '/'; margin-right: 0.3rem; color: var(--text-muted); }
.breadcrumb-item a { color: var(--text-light); }
.breadcrumb-item a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text); font-weight: 500; }

/* === Hero === */
.hero {
    background: var(--bg);
    color: var(--text);
    text-align: center;
}
.hero-banner {
    display: block;
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    object-position: center;
}
.hero-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.4rem 1rem 2rem;
}
.hero h1 { font-size: 2rem; margin-bottom: 0.6rem; color: var(--primary-dark); }
.hero-subtitle { font-size: 1.05rem; color: var(--text-light); margin: 0.5rem auto 1rem; max-width: 580px; line-height: 1.5; }
.hero .btn { font-size: 1.05rem; padding: 0.9rem 2.2rem; background: var(--primary); color: var(--white); box-shadow: var(--shadow-sm); }
.hero .btn:hover { background: var(--primary-dark); color: var(--white); }
.hero-eyebrow {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    margin: 0 0 0.6rem;
    letter-spacing: 0.02em;
}
.hero-eyebrow .hero-countdown { color: #ffe6c7; font-weight: 700; }
.hero-cta-hint { font-size: 1rem; font-weight: 600; color: var(--primary-dark); margin: 0.6rem 0 0; }

/* === Alert === */
.alert { padding: 1rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert-success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
.alert-error { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }

/* === Product Grid === */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.product-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-link { display: block; color: var(--text); text-decoration: none; }

/* Promo badge — sits over product image */
.promo-badge {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    z-index: 2;
    background: var(--danger);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.02em;
    pointer-events: none;
}

/* Strikethrough original price (when promo is active) */
.price-original {
    text-decoration: line-through;
    text-decoration-color: var(--danger);
    text-decoration-thickness: 1px;
    color: var(--danger);
    font-size: 0.9em;
    font-weight: 600;
    margin-right: 0.35rem;
}

/* Promo discount line in cart/checkout summary */
.summary-row.summary-promo { color: var(--danger); font-weight: 600; }
.summary-row.summary-promo span:first-child { font-size: 0.92rem; }

/* Hero eyebrow percentage chip */
.hero-eyebrow-pct {
    display: inline-block;
    background: var(--white);
    color: var(--danger);
    font-weight: 800;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    margin-right: 0.35rem;
    font-size: 0.85em;
}
.product-image { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    font-size: 4rem;
    color: var(--primary-light);
}
.product-image-placeholder.large { font-size: 6rem; }
.product-info { padding: 1rem 1.2rem 1.2rem; }
.product-name { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; }
.product-excerpt { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.product-price { font-weight: 600; }
.price-usd { color: var(--primary); font-size: 1.1rem; }
.price-cop { color: var(--text-muted); font-size: 0.85rem; display: block; }
.price-alt { color: var(--text-muted); font-size: 0.8rem; display: block; }
.price-secondary { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }
.product-min-delivery { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.3rem; }
.load-more-sentinel { height: 1px; }
.load-more-spinner { display: flex; justify-content: center; padding: 2rem 0; grid-column: 1 / -1; }
.load-more-spinner .spinner { width: 32px; height: 32px; border: 3px solid #e0e0e0; border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* === Category Grid === */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}
.category-card {
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--primary); }
.category-image { width: 100%; aspect-ratio: 1; object-fit: cover; }
.category-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    font-size: 3rem;
    color: var(--primary-light);
}
.category-name { padding: 1rem; font-family: var(--font-heading); font-size: 1.1rem; }

.subcategory-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.subcategory-chip {
    padding: 0.4rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text);
}
.subcategory-chip:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* === Sections === */
.featured-section, .categories-section, .why-us-section, .testimonials-section {
    padding: 4rem 0;
}
.categories-section { background: var(--bg-alt); }
.testimonials-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); }
.section-cta { text-align: center; margin-top: 2rem; }

/* === Testimonials (Facebook-style) === */
.testimonials-sub {
    text-align: center;
    color: var(--text-light);
    margin-top: -0.4rem;
    margin-bottom: 1.8rem;
}
.testimonials-strip {
    display: flex;
    gap: 1.2rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0.5rem 0.25rem 1.2rem;
    scrollbar-width: thin;
}
.testimonials-strip::-webkit-scrollbar { height: 8px; }
.testimonials-strip::-webkit-scrollbar-track { background: var(--bg-alt); border-radius: 4px; }
.testimonials-strip::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 4px; }
.testimonials-strip::-webkit-scrollbar-thumb:hover { background: var(--primary); }

.testimonial-card {
    flex: 0 0 340px;
    max-width: 340px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.2rem 0.9rem;
    box-shadow: var(--shadow-sm);
    scroll-snap-align: start;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.6rem;
}
.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--white);
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.testimonial-meta { line-height: 1.25; }
.testimonial-name {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin: 0;
}
.testimonial-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.testimonial-public { font-size: 0.7rem; }
.testimonial-rating {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05rem;
}
.testimonial-text {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 0.8rem;
    flex-grow: 1;
}
.testimonial-product {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0 0 0.7rem;
    padding: 0.5rem 0.7rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.testimonial-product strong { color: var(--primary); font-weight: 600; }
.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-light);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.testimonial-reaction {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.reaction-icon {
    display: inline-block;
    background: var(--white);
    border: 1.5px solid var(--white);
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    text-align: center;
    line-height: 16px;
}
.reaction-icon-heart { margin-left: -6px; }
.reaction-count { margin-left: 0.2rem; }
.testimonial-actions {
    display: inline-flex;
    gap: 0.85rem;
}
.testimonial-action {
    cursor: default;
    color: var(--text-light);
    transition: color var(--transition);
}
.testimonial-action:hover { color: var(--primary); }

@media (max-width: 600px) {
    .testimonial-card { flex: 0 0 285px; max-width: 285px; }
    .testimonials-section { padding: 3rem 0; }
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.feature-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }

/* === Product Detail === */
.product-detail { padding: 2rem 0; }
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.product-main-image { width: 100%; border-radius: var(--radius-lg); }
.product-thumbnails { display: flex; gap: 0.5rem; margin-top: 1rem; }
.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
}
.thumbnail:hover { border-color: var(--primary); }
.product-short-desc { font-size: 1.05rem; color: var(--text-light); margin-bottom: 1.5rem; }
.product-pricing { margin-bottom: 1.5rem; }
.price-main { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.price-alt { font-size: 1rem; color: var(--text-muted); }
.currency { font-size: 0.7em; font-weight: 400; }

/* Preparation badge */
.preparation-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}
.preparation-badge.same-day { background: #E8F5E9; color: #2E7D32; }
.preparation-badge.advance { background: #FFF3E0; color: #E65100; }
.prep-icon { font-size: 1.1rem; }

/* Free shipping */
.free-shipping-strip { background: #2E7D32; color: #fff; padding: 0.6rem 0; }
.free-shipping-strip-text { margin: 0; text-align: center; font-size: 0.95rem; letter-spacing: 0.02em; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center; }
.free-shipping-strip-text strong { letter-spacing: 0.06em; }
.free-shipping-sep { opacity: 0.7; }
.free-shipping-icon { font-size: 1.15rem; }
.free-shipping-badge { display: inline-flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.92rem; background: #E8F5E9; color: #2E7D32; margin-bottom: 1rem; }
.free-shipping-badge strong { font-weight: 700; }
@media (max-width: 600px) { .free-shipping-strip-text { font-size: 0.85rem; } }

/* FAQ */
.faq-section { padding: 3rem 0; background: #FAFAFA; }
.faq-section h2 { text-align: center; margin-bottom: 0.5rem; }
.faq-sub { text-align: center; color: var(--text-light); margin-bottom: 2rem; }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.15s ease; }
.faq-item[open] { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.faq-question { padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; color: var(--text); list-style: none; position: relative; padding-right: 2.6rem; }
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after { content: '+'; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--primary); transition: transform 0.2s ease; }
.faq-item[open] .faq-question::after { content: '\2212'; }
.faq-answer { padding: 0 1.2rem 1.1rem; color: var(--text-light); line-height: 1.6; }
.prep-cutoff-note { font-size: 0.82rem; color: var(--text-muted); margin-top: -0.6rem; margin-bottom: 1.2rem; }

.add-to-cart-form { margin-bottom: 2rem; }
.quantity-selector { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.quantity-selector input { width: 70px; padding: 0.5rem; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; }
.product-description { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.product-sku { font-size: 0.85rem; color: var(--text-muted); margin-top: 1rem; }

.related-products { padding-top: 3rem; border-top: 1px solid var(--border); }

/* === Cart === */
.cart-page { padding: 2rem 0; }
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.cart-table th { font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); }
.cart-product { display: flex; align-items: center; gap: 1rem; }
.cart-product img { border-radius: var(--radius); object-fit: cover; }
.cart-qty-form { display: flex; gap: 0.3rem; align-items: center; }
.cart-qty-input { width: 60px; padding: 0.4rem; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); }

.cart-summary {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
}
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; }
.summary-row.total { font-size: 1.2rem; font-weight: 700; border-top: 2px solid var(--border); margin-top: 0.5rem; padding-top: 0.8rem; }
.cart-summary .btn { margin-top: 1rem; }

.empty-cart { text-align: center; padding: 4rem 0; }
.empty-cart-icon { font-size: 4rem; margin-bottom: 1rem; }

/* === Checkout === */
.checkout-page { padding: 2rem 0; }
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.checkout-section {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--white);
}
.checkout-section legend { padding: 0; }
.checkout-section h2 { font-size: 1.2rem; margin-bottom: 1rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 0.8rem; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.3rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139,76,112,0.1);
}
.form-group input.error, .form-group select.error { border-color: var(--danger); }

.payment-options { display: flex; flex-direction: column; gap: 0.8rem; }
.payment-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition);
}
.payment-option:has(input:checked) { border-color: var(--primary); background: rgba(139,76,112,0.05); }
.payment-label strong { display: block; }
.payment-label small { color: var(--text-muted); font-size: 0.8rem; }

.checkout-summary {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 90px;
}
.summary-items { margin-bottom: 1rem; }
.summary-item { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.9rem; }
.summary-totals { border-top: 1px solid var(--border); padding-top: 0.8rem; }
.checkout-summary .btn { margin-top: 1rem; }

/* === CMS Page === */
.cms-page { padding: 3rem 0; }
.page-content { max-width: 800px; }
.cms-page .prose h2 { margin-top: 1.8rem; margin-bottom: 0.6rem; }
.cms-page .prose ul { margin: 0 0 1rem 1.2rem; }
.cms-page .prose ul li { margin-bottom: 0.4rem; }

/* Contact card grid (auto-rendered on contact page from settings) */
.contact-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}
.contact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}
.contact-card-icon { font-size: 1.8rem; display: block; margin-bottom: 0.4rem; }
.contact-card h3 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.contact-card p { margin: 0 0 0.35rem; font-size: 0.95rem; }
.contact-card a { color: var(--primary, #8B4C70); }
.contact-card-flag { margin-right: 0.25rem; }
.contact-card-note {
    margin-top: 0.5rem;
    color: var(--text-muted, #777);
    font-size: 0.85rem;
}

/* === Products Page === */
.products-page { padding: 2rem 0; }
.category-page { padding: 2rem 0; }
.search-results-info { margin-bottom: 1rem; color: var(--text-light); }
.no-products { text-align: center; padding: 3rem 0; color: var(--text-muted); font-size: 1.1rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.3rem; margin: 2rem 0; }
.pagination-link {
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text);
}
.pagination-link:hover, .pagination-link.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* === Footer === */
.site-footer {
    background: var(--text);
    color: var(--bg-alt);
    padding: 3rem 0 0;
    margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-logo .logo-icon { color: var(--primary-light); }
.footer-logo img.logo-icon { width: 36px; height: 36px; }
.footer-logo .logo-text { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: var(--white); }
.footer-about { font-size: 0.9rem; opacity: 0.8; line-height: 1.6; }
.footer-col h3 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--bg-alt); opacity: 0.8; font-size: 0.9rem; }
.footer-links a:hover { opacity: 1; color: var(--primary-light); }
.footer-contact { font-style: normal; font-size: 0.9rem; }
.footer-contact p { margin-bottom: 0.5rem; }
.footer-contact a { color: var(--bg-alt); opacity: 0.8; }
.footer-contact a:hover { opacity: 1; }
.social-links { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.social-links a { color: var(--bg-alt); opacity: 0.8; font-size: 0.9rem; }
.social-links a:hover { opacity: 1; color: var(--primary-light); }
.whatsapp-link {
    display: inline-block;
    background: #25D366;
    color: var(--white) !important;
    opacity: 1 !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
}
.whatsapp-link:hover { background: #128C7E; color: var(--white) !important; }

/* Floating WhatsApp button (always visible bottom-right) */
.whatsapp-float {
    position: fixed;
    right: calc(1.25rem + env(safe-area-inset-right, 0px));
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    padding: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    line-height: 1;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.whatsapp-float:hover,
.whatsapp-float:focus {
    background: #128C7E;
    color: #ffffff;
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    outline: none;
}
.whatsapp-float:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.whatsapp-float__icon {
    width: 30px;
    height: 30px;
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}
@media (max-width: 600px) {
    .whatsapp-float {
        right: calc(0.9rem + env(safe-area-inset-right, 0px));
        bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
        width: 56px;
        height: 56px;
    }
    .whatsapp-float__icon {
        width: 30px;
        height: 30px;
    }
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    opacity: 0.7;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--bg-alt); }
.footer-legal a:hover { color: var(--primary-light); }

/* === Error Page === */
.error-page { text-align: center; padding: 6rem 2rem; }
.error-page h1 { font-size: 6rem; color: var(--primary-light); }

/* === Checkout Enhancements === */
.payment-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.payment-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    flex-shrink: 0;
}
.payment-badge.online { background: #E8F5E9; color: #2E7D32; }
.payment-badge.offline { background: #FFF3E0; color: #E65100; }
.offline-notice {
    margin-top: 1rem;
    padding: 1rem;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: #F57F17;
}
.checkout-secure-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 0.8rem; }
.delivery-date-notice { display: block; margin-top: 0.4rem; color: #E65100; font-size: 0.82rem; font-weight: 500; }

/* === Order Confirmation Page === */
.confirmation-page { padding: 2rem 0 4rem; }

.confirmation-banner {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}
.confirmation-banner h1 { margin-bottom: 0.5rem; }
.confirmation-banner p { font-size: 1.05rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.confirmation-icon { font-size: 3rem; display: block; margin-bottom: 0.8rem; }

.confirmation-success { background: #E8F5E9; color: #1B5E20; border: 1px solid #A5D6A7; }
.confirmation-success h1 { color: #1B5E20; }
.confirmation-pending { background: #FFF3E0; color: #E65100; border: 1px solid #FFCC80; }
.confirmation-pending h1 { color: #E65100; }
.confirmation-warning { background: #FFF8E1; color: #F57F17; border: 1px solid #FFE082; }
.confirmation-warning h1 { color: #F57F17; }

.confirmation-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; }

.confirmation-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.confirmation-card h2 { font-size: 1.15rem; margin-bottom: 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border); }
.confirmation-card h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }

.order-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.order-info-item { display: flex; flex-direction: column; gap: 0.2rem; }
.order-info-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.order-info-value { font-size: 1rem; font-weight: 500; }
.order-number { font-family: monospace; font-size: 1.1rem; color: var(--primary); font-weight: 700; }
.order-total { font-size: 1.2rem; color: var(--primary); font-weight: 700; }

.status-badge { padding: 0.2rem 0.6rem; border-radius: 10px; font-size: 0.8rem; font-weight: 600; }
.status-pending { background: #FFF3E0; color: #E65100; }
.status-paid { background: #E8F5E9; color: #2E7D32; }
.status-failed { background: #FFEBEE; color: #C62828; }

/* Payment Instructions */
.payment-instructions-card { border-color: var(--accent); border-width: 2px; }
.payment-instructions-card h2 { color: var(--primary); }
.instruction-amount, .instruction-reference {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
}
.instruction-label { font-size: 0.85rem; color: var(--text-light); }
.instruction-value { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.instruction-steps { margin: 1.2rem 0; padding: 1rem; background: #FAFAFA; border-radius: var(--radius); border-left: 3px solid var(--primary); }
.instruction-step { font-size: 0.9rem; margin-bottom: 0.5rem; line-height: 1.5; }
.instruction-step:last-child { margin-bottom: 0; }
.instruction-warning { margin-top: 1rem; padding: 0.8rem 1rem; background: #FFF8E1; border-radius: var(--radius); font-size: 0.85rem; color: #F57F17; border: 1px solid #FFE082; }
.instruction-warning p { margin: 0; }

/* Delivery info */
.delivery-info p { margin-bottom: 0.5rem; font-size: 0.9rem; }

/* Order items list */
.order-items-list { }
.order-item-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--bg-alt); font-size: 0.9rem; }
.order-item-row:last-child { border-bottom: none; }
.order-item-total { font-weight: 700; font-size: 1rem; border-top: 2px solid var(--border); margin-top: 0.5rem; padding-top: 0.8rem; }
.order-item-qty { color: var(--text-muted); }

/* Confirmation sidebar */
.confirmation-sidebar { position: sticky; top: 90px; }
.contact-options { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.8rem; }
.contact-link { display: block; font-size: 0.9rem; color: var(--primary); }
.contact-link:hover { color: var(--primary-dark); }

/* === Responsive === */
@media (max-width: 768px) {
    .site-header { position: sticky; }
    .site-header > .container { position: relative; }
    .header-inner { gap: 0.5rem; }
    .header-actions { gap: 0.5rem; flex-shrink: 1; flex-wrap: nowrap; min-width: 0; }
    .logo-text { font-size: 1.15rem; }
    .logo-icon { font-size: 1.5rem; }
    img.logo-icon { width: 34px; height: 34px; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100vw;
        background: var(--white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        padding: 1rem;
        z-index: 50;
    }
    .main-nav.open { display: block; }
    .nav-list { flex-direction: column; align-items: stretch; }
    .nav-link { width: 100%; }
    .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 1rem; display: none; min-width: 0; }
    .has-dropdown.open .dropdown-menu { display: block; }
    .menu-toggle { display: block; flex-shrink: 0; }

    .hero h1 { font-size: 1.6rem; }
    .hero-subtitle { font-size: 0.92rem; }
    .hero-banner { max-height: 220px; }
    .hero-content { padding: 1rem 1rem 1.5rem; }
    .hero-eyebrow { font-size: 0.78rem; padding: 0.3rem 0.8rem; }
    .hero .btn { font-size: 1rem; padding: 0.75rem 1.6rem; }

    .product-detail-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .confirmation-layout { grid-template-columns: 1fr; }
    .order-info-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }

    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.3rem; }
}

@media (max-width: 480px) {
    .header-inner { gap: 0.4rem; }
    .header-actions { gap: 0.35rem; }
    .logo-text { font-size: 1rem; }
    .logo-icon { font-size: 1.3rem; }
    img.logo-icon { width: 28px; height: 28px; }
    .country-active { padding: 0.25rem 0.4rem; font-size: 1rem; gap: 0.25rem; }
    .currency-toggle { padding: 0.2rem 0.4rem; font-size: 0.7rem; }
    .lang-link { padding: 0.25rem 0.45rem; font-size: 0.75rem; }
    .cart-link { font-size: 1.2rem; }
    .menu-toggle { padding: 0.35rem; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .product-info { padding: 0.7rem; }
    .product-name { font-size: 0.9rem; }
    .price-usd { font-size: 0.95rem; }

    .hero-banner { max-height: 170px; }
    .hero h1 { font-size: 1.4rem; }
    .hero-content { padding: 0.9rem 0.8rem 1.3rem; }
}

@media (max-width: 360px) {
    .header-actions { gap: 0.3rem; }
    .logo-text { display: none; }
    .currency-toggle { padding: 0.18rem 0.35rem; font-size: 0.65rem; }
    .lang-link { padding: 0.2rem 0.4rem; font-size: 0.7rem; }
}
