@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700&family=Libre+Baskerville:wght@400;700&display=swap');

:root {
    --starter-ink: #1c1a17;
    --starter-muted: #6f6a63;
    --starter-line: #e6e1da;
    --starter-soft: #f5f6f2;
    --starter-panel: #ffffff;
    --starter-accent: #60745f;
    --starter-wood: #a66f44;
}

.layout {
    background: #ffffff;
}

.storefront,
.product-page,
.storefront-page,
.customer-account {
    font-family: "Jost", "Helvetica Neue", sans-serif;
    color: var(--starter-ink);
    background: #ffffff;
    overflow-x: hidden;
}

.storefront *,
.storefront *::before,
.storefront *::after,
.product-page *,
.product-page *::before,
.product-page *::after,
.storefront-page *,
.storefront-page *::before,
.storefront-page *::after,
.customer-account *,
.customer-account *::before,
.customer-account *::after {
    box-sizing: border-box;
}

.container {
    margin: 0 auto;
}

.topbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}

.nav a {
    color: var(--starter-ink);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.nav a:hover {
    color: var(--starter-accent);
}

.topbar .actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.65rem 1.15rem;
    border: 1px solid var(--starter-ink);
    border-radius: .75rem;
    background: transparent;
    color: var(--starter-ink);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.button.primary {
    background: var(--starter-ink);
    color: #ffffff;
    border-color: var(--starter-ink);
}

.button.whatsapp-product-button {
    background: #25d366;
    border-color: #25d366;
    color: #063b1d;
}

.button.ghost {
    background: transparent;
    color: var(--starter-ink);
}

.button:hover {
    background: var(--starter-accent);
    border-color: var(--starter-accent);
    color: #ffffff;
}

.button.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.45rem;
    height: 1.45rem;
    margin-left: 0.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    font-size: 0.75rem;
}

.cart-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.55rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--starter-line);
    border-radius: 2px;
    background: #ffffff;
    color: var(--starter-ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.86rem;
    text-transform: uppercase;
}

.cart-pill strong {
    min-width: 1.2rem;
    text-align: center;
}

.cart-pill:hover {
    border-color: var(--starter-ink);
}

.hero-slider {
    position: relative;
    display: grid;
    gap: 1rem;
    overflow: hidden;
}

.hero-slider__track {
    position: relative;
    min-height: 42rem;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: stretch;
    min-height: 42rem;
    overflow: hidden;
    background: var(--starter-soft);
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transform: translateX(1.25rem);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.hero-slide__bg-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 36%, rgba(255, 255, 255, 0.18) 100%),
        linear-gradient(0deg, rgba(28, 26, 23, 0.08), rgba(28, 26, 23, 0.08));
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    display: grid;
    align-items: center;
    min-height: 40rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--starter-accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 32rem;
    margin: 0.9rem 0 1.1rem;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 3.9rem;
    line-height: 1.06;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.lead {
    max-width: 34rem;
    margin: 0 0 1.5rem;
    color: var(--starter-muted);
    font-size: 1.03rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.hero-slider__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-slider__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.hero-slider__dot,
.hero-slider__arrow {
    border: 0;
    cursor: pointer;
}

.hero-slider__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: rgba(28, 26, 23, 0.25);
}

.hero-slider__dot.is-active {
    background: var(--starter-ink);
}

.hero-slider__arrow {
    width: 2.55rem;
    height: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--starter-ink);
    border: 1px solid var(--starter-line);
    font-size: 1.4rem;
    line-height: 1;
}

.section-header {
    display: grid;
    gap: 0.45rem;
    justify-items: center;
    text-align: center;
    max-width: 42rem;
    margin: 4rem auto 2rem;
}

.section-header h2 {
    margin: 0;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 2.45rem;
    line-height: 1.18;
}

.catalog {
    margin-top: 4rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.25rem 1.4rem;
}

.product-card {
    position: relative;
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}

.product-link {
    display: grid;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

.product-thumb {
    width: 100%;
    aspect-ratio: 1 / 1.18;
    background: var(--starter-soft);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--starter-line);
}

.product-body {
    display: grid;
    gap: 0.45rem;
}

.product-body strong {
    display: block;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1rem;
    line-height: 1.35;
}

.price {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    color: var(--starter-ink);
    font-size: 0.95rem;
}

.price span {
    font-weight: 700;
}

.price small {
    text-decoration: line-through;
    color: var(--starter-muted);
    font-size: 0.82rem;
}

.product-card .button {
    justify-self: start;
    min-height: 2.2rem;
    padding: 0.45rem 0.8rem;
    border-color: var(--starter-line);
    font-size: 0.78rem;
}

.muted {
    color: var(--starter-muted);
}

.notice {
    padding: 0.85rem 1rem;
    border: 1px solid var(--starter-line);
    border-left: 3px solid var(--starter-accent);
    border-radius: 2px;
    background: #ffffff;
    color: var(--starter-muted);
    font-size: 0.92rem;
}

.notice.warning {
    border-left-color: var(--starter-wood);
    background: #fff9f1;
}

.notice.success {
    border-left-color: var(--starter-accent);
    background: #f4f8f3;
}

.empty-state {
    padding: 2rem;
    border: 1px dashed var(--starter-line);
    text-align: center;
    background: var(--starter-soft);
}

.site-footer {
    margin-top: 4rem;
    padding: 2.5rem 0 1rem;
    border-top: 1px solid var(--starter-line);
}

.site-footer > .container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.75rem;
}

.site-footer__column {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    min-width: 0;
}

.site-footer__column h2 {
    margin: 0 0 0.35rem;
    font-family: "Libre Baskerville", Georgia, serif;
    font-size: 1rem;
    line-height: 1.3;
}

.site-footer__column strong,
.site-footer__column a {
    color: var(--starter-ink);
}

.site-footer__column a {
    width: fit-content;
    max-width: 100%;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-footer__column a:hover {
    color: var(--starter-accent);
}

.site-footer__column p {
    margin: 0;
}

.site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--starter-line);
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.whatsapp-float {
    align-items: center;
    background: #25d366;
    border: 1px solid rgba(6, 59, 29, 0.14);
    border-radius: 999px;
    bottom: 1.25rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
    color: #063b1d;
    display: inline-flex;
    font-weight: 700;
    gap: 0.55rem;
    min-height: 3.2rem;
    padding: 0.75rem 1rem;
    position: fixed;
    right: 1.25rem;
    text-decoration: none;
    z-index: 40;
}

.whatsapp-float:hover {
    background: #20bd5a;
}

.whatsapp-float__icon {
    align-items: center;
    background: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    font-size: 0.85rem;
    height: 1.75rem;
    justify-content: center;
    width: 1.75rem;
}

.copyright {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--starter-line);
    color: var(--starter-muted);
    font-size: 0.82rem;
}

.copyright .container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    text-align: center;
}

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    background: rgba(28, 26, 23, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.cart-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.cart-panel {
    width: min(28rem, 100%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    padding: 2rem;
    background: #ffffff;
}

.cart-header,
.cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cart-row {
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--starter-line);
}

.cart-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-actions button {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--starter-line);
    background: #ffffff;
    color: var(--starter-ink);
    font-weight: 700;
}

.cart-summary {
    display: grid;
    gap: 0.35rem;
    font-weight: 700;
}

.cart-summary > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cart-summary .total {
    font-size: 1.1rem;
}

.cart-footer,
.checkout-section,
.checkout-form {
    display: grid;
    gap: 0.8rem;
}

.checkout-form h4 {
    margin: 0.5rem 0 0;
    font-size: 1rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
}

.field input,
.field select {
    min-height: 2.55rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--starter-line);
    border-radius: 2px;
    background: #ffffff;
    color: var(--starter-ink);
}

.field input.is-invalid,
.field select.is-invalid {
    border-color: rgba(182, 34, 34, 0.6);
    background: rgba(255, 88, 88, 0.08);
}

.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 0.75rem;
}

.shipping-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.shipping-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--starter-line);
    background: #ffffff;
    text-align: left;
}

.shipping-option.selected {
    border-color: var(--starter-ink);
}

.divider {
    height: 1px;
    background: var(--starter-line);
    margin: 0.5rem 0;
}

.checkout-message,
.checkout-result {
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--starter-line);
    border-radius: 2px;
    background: var(--starter-soft);
    font-size: 0.9rem;
}

.checkout-message.error {
    background: rgba(255, 88, 88, 0.12);
    color: #9e2626;
}

.checkout-message.success {
    background: rgba(36, 169, 107, 0.12);
    color: #246f4d;
}

.checkout-message.info {
    background: rgba(21, 101, 192, 0.12);
    color: #234f7a;
}

.checkout-result {
    display: grid;
    gap: 0.5rem;
}

.checkout-result-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: var(--starter-ink);
    font-size: 1.2rem;
    font-weight: 700;
}

.checkout-result[data-status="success"] {
    border-color: rgba(36, 169, 107, 0.3);
    background: rgba(36, 169, 107, 0.08);
}

.checkout-result[data-status="error"] {
    border-color: rgba(182, 34, 34, 0.3);
    background: rgba(255, 88, 88, 0.1);
}

.checkout-result[data-status="info"] {
    border-color: rgba(21, 101, 192, 0.3);
    background: rgba(21, 101, 192, 0.08);
}

[data-animate] {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 0.65s ease forwards;
}

[data-delay="1"] {
    animation-delay: 0.12s;
}

[data-delay="2"] {
    animation-delay: 0.24s;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 72rem) {
    .topbar {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .nav,
    .actions {
        justify-content: flex-start;
    }

    .hero-slide__content {
        padding: 3rem;
    }

    .hero-copy h1 {
        font-size: 3rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 48rem) {
    .storefront,
    .product-page,
    .storefront-page,
    .customer-account {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .topbar {
        gap: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .nav {
        gap: 0.85rem 1rem;
    }

    .actions,
    .button,
    .cart-pill {
        width: 100%;
    }

    .button,
    .cart-pill {
        justify-content: center;
    }

    .hero-slider__track,
    .hero-slide,
    .hero-slide__content {
        min-height: 34rem;
    }

    .hero-slide__content {
        padding: 2rem;
        align-items: end;
    }

    .hero-copy {
        width: 100%;
        max-width: 18rem;
    }

    .hero-copy h1,
    .lead {
        max-width: 18rem;
    }

    .hero-slide__overlay {
        background: linear-gradient(0deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.72) 56%, rgba(255,255,255,0.18) 100%);
    }

    .hero-copy h1 {
        font-size: 1.9rem;
        line-height: 1.16;
    }

    .lead {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }

    .product-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .cart-panel {
        width: 100%;
    }

    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
    }
}
