:root {
  color-scheme: light;
  --ink: #291815;
  --secondary: #68534d;
  --muted: #765b51;
  --brand: #a41b25;
  --brand-hover: #7e1420;
  --brand-light: #fbe5e2;
  --paper: #fff9f3;
  --white: #fff;
  --edge: #eddcd4;
  --line: #f3e6df;
  --mint: #e4f7ec;
  --green: #1a6844;
  --gold: #fff1d9;
  --amber: #734306;
  --pink: #f8e2ec;
  --red: #a42649;
  --shadow: 0 12px 36px rgba(84, 29, 19, .065);
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; background: var(--paper); font: 1rem/1.5 var(--body); color: var(--ink); }
button, input, select { font: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .56; }
:focus-visible { outline: 3px solid #c74842; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.icon { width: 1.15rem; height: 1.15rem; display: inline-block; vertical-align: middle; flex: none; }
.icon-lg { width: 1.45rem; height: 1.45rem; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 5; padding: .7rem 1rem; background: var(--white); }
.skip:focus { top: 1rem; }

.site-header { background: var(--white); border-bottom: 1px solid var(--edge); }
.header-inner { max-width: 1380px; padding: 0 2.45rem; min-height: 76px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; flex-shrink: 0; }
.brand-mark { display: block; flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.brand-name { line-height: 1; font: 1.65rem/.92 "Barlow Condensed", var(--display); font-weight: 900; letter-spacing: .035em; }
.brand-name small { display: block; font: 800 .63rem/1 var(--body); color: var(--brand); letter-spacing: .17em; margin-top: .26rem; }
.header-nav { display: flex; align-items: center; gap: .55rem; }
.nav-link { padding: .53rem .8rem; min-height: 42px; border-radius: .68rem; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: .45rem; color: var(--secondary); font-weight: 700; font-size: .875rem; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--brand-light); color: var(--brand); }

.checkout-layout { max-width: 1380px; padding: 2rem 2.45rem 2.3rem; margin: auto; display: grid; grid-template-columns: minmax(0, .89fr) minmax(0, 1fr); gap: clamp(2rem, 4.4vw, 4.1rem); align-items: start; }
.hero { position: relative; min-height: 690px; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.5rem, 3.2vw, 2.55rem); border-radius: 1.8rem; overflow: hidden; color: #fff; background: #75151b url('/assets/carnaval-pacu.webp') 50% 40% / cover no-repeat; box-shadow: 0 18px 47px #6e1d1d33; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #34050b30 0%, transparent 28%, #75151d70 54%, #580b12ef 85%, #4a080f 100%); }
.hero-tag { display: inline-flex; align-self: flex-start; gap: .4rem; align-items: center; padding: .55rem .78rem; border-radius: .45rem; background: #ffdf70; color: #54200b; font-size: .86rem; font-weight: 850; letter-spacing: .035em; box-shadow: 3px 4px 0 #60101055; transform: rotate(-3deg); }
.hero-tag .icon { width: 1rem; height: 1rem; }
.hero-kicker { color: #fff0c2; font: 800 1.18rem/1 "Barlow Condensed", var(--display); text-transform: uppercase; letter-spacing: .24em; margin-bottom: .45rem; }
.hero-title { color: #ffdf70; font: 900 clamp(4.8rem, 8.8vw, 8.4rem)/.76 "Barlow Condensed", var(--display); letter-spacing: -.015em; text-transform: uppercase; max-width: 6ch; text-shadow: 0 7px 20px #39050680; }
.hero-rule { width: 3.6rem; height: .26rem; border-radius: 9px; background: #f7a14f; margin: 1.35rem 0 .75rem; }
.hero-description { color: #fff4d9; font-size: 1.04rem; font-weight: 650; max-width: 23rem; line-height: 1.45; }
.hero.hero-abadas { justify-content: center; gap: 2rem; min-height: 0; padding: clamp(1.3rem, 4vw, 3rem); background: radial-gradient(ellipse at 50% 42%, #822740, #4e0d1c 70%); }
.hero-abadas::before { display: none; }
.hero-abada-image { width: 100%; height: auto; object-fit: contain; }

.checkout { padding: .15rem 0; }
.preview-label { color: #7d3321; background: #fff0dc; border: 1px solid #f2dfc8; display: inline-flex; align-items: center; gap: .46rem; border-radius: .57rem; padding: .35rem .59rem; font-weight: 750; font-size: .84rem; }
.preview-label .icon { width: .95rem; height: .95rem; }
.steps { display: flex; align-items: center; padding: 0; margin: 1.15rem 0 1.4rem; list-style: none; gap: .8rem; }
.steps li { display: flex; align-items: center; gap: .57rem; color: var(--secondary); font-size: .9rem; font-weight: 700; white-space: nowrap; }
.steps li:not(:last-child) { flex: 1; }
.steps li:not(:last-child)::after { content: ""; background: #e9d6cb; height: 1px; flex: 1; margin-left: .25rem; }
.step-number { display: grid; width: 1.9rem; height: 1.9rem; place-items: center; background: #f8ede8; border: 1px solid #eee1db; border-radius: 50%; font-weight: 800; }
.steps .current { color: var(--brand); }
.current .step-number { color: var(--white); background: var(--brand); border-color: var(--brand); }
.done .step-number { background: var(--brand-light); color: var(--brand); border-color: var(--brand-light); }
.step-number .icon { width: .95rem; height: .95rem; }
.checkout-title, .page-title { font: 400 clamp(1.95rem, 3.4vw, 3.45rem)/1.07 var(--display); letter-spacing: -.048em; }
.checkout-description, .page-description { margin-top: .55rem; color: var(--secondary); font-size: 1.025rem; }
.checkout-title-wrapper { margin-bottom: 1.3rem; }

.card { background: var(--white); border: 1px solid var(--edge); border-radius: 1.1rem; box-shadow: var(--shadow); }
.product { padding: 1.1rem 1.25rem; }
.product-top { display: flex; align-items: center; gap: .9rem; }
.product-icon, .mini-tile { flex: none; display: grid; place-items: center; width: 51px; height: 51px; border-radius: .88rem; background: var(--brand-light); color: var(--brand); }
.product-icon .icon { width: 1.65rem; height: 1.65rem; }
.product-top h2, .panel-heading { line-height: 1.25; font-size: 1.15rem; font-weight: 850; letter-spacing: -.025em; }
.product-price { margin-top: .16rem; color: var(--secondary); font-size: .92rem; }
.product-price strong { color: var(--brand); }
.lot-chip { margin-left: auto; border-radius: 2rem; padding: .32rem .66rem; white-space: nowrap; background: #ffebc8; color: #744016; font-size: .85rem; font-weight: 800; }
.choice-stack { display: grid; gap: .75rem; margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.variant { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .65rem 1rem; }
.variant + .variant { padding-top: .7rem; border-top: 1px solid var(--line); }
.form-label { display: block; margin-bottom: .3rem; font-size: .875rem; font-weight: 750; }
.variant-size { flex: 1; }
.pills { display: flex; gap: .36rem; flex-wrap: wrap; }
.size { background: var(--white); border: 1px solid #e8d8d1; color: #54423b; font-size: .9rem; font-weight: 800; border-radius: .55rem; min-width: 41px; min-height: 40px; padding: .2rem .48rem; }
.size:not(:disabled):hover { color: var(--brand); border-color: #cc786b; }
.size[aria-pressed="true"] { color: var(--brand); border-color: var(--brand); background: #fde8e4; box-shadow: inset 0 0 0 1px var(--brand); }
.quantity { display: grid; grid-template-columns: 34px 30px 34px; min-height: 40px; border: 1px solid #e8d8d1; border-radius: .55rem; overflow: hidden; background: var(--white); align-items: stretch; text-align: center; }
.quantity button { background: var(--white); border: 0; display: grid; place-items: center; color: var(--brand); padding: 0; }
.quantity button:not(:disabled):hover { background: var(--brand-light); }
.quantity button:focus-visible { outline-offset: -3px; }
.quantity button:disabled { opacity: .36; }
.quantity output { display: grid; place-items: center; font-size: .95rem; font-weight: 850; }
.quantity .icon { width: .92rem; height: .92rem; }
.variant-qty { display: flex; align-items: end; gap: .55rem; }
.text-action { border: 0; background: none; padding: .4rem 0; color: var(--brand); font-size: .9rem; font-weight: 800; display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; text-decoration: none; border-radius: .2rem; }
.text-action:hover { color: var(--brand-hover); text-decoration: underline; }
.text-action .icon { width: 1rem; height: 1rem; }
.remove { border: 1px solid var(--edge); border-radius: .55rem; width: 37px; height: 40px; background: var(--white); color: var(--secondary); padding: 0; }
.remove:hover { color: var(--red); background: var(--pink); }
.variant-add { margin-top: .47rem; }

.summary { margin-top: .85rem; padding: .87rem 1.25rem; border: 1px solid #f3ded5; border-radius: .9rem; background: #fdf0e9; display: flex; align-items: center; justify-content: space-between; gap: .85rem; }
.summary-label { font-weight: 850; line-height: 1.25; }
.summary-items { color: var(--muted); display: block; font-size: .88rem; margin-top: .15rem; overflow-wrap: anywhere; }
.summary-price { color: var(--brand); font-weight: 850; font-size: clamp(1.32rem,2.5vw,1.75rem); letter-spacing: -.045em; flex: none; line-height: 1; white-space: nowrap; }
.button { min-height: 44px; padding: .63rem .92rem; display: inline-flex; align-items: center; justify-content: center; gap: .48rem; border-radius: .67rem; border: 1px solid var(--edge); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 800; font-size: .95rem; line-height: 1.25; }
.button:not(:disabled):hover { background: #f9eeea; border-color: #e7c9be; }
.button.primary { background: var(--brand); color: var(--white); border-color: var(--brand); }
.button.primary:not(:disabled):hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.button.full { width: 100%; font-size: 1rem; min-height: 49px; }
.checkout-actions { margin-top: .8rem; display: grid; gap: .55rem; }
.secure-note { text-align: center; margin: .67rem auto 0; color: var(--muted); font-size: .85rem; display: flex; gap: .36rem; align-items: center; justify-content: center; }
.secure-note .icon { width: .92rem; height: .92rem; }
.form-body { padding: 1.2rem; display: grid; gap: 1rem; }
.field { min-width: 0; display: grid; gap: .33rem; font-size: .9rem; font-weight: 750; }
.field input, .field select, .filter-input, .filter-select { display: block; width: 100%; color: var(--ink); background-color: var(--white); border: 1px solid #e0cfc6; border-radius: .58rem; min-height: 45px; padding: .55rem .75rem; font-size: 1rem; font-weight: 550; }
.field input::placeholder, .filter-input::placeholder { color: #79675d; opacity: 1; }
.field small { color: var(--secondary); font-size: .86rem; font-weight: 500; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='9' viewBox='0 0 13 9'%3E%3Cpath fill='none' stroke='%23765851' stroke-width='1.8' stroke-linecap='round' d='m1 1 5.5 5.5L12 1'/%3E%3C/svg%3E"); background-position: right .7rem center; background-repeat: no-repeat; }
.field select, .filter-select { padding-right: 2rem; }
.error { background: #fcebf0; color: #8e1e43; border-radius: .65rem; padding: .66rem .8rem; margin-top: .7rem; font-size: .93rem; }
.subtle { color: var(--secondary); }
.notice { background: #fcf0e5; padding: .76rem .9rem; border-radius: .62rem; color: #6d4128; font-size: .93rem; }
.back { justify-self: center; }

.standalone { max-width: 1180px; padding: 2.2rem 2.45rem 3.3rem; margin: auto; }
.standalone.narrow { max-width: 760px; }
.page-heading-row { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1.4rem; }
.page-heading-row .preview-label { margin-bottom: .75rem; }
.panel { padding: 1.25rem; }
.track-entry { display: grid; gap: .75rem; padding: 1.25rem; }
.track-entry .button { justify-self: start; }
.order-top { display: flex; gap: .75rem; align-items: start; justify-content: space-between; margin-bottom: .95rem; flex-wrap: wrap; }
.order-top h2 { font-size: 1.23rem; font-weight: 850; letter-spacing: -.025em; }
.order-top .subtle { font-size: .9rem; }
.status { display: inline-flex; align-items: center; gap: .35rem; border-radius: 2rem; background: #f4e9e3; color: #72584a; padding: .27rem .6rem; font-size: .84rem; font-weight: 800; white-space: nowrap; }
.status.paid, .status.collected { background: var(--mint); color: var(--green); }
.status.pending, .status.remaining, .status.overdue { background: var(--gold); color: var(--amber); }
.status.canceled, .status.refunded, .status.review { background: var(--pink); color: var(--red); }
.order-lines { display: grid; gap: .23rem; color: var(--secondary); font-size: .95rem; }
.order-lines strong { color: var(--ink); }
.tracking-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: .9rem; }
.track-split { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: .85rem; }
.pix-panel { display: grid; gap: .8rem; }
.pix-panel .button.full { margin-top: .1rem; }
.pix-qr { display: block; width: min(205px, 100%); height: auto; aspect-ratio: 1; border: 1px solid var(--edge); padding: .45rem; border-radius: .72rem; margin: .3rem auto; }
.demo-pix { display: flex; align-items: center; gap: 1rem; background: #fff2e6; padding: .8rem; border-radius: .7rem; }
.demo-pix .icon { width: 2rem; height: 2rem; color: var(--brand); }
.success-panel { display: flex; gap: .8rem; padding: 1.1rem 1.25rem; background: var(--mint); color: var(--green); border: 1px solid #d4efdf; border-radius: .85rem; margin-top: .85rem; }
.success-panel .icon { margin-top: .18rem; }
.success-panel h2 { font-size: 1.1rem; font-weight: 850; }
.success-panel p { margin-top: .18rem; }
.feedback { color: var(--green); font-weight: 750; font-size: .9rem; }
.empty { padding: 1.5rem; text-align: center; }
.empty .mini-tile { margin: 0 auto .7rem; }
.empty p { color: var(--secondary); margin-top: .25rem; }

.admin { max-width: 1320px; }
.admin-tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--edge); margin: .65rem 0 1.15rem; overflow: auto; }
.tab { display: inline-flex; align-items: center; gap: .48rem; border: 0; border-bottom: 3px solid transparent; padding: .7rem .9rem; background: none; font-size: .95rem; font-weight: 800; color: var(--secondary); white-space: nowrap; }
.tab:hover, .tab[aria-selected="true"] { border-color: var(--brand); color: var(--brand); }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.metric { padding: .9rem; display: flex; gap: .65rem; align-items: center; min-width: 0; }
.metric .mini-tile { width: 41px; height: 41px; border-radius: .67rem; }
.metric .mini-tile.mint { background: var(--mint); color: var(--green); }
.metric .mini-tile.gold { background: var(--gold); color: var(--amber); }
.metric .mini-tile.pink { background: #ffebc8; color: #80501b; }
.metric span.label { color: var(--secondary); display: block; font-size: .86rem; font-weight: 750; }
.metric strong { font-size: clamp(1.2rem, 2vw, 1.65rem); font-weight: 850; letter-spacing: -.035em; }
.board { overflow: hidden; }
.board-top { padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
.board-top p { font-size: .9rem; color: var(--secondary); }
.filters { display: grid; grid-template-columns: 1fr repeat(3, minmax(117px,.37fr)) auto; align-items: end; gap: .58rem; padding: .8rem 1.15rem; }
.filters input, .filters select { min-height: 40px; }
.filters .button { min-height: 40px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
th { font-size: .87rem; font-weight: 800; background: #fcf4ee; color: #735347; }
td, th { padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
td { font-size: .92rem; }
td:first-child, th:first-child { padding-left: 1.15rem; }
td:last-child, th:last-child { padding-right: 1.15rem; }
td strong { display: block; font-weight: 800; }
td .small { display: block; font-size: .82rem; color: var(--secondary); margin-top: .12rem; }
.item-chips { display: flex; gap: .27rem; flex-wrap: wrap; min-width: 115px; }
.item-chip { background: #faeee2; color: #7c4429; border-radius: .37rem; padding: .16rem .4rem; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.td-action { white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.15rem; gap: .65rem; color: var(--secondary); font-size: .92rem; }
.pager-buttons { display: flex; gap: .45rem; }
.pager .button { min-height: 35px; padding: .4rem .64rem; font-size: .87rem; }
.settings { max-width: 760px; }
.settings form { display: grid; gap: 1.15rem; }
.settings h2 { margin-bottom: .45rem; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.settings fieldset { margin: 0; border: 0; padding: 0; }
.settings legend { margin-bottom: .38rem; font-weight: 800; }
.setting-sizes { display: flex; flex-wrap: wrap; gap: .55rem; }
.check { display: flex; gap: .43rem; align-items: center; font-weight: 700; }
.setting-sizes .check { border: 1px solid var(--edge); border-radius: .5rem; padding: .4rem .54rem; }
.check input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--brand); }
.settings .button { justify-self: start; }
.admin-result { padding: .75rem 0; }

@media (min-width: 1450px) {
  .checkout-layout { padding-top: 2.6rem; }
  .hero { min-height: 705px; }
}
@media (max-width: 1050px) {
  .checkout-layout { gap: 1.65rem; }
  .header-inner, .checkout-layout, .standalone { padding-left: 1.55rem; padding-right: 1.55rem; }
  .hero { min-height: 660px; }
  .hero-title { font-size: clamp(3.8rem, 9vw, 6.4rem); }
  .filters { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 875px) {
  .checkout-layout { grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); gap: 1.35rem; }
  .hero { padding: 1.2rem; }
  .hero-title { font-size: clamp(3.05rem, 9.3vw, 5.5rem); }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .header-inner { min-height: 64px; gap: .55rem; }
  .header-inner, .checkout-layout, .standalone { padding-left: 1rem; padding-right: 1rem; }
  .brand-mark { width: 37px; height: 37px; }
  .brand { gap: .5rem; }
  .brand-name { font-size: 1.45rem; }
  .brand-name small { font-size: .53rem; }
  .nav-link { font-size: .79rem; padding: .45rem; gap: .26rem; }
  .nav-link .icon { width: 1rem; height: 1rem; }
  .header-nav { gap: .14rem; }
  .checkout-layout { display: flex; flex-direction: column; gap: 1.25rem; padding-top: .95rem; }
  .hero { width: 100%; min-height: 286px; border-radius: 1.1rem; padding: 1.15rem; background-position: center 30%; }
  .hero::before { background: linear-gradient(180deg, #36070a12, #5f0a1545 38%, #580a11ec 85%, #4a080f 100%); }
  .hero-kicker { font-size: .96rem; margin-bottom: .35rem; }
  .hero-title { font-size: clamp(3.35rem, 10vw, 5rem); max-width: none; }
  .hero-rule { margin: .85rem 0 .4rem; height: .21rem; }
  .hero-description { font-size: .92rem; }
  .hero-tag { font-size: .77rem; padding: .38rem .51rem; }
  .checkout { width: 100%; }
  .checkout-title, .page-title { font-size: clamp(1.95rem,7.3vw,2.85rem); }
  .standalone { padding-top: 1.55rem; }
  .steps { margin: .85rem 0 1rem; gap: .55rem; }
  .steps li { gap: .35rem; font-size: .87rem; }
  .variant { gap: .45rem .8rem; }
  .page-heading-row { align-items: start; flex-direction: column; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters .field:first-child { grid-column: 1 / -1; }
  .metric { padding: .7rem; gap: .51rem; }
  .metric strong { font-size: 1.25rem; }
}
@media (max-width: 540px) {
  .nav-full { display: none; }
}
@media (max-width: 385px) {
  .header-inner, .checkout-layout, .standalone { padding-left: .78rem; padding-right: .78rem; }
  .size { min-width: 39px; }
  .product, .summary { padding-left: .9rem; padding-right: .9rem; }
  .settings-grid { grid-template-columns: 1fr; }
}

.pickup-count { min-width: 125px; }

.order-terms {
  margin-block: 1rem;
}

.order-terms summary {
  cursor: pointer;
  font-weight: 700;
}

.order-terms details[open] > form {
  margin-block: 0.75rem;
}

.order-terms p {
  margin-block: 0.5rem;
}
