:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #f2f4f7;
  --text: #171a21;
  --text-soft: #667085;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --primary-soft: #eef2ff;
  --success: #067647;
  --success-soft: #ecfdf3;
  --warning: #b54708;
  --warning-soft: #fffaeb;
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
}

* { box-sizing: border-box; }
html { min-height: 100%; font-size: 15px; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .65rem; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.08; }
h2 { margin-bottom: .5rem; font-size: clamp(1.4rem, 2.2vw, 1.85rem); font-weight: 650; letter-spacing: -.025em; }
h3 { font-size: 1rem; font-weight: 650; }
p { color: var(--text-soft); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
small { color: var(--text-soft); }

.public-body { background: var(--surface); }
.page-content { min-height: calc(100vh - 145px); padding-top: 3.5rem; padding-bottom: 5rem; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.navbar { min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand span, .auth-brand span { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--primary); border-radius: 8px; font-size: .72rem; font-weight: 700; }
.brand strong, .auth-brand strong { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; }
.site-header .brand strong { color: var(--text); }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
.nav-link { margin-left: .3rem; color: #475467 !important; font-size: .9rem; font-weight: 500; }
.nav-link:hover { color: var(--text) !important; }
.cart-link { display: inline-flex; align-items: center; gap: .4rem; }
.cart-link span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; color: white; background: var(--primary); border-radius: 10px; font-size: .7rem; font-weight: 700; }
.account-nav { gap: .15rem; margin-left: .65rem; padding-left: .65rem; border-left: 1px solid var(--border); }
.account-identity-item { display: flex; }
.account-identity { display: flex; align-items: center; gap: .55rem; max-width: 220px; margin: 0 .25rem; padding: .25rem .35rem; border-radius: 8px; }
.account-identity:hover { background: var(--surface-muted); }
.account-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 7px; font-size: .7rem; font-weight: 700; }
.account-identity > span:last-child { min-width: 0; }
.account-identity small, .account-identity strong, .account-identity em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-identity small { font-size: .62rem; }
.account-identity strong { font-size: .72rem; font-weight: 600; }
.account-identity em { color: var(--text-soft); font-size: .66rem; font-style: normal; }
.header-account-identity { display: flex; align-items: center; gap: .55rem; min-width: 0; max-width: 260px; margin-left: 1rem; padding: .35rem .5rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 10px; }
.header-account-identity:hover { border-color: #c7d2fe; background: var(--primary-soft); }
.header-account-identity > span:last-child { min-width: 0; }
.header-account-identity small, .header-account-identity strong, .header-account-identity em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-account-identity small { color: var(--text-soft); font-size: .61rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.header-account-identity strong { font-size: .74rem; font-weight: 700; }
.header-account-identity em { color: var(--text-soft); font-size: .66rem; font-style: normal; }
.nav-logout { background: transparent; border: 0; }
.account-create { margin-left: .25rem; }
.site-footer { padding: 1.4rem 0; color: var(--text-soft); background: var(--surface); border-top: 1px solid var(--border); font-size: .82rem; }
.site-footer .container { display: flex; justify-content: space-between; gap: 1rem; }

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.app-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 1.25rem; color: #d0d5dd; background: #101828; border-right: 1px solid #1d2939; }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; }
.brand-sidebar { margin: .1rem .4rem 2rem; color: white; }
.internal-nav-panel { display: flex !important; flex: 1; flex-direction: column; min-height: 0; }
.workspace-label { margin: 0 .65rem .65rem; color: #667085; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.sidebar-nav { display: flex; flex-direction: column; gap: .25rem; }
.sidebar-nav a { display: flex; align-items: center; gap: .7rem; padding: .68rem .72rem; color: #98a2b3; border-radius: 7px; font-size: .88rem; font-weight: 500; }
.sidebar-nav a:hover { color: white; background: #1d2939; }
.nav-icon { display: grid; place-items: center; width: 24px; height: 24px; color: #98a2b3; border: 1px solid #344054; border-radius: 6px; font-size: .62rem; font-weight: 700; }
.sidebar-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid #344054; }
.user-summary { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: .65rem; align-items: center; margin-bottom: .7rem; }
.user-summary > span { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: #344054; border-radius: 50%; font-size: .75rem; font-weight: 700; }
.user-summary div { min-width: 0; }
.user-summary strong, .user-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-summary strong { color: #f2f4f7; font-size: .76rem; font-weight: 600; }
.user-summary small { color: #667085; font-size: .68rem; }
.sidebar-logout { width: 100%; padding: .55rem .7rem; color: #98a2b3; background: transparent; border: 0; border-radius: 6px; text-align: left; font-size: .78rem; }
.sidebar-logout:hover { color: white; background: #1d2939; }
.app-main { min-width: 0; }
.app-topbar { display: flex; justify-content: space-between; align-items: center; min-height: 64px; padding: 0 2rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.app-topbar div { display: flex; gap: .45rem; align-items: center; }
.app-topbar span { color: var(--text-soft); font-size: .78rem; }
.app-topbar span::after { content: "/"; margin-left: .45rem; }
.app-topbar strong { font-size: .82rem; }
.app-topbar > a { color: var(--text-soft); font-size: .78rem; font-weight: 500; }
.app-topbar > a:hover { color: var(--primary); }
.app-content { width: min(100%, 1440px); margin: 0 auto; padding: 2rem; }

.btn { min-height: 40px; padding: .55rem .9rem; border-radius: 8px; font-size: .86rem; font-weight: 600; }
.btn-lg { min-height: 46px; padding: .7rem 1.05rem; font-size: .9rem; }
.btn-brand { color: white !important; background: var(--primary); border-color: var(--primary); box-shadow: var(--shadow-sm); }
.btn-brand:hover { color: white; background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-dark, .btn-outline-secondary { color: #344054; border-color: var(--border-strong); }
.btn-outline-dark:hover, .btn-outline-secondary:hover { color: var(--text); background: var(--surface-muted); border-color: #98a2b3; }
.eyebrow { display: block; margin-bottom: .55rem; color: var(--primary); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.hero-panel { display: grid; grid-template-columns: 1.25fr .75fr; gap: 4rem; align-items: center; min-height: 410px; padding: clamp(2.5rem, 6vw, 5.5rem) 0; border-bottom: 1px solid var(--border); }
.hero-copy { max-width: 680px; }
.hero-copy h1 { max-width: 620px; }
.hero-copy p { max-width: 580px; margin: 0 0 1.7rem; font-size: 1.05rem; }
.hero-overview { padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.overview-label { display: block; padding: 0 .25rem 1rem; color: var(--text-soft); border-bottom: 1px solid var(--border); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hero-overview ol { display: grid; margin: 0; padding: 0; list-style: none; }
.hero-overview li { display: grid; grid-template-columns: 32px 1fr; gap: .8rem; align-items: center; padding: 1rem .25rem; border-bottom: 1px solid var(--border); }
.hero-overview li:last-child { border-bottom: 0; }
.hero-overview li > span { display: grid; place-items: center; width: 28px; height: 28px; color: var(--primary); background: var(--primary-soft); border-radius: 7px; font-size: .72rem; font-weight: 700; }
.hero-overview strong, .hero-overview small { display: block; }
.hero-overview strong { margin-bottom: .12rem; font-size: .86rem; }
.hero-overview small { font-size: .76rem; }

.landing-page { padding-bottom: 1rem; }
.variant-choice-list { display: grid; gap: .55rem; margin-top: .8rem; }
.variant-choice-label { display: block; margin-top: .85rem; color: var(--text-soft); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.variant-choice-list .product-footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; gap: .65rem; padding: .7rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 9px; }
.variant-choice-list small { display: block; }
.variant-name, .variant-price, .variant-total { white-space: nowrap; }
.variant-description { overflow: hidden; color: var(--text-soft); text-overflow: ellipsis; white-space: nowrap; }
.variant-total { color: var(--text-soft); }
.variant-choice-list .quantity-stepper { justify-self: end; }
.variant-editor-row { margin-bottom: .85rem; padding: .85rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius); }
.landing-hero { border-bottom: 0; }
.landing-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.landing-overview { position: relative; overflow: hidden; }
.landing-overview::before { position: absolute; top: 0; right: 0; width: 96px; height: 96px; background: radial-gradient(circle, rgba(79,70,229,.14), transparent 68%); content: ""; pointer-events: none; }
.landing-benefits { padding-top: 1rem; }
.landing-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.landing-benefit-card { min-height: 180px; padding: 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.landing-benefit-card > span { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 1rem; color: var(--primary); background: var(--primary-soft); border-radius: 7px; font-size: .66rem; font-weight: 700; }
.landing-benefit-card h3 { margin-bottom: .42rem; }
.landing-benefit-card p { margin: 0; font-size: .82rem; }
.landing-how-it-works { padding-top: 1rem; }
.landing-step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.landing-step-grid li { position: relative; min-height: 150px; padding: 1.1rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius); }
.landing-step-grid span, .landing-step-grid strong, .landing-step-grid small { display: block; }
.landing-step-grid span { margin-bottom: 1.2rem; color: var(--primary); font-size: .7rem; font-weight: 700; }
.landing-step-grid strong { margin-bottom: .4rem; font-size: .88rem; }
.landing-step-grid small { font-size: .76rem; line-height: 1.5; }
.landing-cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 4rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--primary-soft); border: 1px solid #c7d2fe; border-radius: calc(var(--radius) + 2px); }
.landing-cta > div { max-width: 700px; }
.landing-cta h2 { margin-bottom: .55rem; }
.landing-cta p { margin: 0; }
.landing-cta .btn { flex: 0 0 auto; }

.section-block { margin-top: 3.5rem; }
.section-heading, .page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.5rem; }
.page-heading h1 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.35rem); }
.page-heading p, .section-heading p { margin: .35rem 0 0; font-size: .9rem; }
.page-actions { display: flex; align-items: flex-end; gap: .75rem; }
.unit-grid, .product-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem; }
.unit-card { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.unit-card:hover, .order-card:hover { border-color: #a5b4fc; box-shadow: 0 4px 12px rgba(16,24,40,.06); }
.unit-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--primary); background: var(--primary-soft); border-radius: 8px; font-size: .8rem; font-weight: 700; }
.unit-card h3, .unit-card p { margin: 0 0 .22rem; }
.unit-card p { font-size: .82rem; }
.unit-card small { font-size: .74rem; }
.card-arrow { color: var(--primary); font-size: .78rem; font-weight: 600; }
.unit-search { margin-bottom: 1rem; padding: 1rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius); }
.unit-search > div { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: .65rem; align-items: center; }

.cart-pill { display: flex; gap: .6rem; align-items: center; padding: .55rem .7rem .55rem .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: .82rem; font-weight: 600; }
.cart-pill strong { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; color: white; background: var(--primary); border-radius: 6px; font-size: .7rem; }
.menu-section { margin: 2.5rem 0; }
.menu-section > h2 { padding-bottom: .8rem; border-bottom: 1px solid var(--border); font-size: 1.1rem; }
.product-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: start; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.product-visual { display: grid; place-items: center; align-self: start; aspect-ratio: 1; overflow: hidden; background: var(--surface-muted); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.product-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-visual span { color: #98a2b3; font-size: 1.35rem; font-weight: 700; }
.product-content { min-width: 0; padding: 1rem 1.1rem 1.1rem; }
.product-content h3 { margin-bottom: .3rem; font-size: 1rem; }
.product-content p { min-height: 0; margin-bottom: .65rem; font-size: .8rem; }
.product-content > strong { display: block; width: fit-content; padding: .3rem .5rem; color: var(--primary-dark); background: var(--primary-soft); border-radius: 6px; font-size: .82rem; }
.product-variants { grid-column: 1 / -1; min-width: 0; padding: .85rem 1rem 1rem; border-top: 1px solid var(--border); }
.product-variants > .product-footer { justify-content: flex-end; }
.product-footer { display: flex; justify-content: space-between; align-items: center; gap: .8rem; }
.product-footer strong { font-size: .92rem; }
.product-footer small { display: block; margin-top: .15rem; font-size: .72rem; }
.btn-add { display: grid; place-items: center; width: 32px; height: 32px; color: white; background: var(--primary); border: 0; border-radius: 7px; font-size: 1.15rem; line-height: 1; }
.btn-add:hover { background: var(--primary-dark); }
.delivery-estimate-card { display: flex; align-items: center; gap: .65rem; width: fit-content; margin: -1rem 0 2rem; padding: .72rem 1rem; background: var(--primary-soft); border: 1px solid #c7d2fe; border-radius: 12px; white-space: nowrap; }
.delivery-estimate-card span { color: var(--primary-dark); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.delivery-estimate-card strong { color: var(--primary-dark); font-size: 1rem; letter-spacing: -.02em; }
.delivery-estimate-card small { color: #475467; font-size: .76rem; }
.catalog-cart-cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-top: 3.5rem; padding: 1.5rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 12px; }
.catalog-cart-cta h2 { margin-bottom: .25rem; font-size: 1.2rem; }
.catalog-cart-cta p { margin: 0; font-size: .82rem; }
.catalog-cart-cta .btn { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .6rem; }
.catalog-cart-cta .btn span { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; color: var(--primary-dark); background: white; border-radius: 6px; font-size: .68rem; }
.floating-cart-summary { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 80; display: flex; align-items: center; gap: 1rem; min-width: 280px; padding: .85rem .9rem .85rem 1rem; color: var(--text); background: rgba(255,255,255,.98); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 28px rgba(16,24,40,.14); }
.floating-cart-summary[hidden] { display: none; }
.floating-cart-summary div { min-width: 0; }
.floating-cart-summary small { display: block; margin-bottom: .1rem; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.floating-cart-summary strong { display: block; font-size: 1.1rem; letter-spacing: 0; }
.floating-cart-summary .btn { flex: 0 0 auto; min-height: 38px; }

.surface-card, .summary-card { padding: 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 1rem; align-items: start; }
.summary-card { position: sticky; top: 84px; }
.summary-card > span { color: var(--text-soft); font-size: .8rem; }
.summary-card > strong { display: block; margin: .25rem 0 .9rem; font-size: 1.65rem; letter-spacing: -.03em; }
.summary-card p { font-size: .78rem; }
.cart-row { display: grid; grid-template-columns: 1fr auto 100px; align-items: center; gap: .8rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cart-row:first-child { padding-top: 0; }
.cart-row h3 { margin: 0; }
.cart-row span { color: var(--text-soft); font-size: .75rem; }
.quantity-form { display: flex; gap: .45rem; }
.quantity-form input { width: 62px; }
.quantity-stepper { display: inline-grid; grid-template-columns: 36px 52px 36px; gap: .35rem; align-items: center; }
.quantity-stepper button { display: grid; place-items: center; width: 36px; height: 36px; color: var(--primary-dark); background: var(--primary-soft); border: 1px solid #c7d2fe; border-radius: 8px; font-size: 1rem; font-weight: 800; line-height: 1; }
.quantity-stepper button:hover { background: #e0e7ff; border-color: #a5b4fc; }
.quantity-stepper input { width: 52px; min-height: 36px; padding: .25rem; text-align: center; font-weight: 700; }
.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.quantity-stepper.busy { opacity: .65; pointer-events: none; }
.btn-link-danger { color: var(--danger); background: none; border: 0; font-size: .75rem; }
.text-link { display: inline-block; margin-top: 1rem; color: var(--primary); font-size: .82rem; font-weight: 600; }

.form-stack { display: flex; flex-direction: column; gap: 1.15rem; }
.form-stack h2 { margin: .7rem 0 0; font-size: 1.1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: .65rem; padding-top: .35rem; }
label { margin-bottom: .35rem; color: #344054; font-size: .78rem; font-weight: 600; }
.form-control, .form-select { min-height: 42px; color: var(--text); background-color: var(--surface); border-color: var(--border-strong); border-radius: 7px; font-size: .84rem; }
.form-control:focus, .form-select:focus { border-color: #818cf8; box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.field-validation-error { display: block; margin-top: .25rem; color: var(--danger); font-size: .72rem; }
.profile-card { max-width: 760px; }
.profile-note { display: grid; gap: .25rem; padding: .9rem 1rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 10px; }
.profile-note strong { font-size: .86rem; }
.profile-note p { margin: 0; font-size: .78rem; }
.address-list { display: grid; gap: .75rem; }
.address-card { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.address-title-row { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-bottom: .35rem; }
.address-title-row h2 { margin: 0; font-size: 1.05rem; }
.address-card p { margin-bottom: .35rem; font-size: .86rem; }
.address-actions { display: flex; flex-wrap: wrap; gap: .45rem; justify-content: flex-end; }
.address-actions form { margin: 0; }
.address-form-card { max-width: 860px; }
.cep-lookup-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; }
.form-hint[data-kind="success"] { color: var(--success); }
.form-hint[data-kind="error"] { color: var(--danger); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.choice-card { display: flex; align-items: center; gap: .7rem; padding: .9rem; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.choice-card:has(input:checked) { background: var(--primary-soft); border-color: #a5b4fc; }
.choice-card span, .choice-card small { display: block; }
.choice-card small, .form-hint { color: var(--text-soft); font-size: .72rem; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .82rem; }
.summary-line.total { font-size: .95rem; }
.order-detail-item { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; }

.auth-shell { display: grid; place-items: center; min-height: 68vh; padding: 2rem 0; }
.auth-card { width: min(100%, 440px); padding: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(16,24,40,.08); }
.auth-card.wide { width: min(100%, 680px); }
.auth-card h1 { font-size: 1.75rem; }
.auth-card > p { margin-bottom: 1.5rem; font-size: .86rem; }
.auth-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.75rem; }
.auth-footer { margin: 0; text-align: center; font-size: .8rem; }
.auth-footer a { color: var(--primary); font-weight: 600; }

.empty-state { padding: 4rem 2rem; text-align: center; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty-state.compact { padding: 2.25rem; }
.empty-state h2, .empty-state h3 { margin-bottom: .4rem; }
.empty-state p { font-size: .85rem; }
.success-banner { display: flex; gap: .8rem; margin-bottom: 1.25rem; padding: .85rem 1rem; color: var(--success); background: var(--success-soft); border: 1px solid #abefc6; border-radius: 8px; font-size: .82rem; }
.warning-banner { display: flex; gap: .8rem; margin-bottom: 1.25rem; padding: .85rem 1rem; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; font-size: .82rem; }
.order-list { display: grid; gap: .6rem; }
.order-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.order-card-main { min-width: 0; }
.order-card-top { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.order-card h3 { margin: .55rem 0 .2rem; }
.order-card p { margin: 0; font-size: .78rem; }
.order-total { display: flex; flex-direction: column; text-align: right; }
.order-total strong { font-size: .95rem; }
.order-total span { color: var(--text-soft); font-size: .75rem; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; width: fit-content; padding: .34rem .68rem; color: var(--warning); background: var(--warning-soft); border: 1px solid #fedf89; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.status-badge.large { padding: .48rem .78rem; font-size: .76rem; }
.status-received { color: #175cd3; background: #eff8ff; border-color: #b2ddff; }
.status-confirmed { color: #3538cd; background: #eef4ff; border-color: #c7d7fe; }
.status-preparing { color: var(--primary-dark); background: var(--primary-soft); border-color: #c7d2fe; }
.status-ready { color: #067647; background: var(--success-soft); border-color: #abefc6; }
.status-outfordelivery { color: #b54708; background: var(--warning-soft); border-color: #fedf89; }
.status-completed { color: var(--success); background: var(--success-soft); }
.status-cancelled { color: var(--danger); background: var(--danger-soft); }
.status-completed { border-color: #abefc6; }
.status-cancelled { border-color: #fecdca; }
.order-summary-chips { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin: -0.65rem 0 1rem; }
.detail-chip { display: inline-flex; align-items: center; min-height: 36px; padding: .42rem .78rem; color: #344054; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; font-size: .78rem; font-weight: 800; }
.detail-deadline-chip { flex-direction: row; align-items: center; gap: .45rem; min-width: 0; min-height: 36px; padding: .42rem .78rem; white-space: nowrap; }
.detail-deadline-chip strong { font-size: .78rem; }
.order-notes-box { display: grid; gap: .25rem; margin-top: 1rem; padding: .9rem 1rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 10px; }
.order-notes-box small { color: var(--text-soft); font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.order-notes-box strong { font-size: .88rem; line-height: 1.5; }
.details-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 1rem; }
.info-stack { display: flex; flex-direction: column; gap: 1rem; }
.info-stack div { display: flex; flex-direction: column; gap: .15rem; }
.info-stack small { color: var(--text-soft); font-size: .65rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.admin-nav { display: flex; gap: .25rem; margin: -.25rem 0 1.5rem; padding-bottom: .7rem; overflow-x: auto; border-bottom: 1px solid var(--border); }
.admin-nav a { flex: 0 0 auto; padding: .5rem .7rem; color: var(--text-soft); border-radius: 6px; font-size: .78rem; font-weight: 550; }
.admin-nav a:hover { color: var(--text); background: var(--surface-muted); }
.admin-nav a.active { color: var(--primary-dark); background: var(--primary-soft); }
.touch-action-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem; margin-bottom: 1rem; }
.touch-action-grid a { display: grid; gap: .3rem; min-height: 124px; padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.touch-action-grid a:hover { border-color: #a5b4fc; box-shadow: 0 6px 16px rgba(16,24,40,.07); }
.touch-action-grid span { width: fit-content; padding: .28rem .55rem; color: var(--primary-dark); background: var(--primary-soft); border-radius: 999px; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.touch-action-grid strong { font-size: 1.1rem; }
.touch-action-grid small { align-self: end; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: .75rem; }
.metric-grid article { padding: 1.15rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.metric-grid span { color: var(--text-soft); font-size: .72rem; }
.metric-grid strong { display: block; margin-top: .45rem; font-size: 1.55rem; font-weight: 650; letter-spacing: -.04em; }
.admin-order-table, .production-order-list { display: grid; gap: .45rem; }
.report-order-row, .production-order-list a, .admin-order-table a, .admin-order-table.header > div { display: grid; gap: .8rem; align-items: center; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: .78rem; }
.report-order-row { grid-template-columns: 1.3fr .8fr 1fr 1.2fr .7fr; }
.production-order-list a { grid-template-columns: 1.15fr 1.35fr .9fr 1.05fr .95fr; }
.production-order-list a:hover, .admin-order-table a:hover { border-color: #a5b4fc; }
.production-order-list small, .admin-order-table small { color: var(--text-soft); font-weight: 400; }
.production-order-list a { min-height: 72px; }
.production-order-list .status-badge { width: 100%; min-height: 40px; }
.deadline-chip { display: inline-flex; width: fit-content; min-width: 86px; flex-direction: column; gap: .05rem; padding: .42rem .6rem; color: var(--text-soft); background: var(--surface-muted); border: 1px solid var(--border); border-radius: 10px; line-height: 1.15; }
.deadline-chip strong { color: var(--text); font-size: .78rem; }
.deadline-chip small { font-size: .66rem; }
.deadline-chip.soon { color: #92400e; background: #fffbeb; border-color: #fde68a; }
.deadline-chip.soon strong { color: #92400e; }
.deadline-chip.late { color: #b42318; background: #fef3f2; border-color: #fecdca; }
.deadline-chip.late strong { color: #b42318; }
.production-item { display: grid; grid-template-columns: 42px 1fr; gap: .7rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.production-item strong { display: grid; place-items: center; width: 34px; height: 34px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 7px; font-size: .75rem; }
.production-detail-card h2 { margin-top: 1.25rem; }
.production-detail-card h2:first-child { margin-top: 0; }
.compact-heading { align-items: center; margin-bottom: .75rem; }
.compact-heading h2 { margin: 0; }
.order-total-chip { padding: .5rem .75rem; color: var(--success); background: var(--success-soft); border-radius: 999px; font-size: .95rem; }
.production-item-table { display: grid; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.production-item-row { display: grid; grid-template-columns: 56px 64px 1fr .8fr .7fr; gap: .75rem; align-items: center; padding: .9rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.production-item-row:last-child { border-bottom: 0; }
.production-item-row > strong { display: grid; place-items: center; min-height: 42px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 8px; font-size: .86rem; }
.order-item-photo { display: grid; place-items: center; overflow: hidden; width: 56px; height: 56px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 10px; font-weight: 700; }
.order-item-photo img { width: 100%; height: 100%; object-fit: cover; }
.order-item-photo span { font-size: .72rem; }
.production-item-row span { font-weight: 650; }
.production-item-row b { text-align: right; }
.production-total-box { display: grid; gap: .45rem; margin: 1rem 0 1.35rem; padding: 1rem; background: var(--surface-muted); border-radius: 10px; }
.production-total-box div { display: flex; justify-content: space-between; gap: 1rem; color: var(--text-soft); font-size: .82rem; }
.production-total-box strong { color: var(--text); }
.production-total-box .total { padding-top: .45rem; color: var(--text); border-top: 1px solid var(--border); font-size: .95rem; font-weight: 700; }
.touch-status-grid { display: grid; gap: .55rem; }
.touch-status-grid form { margin: 0; }
.touch-status-button { width: 100%; min-height: 58px; padding: .85rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; text-align: left; font-weight: 700; }
.touch-status-button:hover, .touch-status-button.active { color: var(--primary-dark); background: var(--primary-soft); border-color: #a5b4fc; }
.production-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
.filter-bar { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.filter-bar label { margin: 0; }
.filter-bar select { width: 210px; }
.toggle-card { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.toggle-card input { width: 1rem; height: 1rem; margin-top: .2rem; accent-color: var(--primary); }
.toggle-card span { display: flex; flex-direction: column; gap: .15rem; }
.toggle-card strong { font-size: .86rem; }
.toggle-card small { color: var(--text-soft); font-size: .72rem; }
.order-tab-nav { display: flex; gap: .45rem; margin-bottom: .85rem; padding-bottom: .1rem; overflow-x: auto; }
.order-tab-nav a { flex: 0 0 auto; padding: .62rem .9rem; color: var(--text-soft); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: .78rem; font-weight: 600; }
.order-tab-nav a:hover { color: var(--text); border-color: #c7d7fe; }
.order-tab-nav a.active { color: var(--primary-dark); background: var(--primary-soft); border-color: #a5b4fc; }
.finance-metrics { grid-template-columns: repeat(5, minmax(0,1fr)); }
.finance-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .85rem; }
.finance-report-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem; }
.finance-action-row { flex-wrap: wrap; }
.finance-table { display: grid; gap: .45rem; }
.finance-table-head, .finance-table-row { display: grid; grid-template-columns: 1fr .9fr .9fr .7fr .8fr; gap: .8rem; align-items: center; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: .79rem; }
.finance-table-head { color: var(--text-soft); background: var(--surface-muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.finance-table-head-wide, .finance-table-row-wide { grid-template-columns: .85fr 1.1fr .85fr .8fr .9fr .7fr; }
.finance-table-row strong, .finance-list-row strong { font-size: .83rem; }
.finance-table-row b, .finance-list-row b { font-size: .84rem; text-align: right; }
.finance-list { display: grid; gap: .55rem; }
.finance-list-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--border); }
.finance-list-row:last-child { padding-bottom: 0; border-bottom: 0; }
.empty-inline { margin: 0; font-size: .82rem; }
.product-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.product-admin-card { display: flex; justify-content: space-between; gap: 1rem; }
.product-admin-summary { display: grid; grid-template-columns: 72px 1fr; gap: .8rem; min-width: 0; }
.product-admin-thumb { display: grid; place-items: center; overflow: hidden; width: 72px; height: 72px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 10px; font-weight: 700; }
.product-admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-admin-card p { min-height: 38px; font-size: .78rem; }
.admin-actions { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; min-width: 104px; }
.availability, .role-badge { display: inline-flex; justify-content: center; padding: .25rem .55rem; border-radius: 12px; font-size: .67rem; font-weight: 600; }
.availability.on { color: var(--success); background: var(--success-soft); }
.availability.off { color: #475467; background: var(--surface-muted); }
.role-badge.admin { color: var(--primary-dark); background: var(--primary-soft); }
.role-badge.operation { color: var(--warning); background: var(--warning-soft); }
.product-form { max-width: 760px; }
.product-photo-field { display: grid; gap: .55rem; }
.product-photo-preview { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; padding: .75rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 10px; }
.product-photo-preview img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; }
.category-management-list { display: grid; gap: .6rem; }
.category-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.category-row h3 { margin: .45rem 0 .15rem; }
.order-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 28px; padding: 0 .55rem; color: var(--primary-dark); background: var(--primary-soft); border-radius: 999px; font-size: .72rem; font-weight: 700; }
.unit-selector { min-width: 260px; }
.unit-selector label { display: block; }
.superadmin-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.superadmin-actions .surface-card:hover { border-color: #a5b4fc; }
.superadmin-actions h2 { font-size: 1.2rem; }
.superadmin-actions p { margin-bottom: 0; font-size: .8rem; }
.unit-management-list, .internal-user-list { display: grid; gap: .55rem; }
.unit-management-list article, .internal-user-list article { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.unit-management-list h3, .internal-user-list h3 { margin: .55rem 0 .15rem; }
.unit-management-list p, .internal-user-list p { margin: 0 0 .25rem; font-size: .78rem; }
.internal-user-form { max-width: 840px; }
.unit-access-fieldset { padding-top: 1rem; border-top: 1px solid var(--border); }
.unit-access-fieldset legend { font-size: 1rem; font-weight: 650; }
.unit-checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.alert { border-radius: 8px; font-size: .82rem; }
.alert-success { color: var(--success); background: var(--success-soft); border-color: #abefc6; }

@media (max-width: 991px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: sticky; z-index: 120; height: auto; padding: .75rem 1rem; }
  .brand-sidebar { margin: 0; }
  .internal-menu-toggle { display: block; color: white; background: #1d2939; border-color: #344054; }
  .internal-menu-toggle span { background: white; }
  .internal-nav-panel { display: none !important; max-height: calc(100vh - 70px); padding-top: .9rem; overflow-y: auto; }
  .internal-nav-panel.show, .internal-nav-panel.collapsing { display: flex !important; }
  .workspace-label { margin-top: .2rem; }
  .sidebar-nav { flex-direction: column; overflow: visible; }
  .sidebar-nav a { flex: initial; }
  .sidebar-footer { margin-top: 1rem; }
  .app-topbar { display: none; }
  .app-content { padding: 1.25rem; }
  .hero-panel { grid-template-columns: 1fr; gap: 2rem; }
  .hero-overview { max-width: 620px; }
  .landing-benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid, .unit-grid, .product-admin-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .finance-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .finance-filter-grid, .finance-report-grid { grid-template-columns: 1fr 1fr; }
  .checkout-layout, .details-grid { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .report-order-row, .production-order-list a { grid-template-columns: 1fr 1fr; }
  .touch-action-grid { grid-template-columns: 1fr 1fr; }
  .touch-action-grid a { min-height: 112px; }
  .production-item-row { grid-template-columns: 56px 58px 1fr auto; }
  .production-item-row small { grid-column: 3 / -1; }
  .finance-table-head, .finance-table-row, .finance-table-head-wide, .finance-table-row-wide { grid-template-columns: 1fr 1fr; }
  .superadmin-actions { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .page-content { padding-top: 2rem; }
  .site-header .menu-toggle { display: block; }
  .site-header .container { gap: .55rem; }
  .navbar { min-height: 62px; }
  .header-account-identity { flex: 1 1 auto; max-width: none; margin-left: 0; padding: .42rem .55rem; }
  .header-account-identity .account-avatar { width: 28px; height: 28px; }
  .header-account-identity small { font-size: .56rem; }
  .header-account-identity strong { font-size: .7rem; }
  .header-account-identity em { display: none; }
  .navbar-collapse { margin: .7rem -.75rem -.5rem; padding: .7rem .75rem 1rem; background: var(--surface); border-top: 1px solid var(--border); }
  .navbar-collapse.show, .navbar-collapse.collapsing { align-items: stretch; flex-direction: column; }
  .public-main-nav { padding: .55rem 0; border-bottom: 1px solid var(--border); }
  .nav-link { display: flex; align-items: center; min-height: 42px; margin-left: 0; padding: .55rem .65rem !important; border-radius: 7px; }
  .nav-link:hover { background: var(--surface-muted); }
  .cart-link { justify-content: space-between; }
  .account-nav { gap: .15rem; margin: .55rem 0 0; padding: 0; border: 0; }
  .account-identity-item { width: 100%; }
  .account-identity { width: 100%; max-width: none; margin: 0 0 .4rem; padding: .7rem .75rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 10px; }
  .account-identity strong { font-size: .78rem; }
  .account-identity em { font-size: .7rem; }
  .account-nav form, .account-nav .nav-logout, .account-create { width: 100%; }
  .account-create { display: flex; justify-content: center; align-items: center; margin: .35rem 0 0; }
  .nav-logout { text-align: left; }
  .site-footer .container { flex-direction: column; }
  .hero-panel { min-height: auto; padding: 3rem 0; }
  .hero-copy p { font-size: .92rem; }
  .landing-actions .btn { flex: 1 1 180px; }
  .landing-benefit-grid, .landing-step-grid { grid-template-columns: 1fr; }
  .landing-benefit-card { min-height: auto; }
  .landing-cta { align-items: stretch; flex-direction: column; margin-top: 3rem; }
  .landing-cta .btn { width: 100%; }
  .section-heading, .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading .btn, .page-heading .cart-pill, .unit-selector { width: 100%; }
  .page-actions { align-items: stretch; flex-direction: column; width: 100%; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { width: 100%; }
  .page-heading .cart-pill { justify-content: space-between; }
  .unit-search > div { grid-template-columns: 1fr; }
  .unit-search .btn { width: 100%; }
  .product-card { grid-template-columns: 104px minmax(0, 1fr); }
  .product-content { padding: .85rem; }
  .product-variants { padding: .75rem; }
  .variant-choice-list .product-footer { grid-template-columns: auto minmax(0, 1fr) auto; gap: .45rem; }
  .variant-description { display: none; }
  .variant-total { display: none; }
  .variant-choice-list .quantity-stepper { grid-column: auto; justify-self: end; }
  .catalog-cart-cta { align-items: stretch; flex-direction: column; gap: 1rem; margin-top: 2.5rem; padding: 1.2rem; }
  .catalog-cart-cta .btn { justify-content: space-between; width: 100%; }
  .floating-cart-summary { right: 1rem; bottom: 1rem; left: 1rem; justify-content: space-between; min-width: 0; }
  .cart-row { grid-template-columns: 1fr auto; }
  .cart-row > strong { text-align: right; }
  .quantity-form { grid-column: 1 / -1; }
  .quantity-stepper { grid-column: 1 / -1; justify-self: start; }
  .cart-row form:last-child { text-align: right; }
  .form-grid, .choice-grid, .unit-checkbox-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .metric-grid, .production-metrics { grid-template-columns: 1fr 1fr; }
  .finance-metrics, .finance-filter-grid, .finance-report-grid { grid-template-columns: 1fr; }
  .metric-grid strong { font-size: 1.3rem; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar label, .filter-bar select, .filter-bar .btn { width: 100%; }
  .finance-action-row .btn { width: 100%; }
  .unit-management-list article, .internal-user-list article, .product-admin-card, .category-row { align-items: stretch; flex-direction: column; }
  .address-card { align-items: stretch; flex-direction: column; }
  .address-actions, .address-actions .btn, .address-actions form { width: 100%; }
  .cep-lookup-row { grid-template-columns: 1fr; }
  .product-admin-summary { grid-template-columns: 64px 1fr; }
  .product-admin-thumb { width: 64px; height: 64px; }
  .unit-management-list article > .btn, .internal-user-list article > .btn { width: 100%; }
  .admin-actions { flex-direction: row; flex-wrap: wrap; }
  .admin-actions > * { flex: 1; }
}

@media (max-width: 480px) {
  .app-content { padding: 1rem; }
  .sidebar-nav .nav-icon { display: none; }
  .metric-grid, .production-metrics { grid-template-columns: 1fr; }
  .finance-metrics, .report-order-row, .production-order-list a, .touch-action-grid, .production-item-row, .finance-table-head, .finance-table-row, .finance-table-head-wide, .finance-table-row-wide { grid-template-columns: 1fr; }
  .production-item-row b { text-align: left; }
  .production-item-row small { grid-column: auto; }
  .auth-card { padding: 1.4rem; }
}

/* ===== V2 · Painel do lojista ===== */
.sidebar-nav a.active { color: white; background: #1d2939; }
.sidebar-nav a.active .nav-icon { color: white; border-color: #475467; }
.section-block-sm { margin-top: 1.25rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .35rem 0; }
.status-pill { display: inline-flex; align-items: center; padding: .22rem .55rem; border-radius: 999px; font-size: .68rem; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.status-pill.on { color: var(--success); background: var(--success-soft); }
.status-pill.draft { color: #475467; background: var(--surface-muted); border: 1px dashed var(--border-strong); }
.status-pill.off { color: var(--danger); background: var(--danger-soft); }
.status-pill.muted { color: #475467; background: var(--surface-muted); }
.status-pill.featured { color: var(--primary-dark); background: var(--primary-soft); }
.status-pill.promo { color: var(--warning); background: var(--warning-soft); }
.list-count { margin: 0 0 .65rem; color: var(--text-soft); font-size: .78rem; }
.catalog-filter-bar { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .8fr) auto auto; gap: .55rem; align-items: center; margin-bottom: 1rem; padding: .85rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius); }
.product-admin-info { min-width: 0; }
.product-admin-info h3 { margin: 0 0 .2rem; }
.product-admin-info h3 a:hover { color: var(--primary); }
.product-admin-info small { display: block; font-size: .72rem; }
.product-admin-thumb span { font-size: 1.1rem; }
.price-line { display: flex; gap: .45rem; align-items: baseline; }
.price-line strong { font-size: .92rem; }
.price-line s { color: var(--text-soft); font-size: .76rem; }
.admin-actions form { margin: 0; }
.admin-actions .btn { width: 100%; }
.admin-actions .btn-link-danger { min-height: 34px; }
.share-card { display: grid; gap: .85rem; margin-top: 1rem; }
.share-card h2 { margin-bottom: .25rem; font-size: 1.15rem; }
.share-card p { margin: 0; font-size: .82rem; }
.setup-list { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.setup-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .85rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.setup-list strong, .setup-list small { display: block; }
.setup-list strong { font-size: .86rem; }
.setup-list small { font-size: .74rem; }
.setup-check { display: grid; place-items: center; width: 26px; height: 26px; color: white; border: 2px solid var(--border-strong); border-radius: 50%; font-size: .75rem; font-weight: 800; }
.setup-list li.done .setup-check { background: var(--success); border-color: var(--success); }
.setup-list li.done strong { color: var(--text-soft); text-decoration: line-through; }

.validation-summary ul { margin: 0; padding: .85rem 1rem .85rem 2rem; background: var(--danger-soft); border: 1px solid #fecdca; border-radius: 8px; font-size: .8rem; }
.validation-summary.validation-summary-valid { display: none; }
.form-section { display: grid; gap: .95rem; padding-top: 1.35rem; border-top: 1px solid var(--border); }
.form-section:first-of-type { padding-top: 0; border-top: 0; }
.form-section-heading h2 { margin: 0 0 .15rem; font-size: 1.05rem; }
.form-section-heading p { margin: 0; font-size: .8rem; }
.form-section-heading small, label small { color: var(--text-soft); font-weight: 500; }
.product-form, .store-settings-form { max-width: 860px; }
.slug-input .input-group-text { max-width: 55%; overflow: hidden; color: var(--text-soft); background: var(--surface-muted); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.input-group-text { border-color: var(--border-strong); font-size: .82rem; }
.toggle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.toggle-card:has(input:checked) { background: var(--primary-soft); border-color: #a5b4fc; }

.photo-upload-field { display: grid; gap: .65rem; }
.photo-dropzone { display: grid; gap: .25rem; margin: 0; padding: 1.35rem 1rem; text-align: center; background: var(--surface-muted); border: 1.5px dashed var(--border-strong); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.photo-dropzone:hover, .photo-dropzone.is-dragging, .photo-upload-field:focus-within .photo-dropzone { background: var(--primary-soft); border-color: #a5b4fc; }
.photo-dropzone strong { color: var(--primary-dark); font-size: .92rem; }
.photo-dropzone small { font-size: .74rem; font-weight: 500; }
.photo-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .5rem; }
.photo-preview-grid:empty { display: none; }
.photo-preview-item { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 8px; }
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-preview-item span { position: absolute; right: .3rem; bottom: .3rem; left: .3rem; padding: .1rem .3rem; color: white; background: rgba(16,24,40,.72); border-radius: 5px; font-size: .62rem; text-align: center; }
.photo-summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.photo-summary-strip { display: flex; gap: .4rem; }
.photo-summary-strip img { width: 56px; height: 70px; object-fit: cover; border: 1px solid var(--border); border-radius: 7px; }
.photo-summary-empty { color: var(--text-soft); font-size: .8rem; }
.photo-upload-card { margin-bottom: 1rem; }
.photo-manager-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; margin: 0 0 .75rem; padding: 0; list-style: none; }
.photo-manager-card { display: grid; gap: .65rem; padding: .65rem; }
.photo-manager-card.is-cover { border-color: #a5b4fc; box-shadow: 0 0 0 2px var(--primary-soft); }
.photo-manager-image { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-muted); border-radius: 8px; }
.photo-manager-image img { width: 100%; height: 100%; object-fit: cover; }
.photo-manager-image .status-pill { position: absolute; top: .45rem; left: .45rem; }
.photo-manager-actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.photo-manager-actions form { margin: 0; }
.photo-manager-actions .btn { min-height: 36px; padding: .4rem .6rem; font-size: .76rem; }
.photo-manager-actions form:has(.btn-outline-dark) { flex: 1 1 100%; }
.photo-manager-actions .btn-outline-dark { width: 100%; }

.variant-generator { padding: .85rem 1rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius); }
.variant-generator summary { color: var(--primary-dark); font-size: .84rem; font-weight: 650; cursor: pointer; }
.variant-generator[open] summary { margin-bottom: .85rem; }
.variant-generator-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem; margin-top: .75rem; }
[data-variant-editor]:not(.has-second-option) [data-second-option-only] { display: none !important; }
.variant-table { display: grid; gap: .45rem; }
.variant-table-head, .variant-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 118px 92px; gap: .5rem; align-items: center; }
[data-variant-editor]:not(.has-second-option) .variant-table-head, [data-variant-editor]:not(.has-second-option) .variant-row { grid-template-columns: minmax(0, 1fr) 118px 92px; }
.variant-table-head { padding: 0 .1rem; color: var(--text-soft); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.variant-table-head:has(+ [data-variant-list]:empty) { display: none; }
[data-variant-list] { display: grid; gap: .45rem; }
.variant-available { display: flex; gap: .4rem; align-items: center; margin: 0; padding: .55rem .6rem; background: var(--surface-muted); border: 1px solid var(--border); border-radius: 7px; font-size: .78rem; cursor: pointer; }
.variant-available input { margin: 0; }
.variant-empty { margin: 0; padding: .75rem; color: var(--text-soft); text-align: center; border: 1px dashed var(--border-strong); border-radius: 8px; font-size: .8rem; }
.variant-table > [data-add-variant] { justify-self: start; }
.btn-icon { min-height: 40px; padding: .45rem .55rem; font-size: .76rem; }

.category-management-list { margin: 0; padding: 0; list-style: none; }
.category-row.is-inactive { background: var(--surface-muted); }
.category-row-info h3 { margin: .35rem 0 .1rem; }
.category-row-info p { margin: 0 0 .15rem; font-size: .8rem; }
.category-row-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: flex-end; }
.category-row-actions form { margin: 0; }
.category-row-actions .btn { min-width: 40px; }

.store-image-field { display: grid; gap: .5rem; align-content: start; }
.store-image-preview { display: grid; place-items: center; overflow: hidden; background: var(--surface-muted); border: 1px solid var(--border); border-radius: var(--radius); }
.store-image-preview span { color: var(--text-soft); font-size: .76rem; }
.store-image-preview.logo { width: 96px; height: 96px; border-radius: 18px; }
.store-image-preview.banner { width: 100%; aspect-ratio: 8 / 3; }
.store-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.store-image-field .photo-preview-grid { grid-template-columns: 1fr; }
.store-image-field .photo-preview-item { justify-self: start; aspect-ratio: auto; max-width: 100%; }
.store-image-field .photo-preview-item img { width: auto; max-width: 100%; height: auto; max-height: 160px; object-fit: contain; }
.theme-picker { margin: 0; padding: 0; border: 0; }
.theme-picker legend { margin-bottom: .45rem; color: #344054; font-size: .78rem; font-weight: 600; }
.theme-options { display: flex; flex-wrap: wrap; gap: .5rem; }
.theme-option { position: relative; display: inline-flex; gap: .45rem; align-items: center; margin: 0; padding: .45rem .7rem .45rem .5rem; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; font-size: .78rem; font-weight: 600; cursor: pointer; }
.theme-option input { position: absolute; opacity: 0; pointer-events: none; }
.theme-option:has(input:checked) { border-color: var(--swatch); box-shadow: 0 0 0 2px var(--swatch); }
.theme-option:has(input:focus-visible) { outline: 3px solid rgba(79,70,229,.3); }
.theme-swatch { width: 18px; height: 18px; background: var(--swatch); border-radius: 50%; }
.theme-custom-row { display: grid; grid-template-columns: 48px minmax(0, 140px) minmax(0, 1fr); gap: .5rem; align-items: center; margin-top: .65rem; }
.theme-custom-row input[type="color"] { width: 48px; height: 42px; padding: 3px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 8px; cursor: pointer; }
.theme-custom-row .form-control { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: lowercase; }
.theme-preview { justify-self: start; }
.theme-preview span { display: inline-flex; align-items: center; min-height: 40px; padding: .5rem .95rem; color: var(--preview-on-primary); background: var(--preview-primary); border-radius: 8px; font-size: .84rem; font-weight: 600; }
.status-card { text-align: left; }
.status-card h1 { margin-bottom: .5rem; }

@media (max-width: 991px) {
  .catalog-filter-bar { grid-template-columns: 1fr 1fr; }
  .catalog-filter-search { grid-column: 1 / -1; }
  .toggle-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .catalog-filter-bar { grid-template-columns: 1fr; }
  .catalog-filter-bar .btn { width: 100%; }
  .variant-table-head { display: none; }
  .variant-row, [data-variant-editor]:not(.has-second-option) .variant-row { grid-template-columns: 1fr 1fr; padding: .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
  [data-variant-editor]:not(.has-second-option) .variant-row > [data-variant-value="1"] { grid-column: 1 / -1; }
  .variant-table > [data-add-variant] { width: 100%; }
  .category-row-actions { justify-content: stretch; }
  .category-row-actions form:nth-last-of-type(1), .category-row-actions > a { flex: 1; }
  .category-row-actions form:nth-last-of-type(1) .btn, .category-row-actions > a { width: 100%; }
  .setup-list li { grid-template-columns: 28px minmax(0, 1fr); }
  .setup-list li .text-link { grid-column: 2; }
  .photo-manager-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slug-input { flex-wrap: nowrap; }
  .slug-input .input-group-text { max-width: 45%; }
}

/* ===== V2 · Vitrine pública (mobile-first) ===== */
.storefront-body { --on-primary: #ffffff; background: var(--bg); }
.storefront-body .btn-brand { color: var(--on-primary) !important; }
.storefront-body .btn-brand:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #ffffff !important; }
.storefront-body .text-link { color: var(--primary-dark); }
.skip-link { position: absolute; top: -40px; left: 1rem; z-index: 300; padding: .5rem .8rem; color: white; background: var(--primary-dark); border-radius: 0 0 8px 8px; }
.skip-link:focus { top: 0; }
.preview-bar { color: #92400e; background: #fffbeb; border-bottom: 1px solid #fde68a; font-size: .8rem; }
.preview-bar .container { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; padding-top: .55rem; padding-bottom: .55rem; }
.preview-bar a { color: #92400e; font-weight: 700; text-decoration: underline; }
.store-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
.store-header-inner { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 60px; }
.store-brand { display: inline-flex; gap: .6rem; align-items: center; min-width: 0; }
.store-brand img, .store-brand-initial { flex: 0 0 auto; width: 36px; height: 36px; object-fit: cover; border-radius: 9px; }
.store-brand-initial { display: grid; place-items: center; color: var(--on-primary); background: var(--primary); font-size: .85rem; font-weight: 700; }
.store-brand strong { overflow: hidden; font-size: .98rem; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.store-header-whatsapp { display: inline-flex; flex: 0 0 auto; gap: .4rem; align-items: center; }
.store-header-whatsapp span { display: none; }
.whatsapp-icon { flex: 0 0 auto; }
.storefront-main { min-height: 60vh; padding-bottom: 5.5rem; }
.store-hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.store-banner { overflow: hidden; aspect-ratio: 8 / 3; max-height: 420px; background: var(--primary-soft); }
.store-banner img { width: 100%; height: 100%; object-fit: cover; }
.store-hero-content { display: grid; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.35rem; }
.store-hero:not(.no-banner) .store-hero-content { padding-top: 0; }
.store-identity { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: end; }
.store-logo { width: 76px; height: 76px; object-fit: cover; background: var(--surface); border: 3px solid var(--surface); border-radius: 20px; box-shadow: 0 6px 18px rgba(16,24,40,.12); }
.store-hero:not(.no-banner) .store-logo { margin-top: -38px; }
.store-logo-initial { display: grid; place-items: center; color: var(--on-primary); background: var(--primary); font-size: 1.6rem; font-weight: 700; }
.store-identity h1 { margin: 0 0 .2rem; font-size: clamp(1.45rem, 5vw, 2.25rem); }
.store-identity p { margin: 0; font-size: .86rem; line-height: 1.5; }
.store-hero-cta { display: inline-flex; gap: .5rem; justify-content: center; align-items: center; width: 100%; }
.storefront-content { padding-top: 1.1rem; }
.store-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; }
.store-search .form-control { min-height: 46px; font-size: 1rem; }
.store-search .btn { min-height: 46px; }
.category-chips { display: flex; gap: .45rem; margin: .9rem calc(var(--bs-gutter-x, 1.5rem) * -.5) 0; padding: .1rem calc(var(--bs-gutter-x, 1.5rem) * .5) .4rem; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.category-chips::-webkit-scrollbar { display: none; }
.category-chip { display: inline-flex; flex: 0 0 auto; gap: .4rem; align-items: center; min-height: 40px; padding: .45rem .9rem; color: #344054; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; font-size: .84rem; font-weight: 600; scroll-snap-align: start; }
.category-chip span { color: var(--text-soft); font-size: .72rem; font-weight: 600; }
.category-chip:hover { border-color: var(--primary-dark); }
.category-chip.active { color: var(--on-primary); background: var(--primary); border-color: var(--primary); }
.category-chip.active span { color: inherit; opacity: .8; }
.storefront-section { margin-top: 1.6rem; }
.storefront-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: .8rem; }
.storefront-section-heading h2 { margin: 0; font-size: 1.15rem; }
.storefront-section-heading p { margin: .2rem 0 0; font-size: .82rem; }
.storefront-count { flex: 0 0 auto; color: var(--text-soft); font-size: .76rem; }
.storefront-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.featured-rail { display: grid; grid-auto-columns: minmax(150px, 46%); grid-auto-flow: column; gap: .7rem; margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5); padding: 0 calc(var(--bs-gutter-x, 1.5rem) * .5) .35rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.featured-rail > * { scroll-snap-align: start; }
.storefront-card { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.storefront-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, white); box-shadow: 0 8px 22px rgba(16,24,40,.08); }
.storefront-card-link { display: flex; flex-direction: column; height: 100%; }
.storefront-card-link:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.storefront-card-image { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface-muted); }
.storefront-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.storefront-card:hover .storefront-card-image img { transform: scale(1.03); }
.storefront-card.is-unavailable .storefront-card-image img { filter: grayscale(.55); opacity: .7; }
.storefront-card-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: color-mix(in srgb, var(--primary) 55%, white); background: var(--primary-soft); font-size: 2rem; font-weight: 700; }
.storefront-card-badges { position: absolute; top: .5rem; left: .5rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.store-badge { display: inline-flex; align-items: center; padding: .22rem .5rem; color: var(--on-primary); background: var(--primary); border-radius: 999px; font-size: .64rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.store-badge.promo { color: white; background: var(--danger); }
.store-badge.featured { color: var(--primary-dark); background: rgba(255,255,255,.94); box-shadow: var(--shadow-sm); }
.store-badge.unavailable { color: white; background: #475467; }
.product-info .store-badge.featured { background: var(--primary-soft); box-shadow: none; }
.storefront-card-body { display: grid; gap: .3rem; padding: .7rem .75rem .85rem; }
.storefront-card-body h3 { display: -webkit-box; margin: 0; overflow: hidden; font-size: .86rem; font-weight: 600; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.storefront-price { display: flex; flex-wrap: wrap; gap: .1rem .45rem; align-items: baseline; }
.storefront-price strong { color: var(--text); font-size: .95rem; letter-spacing: -.01em; }
.storefront-price s { color: var(--text-soft); font-size: .76rem; }
.storefront-price s + strong { color: var(--danger); }
.storefront-price.large strong { font-size: 1.6rem; letter-spacing: -.03em; }
.storefront-price.large s { font-size: .95rem; }
.storefront-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .65rem; align-items: center; margin-top: 1.5rem; color: var(--text-soft); font-size: .82rem; }

.store-breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; color: var(--text-soft); font-size: .8rem; }
.store-breadcrumb a:hover { color: var(--primary-dark); text-decoration: underline; }
.product-detail { display: grid; gap: 1.25rem; }
.product-gallery { position: relative; min-width: 0; margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -.5); }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; background: var(--surface-muted); }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
.gallery-slide { flex: 0 0 100%; margin: 0; aspect-ratio: 4 / 5; scroll-snap-align: center; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; background: var(--surface-muted); }
.gallery-empty { display: grid; place-items: center; aspect-ratio: 4 / 5; color: color-mix(in srgb, var(--primary) 55%, white); background: var(--primary-soft); font-size: 3rem; font-weight: 700; }
.gallery-counter { position: absolute; top: .7rem; right: 1.2rem; padding: .2rem .55rem; color: white; background: rgba(16,24,40,.6); border-radius: 999px; font-size: .72rem; font-weight: 600; }
.gallery-nav { position: absolute; top: calc(50% - 56px); display: none; place-items: center; width: 40px; height: 40px; color: var(--text); background: rgba(255,255,255,.92); border: 1px solid var(--border); border-radius: 50%; box-shadow: var(--shadow-sm); font-size: 1.4rem; line-height: 1; }
.gallery-nav.prev { left: .75rem; }
.gallery-nav.next { right: .75rem; }
.gallery-nav:disabled { opacity: .35; }
.gallery-thumbs { display: flex; gap: .45rem; padding: .6rem calc(var(--bs-gutter-x, 1.5rem) * .5) 0; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs button { flex: 0 0 56px; height: 70px; padding: 0; overflow: hidden; background: var(--surface-muted); border: 2px solid transparent; border-radius: 8px; opacity: .65; }
.gallery-thumbs button.active { border-color: var(--primary-dark); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: grid; gap: .65rem; align-content: start; min-width: 0; }
.product-info h1 { margin: 0; font-size: clamp(1.5rem, 5vw, 2.1rem); }
.product-info .badge-row { margin: 0; }
.product-info .badge-row:empty { display: none; }
.product-code { font-size: .74rem; }
.option-group { margin: .35rem 0 0; padding: 0; border: 0; }
.option-group legend { display: flex; gap: .4rem; margin-bottom: .45rem; color: #344054; font-size: .8rem; font-weight: 700; }
.option-selected { color: var(--text-soft); font-weight: 500; }
.option-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.option-chip { min-width: 48px; min-height: 44px; padding: .45rem .85rem; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; font-size: .86rem; font-weight: 600; transition: border-color .15s, background .15s; }
.option-chip:hover { border-color: var(--primary-dark); }
.option-chip[aria-pressed="true"] { color: var(--primary-dark); background: var(--primary-soft); border-color: var(--primary-dark); box-shadow: inset 0 0 0 1px var(--primary-dark); }
.option-chip.is-unavailable { color: var(--text-soft); background: repeating-linear-gradient(-45deg, var(--surface), var(--surface) 6px, var(--surface-muted) 6px, var(--surface-muted) 12px); text-decoration: line-through; }
.option-chip:focus-visible, .category-chip:focus-visible, .gallery-thumbs button:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, white); outline-offset: 2px; }
.option-status { margin: .15rem 0 0; color: var(--text-soft); font-size: .82rem; font-weight: 600; }
.option-status.available { color: var(--success); }
.option-status.unavailable { color: var(--danger); }
.product-actions { display: grid; gap: .5rem; margin-top: .35rem; }
.product-actions .btn { display: inline-flex; gap: .5rem; justify-content: center; align-items: center; }
.product-description { margin-top: .9rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.product-description h2 { margin-bottom: .45rem; font-size: 1rem; }
.product-description p { margin: 0; color: #344054; font-size: .9rem; white-space: pre-line; }
.back-link { margin-top: 1.75rem; }
.product-sticky-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 90; display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .65rem 1rem calc(.65rem + env(safe-area-inset-bottom)); background: rgba(255,255,255,.98); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(16,24,40,.08); }
.product-sticky-cta div { min-width: 0; }
.product-sticky-cta small, .product-sticky-cta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-sticky-cta small { font-size: .7rem; }
.product-sticky-cta strong { font-size: 1rem; }
.product-sticky-cta .btn { display: inline-flex; flex: 0 0 auto; gap: .4rem; align-items: center; }
.floating-whatsapp { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; color: white; background: #128c4a; border-radius: 50%; box-shadow: 0 10px 24px rgba(16,24,40,.22); }
.floating-whatsapp:hover { color: white; background: #0f7a40; }
.floating-whatsapp .whatsapp-icon { width: 28px; height: 28px; }
.store-footer { padding: 1.75rem 0 1.25rem; color: var(--text-soft); background: var(--surface); border-top: 1px solid var(--border); font-size: .82rem; }
.store-footer-grid { display: grid; gap: 1rem; }
.store-footer-name { display: block; margin-bottom: .35rem; color: var(--text); font-size: .95rem; }
.store-footer p { margin: 0 0 .2rem; font-size: .8rem; }
.store-contact-list { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.store-contact-list a { color: #344054; font-weight: 600; }
.store-contact-list a:hover { color: var(--primary-dark); }
.store-footer-credit { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .74rem; }
.store-footer-credit a:hover { color: var(--primary-dark); }

@media (min-width: 576px) {
  .storefront-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-rail { grid-auto-columns: minmax(170px, 31%); }
  .store-header-whatsapp span { display: inline; }
  .store-hero-cta { width: auto; justify-self: start; }
  .product-actions { grid-template-columns: 1fr auto; }
}

@media (min-width: 768px) {
  .storefront-main { padding-bottom: 3rem; }
  .store-hero-content { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .store-logo { width: 96px; height: 96px; border-radius: 24px; }
  .store-hero:not(.no-banner) .store-logo { margin-top: -48px; }
  .store-hero-cta { justify-self: end; }
  .category-chips { flex-wrap: wrap; margin: 1rem 0 0; padding: 0; overflow: visible; }
  .storefront-section-heading h2 { font-size: 1.35rem; }
  .featured-rail { grid-auto-columns: auto; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
  .product-detail { grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 2.25rem; align-items: start; }
  .product-gallery { position: sticky; top: 76px; margin: 0; }
  .gallery-track { border-radius: var(--radius); }
  .gallery-counter { right: .75rem; }
  .gallery-nav { display: grid; }
  .gallery-thumbs { padding: .65rem 0 0; }
  .product-sticky-cta { display: none; }
  .store-footer-grid { grid-template-columns: 1fr auto; }
}

@media (min-width: 992px) {
  .storefront-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
  .storefront-content { padding-top: 1.5rem; }
  .store-search { max-width: 560px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track { scroll-behavior: auto; }
  .storefront-card, .storefront-card-image img { transition: none; }
}
