:root {
    --ink: #27231f;
    --muted: #6f665c;
    --paper: #fffaf4;
    --surface: #ffffff;
    --line: #e8ddd1;
    --rose: #bf5f6e;
    --sage: #687b68;
    --gold: #c89448;
    --shadow: 0 18px 45px rgba(46, 36, 26, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: radial-gradient(circle at top left, rgba(191, 95, 110, 0.12), transparent 32rem), var(--paper);
    font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 15;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 16px clamp(16px, 4vw, 42px);
    background: rgba(255, 250, 244, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-grid;
    color: var(--ink);
    text-decoration: none;
    line-height: 1;
}

.brand span {
    color: var(--rose);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
}

.brand strong {
    margin-top: -2px;
    color: var(--sage);
    font-size: clamp(1rem, 2.4vw, 1.45rem);
    letter-spacing: 0;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.site-nav a,
.back-link {
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-weight: 700;
}

.site-nav a.is-active,
.site-nav a:hover,
.back-link:hover {
    color: #fff;
    background: var(--rose);
    border-color: var(--rose);
}

.cart-top-button {
    display: inline-flex;
    align-items: center;
    justify-self: end;
    gap: 10px;
    min-height: 44px;
    padding: 9px 12px;
    color: #fff;
    background: var(--ink);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.cart-top-button strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    color: var(--ink);
    background: #fff;
    border-radius: 999px;
}

.page-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 96px;
}

.home-shell {
    padding-top: 52px;
}

.intro,
.listing-heading {
    margin-bottom: 24px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--rose);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.45rem, 7vw, 5.6rem);
    line-height: 0.95;
    color: var(--ink);
}

.intro h1 {
    max-width: 720px;
    color: var(--rose);
    text-shadow: 0 2px 0 rgba(200, 148, 72, 0.22);
}

.listing-heading h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
}

.back-link {
    display: inline-flex;
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    min-height: 380px;
    overflow: hidden;
    color: #fff;
    background: #eee3d7;
    border: 2px solid transparent;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.category-card:hover,
.category-card:focus-visible {
    border-color: var(--rose);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    display: block;
    object-fit: cover;
    transition: transform 220ms ease;
}

.category-card:hover img,
.category-card:focus-visible img {
    transform: scale(1.03);
}

.category-overlay {
    position: absolute;
    inset: auto 18px 18px;
    display: grid;
    gap: 6px;
    padding: 18px;
    background: rgba(38, 31, 27, 0.74);
    border-radius: 8px;
    backdrop-filter: blur(8px);
}

.category-overlay strong {
    font-size: 1.65rem;
    line-height: 1.1;
}

.category-overlay small {
    color: rgba(255, 255, 255, 0.82);
}

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

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(46, 36, 26, 0.08);
}

.product-media {
    background: #f6efe8;
}

.main-image-button {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: zoom-in;
}

.main-image-button img {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: block;
    object-fit: cover;
}

.thumb-strip {
    display: flex;
    gap: 6px;
    padding: 8px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
}

.thumb-button {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
}

.thumb-button img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px;
}

.product-info h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    line-height: 1.32;
}

.price-note,
.custom-note,
.select-label {
    min-height: 34px;
    margin: 0 0 10px;
    padding: 8px 9px;
    color: var(--muted);
    background: #fffaf4;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.88rem;
}

.price-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--ink);
    background: #f4ebe2;
    font-weight: 700;
}

.custom-note {
    display: flex;
    align-items: center;
}

.select-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.select-label select {
    min-width: 120px;
    padding: 6px 8px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.add-cart-button,
.cart-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin-top: auto;
    padding: 10px 12px;
    color: #fff;
    background: var(--rose);
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.add-cart-button:hover,
.add-cart-button:focus-visible {
    background: #a84f5d;
}

.floating-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    display: grid;
    min-width: 190px;
    min-height: 54px;
    padding: 10px 14px;
    color: #fff;
    background: #2f7d4c;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-decoration: none;
}

.floating-whatsapp span {
    font-size: 0.78rem;
    opacity: 0.82;
}

.floating-whatsapp strong {
    font-size: 1rem;
    line-height: 1.1;
}

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    justify-content: flex-end;
    background: rgba(39, 35, 31, 0.42);
}

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

.cart-panel {
    width: min(420px, 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    box-shadow: -18px 0 40px rgba(39, 35, 31, 0.18);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.cart-header h2 {
    margin: 0;
}

.cart-close,
.cart-item button,
.modal-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #f4ebe2;
    cursor: pointer;
    font-size: 1.35rem;
}

.cart-items {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

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

.cart-item strong {
    margin-bottom: 5px;
    line-height: 1.35;
}

.cart-item span,
.empty-cart {
    color: var(--muted);
}

.cart-whatsapp {
    width: auto;
    margin: 14px;
    background: var(--sage);
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(20, 17, 15, 0.82);
}

.image-modal.is-open {
    display: flex;
}

.image-modal img {
    max-width: min(100%, 980px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.modal-close {
    position: fixed;
    top: 18px;
    right: 18px;
}

@media (max-width: 760px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .page-shell {
        width: min(100% - 24px, 1120px);
        padding-top: 24px;
    }

    .category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .category-card,
    .category-card img {
        min-height: 280px;
    }

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

    .floating-whatsapp {
        right: 12px;
        bottom: 12px;
        min-width: 178px;
    }
}
