* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--primary), white 60%), transparent 34rem),
        linear-gradient(135deg, var(--paper), #fff);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.entry {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: color-mix(in srgb, var(--paper), white 30%);
    backdrop-filter: blur(18px);
}

.entry.hidden {
    display: none;
}

.entry-card {
    width: min(100%, 26rem);
    padding: 1.25rem;
    border: 1px solid rgba(51, 39, 47, .12);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 1.5rem 4rem rgba(51, 39, 47, .12);
}

.brand-lockup,
.brand,
.cart-button,
.cart-head,
.buy-row,
.cart-total {
    display: flex;
    align-items: center;
}

.brand-lockup,
.brand {
    gap: .75rem;
    text-decoration: none;
    color: inherit;
}

.brand-lockup {
    margin-bottom: 1.25rem;
}

.brand img,
.brand-lockup img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 800;
}

.brand strong,
.brand-lockup strong {
    display: block;
    line-height: 1.1;
}

.brand small,
.brand-lockup small {
    display: block;
    color: rgba(51, 39, 47, .62);
}

label {
    display: grid;
    gap: .35rem;
    margin: .75rem 0;
    font-size: .82rem;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(51, 39, 47, .14);
    border-radius: .45rem;
    padding: .75rem .8rem;
    color: var(--ink);
    background: rgba(255, 255, 255, .92);
    outline: none;
}

input:focus,
textarea:focus {
    border-color: color-mix(in srgb, var(--accent), var(--ink) 10%);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--accent), transparent 74%);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem clamp(1rem, 4vw, 3rem);
    background: rgba(255, 255, 255, .78);
    border-bottom: 1px solid rgba(51, 39, 47, .08);
    backdrop-filter: blur(16px);
}

.cart-button,
.primary-btn,
.secondary-btn,
.add-btn {
    cursor: pointer;
    border: 0;
    border-radius: .45rem;
    font-weight: 800;
}

.cart-button {
    gap: .55rem;
    padding: .7rem .85rem;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 .75rem 2rem rgba(51, 39, 47, .08);
}

.cart-button b {
    display: grid;
    place-items: center;
    min-width: 1.6rem;
    height: 1.6rem;
    border-radius: 999px;
    color: #fff;
    background: var(--ink);
    font-size: .78rem;
}

main {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 5rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1.5rem;
    padding: 2rem 0 1.5rem;
}

.eyebrow {
    margin: 0 0 .6rem;
    color: color-mix(in srgb, var(--ink), var(--accent) 32%);
    font-size: .8rem;
    font-weight: 900;
    text-transform: uppercase;
}

h1 {
    max-width: 52rem;
    margin: 0;
    font-size: clamp(2rem, 5vw, 4.6rem);
    line-height: .98;
    letter-spacing: 0;
}

.customer-chip {
    min-width: 14rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(51, 39, 47, .1);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .68);
}

.tools {
    display: grid;
    grid-template-columns: minmax(14rem, 24rem) 1fr;
    align-items: end;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.search-box {
    margin: 0;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
}

.category-tabs button {
    border: 1px solid rgba(51, 39, 47, .12);
    border-radius: 999px;
    padding: .65rem .9rem;
    color: var(--ink);
    background: rgba(255, 255, 255, .72);
    cursor: pointer;
}

.category-tabs button.active {
    color: #fff;
    background: var(--ink);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1rem;
}

.product-card {
    overflow: hidden;
    border: 1px solid rgba(51, 39, 47, .09);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 1rem 2.75rem rgba(51, 39, 47, .08);
}

.product-card.hidden {
    display: none;
}

.product-photo {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--primary), white 40%), color-mix(in srgb, var(--accent), white 36%));
}

.product-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-photo span {
    display: grid;
    place-items: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .22);
    font-size: 2.6rem;
    font-weight: 900;
}

.product-body {
    padding: 1rem;
}

.product-body p {
    margin: 0 0 .35rem;
    color: rgba(51, 39, 47, .6);
    font-size: .78rem;
    font-weight: 800;
}

.product-body h2 {
    min-height: 2.8rem;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.25;
}

.prices {
    display: grid;
    gap: .4rem;
    margin: .9rem 0;
}

.prices span {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    padding: .55rem .65rem;
    border-radius: .4rem;
    background: rgba(255, 255, 255, .7);
    font-size: .82rem;
}

.buy-row {
    gap: .6rem;
}

.stepper {
    display: grid;
    grid-template-columns: 2.25rem minmax(3rem, 1fr) 2.25rem;
    flex: 1;
    border: 1px solid rgba(51, 39, 47, .12);
    border-radius: .45rem;
    overflow: hidden;
    background: #fff;
}

.stepper button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 900;
}

.stepper input {
    border: 0;
    border-left: 1px solid rgba(51, 39, 47, .08);
    border-right: 1px solid rgba(51, 39, 47, .08);
    border-radius: 0;
    padding: .55rem .3rem;
    text-align: center;
}

.primary-btn,
.secondary-btn,
.add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6rem;
    padding: .7rem 1rem;
    text-decoration: none;
}

.primary-btn,
.add-btn {
    color: #fff;
    background: var(--ink);
}

.secondary-btn {
    width: 100%;
    color: var(--ink);
    background: color-mix(in srgb, var(--accent), white 24%);
}

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    justify-content: flex-end;
    background: rgba(51, 39, 47, .2);
}

.cart-drawer.open {
    display: flex;
}

.cart-panel {
    width: min(100%, 28rem);
    height: 100%;
    overflow: auto;
    padding: 1rem;
    background: #fff;
    box-shadow: -1rem 0 3rem rgba(51, 39, 47, .18);
}

.cart-head {
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cart-head strong {
    display: block;
    font-size: 1.2rem;
}

.cart-head small {
    color: rgba(51, 39, 47, .62);
}

.cart-head button {
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.cart-customer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.cart-customer label {
    margin: 0;
}

.cart-customer .wide {
    grid-column: 1 / -1;
}

.cart-items {
    display: grid;
    gap: .7rem;
    margin: 1rem 0;
}

.cart-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .85rem;
    border: 1px solid rgba(51, 39, 47, .1);
    border-radius: .45rem;
    background: color-mix(in srgb, var(--paper), white 50%);
}

.cart-line strong,
.cart-line small {
    display: block;
}

.cart-line small {
    color: rgba(51, 39, 47, .62);
}

.cart-line-controls {
    display: grid;
    justify-items: end;
    gap: .45rem;
}

.cart-stepper {
    display: grid;
    grid-template-columns: 2rem 3.4rem 2rem;
    overflow: hidden;
    border: 1px solid rgba(51, 39, 47, .12);
    border-radius: .4rem;
    background: #fff;
}

.cart-stepper button,
.cart-stepper input {
    min-height: 2rem;
    border: 0;
    background: transparent;
}

.cart-stepper button {
    cursor: pointer;
    font-weight: 900;
}

.cart-stepper input {
    border-left: 1px solid rgba(51, 39, 47, .08);
    border-right: 1px solid rgba(51, 39, 47, .08);
    border-radius: 0;
    padding: .35rem .2rem;
    text-align: center;
}

.cart-line-controls > button {
    border: 0;
    color: #9b4152;
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.clear-cart-btn {
    width: 100%;
    min-height: 2.35rem;
    border: 1px solid rgba(155, 65, 82, .28);
    border-radius: .45rem;
    color: #9b4152;
    background: #fff6f8;
    cursor: pointer;
    font-weight: 800;
}

.clear-cart-btn:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.cart-total {
    justify-content: space-between;
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(51, 39, 47, .12);
    font-size: 1.2rem;
}

.whatsapp-btn {
    width: 100%;
    margin-top: .7rem;
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
    }

    .brand small {
        display: none;
    }

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

    .category-tabs {
        justify-content: flex-start;
    }

    .customer-chip {
        min-width: 0;
    }
}

@media (max-width: 460px) {
    main {
        width: min(100% - 1rem, 1160px);
    }

    .site-header {
        padding-inline: .75rem;
    }

    .cart-customer {
        grid-template-columns: 1fr;
    }

    .cart-line {
        grid-template-columns: 1fr;
    }

    .cart-line-controls {
        justify-items: stretch;
    }

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