/* ============================================
   HEADER — ellamart+: orange announce on top,
   orange top bar (logo + pill search + icons),
   white nav row with categories + tag callouts.
   We repurpose the existing announce/main split:
   - header-announce  -> slim info strip (kept)
   - header-main      -> orange top bar
   The in-theme nav stays inside header-main too.
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: var(--color-bg);
    font-family: var(--font-body);
}

/* Slim info strip — dark, thin, supermarket-style utility bar */
.header-announce {
    background: #000000;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 5px 0;
    font-size: 11px;
    font-weight: var(--fw-regular);
    letter-spacing: 0.02em;
}
.header-announce a {
    color: inherit;
    font-weight: var(--fw-medium);
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 6px;
}
.header-announce a:hover { opacity: 0.75; }

/* Main row — ORANGE bar with logo + contact + pill search + icons.
   This is Alphacom's brand signal above the fold. */
.header-main {
    background: var(--color-brand);
    color: var(--color-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.header-row {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 96px;
}
.site-logo { flex-shrink: 0; }
.site-logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Contact block — small left of search, like ellamart+ "Available 24/7 At" */
.header-contact {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    line-height: 1.25;
    color: var(--color-bg);
}
.header-contact-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: var(--fw-regular);
    color: rgba(255, 255, 255, 0.82);
}
.header-contact-phone {
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-weight: var(--fw-bold);
    color: var(--color-bg);
    letter-spacing: 0.01em;
}
.header-contact-phone:hover { color: rgba(255, 255, 255, 0.82); }

/* Pill search — white pill on orange bar, with category scope dropdown */
.header-search { flex: 1; max-width: 600px; }
.header-search form {
    display: flex;
    align-items: center;
    gap: 0;
    border: none;
    border-radius: var(--radius-pill);
    padding: 0;
    height: 56px;
    background: var(--color-bg);
    overflow: hidden;
}
.header-search-scope {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0 32px 0 20px;
    height: 100%;
    border-right: 1px solid var(--color-border);
    flex-shrink: 0;
    max-width: 170px;
}
.header-search-select {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    outline: 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-fg);
    padding: 0 16px 0 0;
    width: 100%;
    line-height: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.header-search-scope-caret {
    position: absolute;
    right: 18px;
    pointer-events: none;
    color: var(--color-fg-muted);
}
.header-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: var(--text-md);
    color: var(--color-fg);
    outline: none;
    padding: 0 16px 0 22px;
}
.header-search input::placeholder { color: var(--color-fg-muted); }
.header-search-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-fg);
    color: var(--color-bg);
    border-radius: 50%;
    margin-right: 4px;
    transition: background var(--duration-fast);
}
.header-search-btn:hover {
    background: var(--color-fg-strong);
}

/* Search icon — only shown on mobile (hidden on desktop since we have the pill) */
.header-icon-search { display: none; }

/* Icons on orange bar — white, stacked icon + label */
.header-icons {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-shrink: 0;
    margin-left: auto;
}
.header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--color-bg);
    transition: opacity var(--duration-fast);
    position: relative;
}
.header-icon:hover { opacity: 0.78; }
.header-icon-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: var(--fw-medium);
    line-height: 1;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.88);
}
.header-cart { position: relative; }
.cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-fg);
    color: var(--color-bg);
    font-size: 10px;
    font-weight: var(--fw-bold);
    border-radius: 999px;
    line-height: 1;
}

/* Row 2 — white nav strip with categories mega + nav + locale */
.header-nav-row {
    background: var(--color-bg-soft);
    border-bottom: 1px solid var(--color-border);
}
.header-nav-row-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 52px;
}

/* Categories toggle — white/transparent, 9-dot icon, dark text (ellamart+ style) */
.mega-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 18px;
    background: transparent;
    color: var(--color-fg);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--fw-medium);
    border: none;
    border-radius: 0;
    flex-shrink: 0;
    cursor: pointer;
    transition: color var(--duration-fast);
}
.mega-toggle:hover { color: var(--color-brand); }
.mega-toggle svg { flex-shrink: 0; }
.mega-toggle svg:first-of-type { color: var(--color-brand); }

/* Nav links on white row — dark text, nav tag bubbles */
.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
}
.header-nav a {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--fw-medium);
    color: var(--color-fg);
    transition: color var(--duration-fast);
    white-space: nowrap;
    line-height: 52px;
}
.header-nav a:hover { color: var(--color-brand); }
.nav-wa { color: #25d366 !important; font-weight: var(--fw-bold) !important; }

/* Locale chip on the right */
.header-locale {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-fg-muted);
    flex-shrink: 0;
}
.header-locale .divider { opacity: 0.35; }

/* ============================================
   SHARED
   ============================================ */
.section-pad { padding: 40px 0; }
.section-alt { background: var(--color-bg-soft); }

/* Ella section-head pattern: Rubik 20px 700, UPPERCASE copy, 'View All' link right */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.section-head h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 22px;
    text-transform: uppercase;
    color: var(--color-fg);
    margin: 0;
}
.section-head .link-arrow { font-size: 14px; flex-shrink: 0; padding-bottom: 0; }
.link-arrow {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-fg);
    text-decoration: underline;
    text-underline-offset: 3px;
    border-bottom: 0;
    padding-bottom: 0;
    transition: opacity var(--duration-fast);
}
.link-arrow:hover { opacity: 0.55; }

/* ============================================
   CHILEXPRESS STRIP — soft cream band with orange CTA pill.
   Sits directly under the header. Breaks up the double-orange stack.
   ============================================ */
.finance-strip {
    background: #FFFFFF;
    color: var(--color-fg);
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.finance-strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.finance-strip-logo {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: var(--fw-heavy);
    color: var(--color-brand);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.finance-strip-copy {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-fg-soft);
}
.finance-strip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-button);
    padding: 9px 20px;
    background: var(--color-brand);
    color: var(--color-bg);
    border-radius: var(--radius-pill);
    transition: background var(--duration-fast);
}
.finance-strip-btn:hover {
    background: var(--color-brand-hover);
}
@media (max-width: 768px) {
    .finance-strip-copy { font-size: 12px; }
    .finance-strip-btn { font-size: 11px; padding: 8px 16px; }
}

/* ============================================
   HERO — simple single-focus: copy left, products right.
   Replaces the old 3-column category/carousel/promo grid.
   ============================================ */
.hero-simple {
    background: #f6f2ec;
    padding: clamp(3.5rem, 2rem + 4vw, 6rem) 0;
}
.hero-simple-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 1rem + 4vw, 5rem);
    align-items: center;
    min-height: 56vh;
}
.hero-simple-text .eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--color-brand);
}
.hero-simple-text h1 {
    font-family: var(--font-heading);
    font-size: var(--text-display);
    font-weight: var(--fw-heavy);
    line-height: 1.02;
    letter-spacing: -0.025em;
    color: var(--color-fg);
    margin: 0;
}
.hero-simple-text p {
    margin-top: 24px;
    font-family: var(--font-body);
    font-size: var(--text-lg);
    line-height: 1.55;
    color: var(--color-fg-soft);
    max-width: 460px;
}
.hero-simple-ctas {
    margin-top: 36px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.hero-simple-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.hero-simple-products .hero-prod {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: var(--radius-tile);
    box-shadow: var(--shadow-md);
    transition: transform var(--duration-slow) var(--ease-default),
                box-shadow var(--duration-slow) var(--ease-default);
}
.hero-simple-products .hero-prod:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}
.hero-simple-products .hero-prod img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 28px;
}

/* 3-col home hero — sidebar | carousel | 2x2 category tiles */
.hero-row {
    background: var(--surface-page);
    padding: 24px 0 40px;
}
.hero-row-inner {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 420px;
    gap: 20px;
    align-items: stretch;
    min-height: 520px;
    max-height: 560px;
}
@media (max-width: 1024px) {
    .hero-row-inner { max-height: none; min-height: 0; }
}

/* Left sidebar — Shop by categories (Ella flat left-rail) */
.hero-sidebar {
    background: #FFFFFF;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.hero-sidebar-head {
    position: relative;
    background: var(--color-brand);
    color: #FFFFFF;
    padding: 16px 20px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
    border-bottom: 0;
}
.hero-sidebar-head::after { display: none; }
.hero-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    flex: 1;
    overflow-y: auto;
}
.hero-sidebar-list li + li { border-top: 1px solid var(--color-border); }
.hero-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    color: var(--color-fg);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: var(--fw-medium);
    line-height: 1.2;
    transition: background var(--duration-fast), color var(--duration-fast);
}
.hero-sidebar-item:hover {
    background: var(--color-brand-soft);
    color: var(--color-brand);
}
.hero-sidebar-thumb {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-soft, #f5f5f5);
    background-size: cover;
    background-position: center;
}
.hero-sidebar-label {
    flex: 1;
    min-width: 0;
}
.hero-sidebar-arrow {
    flex: 0 0 14px;
    color: var(--color-fg-faint);
    display: inline-flex;
    transition: transform var(--duration-fast), color var(--duration-fast);
}
.hero-sidebar-item:hover .hero-sidebar-arrow {
    color: var(--color-brand);
    transform: translateX(2px);
}

/* Center — carousel panel (Ella: dark saturated hero slide) */
.hero-carousel {
    position: relative;
    background: #1c1915;
    color: #FFFFFF;
    border-radius: 0;
    overflow: hidden;
    padding: 0;
}
.hero-carousel .hero-slide-text h2,
.hero-carousel .hero-slide-text p,
.hero-carousel .hero-tag { color: #FFFFFF; }
.hero-carousel .hero-slide-text p { color: rgba(255,255,255,0.8); }

/* Buttons inside dark carousel invert — white ghost by default */
.hero-carousel .btn,
.hero-carousel .btn-primary,
.hero-carousel .btn-outline {
    background: transparent;
    color: #FFFFFF;
    border-color: #FFFFFF;
}
.hero-carousel .btn:hover,
.hero-carousel .btn-primary:hover,
.hero-carousel .btn-outline:hover {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: #FFFFFF;
}
/* .btn-secondary keeps its solid orange on dark bg — primary CTA */
.hero-carousel .btn-secondary {
    background: var(--color-brand);
    color: #FFFFFF;
    border-color: var(--color-brand);
}
.hero-carousel .btn-secondary:hover {
    background: transparent;
    color: var(--color-brand);
    border-color: var(--color-brand);
}
.hero-slides {
    position: relative;
    height: clamp(380px, 38vw, 500px);
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-slow) var(--ease-default);
}
.hero-slide.active { opacity: 1; pointer-events: auto; }

.hero-slide-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    align-items: center;
    height: 100%;
    padding: 36px 40px;
    max-width: none;
}
.hero-slide-text { grid-column: 1; }
.hero-slide-products { grid-column: 2; }

/* Eyebrow — coral-red like ellamart+ "ONLY TODAY" accent */
.hero-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-eyebrow);
    color: var(--badge-sale-fg);
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
    margin-bottom: 10px;
}
.hero-slide-text h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 0.9rem + 1.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0;
    color: var(--color-fg);
    max-width: 100%;
    text-transform: uppercase;
}
.hero-slide-text p {
    margin-top: 10px;
    font-size: var(--text-sm);
    line-height: 1.5;
    max-width: 100%;
    font-style: italic;
    color: var(--color-fg-soft);
}
.hero-slide-text p {
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: var(--text-md);
    color: var(--color-fg-soft);
    line-height: var(--lh-body);
    max-width: 500px;
}
.hero-slide-ctas {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.hero-slide-ctas .btn { padding: 10px 22px; font-size: var(--text-xs); }

/* Product tiles inside hero — flat white squares on dark carousel */
.hero-slide-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: center;
}
.hero-prod {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 0;
    box-shadow: none;
    transition: transform var(--duration-slow) var(--ease-smooth);
}
.hero-prod:hover { transform: translateY(-2px); }
.hero-prod img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* Right — 2x2 gradient promo tiles */
.hero-promos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    min-height: 100%;
}
.hero-promo {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 22px 24px;
    border-radius: 0;
    overflow: hidden;
    min-height: 200px;
    color: var(--color-fg);
    transition: transform var(--dur-base) var(--ease-smooth);
}
/* No transform on hover — would create a new stacking context and break
   mix-blend-mode on cluster items (products would show their white JPG bg
   against the pastel tile). Hover feedback comes from label color + cluster nudge. */
.hero-promo-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 70%;
}
.hero-promo-title {
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 0.9rem + 0.6vw, 1.5rem);
    font-weight: var(--fw-heavy);
    line-height: 1.05;
    color: var(--color-fg);
    letter-spacing: -0.02em;
    margin: 0;
}
.hero-promo-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: var(--ls-button);
    color: var(--color-fg-muted);
    white-space: nowrap;
}
.hero-promo:hover .hero-promo-label {
    color: var(--color-brand);
}

/* Product cluster — 3 staggered product cutouts anchored to bottom of the tile.
   Replaces the old single-product hero-promo-img which read as a specific SKU
   (Baymard anti-pattern). Cluster visually communicates "category". */
.hero-promo-cluster {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 10px;
    pointer-events: none;
}
/* Intentionally no cluster transform on hover — transform creates a stacking
   context and mix-blend-mode:multiply on the items stops reaching the .hero-promo
   pastel background, so product JPG whites reappear. Flat hover (Ella parity). */
.hero-promo-cluster-item {
    flex: 0 0 auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center bottom;
    mix-blend-mode: multiply;
}
.hero-promo-cluster-item--0 {
    width: 38%;
    transform: translateY(6%);
    margin-right: -6%;
    z-index: 1;
}
.hero-promo-cluster-item--1 {
    width: 46%;
    transform: translateY(-4%);
    z-index: 2;
}
.hero-promo-cluster-item--2 {
    width: 38%;
    transform: translateY(6%);
    margin-left: -6%;
    z-index: 1;
}

/* Dots — ellamart+: small round dots, brand orange active */
.hero-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0 28px;
}
.hero-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity var(--duration-base) var(--ease-default),
                background var(--duration-base) var(--ease-default),
                width var(--duration-base) var(--ease-default);
    cursor: pointer;
}
.hero-dot.active {
    opacity: 1;
    background: var(--color-brand);
    width: 28px;
    border-radius: 999px;
}

/* ============================================
   BRANDS STRIP — ellamart+ trusted manufacturers row
   ============================================ */
.brands-strip {
    background: var(--color-bg);
    padding: clamp(36px, 2.5rem + 1vw, 56px) 0;
    border-bottom: 1px solid var(--color-border);
}
.brands-strip-eyebrow {
    text-align: center;
    margin: 0 0 18px;
    font-family: var(--font-sub);
    font-size: 11px;
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: var(--ls-eyebrow);
    color: var(--color-fg-faint);
}
.brands-strip-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.brands-strip-item {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: var(--fw-bold);
    letter-spacing: 0.02em;
    color: var(--color-fg-soft);
    padding: 0 28px;
    line-height: 1;
    transition: color var(--duration-fast);
    position: relative;
}
.brands-strip-item + .brands-strip-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: var(--color-border);
}
.brands-strip-item:hover { color: var(--color-brand); }

@media (max-width: 768px) {
    .brands-strip-item { font-size: 15px; padding: 6px 16px; }
}

/* (category blocks removed — replaced by cat-bar above hero) */

/* ============================================
   PRODUCT CARD — ellamart+ Home 04:
   - Sharp corners (per token --product-card-corner-radius: 0)
   - Subtle drop shadow
   - Soft-tint badges (pale bg + colored fg)
   - Orange quick-add overlay on hover
   ============================================ */
.pgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
}
.pgrid-3 { grid-template-columns: repeat(3, 1fr); }

/* Featured-cols — two side-by-side product mini-grids (ellamart pattern) */
.featured-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

/* Product card — Ella parity: transparent bg on gray page, white plate
   for image, no border, lift+shadow on hover, CTA fills orange */
.pcard {
    font-family: var(--font-body);
    background: #FFFFFF;
    padding: 15px 15px 25px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    transition: transform var(--dur-base) var(--ease-smooth),
                box-shadow var(--dur-base) var(--ease-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--color-fg);
}
.pcard-link { text-decoration: none; }
.pcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}
.pcard-link:hover .pcard-name { color: var(--color-brand); }

.pcard-img {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
}
.pcard-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
    transition: transform var(--dur-slow) var(--ease-smooth);
}
.pcard:hover .pcard-img img,
.pcard-link:hover .pcard-img img { transform: scale(1.03); }

.pcard-ph {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #f4f4f4 0%, #eaeaea 100%);
}

/* Badges — Ella parity: 15px pill radius, 12/500 +1ls, capitalize */
.pcard-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px 5px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: var(--ls-button);
    line-height: 12px;
    text-transform: capitalize;
    border: none;
    border-radius: var(--radius-badge);
    background: var(--badge-custom-bg);
    color: var(--badge-custom-fg);
    z-index: 1;
}
.pcard-badge.is-new { background: var(--badge-new-bg); color: var(--badge-new-fg); }

/* Hover quick-add — ellamart+: orange slide-up CTA */
.pcard-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    text-align: center;
    background: var(--color-brand);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity var(--duration-base) var(--ease-default),
                transform var(--duration-base) var(--ease-default);
}
.pcard:hover .pcard-hover {
    opacity: 1;
    transform: translateY(0);
}
.pcard-hover span {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: var(--fw-medium);
    color: var(--color-bg);
    letter-spacing: var(--ls-button);
}

.pcard-body {
    padding: 20px 0 0 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}
.pcard-cat {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    min-height: calc(1.4em * 2);
    color: var(--color-fg-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.pcard-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    min-height: calc(1.3em * 2);
    color: var(--color-fg);
    margin-bottom: 8px;
    transition: color var(--duration-fast);
}
.pcard-name:hover { color: var(--color-brand); }
.pcard-price {
    display: block;
    margin-bottom: 16px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    color: var(--color-fg);
}
.pcard-price del {
    color: var(--color-fg-muted);
    margin-right: 8px;
    font-weight: 400;
    font-size: 13px;
    text-decoration: line-through;
}
.pcard-price ins {
    color: var(--badge-sale-fg);
    text-decoration: none;
}

/* Product card CTA — full-width ghost pill, fills orange on card hover */
.pcard-cta {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 10px 15px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    letter-spacing: var(--ls-button);
    color: var(--color-fg);
    background: transparent;
    border: 1px solid var(--color-fg);
    border-radius: var(--radius-pill);
    transition: background var(--duration-base) var(--ease-smooth),
                color var(--duration-base) var(--ease-smooth),
                border-color var(--duration-base) var(--ease-smooth);
}
.pcard-cta:hover,
.pcard:hover .pcard-cta {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: #fff;
}

/* ============================================
   CATEGORY TILES — Ella parity: circular image tile,
   no outer border, centered name below.
   ============================================ */
.cat-tiles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    align-items: start;
}
.cat-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--color-fg);
    text-decoration: none;
    transition: transform var(--duration-base) var(--ease-smooth);
}
.cat-tile:hover { transform: translateY(-2px); }
.cat-tile-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: #FFFFFF;
    background-size: 62%;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-size var(--duration-slow) var(--ease-smooth);
}
.cat-tile:hover .cat-tile-img { background-size: 66%; }
.cat-tile-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    background: transparent;
    border-top: 0;
    text-align: center;
    width: 100%;
}
.cat-tile-name {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.3;
    color: var(--color-fg);
}
.cat-tile-count {
    display: none;
}

@media (max-width: 1024px) {
    .cat-tiles { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
    .cat-tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .cat-tile-name { font-size: 14px; }
}
@media (max-width: 480px) {
    .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ============================================
   BRANDS
   ============================================ */
.brands-label {
    text-align: center;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 28px;
}
.brands-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}
.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-border);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: default;
    transition: color 0.2s;
}
.brand-name:hover { color: var(--color-text-muted); }

/* ============================================
   HOME TABS — "Nuevos productos | Destacados"
   ============================================ */
.home-tabs-section { background: var(--color-bg); }
.home-tabs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(1.5rem, 1rem + 1.2vw, 2.25rem);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}
.home-tabs-nav {
    display: inline-flex;
    gap: clamp(20px, 1rem + 2vw, 40px);
}
.home-tab {
    position: relative;
    padding: 6px 0 12px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
    font-weight: var(--fw-heavy);
    letter-spacing: -0.01em;
    line-height: 1.1;
    color: var(--color-fg-faint);
    transition: color var(--duration-fast);
}
.home-tab::after {
    content: "";
    position: absolute;
    bottom: -11px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-brand);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--duration-base) var(--ease-default);
}
.home-tab:hover { color: var(--color-fg-soft); }
.home-tab.is-active {
    color: var(--color-fg);
}
.home-tab.is-active::after { transform: scaleX(1); }
.home-tab-panel { display: none; }
.home-tab-panel.is-active { display: block; }

/* ============================================
   WHY ALPHACOM — trust strip (4 icons + copy)
   Sits between categories grid and CTA.
   ============================================ */
.why-strip {
    background: var(--color-bg-soft);
    padding: clamp(28px, 2rem + 1vw, 44px) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.why-strip-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.why-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-brand-soft);
    color: var(--color-brand);
    flex-shrink: 0;
}
.why-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.why-title {
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-weight: var(--fw-bold);
    color: var(--color-fg);
    line-height: 1.2;
}
.why-sub {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--color-fg-muted);
    line-height: 1.3;
}
@media (max-width: 1024px) {
    .why-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
}
@media (max-width: 480px) {
    .why-strip-inner { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================
   CTA
   ============================================ */
.cta-section { background: var(--color-bg); }
.cta-box {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.cta-box h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.5rem);
    font-weight: var(--fw-heavy);
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.cta-box p {
    color: var(--color-fg-muted);
    margin-top: 18px;
    font-size: var(--text-lg);
    line-height: 1.55;
}
.cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 36px;
}

/* ============================================
   FOOTER — ellamart+ Home 04: deep navy, tight columns
   ============================================ */
.site-footer {
    background: var(--color-fg);
    color: #ffffff;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 44px;
    /* Horizontal padding comes from .container */
}
.footer-brand { padding-right: 16px; }
.footer-logo {
    filter: brightness(0) invert(1);
    height: 36px;
    width: auto;
    display: block;
}
.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 14px;
    font-size: 13px;
    letter-spacing: 0.01em;
    line-height: 1.45;
}
.footer-address {
    margin-top: 14px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.55;
}
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.footer-col .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1;
    transition: background var(--duration-fast), color var(--duration-fast);
}
.footer-col .footer-social a:hover {
    background: var(--color-brand);
    color: var(--color-bg);
}
.footer-social svg {
    display: block;
}
.footer-col h4 {
    font-family: var(--font-sub);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: var(--ls-eyebrow);
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: var(--fw-medium);
}
.footer-col p,
.footer-col a {
    display: block;
    font-family: var(--font-body);
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.85;
    margin: 0;
    text-decoration: none;
    transition: color var(--duration-fast);
}
.footer-col a:hover { color: var(--color-brand); }

/* Accordion wrapper — desktop = passive (button strips, panel always shown) */
.footer-col-toggle {
    all: unset;
    display: block;
    width: 100%;
    cursor: default;
}
.footer-col-toggle h4 { margin: 0 0 14px; }
.footer-col-chevron { display: none; }
.footer-col-panel { display: block; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 18px 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.01em;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom-tag { color: rgba(255, 255, 255, 0.3); font-size: 11px; }
@media (max-width: 768px) {
    .footer-bottom-inner { flex-direction: column; gap: 6px; text-align: center; }
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.wa-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: var(--z-overlay);
    transition: transform 0.2s, bottom var(--duration-base) var(--ease-default);
}
.wa-float:hover { transform: scale(1.08); }

/* ============================================
   MOBILE SEARCH SHEET — full-width overlay
   ============================================ */
.mobile-search-sheet {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.4);
    z-index: var(--z-modal);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-default);
}
.mobile-search-sheet.is-open { opacity: 1; pointer-events: auto; }
.mobile-search-sheet-inner {
    background: var(--color-bg);
    padding: 14px 16px;
    transform: translateY(-100%);
    transition: transform var(--duration-base) var(--ease-out-smooth);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
.mobile-search-sheet.is-open .mobile-search-sheet-inner { transform: translateY(0); }
.mobile-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--color-bg-soft);
    border-radius: var(--radius-pill);
    padding: 6px 6px 6px 14px;
}
.mobile-search-form input[type="search"] {
    flex: 1;
    border: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-fg);
    outline: none;
    min-width: 0;
}
.mobile-search-close,
.mobile-search-submit {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: var(--color-fg);
    cursor: pointer;
    border-radius: 50%;
    flex-shrink: 0;
}
.mobile-search-submit {
    background: var(--color-fg);
    color: var(--color-bg);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: var(--color-white);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s;
    overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border);
}
.mobile-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-search {
    padding: 12px 20px;
    border-bottom: 1px solid var(--color-border);
}
.mobile-menu-search input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: var(--font-body);
}

.mobile-menu-nav {
    padding: 8px 0;
}
.mobile-menu-nav a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border-light);
}
.mobile-menu-nav a:hover { background: var(--color-bg); }
.mobile-menu-sub {
    padding-left: 36px !important;
    font-size: 13px !important;
    color: var(--color-text-secondary) !important;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .pgrid { grid-template-columns: repeat(3, 1fr); }
    .featured-cols { grid-template-columns: 1fr; gap: 48px; }
    .footer-inner { grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .hero-slides { height: 360px; }
    .hero-slide-inner { height: 360px; }
    .hero-slide-text h2 { font-size: 28px; }
}
@media (max-width: 768px) {
    /* --- Header: utility strip marquee-scroll so no messages get truncated --- */
    .header-announce {
        font-size: 11px;
        padding: 8px 0;
        overflow: hidden;
        position: relative;
    }
    .header-announce .container {
        white-space: nowrap;
        overflow: hidden;
    }
    .header-announce-track {
        display: inline-block;
        padding-left: 100%;
        animation: header-announce-scroll 22s linear infinite;
        will-change: transform;
    }
    @keyframes header-announce-scroll {
        from { transform: translateX(0); }
        to   { transform: translateX(-100%); }
    }
    .header-row {
        height: 64px;
        gap: 12px;
    }
    .site-logo img { height: 30px; }
    .header-contact { display: none; }
    .header-search { display: none; }
    .header-icons { gap: 6px; margin-left: auto; }
    .header-icon-label { display: none; }
    .header-icon:not(.header-cart):not(.header-icon-search) { display: none; }
    .header-icon { width: 44px; height: 44px; justify-content: center; padding: 0; background: transparent; border: 0; color: var(--color-bg); cursor: pointer; }
    .header-cart { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
    .header-icon-search { display: flex !important; }
    .mobile-toggle { display: flex; width: 44px; height: 44px; }
    .header-nav-row { display: none; }
    .header-nav { display: none; }

    /* --- Sections --- */
    .section-pad { padding: 56px 0; }
    .section-head { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 20px; }
    .section-head h2 { font-size: 26px; letter-spacing: -0.01em; }
    .section-head .link-arrow { font-size: 11px; padding-bottom: 0; }

    /* --- Home: hero row stacks --- */
    .hero-row { padding: 16px 0; }
    .hero-row-inner { grid-template-columns: 1fr; gap: 16px; }
    .hero-sidebar { display: none; }
    .hero-slides { height: 280px; }
    .hero-slide-inner {
        grid-template-columns: 1fr;
        height: 280px;
        padding: 24px 20px;
        gap: 0;
    }
    .hero-slide-text { grid-column: 1 / -1; max-width: 100%; }
    .hero-slide-products { display: none; }
    .hero-slide-text h2 { font-size: 24px; line-height: 1.15; }
    .hero-slide-text p { font-size: 13px; margin-top: 8px; }
    .hero-slide-ctas { margin-top: 14px; gap: 8px; }
    .hero-slide-ctas .btn { padding: 10px 18px; font-size: 11px; }

    /* --- Home: promo tiles 2x2 --- */
    .hero-promos {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 10px;
    }
    .hero-promo {
        min-height: 160px;
        padding: 14px 16px;
        border-radius: 0;
    }
    .hero-promo-content { max-width: 70%; gap: 4px; }
    .hero-promo-title { font-size: 15px; }
    .hero-promo-label { font-size: 10px; }
    .hero-promo-cluster { padding: 0 6px; height: 68%; }
    .hero-promo-cluster-item--0 { width: 40%; margin-right: -6%; }
    .hero-promo-cluster-item--1 { width: 48%; }
    .hero-promo-cluster-item--2 { width: 40%; margin-left: -6%; }

    /* --- Product grids --- */
    .pgrid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .pgrid-3 { grid-template-columns: repeat(2, 1fr); }
    .featured-cols { grid-template-columns: 1fr; gap: 40px; }
    .pcard { padding: 10px 10px 12.5px; }
    .pcard-body { padding-top: 14px; }

    /* --- Trust & brands & CTA --- */
    .trust-bar-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .cta-box { padding: 36px 20px; }
    .cta-box h2 { font-size: 22px; }
    .cta-box p { font-size: 13px; }
    .cta-btns { flex-direction: column; align-items: stretch; gap: 10px; }
    .cta-btns .btn { width: 100%; }
    .brands-strip { padding: 28px 0; }
    .brands-strip-inner { gap: 14px 20px; flex-wrap: wrap; justify-content: center; }

    /* --- Footer: stack 1-col for mobile readability --- */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 40px;
        padding-bottom: 28px;
        /* Horizontal padding comes from .container — do NOT override */
    }
    .footer-col:first-child { text-align: left; }
    .footer-logo { height: 32px; margin-bottom: 12px; }
    .footer-tagline { font-size: 13px; margin-bottom: 10px; }
    .footer-col h4 {
        font-size: 12px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        margin: 0;
        color: rgba(255, 255, 255, 0.95);
        font-weight: 700;
    }
    .footer-col a, .footer-col p { font-size: 14px; line-height: 1.5; padding: 6px 0; margin: 0; }
    .footer-col a { display: block; }

    /* Accordion: toggle becomes interactive, panel collapses */
    .footer-col-accordion {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }
    .footer-col-accordion:last-of-type {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .footer-col-toggle {
        all: unset;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .footer-col-chevron {
        display: inline-block;
        color: rgba(255, 255, 255, 0.6);
        transition: transform var(--duration-base) var(--ease-smooth);
        flex-shrink: 0;
    }
    .footer-col-toggle[aria-expanded="true"] .footer-col-chevron {
        transform: rotate(180deg);
        color: var(--color-brand);
    }
    .footer-col-panel {
        display: block;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--duration-base) var(--ease-smooth);
    }
    .footer-col-accordion[data-acc-open] .footer-col-panel {
        max-height: 400px;
    }
    .footer-col-panel > *:first-child { padding-top: 4px; }
    .footer-col-panel > *:last-child { padding-bottom: 16px; }

    /* Accordion doesn't apply to brand column (has no .footer-col-accordion) */
    .footer-inner {
        gap: 0;
        padding-top: 28px;
        padding-bottom: 20px;
        /* Horizontal padding comes from .container (16px) — do NOT override */
    }
    .footer-col.footer-brand { padding-bottom: 8px; }
    .footer-bottom { padding: 18px 0; }
    .footer-bottom .container { font-size: 11px; }

    /* --- Touch targets: min 44px for core interactive --- */
    .mobile-close { width: 44px; height: 44px; }
    .mobile-menu-nav a { padding: 14px 20px; }
}
@media (max-width: 480px) {
    .pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .pcard-hover { display: none; }
    .wa-float { bottom: 16px; right: 16px; width: 48px; height: 48px; }
}

/* ============================================
   TRUST BLOCK — pull-quote + brand-logo row
   ============================================ */
.trust-block { background: var(--color-bg); }
.trust-quote {
    max-width: 880px;
    margin: 0 auto;
    text-align: center;
}
.trust-mark {
    color: var(--color-brand);
    margin-bottom: 28px;
    opacity: 0.9;
}
.trust-quote blockquote {
    font-family: var(--font-heading);
    font-size: clamp(1.375rem, 0.9rem + 1.4vw, 2rem);
    font-weight: var(--fw-medium);
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--color-fg);
    margin: 0;
}
.trust-quote figcaption {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}
.trust-author {
    font-family: var(--font-heading);
    font-size: var(--text-md);
    font-weight: var(--fw-bold);
    color: var(--color-fg);
}
.trust-org {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-fg-muted);
}
.trust-logos {
    margin-top: clamp(3rem, 1.5rem + 2vw, 5rem);
    padding-top: clamp(2.5rem, 1.5rem + 1.5vw, 4rem);
    border-top: 1px solid var(--color-border);
    text-align: center;
}
.trust-logos-label {
    display: block;
    font-family: var(--font-sub);
    font-size: 11px;
    font-weight: var(--fw-medium);
    text-transform: uppercase;
    letter-spacing: var(--ls-eyebrow);
    color: var(--color-fg-faint);
    margin-bottom: 22px;
}
.trust-logos-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.trust-logos-list li {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: var(--fw-bold);
    letter-spacing: 0.02em;
    color: var(--color-fg-muted);
    padding: 0 28px;
    line-height: 1;
    position: relative;
}
.trust-logos-list li + li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: var(--color-border);
}
@media (max-width: 768px) {
    .trust-logos-list li { font-size: 14px; padding: 6px 14px; }
}

/* ============================================
   MOBILE BOTTOM NAV — 2026 B2B default
   Shown only <=768px. Auto-hide on scroll-down.
   ============================================ */
.bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-bottom-nav);
    background: var(--surface-soft);
    border-top: 1px solid var(--color-border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)) 4px;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    transition: transform var(--dur-slow) var(--ease-enter);
    box-shadow: var(--shadow-sm);
}
.bottom-nav.is-hidden { transform: translateY(110%); }
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 4px;
    min-height: 56px;
    color: var(--color-fg-muted);
    font-size: 10px;
    font-weight: var(--fw-medium);
    letter-spacing: 0.01em;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color var(--dur-fast);
}
.bottom-nav-item:active,
.bottom-nav-item:hover { color: var(--color-brand); }
.bottom-nav-item svg { display: block; }
.bottom-nav-icon-wrap {
    position: relative;
    display: inline-flex;
}
.bottom-nav-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--color-brand);
    color: var(--color-bg);
    border-radius: 999px;
    font-size: 10px;
    font-weight: var(--fw-bold);
    line-height: 16px;
    text-align: center;
}
.bottom-nav-badge[hidden] { display: none; }

@media (max-width: 768px) {
    .bottom-nav { display: grid; }
    /* Pad body so last content isn't covered */
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    /* Reposition WhatsApp FAB above bottom-nav */
    .wa-float {
        bottom: calc(80px + env(safe-area-inset-bottom)) !important;
    }
}

/* ============================================
   CATEGORIES BOTTOM SHEET
   Triggered from bottom-nav "Categorías" button.
   ============================================ */
.cat-sheet {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    pointer-events: none;
    visibility: hidden;
}
.cat-sheet.is-open {
    pointer-events: auto;
    visibility: visible;
}
.cat-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 21, 0.5);
    opacity: 0;
    transition: opacity var(--dur-slow) var(--ease-exit);
}
.cat-sheet.is-open .cat-sheet-backdrop { opacity: 1; }
.cat-sheet-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 82svh;
    overflow-y: auto;
    background: var(--surface-soft);
    border-radius: 20px 20px 0 0;
    padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform var(--dur-slow) var(--ease-exit);
    box-shadow: var(--shadow-xl);
}
.cat-sheet.is-open .cat-sheet-panel { transform: translateY(0); }
.cat-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--color-border-strong);
    opacity: 0.25;
    margin: 0 auto 12px;
}
.cat-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.cat-sheet-head h3 {
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    letter-spacing: -0.01em;
    margin: 0;
}
.cat-sheet-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-pill);
    background: var(--surface-subtle);
    color: var(--color-fg);
    border: 0;
    cursor: pointer;
}
.cat-sheet-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.cat-sheet-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    min-height: 44px;
    border-radius: var(--radius-lg);
    background: var(--surface-subtle);
    text-decoration: none;
    color: var(--color-fg);
    transition: background var(--dur-fast);
}
.cat-sheet-item:active { background: var(--stone-200); }
.cat-sheet-thumb {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--surface-soft) center/cover no-repeat;
}
.cat-sheet-name {
    font-size: var(--text-md);
    font-weight: var(--fw-medium);
}
.cat-sheet-count {
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    color: var(--color-fg-muted);
    background: var(--surface-soft);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
}

/* ============================================
   PERSISTENT MOBILE SEARCH BAR
   Replaces icon-tap-to-expand on <=768px.
   ============================================ */
.header-mobile-search {
    display: none;
}
@media (max-width: 768px) {
    .header-mobile-search {
        display: block;
        background: var(--color-brand);
        padding: 0 16px 12px;
    }
    .header-mobile-search form {
        display: flex;
        align-items: center;
        background: var(--surface-soft);
        border-radius: var(--radius-pill);
        padding: 6px 6px 6px 16px;
        gap: 8px;
    }
    .header-mobile-search input {
        flex: 1;
        border: 0;
        background: transparent;
        font: inherit;
        font-size: 14px;
        color: var(--color-fg);
        outline: none;
        min-width: 0;
    }
    .header-mobile-search input::placeholder { color: var(--color-fg-faint); }
    .header-mobile-search button {
        width: 36px;
        height: 36px;
        border-radius: var(--radius-pill);
        background: var(--color-fg);
        color: var(--color-bg);
        border: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }
    /* Hide the old mobile search icon (sheet-triggered) since we
       now have a persistent bar. */
    .header-icon-search { display: none !important; }
}
