:root {
  --background: #FFFDFD;
  --surface: #FFFFFF;
  --accent-soft: #EDDEDD;
  --text: #5B1E2D;
  --action: #A73340;
  --action-text: #FFFDFD;
  --muted: #7A5962;
  --line: #EDDEDD;
  --ink: var(--text);
  --paper: var(--background);
  --soft: var(--accent-soft);
  --rose: var(--action);
  --rose-dark: #842633;
  --success: #357157;
  --danger: #A12632;
  --shadow: 0 12px 34px rgba(91, 30, 45, .08);
}
.payment-options{margin:18px 0;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--soft)}
.payment-options h3,.transfer-method h3{margin:0 0 8px;font-family:Georgia,serif}.payment-due-focus{font-size:clamp(23px,4vw,32px);font-weight:800;margin:6px 0}.payment-amount-context{display:grid;gap:3px;margin-bottom:12px}.transfer-methods{display:grid;gap:10px}.payment-method-tabs{display:flex;flex-wrap:wrap;gap:7px}.payment-method-tab{min-height:38px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;color:var(--text);background:#fff;cursor:pointer;font-weight:700}.payment-method-tab.is-active{border-color:var(--action);color:var(--action-text);background:var(--action)}.transfer-method{min-width:0;padding:12px;border-radius:12px;background:#fff}.transfer-method[hidden]{display:none}.transfer-method>p{max-width:52ch;margin:0 0 10px;overflow-wrap:anywhere}.transfer-method[data-payment-panel="qr"]{width:fit-content;max-width:100%;padding:14px;text-align:center}.payment-qr{display:block;width:min(200px,100%);max-height:220px;height:auto;margin:0 auto;object-fit:contain;border-radius:9px}.payment-details{display:grid;gap:5px;margin:9px 0}.payment-details div{display:grid;grid-template-columns:minmax(95px,.7fr) minmax(0,1.3fr);gap:12px;border-bottom:1px solid var(--line);padding-bottom:5px}.payment-details strong{overflow-wrap:anywhere}.payment-details span{color:var(--muted)}
@media(max-width:560px){.payment-options{padding:13px}.payment-method-tabs{display:grid;grid-template-columns:1fr 1fr}.payment-method-tab{width:100%}.payment-qr{width:min(180px,100%);max-height:205px}.payment-details div{grid-template-columns:1fr;gap:1px}}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--background); font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, select, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid rgba(167, 51, 64, .24); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

.site-header { min-height: 72px; display: grid; grid-template-columns: auto minmax(320px, 720px) auto; align-items: center; gap: 28px; padding: 11px clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(255, 253, 253, .96); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); }
.brand, .footer-brand { font: 700 32px/1 Georgia, serif; letter-spacing: -.055em; }
.brand span, .footer-brand span { color: var(--action); }
.header-search { min-width: 0; min-height: 48px; display: flex; border: 2px solid var(--text); border-radius: 12px; background: var(--surface); overflow: hidden; }
.header-search:focus-within { border-color: var(--action); box-shadow: 0 0 0 4px rgba(167, 51, 64, .10); }
.header-search input { width: 100%; min-width: 0; padding: 11px 16px; border: 0; outline: 0; color: var(--text); background: transparent; }
.header-search input::placeholder { color: #95777F; }
.header-search button { min-width: 92px; border: 0; padding: 10px 20px; color: var(--action-text); background: var(--action); cursor: pointer; font-weight: 750; }
.header-search button:hover { background: var(--rose-dark); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.account-link { color: var(--text); font-size: 14px; font-weight: 750; }
.account-link:hover { color: var(--action); }
.cart-link { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 5px 6px 5px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-weight: 750; }
.cart-link b { min-width: 27px; height: 27px; display: grid; place-items: center; padding: 0 7px; border-radius: 8px; color: var(--action-text); background: var(--action); font-size: 12px; }
.simple-header { grid-template-columns: auto 1fr auto; }
.back-link { justify-self: center; color: var(--muted); font-weight: 700; }
.back-link:hover { color: var(--action); }

.category-nav { padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line); background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-list { min-width: max-content; display: flex; gap: 4px; padding: 9px 0; }
.category-button { min-height: 38px; padding: 8px 14px; border: 0; border-radius: 9px; color: var(--text); background: transparent; cursor: pointer; font-weight: 650; }
.category-button:hover, .category-button.active { color: var(--text); background: var(--accent-soft); }

main { width: min(1500px, 100%); margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px) 70px; }
.marketplace-main { padding-top: 14px; }
.store-note { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; color: var(--muted); font-size: 13px; }
.store-note { scrollbar-width: none; }
.store-note::-webkit-scrollbar { display: none; }
.store-note span { flex: 1; padding: 10px 18px; text-align: center; }
.store-note span + span { border-left: 1px solid var(--line); }
.eyebrow { margin: 0 0 7px; color: var(--action); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1, h2 { margin: 0; color: var(--text); font-family: Inter, ui-sans-serif, system-ui, sans-serif; letter-spacing: -.035em; }
h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }

.catalog-section { scroll-margin-top: 135px; }
.catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 15px; }
.catalog-tools { display: flex; align-items: end; gap: 10px; }
.view-switch { min-height: 44px; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.view-switch button { padding: 6px 10px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.view-switch button.active { color: var(--action-text); background: var(--action); }
.sort-control { min-width: 220px; display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; }
.sort-control select { min-height: 44px; padding: 9px 34px 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); text-transform: none; letter-spacing: 0; }
.filter-drawer { position: relative; }
.filter-drawer summary { min-height: 44px; display: flex; align-items: center; gap: 7px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-weight: 750; list-style: none; }
.filter-drawer summary::-webkit-details-marker { display: none; }
.filter-drawer summary::after { content: "⌄"; margin-left: 8px; color: var(--muted); }
.filter-drawer[open] summary { border-color: var(--action); }
.filter-drawer[open] summary::after { transform: rotate(180deg); }
#filter-count { min-width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; color: var(--action-text); background: var(--action); font-size: 11px; }
.filter-panel { width: 340px; position: absolute; top: calc(100% + 8px); right: 0; z-index: 25; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.filter-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-fields label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.filter-fields input { width: 100%; min-height: 43px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); }
.filter-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.catalog-status { min-height: 32px; display: flex; align-items: center; gap: 14px; margin-bottom: 15px; }
.result-note { margin: 0; color: var(--muted); white-space: nowrap; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { min-height: 30px; padding: 5px 9px; border: 0; border-radius: 8px; color: var(--text); background: var(--accent-soft); cursor: pointer; font-size: 12px; font-weight: 700; }

.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 16px; }
.product-card { min-width: 0; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.product-card:hover { border-color: #DDBFC1; box-shadow: var(--shadow); transform: translateY(-2px); }
.product-image { aspect-ratio: 5 / 4; position: relative; display: block; overflow: hidden; background: var(--accent-soft); }
.product-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-image img { transform: scale(1.025); }
.product-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(91, 30, 45, .45); background: var(--accent-soft); font: italic 700 58px/1 Georgia, serif; }
.product-info { min-width: 0; display: grid; grid-template-rows: auto auto auto auto 1fr; align-content: start; padding: 10px; }
.product-category { margin: 0 0 4px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-name { min-height: 36px; display: -webkit-box; overflow: hidden; color: var(--text); font-size: 13px; font-weight: 720; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.product-name:hover { color: var(--action); }
.product-variants { min-height: 19px; margin: 6px 0 7px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-price { display: block; min-height: 24px; margin-bottom: 8px; color: var(--text); font-size: 17px; font-weight: 850; overflow-wrap: anywhere; }
.product-card-action { align-self: end; }
.card-button { width: 100%; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 10px; border: 1px solid var(--action); border-radius: 10px; color: var(--action-text); background: var(--action); cursor: pointer; font-size: 13px; font-weight: 800; text-align: center; }
.card-button:hover { background: var(--rose-dark); }
.card-button:disabled { color: var(--muted); border-color: var(--line); background: var(--accent-soft); cursor: not-allowed; }
.secondary-card-button { color: var(--action); background: var(--surface); }
.secondary-card-button:hover { color: var(--action-text); }
.card-quantity { min-height: 40px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; border: 1px solid var(--action); border-radius: 10px; overflow: hidden; }
.card-quantity button { height: 100%; border: 0; color: var(--action); background: var(--surface); cursor: pointer; font-size: 20px; font-weight: 700; }
.card-quantity button:hover { background: var(--accent-soft); }
.card-quantity output { text-align: center; font-weight: 850; }
.empty-state { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 60px 20px; border: 1px dashed #DDBFC1; border-radius: 16px; background: var(--surface); text-align: center; }
.empty-state h2 { font-size: 26px; }
.empty-state p { max-width: 520px; margin: 0 0 8px; color: var(--muted); }
.catalog-pagination { min-height: 48px; display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 24px; }
.catalog-pagination button { min-width: 40px; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); cursor: pointer; font-weight: 750; }
.catalog-pagination button[aria-current="page"] { color: var(--action-text); border-color: var(--action); background: var(--action); }
.catalog-pagination button:disabled { opacity: .42; cursor: not-allowed; }
.feed-more { display: flex; justify-content: center; margin-top: 24px; }
.reviews-home { margin-top: 64px; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.reviews-home-head, .reviews-home-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.reviews-summary { color: var(--action); font-size: 18px; font-weight: 850; }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; }
.review-card, .review-empty { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--background); }
.review-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.verified-review { color: var(--success); font-size: 11px; font-weight: 800; }
.review-stars { margin: 10px 0 7px; color: var(--action); font-size: 18px; letter-spacing: .08em; }
.review-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-card time { color: var(--muted); font-size: 12px; }
.review-photo-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.review-photo-strip img { width: 82px; height: 82px; display: block; object-fit: cover; border-radius: 9px; }
.review-photo-button { padding: 0; overflow: hidden; border: 0; border-radius: 9px; background: transparent; cursor: zoom-in; }
.review-photo-button:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }
.lightbox-open { overflow: hidden; }
.review-lightbox[hidden] { display: none; }
.review-lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: rgba(31, 20, 25, .86); }
.review-lightbox-frame { width: min(960px, 100%); height: min(88vh, 760px); position: relative; display: grid; place-items: center; }
.review-lightbox-frame > img { width: 100%; height: 100%; display: block; object-fit: contain; }
.review-lightbox-close, .review-lightbox-arrow { position: absolute; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(31, 20, 25, .72); cursor: pointer; }
.review-lightbox-close { width: 44px; height: 44px; top: 0; right: 0; font-size: 31px; }
.review-lightbox-arrow { width: 48px; height: 48px; top: 50%; translate: 0 -50%; font-size: 38px; }
.review-lightbox-arrow.previous { left: 0; }
.review-lightbox-arrow.next { right: 0; }
.review-lightbox-counter { position: absolute; bottom: 8px; left: 50%; translate: -50% 0; padding: 5px 10px; border-radius: 20px; color: #fff; background: rgba(31, 20, 25, .72); font-size: 12px; }
.selected-review-photos { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.selected-review-photo { width: 88px; height: 88px; position: relative; }
.selected-review-photo img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 9px; }
.selected-review-photo button { width: 25px; height: 25px; display: grid; place-items: center; position: absolute; top: -7px; right: -7px; padding: 0; border: 2px solid var(--surface); border-radius: 50%; color: #fff; background: var(--danger); cursor: pointer; }
.reviews-page { min-height: calc(100vh - 160px); padding-top: 54px; }
.reviews-page-head { display: grid; justify-items: start; gap: 12px; }
.review-account-list, .review-editor { display: grid; gap: 16px; }
.review-editor-head { display: flex; justify-content: space-between; gap: 18px; }

footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; padding: 26px clamp(20px, 4vw, 64px); border-top: 1px solid var(--line); color: var(--muted); background: var(--surface); font-size: 13px; }
footer p { margin: 0; }
.mobile-bottom-nav { display: none; }

.primary-button, .secondary-button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 10px; font-weight: 800; cursor: pointer; }
.primary-button { border: 1px solid var(--action); color: var(--action-text); background: var(--action); box-shadow: 0 8px 22px rgba(167, 51, 64, .14); }
.primary-button:hover { background: var(--rose-dark); }
.primary-button:disabled, .primary-button.disabled { opacity: .48; cursor: not-allowed; pointer-events: none; box-shadow: none; }
.secondary-button { border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.compact-button { min-height: 40px; padding: 8px 14px; }
.wide-button { width: 100%; }
.text-button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border: 0; border-radius: 9px; color: var(--action); background: transparent; cursor: pointer; font-weight: 750; }
.message-card, .account-card { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.message-card h1, .message-card h2 { margin-bottom: 10px; }
.message-card p, .account-card p { color: var(--muted); }
.page-loading { padding: 70px 0; color: var(--muted); }

.product-page { min-height: calc(100vh - 170px); display: grid; grid-template-columns: minmax(360px, 560px) minmax(340px, 560px); justify-content: center; gap: clamp(36px, 6vw, 80px); align-items: start; padding-top: clamp(28px, 5vw, 64px); }
.product-gallery { position: sticky; top: 96px; }
.product-main-visual { height: min(68vh, 650px); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--accent-soft); }
.product-main-visual img { width: 100%; height: 100%; display: block; object-fit: contain; }
.product-thumbnails { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.product-thumbnail { width: 66px; flex: 0 0 66px; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 9px; background: var(--accent-soft); cursor: pointer; }
.product-thumbnail.selected { border-color: var(--action); }
.product-thumbnail img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-details { max-width: 560px; padding-top: 12px; }
.product-details h1 { font-size: clamp(34px, 4vw, 52px); overflow-wrap: anywhere; }
.detail-price { margin: 20px 0 12px; font-size: clamp(26px, 3vw, 34px); font-weight: 850; }
.purchase-note { padding: 13px 15px; border-left: 3px solid var(--action); border-radius: 0 10px 10px 0; color: var(--muted); background: var(--accent-soft); }
.option-group { margin: 24px 0 0; padding: 0; border: 0; }
.option-group legend { margin-bottom: 9px; font-weight: 850; }
.option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.option-button { min-width: 46px; min-height: 42px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); cursor: pointer; }
.option-button:hover, .option-button.selected { color: var(--action-text); border-color: var(--action); background: var(--action); }
.quantity-control { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.quantity-control button { width: 34px; height: 34px; border: 0; border-radius: 7px; color: var(--text); background: var(--accent-soft); cursor: pointer; font-size: 19px; }
.quantity-control output { min-width: 34px; text-align: center; font-weight: 800; }
.detail-quantity { display: grid; grid-template-columns: 1fr auto auto auto; margin: 24px 0 0; padding: 6px; }
.detail-quantity > span { align-self: center; padding-left: 6px; font-weight: 800; }
.form-error { min-height: 24px; margin: 12px 0 7px; color: var(--danger); font-weight: 700; }
.form-error.success-message { color: var(--success); }
.add-to-cart { width: 100%; }
.product-item-comment { display: grid; grid-template-columns: max-content minmax(0, 340px); align-items: start; gap: 12px; margin-top: 16px; font-size: 14px; line-height: 38px; }
.product-item-comment textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 38px; max-height: 160px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: var(--surface); font: inherit; line-height: 20px; resize: vertical; field-sizing: content; }
.product-item-comment textarea::placeholder { color: var(--muted); opacity: 1; }
.product-item-comment textarea:focus { border-color: var(--action); box-shadow: 0 0 0 4px rgba(167, 51, 64, .09); }
@media (max-width: 760px) {
  .product-item-comment { grid-template-columns: minmax(0, 1fr); gap: 6px; line-height: 1.5; }
}

.flow-page { min-height: calc(100vh - 170px); padding-top: clamp(32px, 5vw, 62px); }
.flow-heading { margin-bottom: 28px; }
.flow-heading h1 { font-size: clamp(38px, 5vw, 58px); }
.cart-layout, .checkout-layout, .order-view-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 108px 1fr auto; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.cart-line-image { width: 108px; aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; border-radius: 10px; color: rgba(91, 30, 45, .45); background: var(--accent-soft); font: italic 700 38px/1 Georgia, serif; }
.cart-line-image img { width: 100%; height: 100%; display: block; object-fit: cover; }
.cart-line-info h2 { margin: 0 0 5px; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.cart-line-info p { margin: 3px 0; color: var(--muted); font-size: 13px; }
.cart-line-info .unit-price { color: var(--text); }
.cart-line-info .customer-item-comment { color: var(--text); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.cart-line-actions { min-width: 142px; display: grid; justify-items: end; gap: 9px; }
.line-total { font-size: 18px; }
.remove-button { padding: 0; border: 0; color: var(--muted); background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.remove-button:hover { color: var(--danger); }
.order-summary { position: sticky; top: 96px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.order-summary h2 { margin-bottom: 18px; font-size: 23px; letter-spacing: -.02em; }
.summary-row { display: flex; justify-content: space-between; gap: 20px; margin: 9px 0; }
.summary-row span { color: var(--muted); }
.summary-note { color: var(--muted); font-size: 12px; }
.prepayment-alert { margin: 18px 0; padding: 16px; border: 2px solid #c9657a; border-radius: 14px; background: #fff0f3; color: var(--ink); }
.prepayment-alert p { margin: 0 0 12px; font-weight: 700; }
.prepayment-alert-top { margin: 0 0 22px; box-shadow: 0 12px 30px rgba(163,63,87,.12); }
.prepayment-needed { display: block; color: #a33f57; font-size: 15px; }
.prepayment-waived { display: block; margin: 14px 0; padding: 14px; border-radius: 12px; background: #e9f7ef; color: #236b45; font-weight: 700; }
.summary-total { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 19px; }

.checkout-layout { grid-template-columns: minmax(0, 1fr) minmax(320px, .5fr); }
.checkout-form { min-width: 0; display: grid; gap: 16px; }
.form-section { min-width: 0; padding: clamp(19px, 3vw, 29px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.form-section h2 { margin: 0 0 18px; font-size: 23px; letter-spacing: -.02em; }
.form-section label, .account-form label { min-width: 0; display: grid; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 12px; font-weight: 750; }
.form-section input, .form-section select, .account-form input, .account-form textarea { width: 100%; min-width: 0; max-width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--text); background: var(--surface); }
.account-form textarea { min-height: 96px; resize: vertical; }
.form-section input:focus, .form-section select:focus, .account-form input:focus, .account-form textarea:focus { border-color: var(--action); box-shadow: 0 0 0 4px rgba(167, 51, 64, .09); }
.form-grid { display: grid; gap: 12px; }
.two-columns { grid-template-columns: 1fr 1fr; }
.choice-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-cards label { display: block; margin: 0; cursor: pointer; }
.choice-cards input { position: absolute; width: 1px; min-width: 1px; max-width: 1px; height: 1px; min-height: 1px; opacity: 0; pointer-events: none; }
.choice-cards span { min-height: 98px; display: grid; align-content: center; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); }
.choice-cards small { color: var(--muted); font-weight: 500; }
.choice-cards input:checked + span { border-color: var(--action); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--action); }
.delivery-panel { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--background); }
.delivery-panel[hidden] { display: none; }
.choice-cards label[hidden] { display: none !important; }
.delivery-panel p { margin: 11px 0 0; color: var(--muted); font-size: 13px; }
.privacy-note { margin: -4px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.mini-lines { display: grid; gap: 9px; padding-bottom: 13px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.mini-line { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; }
.mini-line span { color: var(--muted); }

.order-confirmation { display: grid; grid-template-columns: auto 1fr; gap: 19px; align-items: center; margin-bottom: 36px; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.confirmation-mark { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; color: var(--action-text); background: var(--success); font-size: 29px; }
.order-confirmation h1 { font-size: clamp(36px, 5vw, 56px); }
.order-confirmation p:last-child { margin-bottom: 0; color: var(--muted); }
.order-view-lines, .account-order-lines { display: grid; gap: 10px; }
.order-view-lines > h2 { margin-bottom: 8px; font-size: 23px; }
.order-view-line { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.order-view-line.not-purchased-line { border: 2px solid var(--danger); }
.status-line-purchased { border-color: #A9D9BD; }
.status-line-ready { border-color: #AFC9F2; }
.status-line-partial { border-color: #E9CF80; }
.order-view-line img { width: 78px; aspect-ratio: 4 / 5; border-radius: 8px; object-fit: cover; }
.order-view-line h3 { margin: 0 0 4px; font-size: 15px; overflow-wrap: anywhere; }
.order-view-line p { margin: 0 0 6px; color: var(--muted); font-size: 12px; }
.item-status { display: inline-flex; padding: 4px 8px; border-radius: 7px; color: var(--text); background: var(--accent-soft); font-size: 11px; font-weight: 750; }
.item-status.not-purchased, .status-not-purchased { color: var(--danger); background: #F7DBDD; }
.status-purchased { color: var(--success); background: #E9F7EF; }
.status-ready { color: #175CD3; background: #EAF2FF; }
.status-partial { color: #8A5B00; background: #FFF4CE; }
.status-delivered { color: #7A4F2B; background: #F2E8DC; }
.status-sent { color: #7A3FA0; background: #F2E8F7; }
.status-progress, .status-pending { color: #6B4E16; background: #F7F0DC; }
.status-new { color: #6941C6; background: #F0EAFF; }
.status-text-not-purchased { color: var(--danger); }
.status-text-purchased, .status-text-delivered { color: var(--success); }
.status-text-ready, .status-text-sent { color: #175CD3; }
.next-purchase-note { color: var(--action) !important; font-weight: 750; }
.detail-row { display: grid; gap: 3px; margin: 11px 0; }
.detail-row span { color: var(--muted); font-size: 11px; }
.detail-row strong { font-size: 13px; }
.order-totals { margin-top: 19px; }
.customer-cancellation { margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.customer-cancellation p { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.cancel-order-button { width: 100%; min-height: 42px; border: 1px solid var(--danger); border-radius: 9px; color: var(--danger); background: var(--surface); font-weight: 750; cursor: pointer; }
.cancel-order-button:hover { color: var(--action-text); background: var(--danger); }
.cancel-order-button:disabled { opacity: .5; cursor: wait; }
.auth-gate-page { display: grid; place-items: center; }
.auth-gate-card { width: min(680px, 100%); text-align: center; }
.auth-gate-card h1 { max-width: none; font-size: clamp(36px, 5vw, 54px); }
.auth-gate-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 21px 0; }
.social-preview, .social-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 16px; }
.social-preview button, .social-button { min-height: 42px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--accent-soft); }

.account-shell { width: min(1120px, 100%); margin: auto; padding: 38px clamp(16px, 5vw, 70px) 70px; }
.account-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 24px; }
.account-head h1 { font-size: clamp(34px, 5vw, 54px); }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.account-card h2 { margin: 0 0 14px; font-size: 23px; letter-spacing: -.02em; }
.account-form { display: grid; gap: 13px; }
.auth-wrap { width: min(520px, calc(100% - 32px)); margin: 38px auto 70px; }
.auth-wrap h1 { font-size: clamp(36px, 8vw, 52px); }
.account-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.customer-header .account-nav { justify-self: end; }
.account-nav a { min-height: 38px; display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 9px; background: var(--accent-soft); font-weight: 700; }
.account-nav a b { min-width: 21px; height: 21px; display: grid; place-items: center; margin-left: 6px; padding: 0 5px; border-radius: 6px; color: var(--action-text); background: var(--action); font-size: 10px; }
.balance { font-size: 28px; font-weight: 850; }
.order-list { display: grid; gap: 10px; }
.account-order { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.account-order:hover { border-color: var(--action); }
.account-order-main { color: inherit; text-decoration: none; border-radius: 8px; }
.account-order-main:hover strong, .account-order-main:focus-visible strong { color: var(--action); text-decoration: underline; }
.account-order p { margin: 4px 0; }
.form-note, .auth-error { padding: 11px 13px; border-radius: 9px; background: var(--accent-soft); color: var(--muted); }
.auth-error { color: var(--danger); background: #F7DBDD; }
.logout-form { display: inline; }
.logout-form button { border: 0; cursor: pointer; }
.account-order-line { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-list-money { display: grid; justify-items: end; align-content: start; gap: 4px; }
.order-list-money small { color: var(--muted); }
.balance-history, .human-history, .payment-history { display: grid; gap: 9px; margin: 12px 0 0; padding: 0; list-style: none; }
.balance-history li, .human-history li, .payment-history li { padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.balance-history small, .human-history small, .payment-history small { display: block; color: var(--muted); }
.notification-bell { white-space: nowrap; text-decoration: none; }
.notification-bell b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 20px; background: var(--accent, #b84f67); color: #fff; font-size: 12px; }
.notification-list { display: grid; gap: 10px; margin-top: 18px; }
.notification-row { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.notification-row.unread { border-left: 5px solid var(--accent, #b84f67); background: #fff8f8; }
.notification-row a { display: grid; gap: 5px; padding: 16px; color: inherit; text-decoration: none; }
.notification-row span, .notification-row time { color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 12px; }
.participation-terms { font-size: 13px; }
.participation-terms p { line-height: 1.55; }
.totals { display: grid; gap: 8px; }
.totals > div { display: flex; justify-content: space-between; gap: 16px; }

@media (max-width: 1220px) {
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .site-header { grid-template-columns: auto minmax(260px, 1fr) auto; gap: 16px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .store-note span:last-child { display: none; }
}

@media (max-width: 760px) {
  body { padding-bottom: 74px; }
  .site-header { min-height: 64px; grid-template-columns: 1fr auto; gap: 9px; padding: 10px 14px; position: relative; }
  .brand { font-size: 29px; }
  .header-search { min-height: 45px; grid-column: 1 / -1; grid-row: 2; }
  .header-search input { padding: 9px 12px; }
  .header-search button { min-width: 74px; padding: 9px 13px; }
  .header-actions { gap: 7px; }
  .account-link { display: none; }
  .cart-link { min-height: 38px; padding: 4px 5px 4px 9px; }
  .cart-link span { display: none; }
  .simple-header { grid-template-columns: 1fr auto; }
  .simple-header .back-link { grid-column: 1 / -1; grid-row: 2; justify-self: start; font-size: 12px; }
  .category-nav { padding: 0 10px; }
  .category-list { padding: 7px 0; }
  .category-button { min-height: 36px; padding: 7px 11px; font-size: 13px; }
  main { padding: 0 12px 42px; }
  .marketplace-main { padding-top: 10px; }
  .store-note { justify-content: start; margin-bottom: 19px; overflow-x: auto; }
  .store-note span { min-width: max-content; padding: 8px 12px; font-size: 11px; text-align: left; }
  .store-note span:last-child { display: block; }
  .catalog-heading { align-items: stretch; flex-direction: column; gap: 14px; }
  .catalog-heading h1 { font-size: 32px; }
  .catalog-tools { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: end; gap: 8px; }
  .view-switch { grid-column: 1 / -1; }
  .sort-control { min-width: 0; }
  .sort-control select { width: 100%; min-width: 0; font-size: 12px; }
  .filter-drawer summary { justify-content: center; font-size: 12px; }
  .filter-panel { width: min(340px, calc(100vw - 24px)); right: auto; left: 0; }
  .catalog-status { align-items: flex-start; flex-direction: column; gap: 7px; margin-bottom: 12px; }
  .result-note { font-size: 12px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .product-image { aspect-ratio: 4 / 5; }
  .product-card { border-radius: 11px; }
  .product-info { padding: 9px; }
  .product-name { min-height: 36px; font-size: 12.5px; line-height: 1.4; }
  .product-category, .product-variants { font-size: 10px; }
  .product-variants { margin: 5px 0; }
  .product-price { min-height: 23px; margin-bottom: 7px; font-size: 16px; }
  .card-button { min-height: 38px; padding: 6px; font-size: 11px; }
  .card-quantity { min-height: 38px; grid-template-columns: 34px 1fr 34px; }
  .empty-state { padding: 38px 14px; }
  footer { display: none; }
  .mobile-bottom-nav { height: 68px; display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; right: 0; bottom: 0; left: 0; z-index: 50; padding: 5px max(5px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .98); box-shadow: 0 -8px 24px rgba(91, 30, 45, .08); }
  .mobile-bottom-nav a { min-width: 0; position: relative; display: grid; place-items: center; align-content: center; gap: 1px; color: var(--muted); font-size: 9px; font-weight: 700; }
  .mobile-bottom-nav a[aria-current="page"] { color: var(--action); }
  .mobile-nav-icon { font-size: 21px; line-height: 1; }
  .mobile-cart-count { min-width: 17px; height: 17px; display: grid; place-items: center; position: absolute; top: 2px; left: calc(50% + 7px); padding: 0 4px; border-radius: 6px; color: var(--action-text); background: var(--action); font-size: 9px; }
  .product-page { min-height: auto; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 16px; width: 100%; max-width: 100%; min-width: 0; }
  .product-gallery { position: static; width: 100%; max-width: 100%; min-width: 0; overflow: hidden; }
  .product-main-visual { width: 100%; max-width: 100%; height: min(70vh, 650px); aspect-ratio: auto; border-radius: 12px; }
  .product-main-visual img { width: 100%; height: 100%; object-fit: contain; }
  .product-details { padding-top: 0; width: 100%; max-width: 100%; min-width: 0; }
  .product-details h1 { font-size: 32px; }
  .detail-price { margin-top: 15px; }
  .cart-layout, .checkout-layout, .order-view-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .flow-page { padding-top: 26px; }
  .flow-heading { margin-bottom: 20px; }
  .flow-heading h1 { font-size: 38px; }
  .cart-line { grid-template-columns: 78px 1fr; gap: 11px; padding: 11px; }
  .cart-line-image { width: 78px; }
  .cart-line-actions { grid-column: 1 / -1; min-width: 0; grid-template-columns: auto 1fr auto; align-items: center; justify-items: end; }
  .two-columns, .choice-cards, .account-grid { grid-template-columns: 1fr; }
  .choice-cards span { min-height: auto; }
  .checkout-page { padding-top: 25px; }
  .checkout-summary { grid-row: 1; }
  .order-confirmation { grid-template-columns: 1fr; }
  .confirmation-mark { width: 52px; height: 52px; font-size: 25px; }
  .order-view-line { grid-template-columns: 64px 1fr; }
  .order-view-line img { width: 64px; }
  .order-view-line > strong { grid-column: 2; }
  .social-preview, .social-grid { grid-template-columns: 1fr; }
  .account-head { align-items: start; flex-direction: column; }
  .account-order { grid-template-columns: 1fr; }
  .account-shell { padding-top: 25px; }
  .review-grid { grid-template-columns: 1fr; }
  .reviews-home { margin-top: 36px; padding: 20px 14px; }
  .reviews-home-head, .reviews-home-actions, .review-editor-head { align-items: flex-start; flex-direction: column; }
  .reviews-page { padding-top: 30px; }
  .review-lightbox { padding: 8px; }
  .review-lightbox-frame { height: 92vh; }
  .review-lightbox-close { top: 8px; right: 8px; }
  .review-lightbox-arrow.previous { left: 5px; }
  .review-lightbox-arrow.next { right: 5px; }
  .contact-actions { align-items: stretch; flex-direction: column; }
  .contact-actions a { width: 100%; }
}

/* v6 partial checkout */
.cart-selection-toolbar {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}

.cart-selection-toolbar strong {
  margin-right: .25rem;
}

.cart-line-choice {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .65rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-line-choice input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 18px;
}

@media (max-width: 640px) {
  .cart-selection-toolbar {
    gap: .5rem;
  }

  .cart-selection-toolbar strong {
    flex-basis: 100%;
  }
}
/* Public shipping information; does not change checkout tariffs. */
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 20px;margin:12px 0;font-size:14px;font-weight:650}
.footer-links a{text-decoration:underline;text-underline-offset:3px}
.delivery-quick-details{margin:-9px 0 24px;padding:10px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:13px}
.delivery-quick-details summary{cursor:pointer;font-weight:750}
.delivery-quick-details p{margin:9px 0 3px}
.delivery-quick-details a{text-decoration:underline;text-underline-offset:3px}
#checkout-link[hidden]{display:none!important}

/* v6.1: restrained information pages, small legal footer, accessible checkboxes */
.legal-page{max-width:920px;margin:0 auto;padding:34px 18px 56px}.legal-section{margin-bottom:14px}.legal-section p{line-height:1.65}.legal-section a,.legal-ack a{color:var(--accent,#8b233b);text-decoration:underline}.legal-section details{border:1px solid #e5d8da;border-radius:9px;padding:12px;margin:10px 0}.legal-section details summary{cursor:pointer;font-weight:600}.legal-footer-id{display:block;color:var(--muted,#6f6470);font-size:12px;padding-top:12px}.legal-footer-id a{text-decoration:underline}.legal-ack{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:10px;padding:10px 0;font-size:13px;line-height:1.5}.legal-ack input[type=checkbox]{flex:none;width:18px!important;min-width:18px!important;height:18px;min-height:18px;margin:1px 0 0!important;accent-color:#812c44}.compact-terms{padding:6px 18px}.compact-terms .legal-ack{font-weight:400}.footer-links{display:flex;justify-content:center;gap:15px;flex-wrap:wrap}.footer-links a{font-size:12px}.legal-page .flow-heading{margin-bottom:20px}

/* Bot trap: accessible instructions never display this field to humans. */
.registration-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
