/*
 * FlowersMakeYourDay — page design for redesigned pages (home, catalog).
 *
 * Loaded by layouts/app only when the view declares @section('modern'): such
 * pages run without Bootstrap CSS and the demo theme, so the generic class
 * names here (.btn, .container, .card…) never meet Bootstrap's. Tokens and the
 * header/footer live in site.css.
 */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; }

.title {
    font-size: clamp(26px, 3vw, 38px);
    text-transform: uppercase;
    letter-spacing: .02em;
    text-align: center;
}
.subtitle { text-align: center; color: var(--muted); margin: 10px 0 0; font-weight: 300; }
.section { padding: 96px 0; }
.section-head { margin-bottom: 44px; }

.kicker {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    font: 500 12px/1 var(--sans);
    letter-spacing: .26em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s, color .3s, border-color .3s;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--rose); }
.btn-glass { background: rgba(255, 255, 255, .82); color: var(--ink); backdrop-filter: blur(6px); }
.btn-glass:hover { background: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: #f0cbc2; }
.btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--green); }

.link-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase;
    padding-bottom: 6px; border-bottom: 1px solid var(--ink);
    transition: gap .3s var(--ease), color .3s, border-color .3s;
}
.link-arrow:hover { gap: 16px; color: var(--rose); border-color: var(--rose); }

.round-btn {
    width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid var(--line); background: #fff; cursor: pointer;
    display: grid; place-items: center; font-size: 15px;
    transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.round-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.round-btn:disabled { opacity: .35; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-slides { position: relative; height: 50vh; min-height: 380px; max-height: 560px; overflow: hidden; background: #3a2c26; }
.hero-slide {
    position: absolute; inset: 0;
    display: grid; place-items: center; text-align: center; color: #fff;
    opacity: 0; visibility: hidden;
    transition: opacity 1s var(--ease), visibility 1s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 10, .15), rgba(20, 14, 10, .45)); }
.hero-text { position: relative; z-index: 1; padding: 0 24px 60px; max-width: 900px; }
.hero-text h1, .hero-text .h1 { font-size: clamp(38px, 6.4vw, 84px); text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero-text p { font-size: clamp(16px, 1.6vw, 20px); font-weight: 300; margin: 16px 0 28px; }
.hero-arrows { position: absolute; right: 32px; bottom: 24px; z-index: 3; display: flex; gap: 10px; }
.hero-dots { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dots button { width: 26px; height: 2px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; }
.hero-dots button.is-active { background: #fff; }

/* ---------- Product cards (home + catalog) ---------- */
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 22px; }
.card-media { position: relative; aspect-ratio: 2 / 3; overflow: hidden; background: var(--blush); }
.card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.card-media .img-hover { opacity: 0; transform: scale(1.08); }
.card:hover .has-hover .img-main { opacity: 0; }
.card:hover .img-hover { opacity: 1; transform: scale(1); }
.card-media > a { position: absolute; inset: 0; }
.card-badge {
    position: absolute; top: 14px; right: 14px; z-index: 1;
    padding: 6px 12px; background: var(--ink); color: #fff;
    font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
    outline: 1px solid var(--ink); outline-offset: 2px; border: 1px solid #fff;
}
.card-badge.light { background: #fff; color: var(--ink); outline-color: #fff; border-color: var(--ink); }
/* Bestseller: on the photo's left, so it never covers Sale / Sold Out on the right. */
.card-badge.accent { background: var(--rose); outline-color: var(--rose); }
.card-badge.is-left { right: auto; left: 14px; }
.card.is-sold-out .card-media > img { filter: grayscale(.6); opacity: .75; }
.card-add {
    position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1;
    padding: 14px; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(255, 255, 255, .92); color: var(--ink);
    font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
    opacity: 0; transform: translateY(12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), background .2s, color .2s;
}
.card-add:hover { background: var(--ink); color: #fff; }
.card:hover .card-add { opacity: 1; transform: none; }
.card-body { text-align: center; padding: 18px 8px 0; }
.card-title { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.card-title a:hover { color: var(--rose); }
.card-price { margin-top: 6px; font-family: var(--serif); font-size: 18px; }
.card-price del { color: var(--muted); font-size: 15px; margin-left: 8px; }
.card-price ins { text-decoration: none; color: var(--rose); }
/* Sizes on a card (bouquet_card.blade.php): the picked one filled. */
.card-variants { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.card-variant { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 12px; line-height: 1.2; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.card-variant:hover { border-color: var(--ink); }
.card-variant.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.card-variant:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.card-status { margin-top: 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.card-status.is-sold-out { color: var(--rose); }
.section-cta { text-align: center; margin-top: 44px; }

/* ---------- Categories (tiles) ---------- */
.categories { background: var(--sand); }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--blush); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: rgba(20, 16, 12, .28); transition: background .4s; }
.cat-tile:hover img { transform: scale(1.07); }
.cat-tile:hover::after { background: rgba(20, 16, 12, .45); }
.cat-label {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    color: #fff; text-align: center;
}
.cat-label h3 { font-size: clamp(24px, 2.4vw, 34px); text-transform: uppercase; letter-spacing: .04em; }
.cat-label span {
    font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
    padding-bottom: 4px; border-bottom: 1px solid rgba(255, 255, 255, .7);
    opacity: .9; transition: opacity .3s;
}
.cat-tile:hover .cat-label span { opacity: 1; }

/* ---------- Delivery ---------- */
.delivery-wrap { display: grid; grid-template-columns: 1fr 1fr; background: var(--green); color: #e7ede6; }
.delivery-media { position: relative; min-height: 560px; }
.delivery-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.delivery-content { padding: 76px 72px; align-self: center; }
.delivery-content .kicker { color: #f0cbc2; }
.delivery-content h2 { font-size: clamp(30px, 3.4vw, 44px); color: #fff; margin-bottom: 18px; }
.delivery-content > p { margin: 0 0 36px; color: #c4d0c5; font-weight: 300; }
.delivery-list { display: grid; gap: 24px; margin: 0 0 42px; padding: 0; list-style: none; }
.delivery-list li { display: flex; gap: 18px; }
.delivery-icon {
    flex: 0 0 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .25); color: #f0cbc2; font-size: 19px;
}
.delivery-list h3 { font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 4px; }
.delivery-list p { margin: 0; font-size: 15px; color: #c4d0c5; font-weight: 300; }
.delivery-content .btn-line { border-color: rgba(255, 255, 255, .7); color: #fff; }
.delivery-content .btn-line:hover { background: #fff; color: var(--green); }

/* ---------- Instagram ---------- */
.insta-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.insta-head > div { max-width: 100%; }
.insta-head .title, .insta-head .subtitle { text-align: left; }
.insta-head .title { overflow-wrap: anywhere; }
.insta-profile { display: flex; align-items: center; gap: 16px; }
.insta-avatar {
    width: 62px; height: 62px; border-radius: 50%; padding: 3px;
    background: conic-gradient(from 210deg, #f9ce34, #ee2a7b, #6228d7, #f9ce34);
}
.insta-avatar span {
    display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
    background: #fff; border: 2px solid #fff;
    font-family: var(--serif); font-size: 22px;
}
.insta-profile b { display: block; font-weight: 500; }
.insta-profile small { color: var(--muted); font-size: 13px; }
.insta-mosaic {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr 1.25fr;
    grid-template-rows: 260px 260px;
    gap: 10px;
}
.insta-mosaic .tall { grid-row: span 2; }
.insta-tile { position: relative; overflow: hidden; display: block; background: var(--blush); }
.insta-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.insta-tile:hover img { transform: scale(1.07); }
.insta-overlay {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 22px;
    background: rgba(28, 27, 26, .42); color: #fff; font-weight: 500;
    opacity: 0; transition: opacity .35s;
}
.insta-overlay i { margin-right: 6px; }
.insta-tile:hover .insta-overlay { opacity: 1; }
.insta-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    background: var(--blush); padding: 24px;
    transition: background .3s;
}
.insta-card:hover { background: #efd8d1; }
.insta-card i { font-size: 34px; margin-bottom: 12px; }
.insta-card strong { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.insta-card span { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; margin-top: 10px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { background: var(--sand); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.faq-aside { position: sticky; top: 120px; }
.faq-aside .title { text-align: left; margin-bottom: 18px; }
.faq-aside p { color: var(--ink-soft); font-weight: 300; margin: 0 0 30px; }
.faq-list { border-top: 1px solid #ddd5cd; }
.faq-item { border-bottom: 1px solid #ddd5cd; }
.faq-item summary {
    list-style: none; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    padding: 26px 0; font-family: var(--serif); font-size: 21px;
    transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--rose); }
.faq-sign { position: relative; flex: 0 0 16px; height: 16px; }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transition: transform .3s var(--ease); }
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0); }
.faq-answer { padding: 0 48px 26px 0; color: var(--ink-soft); font-weight: 300; }
.faq-answer p { margin: 0; }

/* ---------- Contacts: chat with a florist ---------- */
.cv-chat { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; background: var(--green); color: #e7ede6; padding: 64px; }
.cv-chat .kicker { color: #f0cbc2; }
.cv-chat h2 { font-size: clamp(28px, 3.2vw, 42px); color: #fff; margin-bottom: 16px; }
.cv-chat-text > p { margin: 30px 0; color: #c4d0c5; font-weight: 300; }
.cv-chat-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cv-chat-phone { margin-top: 24px; font-size: 15px; color: #c4d0c5; }
.cv-chat-phone a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.chat {
    background: #f7f3ef; color: var(--ink); border-radius: 22px; padding: 18px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); max-width: 420px; justify-self: end; width: 100%;
}
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.chat-head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-head b { display: block; font-weight: 500; font-size: 15px; }
.chat-head small { color: #2f9e57; font-size: 12px; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; margin-bottom: 8px; }
.bubble.in { background: #fff; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--green); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.photo { padding: 4px; background: #fff; width: 62%; }
.bubble.photo img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border-radius: 16px; border-bottom-left-radius: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- Cart modal (Bootstrap JS only, no Bootstrap CSS on these pages) ---------- */
.modal { position: fixed; inset: 0; z-index: 1055; display: none; overflow-x: hidden; overflow-y: auto; outline: 0; }
.modal-dialog { position: relative; width: auto; max-width: 760px; margin: 1.75rem auto; padding: 0 16px; pointer-events: none; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 3.5rem); }
.modal.fade .modal-dialog { transform: translateY(-24px); transition: transform .3s var(--ease); }
.modal.show .modal-dialog { transform: none; }
.modal-content { position: relative; width: 100%; pointer-events: auto; background: #fff; border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .45); }
.modal-header { display: flex; justify-content: flex-end; padding: 16px 16px 0; }
.modal-body { padding: 8px 32px 24px; }
.modal-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 20px 32px 28px; border-top: 1px solid var(--line); }
.modal-backdrop { position: fixed; inset: 0; z-index: 1050; background: #1c1b1a; }
.modal-backdrop.fade { opacity: 0; transition: opacity .3s; }
.modal-backdrop.show { opacity: .5; }
.modal-open { overflow: hidden; }
.btn-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sand); cursor: pointer; position: relative; }
.btn-close::before, .btn-close::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 1px; background: var(--ink); transform: rotate(45deg); }
.btn-close::after { transform: rotate(-45deg); }

.site-modal__title { font-family: var(--serif); font-size: 24px; margin-bottom: 20px; }
.site-modal .row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.site-modal .row > * { flex: 0 0 auto; }
.site-modal .row > :first-child { flex: 1 1 260px; }
.site-modal .product-info { display: flex; align-items: center; gap: 16px; }
.site-modal .product-image img { width: 80px; height: 100px; object-fit: cover; border-radius: 10px; }
.site-modal .product-title { margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.site-modal .remove-item { border: 0; background: none; padding: 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.site-modal .remove-item:hover { color: var(--rose); }
.site-modal .current-price, .site-modal .item-total { font-family: var(--serif); font-size: 18px; }
.site-modal .quantity-selector { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.site-modal .quantity-btn { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; }
.site-modal .quantity-input { width: 42px; border: 0; text-align: center; font: 15px var(--sans); -moz-appearance: textfield; }
.site-modal .quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.site-modal .cart-modal-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-modal .cart-modal-item form { margin: 0; }
.site-modal .cart-modal-buy { display: flex; align-items: center; gap: 24px; }
.site-modal .item-total { white-space: nowrap; }

@media (max-width: 600px) {
    .modal-body { padding: 8px 20px 20px; }
    .modal-footer { padding: 16px 20px 20px; }
    .modal-footer > .btn { flex: 1 1 100%; }
    .site-modal .cart-modal-buy { flex: 1 1 100%; justify-content: space-between; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .delivery-content { padding: 60px 48px; }
    .insta-mosaic { grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 230px 230px 230px; }
    .insta-mosaic .tall { grid-row: span 1; }
    .faq-grid { gap: 48px; }
    .cv-chat { padding: 48px; gap: 40px; }
}

@media (max-width: 900px) {
    .section { padding: 72px 0; }
    .hero-arrows { display: none; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 14px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-add { opacity: 1; transform: none; }
    .delivery-wrap, .faq-grid, .cv-chat { grid-template-columns: 1fr; }
    .chat { justify-self: stretch; max-width: none; }
    .delivery-media { min-height: 320px; }
    .faq-aside { position: static; }
    .insta-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
    /* Old price under the new one, smaller: two prices side by side do not fit a phone card. */
    .card-price del { display: block; margin: 2px 0 0; font-size: 13px; }
    /* On a phone the slider is always square — the shape its phone photo is uploaded in
       (FixedRatioImageUpload); without one the main photo is cropped to it. */
    .hero-slides { height: auto; min-height: 0; max-height: none; aspect-ratio: 1 / 1; }
    .container { padding: 0 16px; }
    .hero-text { padding-bottom: 70px; }
    .cat-tile { aspect-ratio: 1; }
    .cat-label h3 { font-size: 20px; }
    .cat-label span { font-size: 9px; letter-spacing: .18em; }
    .insta-head .title { font-size: clamp(18px, 6.2vw, 26px); }
    .card-title { font-size: 12px; letter-spacing: .1em; }
    .card-add { font-size: 10px; letter-spacing: .14em; padding: 11px 6px; left: 8px; right: 8px; bottom: 8px; }
    .card-badge { top: 8px; right: 8px; font-size: 9px; padding: 4px 8px; }
    .card-badge.is-left { right: auto; left: 8px; }
    .delivery-content { padding: 44px 24px; }
    .insta-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 170px); gap: 6px; }
    .faq-item summary { font-size: 18px; padding: 20px 0; }
    .faq-answer { padding-right: 0; }
    .cv-chat { padding: 36px 20px; border-radius: 20px; }
    .cv-chat-actions .btn { flex: 1 1 100%; }
}

/* =====================================================================
   Shared page parts: page head, forms, quantity, alerts, state box
   ===================================================================== */
.page-head { background: var(--sand); padding: 56px 0 50px; text-align: center; margin-bottom: 56px; }
.page-head h1 { font-size: clamp(30px, 4vw, 52px); text-transform: uppercase; letter-spacing: .01em; }
.page-head p { margin: 10px 0 0; color: var(--muted); font-weight: 300; }
.page-crumbs { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.page-crumbs i { font-size: 9px; }
.page-crumbs a:hover { color: var(--rose); }
.page-crumbs span { color: var(--ink); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-label { font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field textarea {
    width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff;
    padding: 14px 16px; font-size: 15px; outline: none; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field input[readonly] { background: var(--sand); color: var(--ink-soft); }
.field textarea { resize: vertical; min-height: 110px; }
.form-hint { color: var(--muted); font-size: 14px; font-weight: 300; margin: 0 0 18px; }

.alert { padding: 14px 18px; border-radius: 14px; font-size: 15px; }
.alert-success { background: #e8f3ea; color: #24603a; }
.alert-danger { background: #fbe9e6; color: #9a3b2c; }
.form-message:not(:empty) { margin-top: 16px; }

.quantity-selector { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.quantity-btn { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 15px; }
.quantity-btn:hover { color: var(--rose); }
.quantity-input { width: 40px; border: 0; outline: none; background: none; text-align: center; font-size: 15px; -moz-appearance: textfield; }
.quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.stars { color: var(--rose); letter-spacing: 2px; font-size: 14px; }

.state-box { max-width: 560px; margin: 0 auto; text-align: center; padding: 20px 0 20px; }
.state-box > i { font-size: 56px; color: var(--rose); }
.state-box > i.state-success { color: #3e9a5c; }
.state-box > i.state-error { color: #c0533f; }
.state-box h2 { font-size: clamp(26px, 3vw, 36px); margin: 16px 0 12px; }
.state-box > p { color: var(--muted); font-weight: 300; margin: 0 0 30px; }
.state-summary { text-align: left; margin-bottom: 30px; position: static; }
.state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.state-actions form { margin: 0; }

.text-page-body { max-width: 900px; }

/* =====================================================================
   Product page (modules/shop/product)
   ===================================================================== */
.product { padding: 36px 0 24px; }
.product-crumbs { justify-content: flex-start; margin-bottom: 28px; }
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }

.product-gallery { position: sticky; top: 100px; }
.product-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--blush); }
.product-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.product-photo > img.is-active { opacity: 1; }
.product-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.product-thumbs button { padding: 0; border: 1px solid transparent; background: var(--blush); aspect-ratio: 1; cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s; }
.product-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs button:hover, .product-thumbs button.is-active { opacity: 1; border-color: var(--ink); }

.product-info { padding-top: 8px; }
.product-info .kicker { display: inline-block; }
.product-title { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 14px; }
.product-rating { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.product-rating:hover { color: var(--ink); }
.product-price { font-family: var(--serif); font-size: 32px; margin: 6px 0 32px; }
.product-price ins { text-decoration: none; color: var(--rose); }
.product-price del { color: var(--muted); font-size: 22px; margin-left: 12px; }
.product-status { display: inline-flex; align-items: center; gap: 8px; margin: -16px 0 22px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--green, #2f6b4f); }
.product-status.is-sold-out { color: var(--rose); }
.product-add:disabled { background: var(--muted); cursor: not-allowed; }
.product-buy { margin: 0 0 30px; }
.product-buy > .product-add { width: 100%; }
.product-buy .quantity-selector { flex: none; }
.product-add { flex: 1; padding: 17px 28px; }
.product-perks { list-style: none; margin: 0 0 34px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 12px; }
.product-perks li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-soft); }
.product-perks i { color: var(--rose); font-size: 17px; }
.product-accordion details { border-bottom: 1px solid var(--line); }
.product-accordion summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    padding: 20px 0; font-size: 12px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
}
.product-accordion summary::-webkit-details-marker { display: none; }
.product-accordion details[open] .faq-sign::after { transform: rotate(0); }
.product-text { padding: 0 0 22px; color: var(--ink-soft); font-weight: 300; }
.product-text p { margin: 0 0 12px; }
.product-specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; margin: 0 0 22px; font-size: 15px; }
.product-specs dt { color: var(--muted); }
.product-specs dd { margin: 0; }
.product-specs a { border-bottom: 1px solid var(--line); }


/* Add-ons: "Anything more?" under the buy button — tiles 3 to a row, 2 rows unfolded */
.product-addons { margin: 0 0 34px; }
.product-addons-title { font-family: var(--serif); font-size: 28px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 18px; }
.product-addons-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; }
.product-addon { display: flex; flex-direction: column; min-width: 0; }
.product-addon-photo { aspect-ratio: 1; overflow: hidden; background: var(--blush); margin-bottom: 10px; }
.product-addon-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.product-addon:hover .product-addon-photo img { transform: scale(1.05); }
.product-addon-name { font-size: 15px; line-height: 1.4; margin-bottom: 10px; }
.product-addon-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-addon-foot form { margin: 0; }
.product-addon-price { font-size: 15px; white-space: nowrap; }
.product-addon-price ins { text-decoration: none; color: var(--rose); }
.product-addon-price del { color: var(--muted); font-size: 13px; margin-left: 6px; }
.product-addon-add { padding: 7px 12px; border: 0; border-radius: 999px; background: var(--ink-soft, #555); color: #fff; font: italic 12px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: background .3s; }
.product-addon-add:hover { background: var(--rose); }
.product-addons-grid > li:nth-child(n+7) { display: none; }
.product-addons.is-open .product-addons-grid > li { display: flex; }
.product-addons-toggle { display: none; margin-top: 20px; padding: 0; border: 0; background: none; font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--line); cursor: pointer; }
.product-addons.has-more .product-addons-toggle { display: inline-block; }
.product-addons-toggle:hover { color: var(--rose); }

/* Reviews */
.reviews-section { background: var(--sand); margin-top: 72px; }
.product-reviews { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.reviews-aside .title { text-align: left; margin-bottom: 26px; }
.reviews-score { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.reviews-average { font-family: var(--serif); font-size: 56px; line-height: 1; }
.reviews-total { color: var(--muted); font-size: 14px; margin-top: 4px; }
.reviews-bars { display: grid; gap: 8px; margin-bottom: 40px; }
.reviews-bar { display: grid; grid-template-columns: 38px 1fr 28px; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.reviews-bar i { font-size: 10px; color: var(--rose); }
.reviews-bar-track { height: 4px; background: #e6ddd4; border-radius: 4px; overflow: hidden; }
.reviews-bar-track span { display: block; height: 100%; background: var(--ink); }
.review-form-box { background: #fff; padding: 28px; border-radius: 20px; }
.review-form-box h3 { font-size: 24px; margin-bottom: 8px; }
.review-form .btn { justify-self: start; }
.star-rating { display: inline-flex; flex-direction: row-reverse; justify-self: start; gap: 4px; }
.star-rating input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating label { font-size: 22px; color: #dcd3ca; cursor: pointer; transition: color .15s; }
.star-rating input:checked ~ label, .star-rating label:hover, .star-rating label:hover ~ label { color: var(--rose); }
.reviews-list { display: grid; gap: 14px; }
.review-item { background: #fff; padding: 24px 26px; border-radius: 20px; }
.review-head { display: flex; align-items: center; gap: 14px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); font-family: var(--serif); font-size: 18px; flex: none; }
.review-name { font-weight: 500; }
.review-date { font-size: 13px; color: var(--muted); }
.review-stars { margin-left: auto; }
.review-text { margin: 14px 0 0; color: var(--ink-soft); font-weight: 300; }
.reviews-empty { color: var(--muted); padding: 24px 0; }
.reviews-more { text-align: center; margin-top: 26px; }

/* =====================================================================
   Cart & order (modules/shop_cart, modules/shop_order)
   ===================================================================== */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.checkout-title { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 20px; }
.cart-lines { border-top: 1px solid var(--line); margin-bottom: 48px; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto 120px; align-items: center; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cart-line-photo { aspect-ratio: 4 / 5; background: var(--blush); overflow: hidden; }
.cart-line-photo img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-info form { margin: 0; }
.cart-line-name { display: block; font-family: var(--serif); font-size: 20px; margin-bottom: 4px; }
a.cart-line-name:hover { color: var(--rose); }
.cart-line-price, .cart-line-meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; display: flex; gap: 16px; flex-wrap: wrap; }
.cart-line-remove { border: 0; background: none; padding: 0; color: var(--muted); font-size: 13px; cursor: pointer; }
.cart-line-remove:hover { color: var(--rose); }
.cart-line.is-sold-out .cart-line-photo img { filter: grayscale(.6); opacity: .7; }
.cart-line-sold-out { display: inline-block; margin-bottom: 8px; padding: 3px 10px; background: var(--rose); color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.summary-sold-out { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--rose); color: var(--rose); font-size: 14px; }
.summary-submit:disabled { background: var(--muted); cursor: not-allowed; }
.cart-line-qty { margin: 0; }
/* The cart total while the server recounts it after a quantity change (app.js). */
.is-updating { opacity: .4; transition: opacity .15s; }
.cart-line-total { font-family: var(--serif); font-size: 20px; text-align: right; }

/* Cart page: price / quantity / total sit in one row (.cart-line-buy). On a
   phone that row is a size container, so the price drops out when the row gets
   too narrow for all three — a narrow screen, or a long total. (Not on desktop:
   a size container in an `auto` grid column would shrink to nothing.) */
.cart-line.checkout_item { grid-template-columns: 96px minmax(0, 1fr) auto; }
.cart-line.checkout_item .cart-line-info { min-width: 0; overflow-wrap: anywhere; }
.cart-line-buy { display: flex; align-items: center; gap: 24px; }
.cart-line-buy .cart-line-price { margin: 0; white-space: nowrap; }
.cart-line-buy .cart-line-total { min-width: 110px; white-space: nowrap; }
@container cart-buy (max-width: 300px) {
    .cart-line-buy .cart-line-price { display: none; }
}
/* Beside the order summary the cart column can be narrow (a ~900px window):
   the list is a size container, and as it narrows the price goes first, then
   the spacing tightens — the total is never pushed under the summary. */
@media (min-width: 601px) {
    .cart-lines { container: cart-lines / inline-size; }
    @container cart-lines (max-width: 600px) {
        .cart-line-buy .cart-line-price { display: none; }
    }
    @container cart-lines (max-width: 540px) {
        .cart-line.checkout_item { gap: 16px; }
        .cart-line-buy { gap: 16px; }
        .cart-line-buy .cart-line-total { min-width: 0; }
    }
}

.checkout-card { padding: 34px; border: 1px solid var(--line); border-radius: 22px; }
.checkout-card .checkout-title { margin-bottom: 4px; }

.cart-summary-box { position: sticky; top: 100px; background: var(--sand); padding: 32px; border-radius: 22px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; font-size: 15px; color: var(--ink-soft); }
.summary-row > span:last-child { text-align: right; color: var(--ink); }
.summary-row-block { flex-direction: column; gap: 4px; }
.summary-row-block > span:last-child { text-align: left; }
.summary-discount > span:last-child { color: var(--rose); }
.summary-total { border-top: 1px solid #ddd5cd; margin-top: 10px; padding-top: 18px; font-family: var(--serif); font-size: 24px; color: var(--ink); }
.summary-submit { width: 100%; margin-top: 22px; padding: 18px; }
.summary-back { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.summary-back:hover { color: var(--rose); }

.promo { margin-bottom: 14px; }
.promo-form { display: flex; align-items: center; gap: 8px; margin: 0; background: #fff; border-radius: 999px; padding: 5px 5px 5px 18px; }
.promo-form input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 14px; padding: 8px 0; }
.promo-code { flex: 1; font-size: 14px; font-weight: 500; }
.promo-btn { border: 0; border-radius: 999px; background: var(--ink); color: #fff; padding: 10px 16px; cursor: pointer; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; }
.promo-btn:hover { background: var(--rose); }
.promo-message { font-size: 13px; margin-top: 8px; padding-left: 18px; }
.promo-message.is-success { color: #2f7d49; }
.promo-message.is-error { color: #b0452f; }

.status-pill { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 12px; background: #e7e2dc; color: var(--ink-soft); }
.status-pill.status-paid { background: #e2f1e5; color: #24603a; }
.status-pill.status-processing { background: #fff1cf; color: #7a5b00; }

@media (max-width: 1100px) {
    .product-layout { gap: 40px; }
    .product-reviews { grid-template-columns: 1fr; gap: 40px; }
    .cart-layout { grid-template-columns: 1fr 320px; gap: 32px; }
}

@media (max-width: 900px) {
    .page-head { padding: 40px 0 36px; margin-bottom: 36px; }
    .product-layout, .cart-layout { grid-template-columns: 1fr; }
    .product-gallery, .cart-summary-box { position: static; }
    .reviews-section { margin-top: 48px; }
}

@media (max-width: 600px) {
    .field-row { grid-template-columns: 1fr; }
    .product { padding-top: 20px; }
    .product-crumbs { margin-bottom: 18px; }
    .product-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .product-price { font-size: 26px; margin-bottom: 24px; }
    .product-buy { flex-wrap: wrap; }
    .product-add { flex-basis: 100%; }
    .product-addons-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-addons-grid > li:nth-child(n+5) { display: none; }
    .product-addons.has-more-sm .product-addons-toggle { display: inline-block; }
    .product-addons-title { font-size: 24px; }
    .review-form-box, .review-item { padding: 22px 18px; }
    .cart-line { grid-template-columns: 76px 1fr; grid-template-areas: "photo info" "photo qty"; gap: 10px 16px; }
    .cart-line-photo { grid-area: photo; align-self: start; }
    .cart-line-info { grid-area: info; }
    .cart-line-qty { grid-area: qty; display: flex; justify-content: space-between; align-items: center; }
    .cart-line-total { grid-column: 2; text-align: left; font-size: 18px; }
    .cart-line.checkout_item { grid-template-columns: 76px 1fr; grid-template-areas: "photo info" "buy buy"; }
    .cart-line-buy { grid-area: buy; justify-content: space-between; gap: 12px; container: cart-buy / inline-size; }
    .cart-line-buy .cart-line-qty { display: block; }
    .cart-line-buy .cart-line-total { min-width: 0; text-align: right; }
    .checkout-card, .cart-summary-box { padding: 24px 18px; }
}

/* =====================================================================
   Catalog listing (modules/shop/category)
   ===================================================================== */
.catalog-hero { position: relative; height: 34vh; min-height: 260px; max-height: 380px; display: flex; align-items: center; color: #fff; overflow: hidden; background: #3a2c26; }
.catalog-hero > img, .catalog-hero > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.catalog-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 14, 10, .3), rgba(20, 14, 10, .45)); }
.catalog-hero-text { position: relative; z-index: 1; padding-top: 24px; padding-bottom: 24px; text-align: center; }
.catalog-hero h1 { font-size: clamp(34px, 5vw, 64px); text-transform: uppercase; letter-spacing: .01em; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.catalog-hero p { margin: 10px 0 0; font-weight: 300; font-size: 17px; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.crumbs i { font-size: 9px; opacity: .7; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.catalog { padding: 64px 0 0; }
.catalog-layout { display: grid; grid-template-columns: 270px 1fr; gap: 56px; align-items: start; }

/* Filters */
.catalog-filters { position: sticky; top: 100px; }
.filters-head, .filters-overlay, .filters-toggle { display: none; }
.filter-block { padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.filter-title { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; margin-bottom: 18px; }
.cat-tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-tree-sub { display: none; padding: 4px 0 6px 14px; margin-left: 2px; border-left: 1px solid var(--line); }
.cat-tree .is-open > .cat-tree-sub { display: grid; }
.cat-tree a i { display: inline-block; margin-left: 4px; font-size: 10px; transition: transform .2s; }
.cat-tree .is-open > a i { transform: rotate(180deg); }
.catalog-filters > .filter-block:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.cat-tree a, .cat-tree-all { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; color: var(--ink-soft); transition: color .2s; }
.cat-tree-all { margin-bottom: 2px; }
.cat-tree small { color: var(--muted); font-size: 13px; }
.cat-tree a:hover, .cat-tree-all:hover { color: var(--rose); }
.cat-tree .is-active > a, .cat-tree-all.is-active { color: var(--ink); font-weight: 500; }
.cat-tree .is-active > a span, .cat-tree-all.is-active { text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 6px; }

.check-list { display: grid; gap: 10px; }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; color: var(--ink-soft); }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { width: 18px; height: 18px; border: 1px solid #cfc7bf; border-radius: 4px; display: grid; place-items: center; flex: none; transition: background .2s, border-color .2s; }
.check input:checked + .check-box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check-box::after { content: "\F633"; font-family: "bootstrap-icons"; color: #fff; font-size: 12px; }
.check input:focus-visible + .check-box { outline: 2px solid var(--rose); outline-offset: 2px; }
.check-label { flex: 1; }
.check small { color: var(--muted); font-size: 13px; }

.filter-actions { display: flex; align-items: center; gap: 18px; }
.filter-actions .btn { flex: 1; }
.filter-clear { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.filter-clear:hover { color: var(--rose); }

/* Toolbar */
.catalog-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.catalog-search { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; margin: 0; transition: border-color .2s; }
.catalog-search:focus-within { border-color: var(--ink); }
.catalog-search i { color: var(--muted); }
.catalog-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; padding: 12px 0; font-size: 15px; }
.catalog-sort { position: relative; }
.catalog-sort summary { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; cursor: pointer; list-style: none; white-space: nowrap; transition: border-color .2s; }
.catalog-sort summary::-webkit-details-marker { display: none; }
.catalog-sort[open] summary { border-color: var(--ink); }
.catalog-sort summary span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.catalog-sort summary b { font-size: 15px; font-weight: 400; }
.catalog-sort summary i { margin-left: 4px; font-size: 11px; transition: transform .2s; }
.catalog-sort[open] summary i { transform: rotate(180deg); }
.catalog-sort-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; min-width: 100%; padding: 8px 0; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(28, 27, 26, .1); }
.catalog-sort-menu a { display: block; padding: 10px 20px; font-size: 15px; color: var(--ink-soft); white-space: nowrap; transition: background .2s, color .2s; }
.catalog-sort-menu a:hover { background: var(--sand); color: var(--ink); }
.catalog-sort-menu a.is-active { color: var(--rose); }
.catalog-count { margin: 18px 0 30px; color: var(--muted); font-size: 14px; }

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

.catalog-empty { text-align: center; padding: 80px 20px; background: var(--sand); }
.catalog-empty i { font-size: 40px; color: var(--rose); }
.catalog-empty h2 { font-size: 30px; margin: 14px 0 10px; }
.catalog-empty p { color: var(--muted); margin: 0 0 26px; font-weight: 300; }

.catalog-text { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); color: var(--ink-soft); font-weight: 300; max-width: 820px; }
.catalog-text h2, .catalog-text h3 { margin: 24px 0 12px; color: var(--ink); }

/* Pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 64px; }
.pager-pages { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager-page, .pager-dots { min-width: 42px; height: 42px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px; font-size: 15px; }
.pager-page { transition: background .2s, color .2s; }
.pager-page:hover { background: var(--sand); }
.pager-page.is-current { background: var(--ink); color: #fff; }
.pager-dots { color: var(--muted); }
.pager-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.pager-arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager-arrow.is-disabled { opacity: .35; pointer-events: none; }

@media (max-width: 1100px) {
    .catalog-layout { grid-template-columns: 230px 1fr; gap: 36px; }
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .catalog { padding-top: 32px; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-filters {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 1100;
        width: min(340px, 88vw); overflow-y: auto; padding: 0 24px 32px;
        background: #fff; transform: translateX(-100%); transition: transform .35s var(--ease);
    }
    .catalog-filters.is-open { transform: none; box-shadow: 20px 0 60px -30px rgba(0, 0, 0, .4); }
    .filters-head {
        display: flex; justify-content: space-between; align-items: center;
        position: sticky; top: 0; z-index: 1; background: #fff;
        padding: 20px 0; margin-bottom: 20px; border-bottom: 1px solid var(--line);
        font-family: var(--serif); font-size: 24px;
    }
    .filters-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--sand); cursor: pointer; }
    .filters-overlay { display: block; position: fixed; inset: 0; z-index: 1090; background: rgba(28, 27, 26, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
    .filters-open .filters-overlay { opacity: 1; pointer-events: auto; }
    .filters-open { overflow: hidden; }
    .filters-toggle {
        display: inline-flex; align-items: center; gap: 10px;
        border: 1px solid var(--ink); border-radius: 999px; background: none; padding: 12px 20px; cursor: pointer;
        font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
    }
    .catalog-search { order: 3; flex-basis: 100%; }
    .catalog-sort { margin-left: auto; }
}

@media (max-width: 600px) {
    /* On a phone the catalog banner is always 4:3 — the shape its phone photo is uploaded in
       (FixedRatioImageUpload); without one the main photo is cropped to it. */
    .catalog-hero { height: auto; min-height: 0; max-height: none; aspect-ratio: 4 / 3; }
    .catalog-hero-text { padding-top: 16px; padding-bottom: 16px; }
    .crumbs { font-size: 10px; letter-spacing: .12em; }
    .catalog-toolbar { gap: 10px; }
    .filters-toggle { flex: 1; justify-content: center; }
    .catalog-sort { flex: 1; margin-left: 0; }
    .catalog-sort summary { justify-content: space-between; padding: 12px 14px; }
    .catalog-sort summary span { display: none; }
    .catalog-grid { gap: 32px 12px; }
    .pager { gap: 8px; }
    .pager-page, .pager-dots { min-width: 36px; height: 36px; }
}

/* =====================================================================
   Delivery picker (product page, cart), card message, check boxes
   ===================================================================== */
.product-buy-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.product-buy-actions .product-add { flex: 1 1 160px; }

.delivery-box { padding: 18px; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.delivery-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.delivery-label { color: var(--muted); font-size: 14px; }
.delivery-zip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.delivery-zip input { width: 120px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14px; outline: none; }
.delivery-zip input:focus { border-color: var(--ink); }
.delivery-days { display: flex; flex-wrap: wrap; gap: 8px; }
.delivery-day { position: relative; }
.delivery-day input { position: absolute; opacity: 0; pointer-events: none; }
.delivery-day span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; cursor: pointer; transition: border-color .2s; }
.delivery-day span:hover { border-color: var(--ink); }
.delivery-day input:checked + span { border: 2px solid var(--ink); padding: 8px 13px; }
.delivery-day input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }

/* Price variants on the product page (variant_choice.blade.php) — pills like the delivery days. */
.variant-choice { margin-bottom: 20px; }
.variant-choice-label { display: block; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.variant-options { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-option { position: relative; }
.variant-option input { position: absolute; opacity: 0; pointer-events: none; }
.variant-option span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; color: var(--ink); cursor: pointer; transition: border-color .2s; }
.variant-option span small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.variant-option span:hover { border-color: var(--ink); }
.variant-option input:checked + span { border: 2px solid var(--ink); padding: 8px 13px; }
.variant-option input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.delivery-date { margin-top: 12px; }
.delivery-date[hidden] { display: none; }
.delivery-date input { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; outline: none; }
.delivery-info { margin-top: 14px; font-size: 14px; }
.delivery-price { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.delivery-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--sand); color: var(--ink-soft); line-height: 1.5; }
.delivery-note i { margin-top: 2px; color: var(--muted); }
.delivery-hint { color: var(--muted); font-weight: 300; }
.delivery-error { display: flex; align-items: center; gap: 8px; color: #b0452f; font-weight: 500; }

.is-invalid { border-color: #c0533f !important; }
.invalid-feedback { color: #b0452f; font-size: 13px; margin-top: 4px; }

/* Cart checkout: sections divided by a rule, one rhythm inside (gap) instead of per-element margins. */
.checkout-section { display: grid; gap: 14px; padding-bottom: 28px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.checkout-section.is-last { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.field-row[hidden] { display: none; }
.checkout-section .checkout-title { margin: 0; }
.checkout-section .form-hint { margin: 0; }
.checkout-section .card-suggestions, .checkout-section .card-foot { margin: 0; }
/* The product page frames the picker; inside the cart's card it is plain fields. */
.checkout-section .delivery-box { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }

.card-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.card-chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; cursor: pointer; transition: border-color .2s, color .2s; }
.card-chip:hover:not(:disabled) { border-color: var(--ink); }
.card-chip.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.card-text { width: 100%; min-height: 96px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; font-size: 15px; resize: vertical; outline: none; }
.card-text:focus { border-bottom-color: var(--ink); }
.card-foot { display: flex; justify-content: space-between; gap: 16px; margin: 8px 0 12px; color: var(--muted); font-size: 12px; }
.card-message.is-off .card-suggestions,
.card-message.is-off .card-text,
.card-message.is-off .card-foot { opacity: .4; }

/* The native input is hidden by .check; .check-box is what shows. Long labels wrap — the box stays on the first line. */
.checkout-section .check { position: relative; align-items: flex-start; }
.checkout-section .check-box { margin-top: 3px; }

@media (max-width: 600px) {
    .delivery-box { padding: 14px; }
    .delivery-row { gap: 8px; }
    .card-foot { flex-direction: column; gap: 4px; }
}
