/* Hallmark · Referencia editorial de Ashfield · El local y el catálogo de Hierbabuena guían la composición. */
/* Un acceso claro al catálogo y fotografías propias en lugar de un carrusel. */
:root {
    --hb-paper: #faf7ef;
    --hb-surface: #fffdf7;
    --hb-white: #fff;
    --hb-sage: #e8eee1;
    --hb-forest: #203f32;
    --hb-forest-hover: #2c5542;
    --hb-ink: #24372c;
    --hb-muted: #4b5e51;
    --hb-rule: #d5d9cd;
    --hb-focus: #a1482a;
    --hb-display: Georgia, 'Times New Roman', serif;
    --hb-radius: 10px;
    --hb-gutter: clamp(18px, 4vw, 54px);
    --hb-stack: clamp(38px, 6vw, 92px);
}

html, body.hb-site, body.auth-body { overflow-x: clip; }

.hb-site, .auth-body {
    --bg: var(--hb-paper);
    --light: var(--hb-sage);
    --green: var(--hb-forest);
    --green-2: var(--hb-forest-hover);
    --text: var(--hb-ink);
    --muted: var(--hb-muted);
    --border: var(--hb-rule);
    --panel-border: var(--hb-rule);
    --radius: var(--hb-radius);
    --control-radius: 8px;
    --shadow: none;
    --focus-ring: 0 0 0 2px var(--hb-focus);
}

.hb-site :focus-visible, .auth-body :focus-visible {
    outline: 2px solid var(--hb-focus);
    outline-offset: 3px;
}

.hb-skip {
    position: fixed;
    z-index: 10000;
    inset: 12px auto auto 12px;
    transform: translateY(calc(-100% - 20px));
    background: var(--hb-white);
    padding: 10px 16px;
    border-radius: 6px;
}

.hb-skip:focus { transform: none; }

.hb-site .container { max-width: 1380px; padding-inline: var(--hb-gutter); }
.hb-site .site-header { background: var(--hb-surface); box-shadow: none; }
.hb-site .header-search { background: var(--hb-paper); }
.hb-site .header-search:focus-within {
    background: var(--hb-white);
    border-color: var(--hb-focus);
    outline: 2px solid var(--hb-focus);
    box-shadow: none;
}
.hb-site .header-search input:focus-visible { outline: none; }
.hb-site .header-search input::placeholder { color: var(--hb-muted); }
.hb-site .section { padding-block: var(--hb-stack); scroll-margin-top: calc(var(--site-header-height, 132px) + 18px); }
.hb-site #contenido { scroll-margin-top: var(--site-header-height, 132px); }

.hb-site main :is(h1, h2), .auth-body h1, .hb-site .auth-modal h1 {
    font-family: var(--hb-display);
    font-weight: 400;
    letter-spacing: -.035em;
    line-height: 1.12;
    overflow-wrap: break-word;
    min-width: 0;
}

.hb-site main h1 { font-size: clamp(2.05rem, 4vw, 3.8rem); }
.hb-site main h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.hb-site .eyebrow, .hb-site .account-menu__eyebrow { letter-spacing: normal; text-transform: none; }
.hb-site .btn, .auth-body .btn { border-radius: 8px; min-height: 46px; }

.hb-site .hero {
    background: var(--hb-forest);
    color: var(--hb-paper);
    padding-block: clamp(27px, 4vw, 52px);
}

.hb-site .hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: center;
    gap: clamp(26px, 5vw, 70px);
}

.hb-home .hero__text { min-width: 0; padding-block: 10px; }
.hb-home .hero__text h1 { color: var(--hb-paper); font-size: clamp(2.35rem, 5.2vw, 5.1rem); max-width: 13ch; text-wrap: balance; }
.hb-home .hero__text p { color: var(--hb-paper); max-width: 36ch; font-size: clamp(1rem, 1.5vw, 1.18rem); }
.hb-home .hero__text .hb-hero__location { font-size: .98rem; }
.hb-home .hero__actions { gap: 20px; align-items: center; margin-top: 20px; }
.hb-home .hero__actions .btn { color: var(--hb-forest); background: var(--hb-paper); border-color: var(--hb-paper); }
.hb-home .hero__actions .btn:hover { color: var(--hb-forest); background: var(--hb-sage); border-color: var(--hb-sage); }
.hb-home .hero__actions :focus-visible { outline-color: var(--hb-paper); }
.hb-inline-link { color: var(--hb-paper); text-decoration: underline; text-underline-offset: 5px; }
.hb-inline-link:hover, .hb-inline-link:focus-visible { color: var(--hb-white); }
.hb-home .hero__media { display: block; margin: 0; min-width: 0; }

.hb-home .hero__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 510px;
    object-fit: cover;
    border-radius: var(--hb-radius);
}

.hb-home .hero__media figcaption { font-size: .875rem; padding-top: 8px; }
.hb-home .section-header { text-align: left; max-width: none; margin: 0 0 22px; }
.hb-home .section-lead { margin: 0; color: var(--hb-muted); }
.hb-home #categorias { padding-block: clamp(26px, 4vw, 56px); }
.hb-home .home-category-grid { gap: 12px; }

.hb-home .home-category-card {
    border-radius: var(--hb-radius);
    box-shadow: none;
    background: var(--hb-surface);
    min-height: 76px;
}

.hb-home .home-category-card > span:last-child { margin-left: 0; }
.hb-home .home-category-card:hover { background: var(--hb-sage); text-decoration: underline; }

.store-category-art {
    display: inline-block;
    background-repeat: no-repeat;
    mix-blend-mode: multiply;
}

/* Encuadres cuadrados de las ilustraciones de portada. */
.store-category-art--suplementos {
    background-image: url('img/categories/ilustraciones-suplementos-cosmetica.png');
    background-size: 149.29% auto;
    background-position: 52.17% 0;
}

.store-category-art--cosmetica-e-higiene {
    background-image: url('img/categories/ilustraciones-suplementos-cosmetica.png');
    background-size: 141.22% auto;
    background-position: 54.10% 100%;
}

.store-category-art--mama-y-bebe {
    background-image: url('img/categories/mama-y-bebe.webp');
    background-size: 127% auto;
    background-position: center;
}

.hb-home .home-category-card > .store-category-icon { width: 36px; height: 36px; flex: 0 0 36px; }
.hb-site .store-tree__group summary > .store-category-icon,
.hb-site .store-tree__leaf > .store-category-icon { width: 22px; height: 22px; flex: 0 0 22px; }
.hb-home .home-shop { background: var(--hb-sage); }
.hb-home .home-shop__header { gap: 14px; }
.hb-home .home-shop__header p { margin-bottom: 0; }
.hb-home .home-shop__grid { gap: clamp(12px, 2vw, 24px); }
.hb-home #sobre .two-columns { display: grid; gap: clamp(24px, 5vw, 75px); }
.hb-home #sobre p { max-width: 49ch; font-size: 1.1rem; }
.hb-home .media-card { border: 0; box-shadow: none; overflow: clip; }
.hb-home #sobre .media-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hb-home :is(#cosmetica, #suplementos) { padding-block: clamp(24px, 4vw, 52px); }
.hb-home .logo-grid { gap: 10px; list-style: none; margin: 0; padding: 0; }
.hb-home .logo-card {
    flex-direction: column;
    gap: 7px;
    text-align: center;
    height: 100%;
    min-height: 108px;
    padding: 12px;
    border: 1px solid var(--hb-rule);
    background: var(--hb-white);
    box-shadow: none;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.hb-home .logo-card img { width: 100%; max-width: 118px; height: 46px; object-fit: contain; }
.hb-home .contact { background: var(--hb-sage); }
.hb-home .contact-form { background: var(--hb-surface); border: 1px solid var(--hb-rule); box-shadow: none; }

.hb-site .catalog-hero { background: var(--hb-paper); }
.hb-site .store-layout { gap: clamp(20px, 2.5vw, 36px); }
.hb-site .store-sidebar { background: var(--hb-surface); }
.hb-site .store-tree__group summary, .hb-site .store-tree__leaf, .hb-site .store-tree__all { font-size: .9rem; }
.hb-site .store-tree__group--0 > summary { font-size: .98rem; }
.hb-site .store-catalog-heading__title h1 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
.hb-site .store-breadcrumbs { font-size: .9rem; }

.hb-site .product-card {
    border: 1px solid var(--hb-rule);
    background: var(--hb-surface);
    box-shadow: none;
    min-width: 0;
}

.hb-site .product-card:hover, .hb-site .product-card:focus-within {
    transform: none;
    border-color: var(--hb-forest-hover);
    box-shadow: none;
}

.hb-site .product-card__media { background: var(--hb-white); }
.hb-site .product-card__media img,
.hb-site .product-card:is(:hover, :focus-within) .product-card__media img { transition: none; transform: none; }
.hb-site .product-card__body { padding: clamp(11px, 1.5vw, 19px); }

.hb-site .product-card__body :is(h2, h3) {
    font-family: inherit;
    font-size: clamp(.95rem, 1.25vw, 1.12rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.hb-site .product-card__code { font-size: .82rem; letter-spacing: normal; text-transform: none; }
.hb-site .product-card__action { min-height: 42px; padding-inline: 9px; }
.hb-site .product-detail { background: var(--hb-paper); }
.hb-site .product-detail__media { background: var(--hb-white); border: 1px solid var(--hb-rule); box-shadow: none; }
.hb-site .product-detail__content h1 { font-size: clamp(2rem, 3.2vw, 3.25rem); }
.hb-site :is(.checkout-panel, .cart-summary, .cart-item, .order-history-card, .shop-panel) {
    background: var(--hb-surface);
    border-color: var(--hb-rule);
    box-shadow: none;
}

.hb-site .hb-footer { border: 0; background: var(--hb-forest); color: var(--hb-paper); padding-block: clamp(28px, 5vw, 60px); }
.hb-footer__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .65fr); gap: 24px; }
.hb-footer__brand { font-family: var(--hb-display); font-size: 2rem; line-height: 1.1; margin: 0 0 5px; }
.hb-footer address { font-style: normal; }
.hb-footer nav { display: grid; align-content: start; gap: 6px; }
.hb-site .hb-footer a { color: var(--hb-paper); text-decoration: underline; text-underline-offset: 3px; }
.hb-site .hb-footer a:focus-visible { outline-color: var(--hb-paper); }

@media (max-width: 760px) {
    .hb-site .hero__content, .hb-home #sobre .two-columns { grid-template-columns: minmax(0, 1fr); }
    .hb-home .hero__text { padding-block: 0; }
    .hb-home .hero__media img { max-height: 380px; }
    .hb-footer__inner { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 720px) {
    .hb-site .shop-construction-notice__content { grid-template-columns: minmax(0, 1fr); gap: 5px; padding-block: 8px; }
    .hb-site .shop-construction-notice__icon { display: none; }
    .hb-site .shop-construction-notice a { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hb-site *, .hb-site *::before, .hb-site *::after, .auth-body * {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
