/* ═══════════════════════════════════════════════════
   HOME PAGE — Design System
   PortaLibros Premium Home
   ═══════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   0. DESIGN TOKENS (reuse shop tokens via same attribute)
   ───────────────────────────────────────────── */
:root {
    /* ── Premium Warm Palette ── */
    --home-bg: #F6F4F0;
    --home-card-bg: #FFFFFF;
    --home-text: #1B1B1F;
    --home-text-muted: #52525A;
    --home-text-faint: #7C7C85;
    --home-accent: #14532D;
    --home-accent-hover: #166534;
    --home-accent-light: rgba(20, 83, 45, .07);
    --home-accent-glow: rgba(20, 83, 45, .22);
    --home-border: rgba(0, 0, 0, .10);
    --home-border-hover: rgba(0, 0, 0, .18);
    --home-divider: rgba(0, 0, 0, .07);
    --home-shadow-sm: 0 1px 2px rgba(0, 0, 0, .05), 0 2px 6px rgba(0, 0, 0, .04);
    --home-shadow-md: 0 2px 4px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .08);
    --home-shadow-lg: 0 4px 8px rgba(0, 0, 0, .04), 0 16px 48px rgba(0, 0, 0, .1);
    --home-shadow-card: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .06), 0 0 0 1px rgba(0, 0, 0, .03);
    --home-shadow-card-hover: 0 4px 8px rgba(0, 0, 0, .06), 0 12px 36px rgba(0, 0, 0, .1), 0 0 0 1px rgba(20, 83, 45, .12);
    --home-radius: 16px;
    --home-radius-sm: 10px;
    --home-radius-pill: 999px;
    --home-transition: .25s cubic-bezier(.4, 0, .2, 1);
    --home-hero-bg: linear-gradient(135deg, #0C1B15 0%, #14352A 35%, #1a5c3a 70%, #1B6B45 100%);
    --home-section-alt: #EEEAE4;
    --home-section-warm: #F0EDE8;
    --home-footer-bg: #0D1210;
    --home-glass: rgba(255, 255, 255, .06);
    --home-glass-border: rgba(255, 255, 255, .1);
    --home-bg-subtle: #ECEAE5;
    --home-pill-bg: rgba(0, 0, 0, .05);
    --home-pill-text: #3F3F46;
    --home-badge-sale: #DC2626;
    --home-badge-text: #FFFFFF;
    --home-card-border-bottom: rgba(0, 0, 0, .08);
}

[data-theme="dark"] {
    --home-bg: #0F1419;
    --home-card-bg: #1C2128;
    --home-text: #E6EDF3;
    --home-text-muted: #8B949E;
    --home-text-faint: #6E7681;
    --home-accent: #4ADE80;
    --home-accent-hover: #22C55E;
    --home-accent-light: rgba(74, 222, 128, .1);
    --home-accent-glow: rgba(74, 222, 128, .2);
    --home-border: rgba(255, 255, 255, .08);
    --home-border-hover: rgba(255, 255, 255, .15);
    --home-divider: rgba(255, 255, 255, .06);
    --home-shadow-sm: 0 1px 3px rgba(0, 0, 0, .3);
    --home-shadow-md: 0 4px 16px rgba(0, 0, 0, .4);
    --home-shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
    --home-hero-bg: linear-gradient(135deg, #0a0f13 0%, #121d23 40%, #0d3d28 100%);
    --home-section-alt: #161B22;
    --home-footer-bg: #010409;
    --home-glass: rgba(255, 255, 255, .04);
    --home-glass-border: rgba(255, 255, 255, .07);
    --home-bg-subtle: #21262D;
    --home-pill-bg: rgba(255, 255, 255, .06);
    --home-pill-text: #C9D1D9;
    --home-badge-sale: #F87171;
}


/* ─────────────────────────────────────────────
   1. BASE
   ───────────────────────────────────────────── */
body.home,
body.page-template-front-page {
    background: var(--home-bg) !important;
    color: var(--home-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}


/* ─────────────────────────────────────────────
   2. HEADER — reuse shop header classes
   (shop.css handles these, home.css just ensures
    they load in home context too)
   ───────────────────────────────────────────── */
/* Import shop header/drawer styles — they use .shop-header, .shop-drawer, etc. */
/* The shared header-shop.php already provides the markup. */
/* We ensure the header inner constraints work on home: */

body.home .shop-header__inner,
body.page-template-front-page .shop-header__inner {
    max-width: 1320px !important;
    margin: 0 auto !important;
    width: 100%;
    box-sizing: border-box;
}


/* ─────────────────────────────────────────────
   3. HERO
   ───────────────────────────────────────────── */
.home-hero {
    background: var(--home-hero-bg);
    padding: 120px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(74, 222, 128, .1) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 255, 255, .03) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating decorative shapes */
.home-hero::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, .06) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.home-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--home-radius-pill);
    padding: 8px 20px;
    font-size: .75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .8);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.home-hero__badge svg {
    width: 16px;
    height: 16px;
}

.home-hero__title {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    margin: 0 0 18px;
    letter-spacing: -0.03em;
}

.home-hero__title span {
    color: #4ADE80;
}

.home-hero__subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .65);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.home-hero__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.home-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--home-radius-pill);
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--home-transition);
    cursor: pointer;
}

.home-hero__cta--primary {
    background: var(--home-accent);
    color: #FFFFFF;
    border: 2px solid var(--home-accent);
}

.home-hero__cta--primary:hover {
    background: var(--home-accent-hover);
    border-color: var(--home-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--home-accent-glow);
}

.home-hero__cta--secondary {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, .25);
}

.home-hero__cta--secondary:hover {
    border-color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .06);
    transform: translateY(-2px);
}

.home-hero__cta svg {
    width: 18px;
    height: 18px;
}


/* ─────────────────────────────────────────────
   4. TRUST BAR
   ───────────────────────────────────────────── */
.home-trust {
    background: var(--home-card-bg);
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .03);
    transition: background var(--home-transition), border-color var(--home-transition);
}

.home-trust__inner {
    max-width: 1320px !important;
    margin: 0 auto !important;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    box-sizing: border-box;
}

.home-trust__item {
    text-align: center;
    padding: 12px;
}

.home-trust__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    border-radius: 12px;
    background: var(--home-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--home-accent);
    transition: background var(--home-transition);
}

.home-trust__icon svg {
    width: 22px;
    height: 22px;
}

.home-trust__number {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--home-text);
    transition: color var(--home-transition);
}

.home-trust__label {
    font-size: .8rem;
    color: var(--home-text-faint);
    font-weight: 500;
    transition: color var(--home-transition);
}


/* ─────────────────────────────────────────────
   5. SECTION BASE
   ───────────────────────────────────────────── */
.home-section {
    padding: 80px 24px;
    transition: background var(--home-transition);
    background: var(--home-bg);
}

.home-section--alt {
    background: var(--home-section-alt);
}

.home-section--warm {
    background: var(--home-section-warm, var(--home-bg));
}

.home-section__inner {
    max-width: 1320px !important;
    margin: 0 auto !important;
    width: 100%;
    box-sizing: border-box;
}

.home-section__header {
    text-align: center;
    margin-bottom: 48px;
}

.home-section__eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--home-accent);
    margin-bottom: 10px;
}

.home-section__title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--home-text);
    margin: 0 0 12px;
    transition: color var(--home-transition);
}

.home-section__subtitle {
    font-size: 1rem;
    color: var(--home-text-muted);
    max-width: 520px;
    margin: 0 auto;
    transition: color var(--home-transition);
}


/* ─────────────────────────────────────────────
   6. CATEGORIES GRID
   ───────────────────────────────────────────── */
.home-cats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.home-cat-card {
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-bottom: 3px solid var(--home-card-border-bottom, var(--home-border));
    border-radius: var(--home-radius);
    padding: 28px 24px;
    text-decoration: none;
    transition: all var(--home-transition);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--home-shadow-card);
}

.home-cat-card:hover {
    border-color: var(--home-accent);
    border-bottom-color: var(--home-accent);
    transform: translateY(-4px);
    box-shadow: var(--home-shadow-card-hover);
}

.home-cat-card__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: var(--home-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--home-accent);
    transition: all var(--home-transition);
}

.home-cat-card:hover .home-cat-card__icon {
    background: var(--home-accent);
    color: #FFFFFF;
}

.home-cat-card__icon svg {
    width: 22px;
    height: 22px;
}

.home-cat-card__info {
    flex: 1;
}

.home-cat-card__name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--home-text);
    margin-bottom: 2px;
    transition: color var(--home-transition);
}

.home-cat-card__count {
    font-size: .78rem;
    color: var(--home-text-faint);
    transition: color var(--home-transition);
}

.home-cat-card__arrow {
    width: 20px;
    height: 20px;
    color: var(--home-text-faint);
    transition: all var(--home-transition);
    flex-shrink: 0;
}

.home-cat-card:hover .home-cat-card__arrow {
    color: var(--home-accent);
    transform: translateX(4px);
}


/* ─────────────────────────────────────────────
   7. FEATURED PRODUCTS GRID
   ───────────────────────────────────────────── */
.home-products {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

.home-product-card {
    background: var(--home-card-bg);
    border-radius: var(--home-radius);
    overflow: hidden;
    border: 1px solid var(--home-border);
    border-bottom: 3px solid var(--home-card-border-bottom, var(--home-border));
    transition: all var(--home-transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--home-shadow-card);
}

.home-product-card:hover {
    border-color: var(--home-border-hover);
    border-bottom-color: var(--home-accent);
    box-shadow: var(--home-shadow-card-hover);
    transform: translateY(-5px);
}

.home-product-card__image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: #E8EDE6;
}

[data-theme="dark"] .home-product-card__image {
    background: #1a241e;
}

.home-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.home-product-card:hover .home-product-card__image img {
    transform: scale(1.06);
}

.home-product-card__image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E8EDE6;
    color: var(--home-text-faint);
}

[data-theme="dark"] .home-product-card__image-placeholder {
    background: #1a241e;
}

.home-product-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: var(--home-radius-pill);
    font-size: .7rem;
    font-weight: 700;
    color: var(--home-badge-text);
    background: var(--home-badge-sale);
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
}

.home-product-card__category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--home-radius-pill);
    font-size: .65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(8px);
    text-transform: uppercase;
    letter-spacing: .5px;
    z-index: 2;
}

.home-product-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.home-product-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--home-text);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--home-transition);
}

.home-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.home-product-card__title a:hover {
    color: var(--home-accent);
}

.home-product-card__author {
    font-size: .78rem;
    color: var(--home-text-faint);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.home-product-card__author svg {
    width: 13px;
    height: 13px;
    opacity: .5;
}

.home-product-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 14px;
}

.home-product-card__price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--home-accent);
}

.home-product-card__price-old {
    font-size: .85rem;
    color: var(--home-text-faint);
    text-decoration: line-through;
}

.home-product-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    background: var(--home-accent);
    color: #FFFFFF;
    font-size: .85rem;
    font-weight: 600;
    border: none;
    border-radius: var(--home-radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--home-transition);
}

.home-product-card__cta:hover {
    background: var(--home-accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--home-accent-glow);
}

.home-product-card__cta svg {
    width: 16px;
    height: 16px;
}

[data-theme="dark"] .home-product-card__cta {
    color: #0D1210;
}

[data-theme="dark"] .home-product-card__cta:hover {
    color: #0D1210;
}

.home-products__more {
    text-align: center;
    margin-top: 40px;
}

.home-products__more a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border: 2px solid var(--home-accent);
    color: var(--home-accent);
    border-radius: var(--home-radius-pill);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--home-transition);
}

.home-products__more a:hover {
    background: var(--home-accent);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--home-accent-glow);
}

.home-products__more a svg {
    width: 18px;
    height: 18px;
}


/* ─────────────────────────────────────────────
   8. VALUE PROPOSITIONS
   ───────────────────────────────────────────── */
.home-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.home-value {
    text-align: center;
    padding: 36px 24px;
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-bottom: 3px solid var(--home-card-border-bottom, var(--home-border));
    border-radius: var(--home-radius);
    transition: all var(--home-transition);
    box-shadow: var(--home-shadow-card);
}

.home-value:hover {
    transform: translateY(-5px);
    box-shadow: var(--home-shadow-card-hover);
    border-color: var(--home-accent);
    border-bottom-color: var(--home-accent);
}

.home-value__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 16px;
    background: var(--home-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--home-accent);
    transition: all var(--home-transition);
}

.home-value:hover .home-value__icon {
    background: var(--home-accent);
    color: #FFFFFF;
}

.home-value__icon svg {
    width: 26px;
    height: 26px;
}

.home-value__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--home-text);
    margin-bottom: 8px;
    transition: color var(--home-transition);
}

.home-value__text {
    font-size: .875rem;
    color: var(--home-text-muted);
    line-height: 1.65;
    transition: color var(--home-transition);
}


/* ─────────────────────────────────────────────
   9. NEWSLETTER CTA
   ───────────────────────────────────────────── */
.home-cta {
    background: var(--home-hero-bg);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.home-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(74, 222, 128, .08) 0%, transparent 60%);
    pointer-events: none;
}

.home-cta__inner {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.home-cta__title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 14px;
}

.home-cta__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 32px;
    line-height: 1.6;
}

.home-cta__form {
    display: flex;
    max-width: 460px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--home-radius-pill);
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: all var(--home-transition);
}

.home-cta__form:focus-within {
    border-color: rgba(255, 255, 255, .3);
    box-shadow: 0 0 0 4px rgba(74, 222, 128, .12);
}

.home-cta__form input {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: .95rem;
    font-family: inherit;
    outline: none;
}

.home-cta__form input::placeholder {
    color: rgba(255, 255, 255, .4);
}

.home-cta__form button {
    padding: 14px 28px;
    background: var(--home-accent);
    color: #FFFFFF;
    border: none;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--home-transition);
    border-radius: 0 var(--home-radius-pill) var(--home-radius-pill) 0;
    white-space: nowrap;
}

.home-cta__form button:hover {
    background: var(--home-accent-hover);
}


/* ─────────────────────────────────────────────
   10. FOOTER (shared with shop)
   ───────────────────────────────────────────── */
.home-footer {
    background: var(--home-footer-bg);
    color: rgba(255, 255, 255, .7);
    padding: 60px 24px 30px;
}

.home-footer__inner {
    max-width: 1320px !important;
    margin: 0 auto !important;
    width: 100%;
    box-sizing: border-box;
}

.home-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.home-footer__brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.home-footer__brand-name span {
    color: var(--home-accent);
}

.home-footer__brand-desc {
    font-size: .875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .5);
    max-width: 300px;
}

.home-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.home-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .5);
    transition: all var(--home-transition);
    text-decoration: none;
}

.home-footer__social a:hover {
    background: var(--home-accent);
    border-color: var(--home-accent);
    color: #FFFFFF;
}

.home-footer__social a svg {
    width: 16px;
    height: 16px;
}

.home-footer__col-title {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, .4);
    margin-bottom: 16px;
}

.home-footer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-footer__links a {
    font-size: .875rem;
    color: rgba(255, 255, 255, .6);
    text-decoration: none;
    transition: color var(--home-transition);
}

.home-footer__links a:hover {
    color: var(--home-accent);
}

.home-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.home-footer__copy {
    font-size: .8rem;
    color: rgba(255, 255, 255, .35);
}

.home-footer__payments {
    display: flex;
    gap: 12px;
    align-items: center;
}

.home-footer__payments svg {
    width: 36px;
    height: 24px;
    color: rgba(255, 255, 255, .3);
}


/* ─────────────────────────────────────────────
   11. SCROLL REVEAL ANIMATION
   ───────────────────────────────────────────── */
.home-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}

.home-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ─────────────────────────────────────────────
   12. RESPONSIVE
   ───────────────────────────────────────────── */

/* Tablet: 2 cols for products */
@media (min-width: 540px) {
    .home-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet landscape: 3 cols */
@media (min-width: 840px) {
    .home-products {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }

    .home-cats {
        grid-template-columns: repeat(3, 1fr);
    }

    .home-hero__title {
        font-size: 3.6rem;
    }
}

/* Desktop: 4 cols products, 3 cols cats */
@media (min-width: 1120px) {
    .home-products {
        grid-template-columns: repeat(4, 1fr);
    }

    .home-cats {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 839px) {
    .home-hero {
        padding: 100px 16px 60px;
        min-height: 440px;
    }

    .home-hero__title {
        font-size: 2rem;
    }

    .home-hero__subtitle {
        font-size: .95rem;
    }

    .home-hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .home-hero__cta {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .home-trust__inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .home-section {
        padding: 56px 16px;
    }

    .home-section__title {
        font-size: 1.6rem;
    }

    .home-cats {
        grid-template-columns: 1fr;
    }

    .home-values {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .home-footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-cta {
        padding: 56px 16px;
    }

    .home-cta__title {
        font-size: 1.5rem;
    }

    .home-cta__form {
        flex-direction: column;
        border-radius: var(--home-radius);
    }

    .home-cta__form button {
        border-radius: 0 0 var(--home-radius) var(--home-radius);
        padding: 14px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .home-hero__title {
        font-size: 1.65rem;
    }

    .home-trust__inner {
        grid-template-columns: 1fr 1fr;
        padding: 24px 16px;
    }
}


/* ─────────────────────────────────────────────
   13. OVERRIDES
   ───────────────────────────────────────────── */
body.home .wp-site-blocks,
body.home .is-layout-constrained,
body.home main.site-main,
body.page-template-front-page .wp-site-blocks,
body.page-template-front-page main.site-main {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Smooth transitions on theme switch */
body.home *,
body.page-template-front-page * {
    transition-property: background-color, color, border-color, box-shadow;
    transition-duration: .15s;
    transition-timing-function: ease;
}

/* Exception for interactive elements */
.home-product-card,
.home-product-card__image img,
.home-cat-card,
.home-value,
.theme-toggle__knob,
.shop-drawer {
    transition-property: all;
}

/* No underlines on card/product links */
.home-product-card a,
.home-product-card a:hover,
.home-cat-card,
.home-cat-card:hover {
    text-decoration: none !important;
}

/* Admin bar */
body.admin-bar .shop-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .shop-header {
        top: 46px;
    }
}