* {
    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;
    overflow-x: hidden;
}

button,
input,
textarea {
    font: inherit;
}

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

.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);
}

.entry-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .35rem;
}

.entry-title strong {
    font-size: 1rem;
}

.text-btn {
    border: 0;
    padding: .2rem 0;
    color: color-mix(in srgb, var(--ink), var(--accent) 26%);
    background: transparent;
    cursor: pointer;
    font-weight: 900;
}

.text-btn[hidden] {
    display: none;
}

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 {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1.5rem;
    padding: 2rem 0 1.5rem;
}

.hero--romantic {
    --gold: #b8965a;
    --gold-soft: #d6b985;
    padding: 2.75rem 2.25rem 2.25rem;
    margin-top: .75rem;
    border-radius: 1rem;
    background:
        radial-gradient(ellipse at top left, rgba(214, 185, 133, .28), transparent 62%),
        linear-gradient(135deg, #fbf4e6 0%, #fffaf3 55%, #fbe9d5 100%);
    box-shadow: 0 1px 0 rgba(184, 150, 90, .12) inset, 0 1.2rem 3rem -1.6rem rgba(184, 150, 90, .35);
    overflow: hidden;
}

.hero-copy {
    max-width: 52rem;
}

.eyebrow {
    margin: 0 0 1rem;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--gold, color-mix(in srgb, var(--ink), var(--accent) 32%));
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .32em;
    text-transform: uppercase;
}

.eyebrow-glyph {
    font-size: .9rem;
    letter-spacing: 0;
    color: var(--gold-soft, currentColor);
}

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

.hero--romantic h1 {
    font-family: 'Cormorant Garamond', 'Playfair Display', 'EB Garamond', Georgia, 'Times New Roman', Times, serif;
    font-weight: 500;
    font-size: clamp(2.1rem, 4.8vw, 4.2rem);
    line-height: 1.08;
    letter-spacing: -.005em;
    color: var(--ink);
}

.hero--romantic h1 em {
    font-style: italic;
    font-weight: 500;
    color: var(--gold, currentColor);
}

.hero-ornament {
    margin: 1.4rem 0 .15rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    width: max-content;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 1.35rem;
    line-height: 1;
    color: var(--gold-soft, #d6b985);
}

.hero-ornament::before,
.hero-ornament::after {
    content: "";
    flex: 0 0 3rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-soft, #d6b985), transparent);
}

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

.hero--romantic .customer-chip {
    border: 1px solid var(--gold-soft, rgba(184, 150, 90, .4));
    border-radius: .35rem;
    background: rgba(255, 255, 255, .82);
}

.customer-chip span,
.customer-chip button {
    display: block;
}

.customer-chip span {
    margin-bottom: .35rem;
    font-weight: 800;
}

.hero--romantic .customer-chip span {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', Times, serif;
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: .01em;
}

.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;
}

.product-note {
    margin: .5rem 0 0;
    padding: .55rem .65rem;
    border-radius: .4rem;
    background: rgba(255, 255, 255, .7);
    color: rgba(51, 39, 47, .78);
    font-size: .82rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.35;
}

.product-note strong {
    font-style: italic;
    font-weight: 700;
}

.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;
}

.mobile-cart-bar {
    display: none;
}

@media (max-width: 760px) {
    body {
        padding-bottom: calc(4.8rem + env(safe-area-inset-bottom));
    }

    .site-header {
        align-items: center;
        padding: .7rem .85rem;
    }

    .brand small {
        display: none;
    }

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

    .hero {
        gap: .9rem;
        padding: 1.25rem 0 .9rem;
    }

    .hero--romantic {
        padding: 1.75rem 1.25rem 1.5rem;
        margin-top: .5rem;
        border-radius: .75rem;
    }

    h1 {
        font-size: clamp(1.75rem, 8vw, 2.45rem);
        line-height: 1.02;
    }

    .hero--romantic h1 {
        font-size: clamp(1.85rem, 7.5vw, 2.6rem);
        line-height: 1.1;
    }

    .hero--romantic .hero-ornament {
        font-size: 1.1rem;
        margin-top: 1rem;
    }

    .hero--romantic .hero-ornament::before,
    .hero--romantic .hero-ornament::after {
        flex-basis: 2.4rem;
    }

    .tools {
        position: sticky;
        top: 4.2rem;
        z-index: 16;
        gap: .75rem;
        margin: .6rem -1rem 1rem;
        padding: .65rem 1rem .75rem;
        background: rgba(255, 255, 255, .86);
        border-block: 1px solid rgba(51, 39, 47, .08);
        backdrop-filter: blur(14px);
    }

    .category-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: .15rem;
        scrollbar-width: none;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

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

    .cart-panel {
        width: 100%;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .mobile-cart-bar {
        position: fixed;
        right: .85rem;
        bottom: calc(.85rem + env(safe-area-inset-bottom));
        left: .85rem;
        z-index: 30;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        min-height: 3.65rem;
        border: 0;
        border-radius: .55rem;
        padding: .7rem .95rem;
        color: #fff;
        background: var(--ink);
        box-shadow: 0 1rem 2.5rem rgba(51, 39, 47, .24);
        cursor: pointer;
        font-weight: 900;
    }

    .mobile-cart-bar span,
    .mobile-cart-bar strong {
        display: block;
    }

    .mobile-cart-bar strong {
        font-size: .9rem;
        text-align: right;
    }
}

@media (max-width: 640px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .product-card {
        display: grid;
        grid-template-columns: 7.6rem minmax(0, 1fr);
    }

    .product-photo {
        min-height: 100%;
        aspect-ratio: auto;
    }

    .product-body {
        padding: .8rem;
    }

    .product-body h2 {
        min-height: 0;
        font-size: 1rem;
    }

    .prices {
        gap: .3rem;
        margin: .6rem 0;
    }

    .prices span {
        padding: .45rem .5rem;
        font-size: .76rem;
    }

    .product-note {
        padding: .45rem .5rem;
        font-size: .76rem;
    }

    .buy-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: .45rem;
    }

    .add-btn {
        width: 100%;
    }
}

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

    .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;
    }
}
