@font-face { font-family: Estedad; src: url('./public/fonts/Estedad-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --ink: #161619; --ink-soft: #252529; --paper: #f3f3f1; --white: #fff; --red: #7b1018; --red-bright: #a11722; --muted: #6d6d70; --line: #d8d8d4; --success: #176b48; --shadow: 0 24px 70px rgba(18,18,20,.12); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Estedad, Tahoma, sans-serif; font-size: 16px; line-height: 1.7; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; z-index: 1000; top: -80px; right: 20px; padding: 10px 16px; color: #fff; background: var(--red); }
.skip-link:focus { top: 20px; }
.commerce-header { position: sticky; z-index: 30; top: 0; min-height: 78px; padding: 12px clamp(18px, 5vw, 74px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; background: rgba(243,243,241,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.commerce-header.compact { grid-template-columns: 1fr auto; }
.commerce-brand { display: flex; align-items: center; gap: 12px; justify-self: start; }
.commerce-brand img { width: 46px; height: 46px; object-fit: contain; }
.commerce-brand span { display: grid; line-height: 1.3; }
.commerce-brand b { font-size: 17px; }
.commerce-brand small { color: var(--muted); font-size: 12px; }
.commerce-header nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.commerce-header nav a:hover, .back-link:hover, .admin-header a:hover { color: var(--red); }
.cart-trigger { justify-self: end; min-height: 44px; padding: 0 17px; display: flex; align-items: center; gap: 12px; color: #fff; background: var(--ink); border: 0; cursor: pointer; }
.cart-trigger b { min-width: 23px; height: 23px; display: grid; place-items: center; background: var(--red); border-radius: 50%; font-size: 12px; }
.shop-intro { min-height: 430px; padding: 78px clamp(20px, 8vw, 120px) 64px; display: grid; grid-template-columns: 1fr minmax(300px, 560px); grid-template-areas: 'eyebrow copy' 'title copy'; align-items: end; gap: 16px 80px; color: #fff; background: var(--ink); border-bottom: 7px solid var(--red); }
.shop-intro > span, .admin-intro > span, .checkout-heading > span, .panel-heading span { grid-area: eyebrow; color: #d9787e; font-size: 13px; font-weight: 650; }
.shop-intro h1 { grid-area: title; margin: 0; font-size: clamp(54px, 8vw, 118px); line-height: .98; letter-spacing: -.07em; font-weight: 760; }
.shop-intro h1 em { color: #d9d9d5; font-style: normal; }
.shop-intro p { grid-area: copy; margin: 0 0 10px; color: #c1c1be; font-size: 16px; line-height: 2; }
.shop-workspace { padding: 62px clamp(20px, 6vw, 92px) 100px; }
.shop-toolbar { display: grid; grid-template-columns: minmax(250px, 390px) 1fr; align-items: end; gap: 26px; }
.shop-toolbar label, .admin-tools label, .settings-form label, .checkout-form label { display: grid; gap: 8px; color: #454548; font-size: 14px; font-weight: 600; }
.shop-toolbar input, .admin-tools input, .settings-form input, .checkout-form input, .checkout-form textarea { width: 100%; min-height: 48px; padding: 10px 13px; color: var(--ink); background: #fff; border: 1px solid #bdbdb9; outline: 0; }
.shop-toolbar input:focus, .admin-tools input:focus, .settings-form input:focus, .checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(123,16,24,.09); }
.shop-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-filters button, .admin-tabs button, .panel-heading button, .bulk-price button { min-height: 44px; padding: 0 15px; color: #4b4b4d; background: transparent; border: 1px solid #c9c9c5; cursor: pointer; }
.shop-filters button.is-active, .admin-tabs button.is-active { color: #fff; background: var(--ink); border-color: var(--ink); }
.shop-status { margin: 28px 0 18px; color: var(--muted); font-size: 14px; }
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.shop-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.shop-card-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #e8e8e5; }
.shop-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.shop-card:hover .shop-card-media img { transform: scale(1.025); }
.shop-card-media span { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; color: #fff; background: rgba(22,22,25,.86); font-size: 11px; }
.shop-card-body { flex: 1; padding: 18px; display: flex; flex-direction: column; }
.shop-card-category { color: var(--red); font-size: 12px; font-weight: 650; }
.shop-card h2 { margin: 8px 0 9px; font-size: 20px; line-height: 1.45; }
.shop-card p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.shop-card-price { margin-top: auto; padding-top: 16px; border-top: 1px solid #ecece9; }
.shop-card-price del { display: block; color: #999; font-size: 12px; }
.shop-card-price strong { font-size: 18px; }
.shop-card-price small { margin-right: 5px; font-size: 12px; font-weight: 500; }
.shop-card-actions { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.shop-card-actions button, .shop-card-actions a { min-height: 46px; padding: 0 12px; display: grid; place-items: center; border: 1px solid var(--ink); cursor: pointer; font-size: 13px; font-weight: 650; }
.shop-card-actions button { color: #fff; background: var(--ink); }
.shop-card-actions button:hover { background: var(--red); border-color: var(--red); }
.shop-card-actions a:hover { color: #fff; background: var(--red); border-color: var(--red); }
.shop-card-unavailable { margin-top: auto; padding: 13px; color: #625c58; background: #efefec; font-size: 13px; }
.shop-empty, .cart-empty { padding: 42px 20px; color: var(--muted); text-align: center; background: #fff; border: 1px dashed #c7c7c2; }
.commerce-trust { padding: 0 clamp(20px, 6vw, 92px) 100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.commerce-trust article { min-height: 190px; padding: 30px; color: #d6d6d3; background: var(--ink-soft); }
.commerce-trust b { display: block; margin-bottom: 14px; color: #fff; font-size: 19px; }
.commerce-trust span { font-size: 14px; }
.commerce-footer { padding: 24px clamp(20px, 6vw, 92px); display: flex; justify-content: space-between; color: #aaa; background: #0f0f11; font-size: 13px; }
.commerce-footer a { color: #fff; }
.cart-backdrop { position: fixed; z-index: 49; inset: 0; background: rgba(0,0,0,.48); }
.cart-panel { position: fixed; z-index: 50; top: 0; left: 0; width: min(430px, 94vw); height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; background: #fff; box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .25s ease; }
.cart-panel.is-open { transform: translateX(0); }
.cart-panel > header { min-height: 78px; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.cart-panel > header div { display: grid; }
.cart-panel > header span { font-size: 20px; font-weight: 700; }
.cart-panel > header b { color: var(--muted); font-size: 12px; }
.cart-panel > header button { width: 40px; height: 40px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); cursor: pointer; font-size: 24px; }
.cart-items { padding: 12px 20px; overflow: auto; }
.cart-item { padding: 15px 0; display: grid; grid-template-columns: 68px 1fr; gap: 12px; border-bottom: 1px solid #ecece9; }
.cart-item img { width: 68px; height: 68px; object-fit: cover; background: #eee; }
.cart-item-content { min-width: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.cart-item-content h3 { margin: 0; font-size: 14px; line-height: 1.6; }
.cart-item-content > span { color: var(--red); font-size: 13px; }
.cart-qty { display: flex; align-items: center; gap: 7px; }
.cart-qty button { width: 29px; height: 29px; background: #f1f1ee; border: 0; cursor: pointer; }
.cart-remove { color: #777; background: none; border: 0; cursor: pointer; font-size: 12px; }
.cart-panel > footer { padding: 20px; border-top: 1px solid var(--line); }
.cart-panel > footer > div { margin-bottom: 14px; display: flex; justify-content: space-between; }
.cart-panel > footer small, .order-summary > small { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }
.commerce-primary { min-height: 50px; padding: 0 20px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--red); border: 0; cursor: pointer; font-weight: 650; }
.commerce-primary:hover { background: var(--red-bright); }
.commerce-primary[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.toast { position: fixed; z-index: 80; right: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 48px)); padding: 13px 17px; color: #fff; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

.checkout-main { max-width: 1280px; margin: 0 auto; padding: 65px 24px 100px; }
.checkout-heading { max-width: 760px; margin-bottom: 46px; }
.checkout-heading h1, .admin-intro h1 { margin: 5px 0 12px; font-size: clamp(42px, 6vw, 76px); line-height: 1.1; letter-spacing: -.06em; }
.checkout-heading p, .admin-intro p { margin: 0; color: var(--muted); font-size: 15px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(310px, .7fr); gap: 20px; align-items: start; }
.checkout-form, .order-summary, .admin-panel, .admin-tools { padding: 28px; background: #fff; border: 1px solid var(--line); }
.checkout-form h2, .order-summary h2 { margin: 0 0 24px; font-size: 24px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.checkout-form > label, .checkout-form fieldset { margin-top: 18px; }
.checkout-form textarea { resize: vertical; }
.checkout-form fieldset { padding: 18px; display: grid; gap: 10px; border: 1px solid var(--line); }
.checkout-form legend { padding: 0 8px; font-weight: 650; }
.choice { min-height: 66px; padding: 12px; grid-template-columns: auto 1fr; align-items: center; background: #f7f7f5; border: 1px solid transparent; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--red); background: #fff7f7; }
.choice input, .terms input { width: 18px; height: 18px; accent-color: var(--red); }
.choice span { display: grid; }
.choice b { color: var(--ink); }
.choice small { color: var(--muted); font-weight: 400; }
.choice.is-disabled { opacity: .55; cursor: not-allowed; }
.terms { margin: 22px 0 !important; grid-template-columns: auto 1fr; align-items: start; }
.terms a { color: var(--red); text-decoration: underline; }
.submit-order { width: 100%; }
.form-message { min-height: 24px; margin: 12px 0 0; color: var(--red); font-size: 13px; }
.honeypot { position: absolute !important; right: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden; }
.order-summary { position: sticky; top: 100px; }
.summary-item { padding: 13px 0; display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid #ecece9; }
.summary-item img { width: 54px; height: 54px; object-fit: cover; }
.summary-item b { font-size: 13px; line-height: 1.5; }
.summary-item span { color: var(--muted); font-size: 12px; }
.order-summary dl { margin: 22px 0 0; }
.order-summary dl div { padding: 8px 0; display: flex; justify-content: space-between; }
.order-summary dt { color: var(--muted); }
.order-summary dd { margin: 0; font-weight: 650; }
.summary-total { margin-top: 10px; padding-top: 17px !important; border-top: 2px solid var(--ink); font-size: 18px; }
.checkout-result { margin-bottom: 32px; padding: 34px; color: #fff; background: var(--success); }
.checkout-result.is-error { background: var(--red); }
.checkout-result h1 { margin: 0 0 8px; font-size: 34px; }
.checkout-result p { margin: 0; }
.checkout-result a { width: fit-content; margin-top: 18px; padding: 10px 16px; display: inline-flex; color: var(--ink); background: #fff; font-weight: 650; }

.admin-header { min-height: 76px; padding: 12px clamp(18px, 4vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #fff; background: var(--ink); }
.admin-header .commerce-brand small { color: #aaa; }
.admin-header > div { display: flex; gap: 20px; font-size: 13px; }
.admin-main { max-width: 1500px; margin: 0 auto; padding: 52px 24px 90px; }
.admin-intro { max-width: 860px; }
.admin-tabs { margin-top: 35px; display: flex; flex-wrap: wrap; gap: 8px; }
.admin-panel { margin-top: 12px; display: none; }
.admin-panel.is-active { display: block; }
.admin-tools { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(350px, auto); gap: 18px; align-items: end; border: 0; padding: 0 0 22px; }
.bulk-price { display: grid; grid-template-columns: minmax(200px, 1fr) auto; align-items: end; gap: 8px; }
.bulk-price button, .panel-heading button { background: #f0f0ed; }
.admin-note { margin-bottom: 16px; padding: 13px 16px; color: #6d625b; background: #f0ede8; font-size: 13px; }
.admin-product-list { display: grid; gap: 8px; }
.admin-product-row { padding: 13px; display: grid; grid-template-columns: 60px minmax(180px, 1.3fr) minmax(130px, .65fr) minmax(130px, .65fr) 110px 120px auto; align-items: center; gap: 10px; background: #f8f8f6; border: 1px solid #e0e0dc; }
.admin-product-row img { width: 60px; height: 60px; object-fit: cover; }
.admin-product-name { min-width: 0; display: grid; }
.admin-product-name b { font-size: 14px; }
.admin-product-name small { color: var(--muted); }
.admin-field { display: grid; gap: 4px; }
.admin-field span { color: var(--muted); font-size: 11px; }
.admin-field input[type="number"] { width: 100%; min-height: 40px; padding: 5px 8px; border: 1px solid #c8c8c4; }
.admin-switch { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.admin-switch input { width: 18px; height: 18px; accent-color: var(--red); }
.save-product { min-height: 40px; padding: 0 14px; color: #fff; background: var(--ink); border: 0; cursor: pointer; }
.save-product:hover { background: var(--red); }
.save-product:disabled { opacity: .5; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-heading h2 { margin: 2px 0 20px; font-size: 28px; }
.admin-order-list { display: grid; gap: 10px; }
.order-card { padding: 18px; background: #f8f8f6; border: 1px solid var(--line); }
.order-card-head { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; }
.order-card h3 { margin: 0; font-size: 17px; }
.order-card p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.order-card select { min-height: 42px; padding: 0 8px; border: 1px solid #bbb; background: #fff; }
.order-card details { margin-top: 12px; }
.order-card summary { cursor: pointer; color: var(--red); font-size: 13px; }
.order-items-table { margin-top: 10px; display: grid; gap: 5px; }
.order-items-table div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; font-size: 13px; }
.settings-form { max-width: 740px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.gateway-status { max-width: 740px; margin-top: 18px; padding: 16px; background: #f0f0ed; }
.gateway-status.is-ready { color: var(--success); background: #edf7f2; }
.torob-panel { max-width: 820px; padding: 24px; background: #f8f8f6; border: 1px solid var(--line); }
.torob-panel p { color: var(--muted); }
.torob-panel label { display: grid; gap: 7px; color: #454548; font-size: 14px; font-weight: 600; }
.torob-panel input { min-height: 48px; padding: 8px 12px; background: #fff; border: 1px solid #bdbdb9; }
.torob-panel button { min-height: 44px; margin-top: 10px; padding: 0 16px; color: #fff; background: var(--ink); border: 0; cursor: pointer; }
.torob-panel small { display: block; margin-top: 14px; color: var(--muted); }
.torob-status { padding: 14px 16px; color: #6d625b; background: #f0ede8; font-weight: 650; }
.torob-status.is-ready { color: var(--success); background: #edf7f2; }

.product-detail { width: min(1240px, calc(100% - 40px)); margin: 0 auto; padding: 68px 0 92px; display: grid; grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr); gap: clamp(34px, 6vw, 86px); align-items: start; }
.product-detail-media { position: sticky; top: 104px; background: #e8e8e5; border: 1px solid var(--line); }
.product-detail-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-detail-copy > span { color: var(--red); font-size: 14px; font-weight: 650; }
.product-detail-copy h1 { margin: 12px 0 18px; font-size: clamp(38px, 5vw, 68px); line-height: 1.15; letter-spacing: -.045em; }
.product-detail-copy > p { color: var(--muted); font-size: 17px; line-height: 2; }
.product-specs { margin-top: 30px; padding: 24px; background: #fff; border: 1px solid var(--line); }
.product-specs h2 { margin: 0 0 12px; font-size: 20px; }
.product-specs ul { margin: 0; padding-right: 22px; color: #55555a; }
.product-detail-price { margin-top: 18px; padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 7px 22px; align-items: center; color: #fff; background: var(--ink); }
.product-detail-price small { color: #bbb; }
.product-detail-price strong { font-size: 24px; }
.product-detail-price .commerce-primary { grid-column: 2; grid-row: 1 / span 2; min-width: 170px; }
.product-trust { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.product-trust span { padding: 16px; color: #555; background: #e7e7e3; font-size: 13px; }
.product-trust a { color: var(--red); font-weight: 650; }

@media (max-width: 1100px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-product-row { grid-template-columns: 60px 1fr 140px 140px; }
  .admin-product-row .admin-switch, .admin-product-row .save-product { grid-column: auto; }
}
@media (max-width: 820px) {
  .commerce-header { grid-template-columns: 1fr auto; }
  .commerce-header nav { display: none; }
  .shop-intro { min-height: 0; padding-block: 58px; grid-template-columns: 1fr; grid-template-areas: 'eyebrow' 'title' 'copy'; gap: 16px; }
  .shop-toolbar { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .commerce-trust { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; grid-row: 1; }
  .admin-tools { grid-template-columns: 1fr; }
  .admin-product-row { grid-template-columns: 52px 1fr 1fr; }
  .admin-product-row img { width: 52px; height: 52px; }
  .settings-form { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-media { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .commerce-header, .admin-header { min-height: 68px; padding-inline: 14px; }
  .commerce-brand img { width: 40px; height: 40px; }
  .commerce-brand b { font-size: 15px; }
  .commerce-brand small { font-size: 11px; }
  .cart-trigger { min-height: 42px; padding-inline: 12px; font-size: 13px; }
  .shop-intro { padding-inline: 20px; }
  .shop-intro h1 { font-size: clamp(48px, 17vw, 72px); }
  .shop-intro p { font-size: 14px; }
  .shop-workspace { padding: 38px 14px 70px; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-card-body { padding: 16px; }
  .commerce-trust { padding: 0 14px 70px; }
  .commerce-trust article { min-height: 0; }
  .commerce-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .checkout-main, .admin-main { padding: 36px 14px 70px; }
  .checkout-form, .order-summary, .admin-panel { padding: 18px 14px; }
  .field-grid { grid-template-columns: 1fr; }
  .admin-header > div { gap: 9px; font-size: 11px; }
  .admin-product-row { grid-template-columns: 52px 1fr; padding: 10px; }
  .admin-product-row .admin-field, .admin-product-row .admin-switch, .admin-product-row .save-product { grid-column: span 2; }
  .bulk-price { grid-template-columns: 1fr; }
  .order-card-head { grid-template-columns: 1fr; gap: 8px; }
  .product-detail { width: min(100% - 28px, 1240px); padding-block: 36px 64px; }
  .product-detail-copy h1 { font-size: 36px; }
  .product-detail-price { grid-template-columns: 1fr; }
  .product-detail-price .commerce-primary { grid-column: 1; grid-row: auto; }
  .product-trust { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
