:root {
    --paper: #fbf8fc;
    --surface: #fffdfd;
    --ink: #2d2031;
    --brand: #93278f;
    --berry: #512051;
    --muted: #625666;
    --line: #e8deeb;
    --brand-soft: #f0e3f3;
    --accent: #fbb03b;
    --brand-wash: #f6edf7;
    --field-border: #cdb9d4;
    --shadow: 0 14px 38px #3f1b471a;
    --focus-ring: #93278f;
    color-scheme: light;
    --display: 'Manrope', 'DM Sans', system-ui, sans-serif;
    --text: 'DM Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--text); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.12; letter-spacing: -.052em; }
h1 { font-size: clamp(2.65rem, 5.4vw, 4.7rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 3.05rem); }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 4px; }
[id] { scroll-margin-top: 24px; }
.wrap { width: min(1232px, calc(100% - 96px)); margin-inline: auto; }
.icon { display: inline-block; width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100; background: white; padding: 12px 20px; border-radius: 8px; margin: 10px; }
.announcement { background: var(--berry); color: #fff9f4; padding: 8px 12px; text-align: center; font-size: .8rem; font-weight: 600; }
.announcement a { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.announcement a:hover { text-decoration: underline; }
.announcement .icon { width: 16px; height: 16px; color: #ffcb7a; }
.route-dot { margin: 0 3px; }
.site-header { position: relative; z-index: 31; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; position: relative; }
.brand { display: inline-block; width: min(100%, 180px); }
.main-nav, .header-actions { display: flex; align-items: center; gap: 32px; }
.main-nav a { display: inline-flex; align-items: center; gap: 7px; color: #54445a; font-size: .9rem; font-weight: 700; padding-block: 8px; }
.main-nav .nav-icon { width: 17px; height: 17px; color: var(--brand); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--brand); }
.main-nav a[aria-current="page"] { box-shadow: 0 2px var(--brand); }
.header-actions { justify-content: flex-end; gap: 10px; }
.account-link, .menu-toggle, .header-cart { display: inline-flex; gap: 9px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; min-height: 44px; font-size: .88rem; font-weight: 800; color: var(--berry); }
.account-link, .menu-toggle { width: 44px; background: transparent; }
.header-cart { padding: 8px 12px; background: #f4e9f5; }
.header-cart b { min-width: 22px; display: inline-grid; place-items: center; border-radius: 50%; background: #e8d4ed; padding-inline: 5px; font-size: .72rem; }
.header-actions a:hover, .menu-toggle:hover { background: #ecd9ee; }
.menu-toggle, .main-nav .nav-account, .menu-scrim { display: none; }
.hero { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: clamp(25px, 4.5vw, 66px); padding-top: 51px; padding-bottom: 39px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: var(--brand); text-transform: uppercase; font-size: .74rem; font-weight: 800; letter-spacing: .13em; }
.eyebrow > span:empty { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 8px; }
.hero h1 { font-size: clamp(2.65rem, 5.08vw, 4.55rem); line-height: 1.035; letter-spacing: -.073em; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-text { max-width: 425px; margin-top: 20px; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.65; }
.hero-actions, .inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 18px; min-height: 48px; border-radius: 10px; border: 1px solid transparent; font-size: .91rem; font-weight: 800; transition: background .18s, color .18s; text-align: center; }
.button .icon, .text-link .icon { width: 18px; height: 18px; }
.button-dark { background: var(--berry); color: #fff9fc; border-color: var(--berry); }
.button-dark:hover { background: var(--brand); }
.button-outline, .button-soft { background: transparent; color: var(--berry); border-color: #d9c4de; }
.button-outline:hover, .button-soft:hover { background: #f4e9f5; }
.full-width { width: 100%; }
.hero-photo { position: relative; border-radius: 22px; overflow: hidden; min-height: 385px; height: min(31.3vw, 430px); background: #9a885c; }
.hero-photo::after { content: ''; position: absolute; inset: 56% 0 0; background: linear-gradient(transparent, #18261275); pointer-events: none; }
.hero-photo img { height: 100%; object-fit: cover; object-position: 50% 54%; }
.hero-photo figcaption { position: absolute; z-index: 1; bottom: 18px; left: 18px; display: flex; align-items: center; gap: 8px; color: #fffdfa; background: #35163aee; border-radius: 8px; padding: 8px 10px; font-size: .77rem; font-weight: 700; }
.hero-photo figcaption .icon { width: 16px; height: 16px; color: #f4b16f; }
.routes { display: grid; grid-template-columns: .92fr 1.17fr 1fr; align-items: stretch; gap: 12px; padding: 12px; background: #f5ecf6; border: 1px solid #ebdfef; border-radius: 17px; }
.route-intro { display: flex; align-items: center; gap: 12px; padding: 10px 11px; }
.route-intro-icon, .route-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 43px; border-radius: 11px; background: var(--berry); color: #fff9fc; }
.route-intro h2 { font-size: 1.12rem; letter-spacing: -.025em; }
.route-intro p, .route-card div > span { color: var(--muted); font-size: .83rem; }
.route-card { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--surface); border-radius: 11px; }
.route-card strong, .route-card div > span { display: block; }
.route-card strong { font-size: 1rem; line-height: 1.3; margin-bottom: 2px; }
.route-icon { color: #553821; background: #ffefd5; }
.route-norte-nayarit .route-icon { color: var(--berry); background: #f0e3f3; }
.featured { padding-top: 52px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--berry); font-weight: 800; font-size: .87rem; padding: 2px 0; background: transparent; border: 0; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.product-grid { display: grid; gap: 16px; }
.featured-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.product-card { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.product-image { position: relative; height: clamp(160px, 17vw, 232px); background: #f1e8d8; overflow: hidden; }
.product-image img { height: 100%; object-fit: cover; }
.product-pina-miel .product-image img { object-position: 50% 87%; }
.product-mandarina .product-image img { object-position: 50% 63%; }
.product-image > span { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 6px; border: 1px solid #ffffff80; background: #fffcf1; color: #512051; font-size: .7rem; font-weight: 800; }
.product-content { display: flex; flex: 1; flex-direction: column; padding: 16px; }
.product-unit { font-size: .75rem; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.product-content h3 { font-size: 1.3rem; }
.product-description { font-size: .87rem; color: var(--muted); margin: 8px 0 14px; }
.product-buy { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 8px; row-gap: 7px; padding-top: 11px; margin-top: auto; border-top: 1px solid var(--line); }
.product-price { white-space: nowrap; }
.product-price strong { color: var(--berry); font-size: 1.08rem; }
.product-price small { color: var(--muted); font-size: .71rem; }
.add-form { display: flex; gap: 6px; align-items: center; }
.product-add { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; border: 1px solid #e6d6ea; border-radius: 8px; color: var(--berry); background: #f3e7f5; font-size: .71rem; font-weight: 700; }
.product-add:hover:not(:disabled) { background: var(--berry); color: white; }
.product-add:disabled { background: #f5f2e9; color: var(--muted); }
.quantity-input { width: 49px; min-height: 36px; padding: 3px 5px; background: #fff; border: 1px solid var(--line); border-radius: 7px; font-size: .82rem; }
.about { display: grid; grid-template-columns: 1fr 1fr; margin-block: 58px 64px; background: #f1e6f3; border-radius: 20px; overflow: hidden; }
.about > img { height: 100%; min-height: 290px; object-fit: cover; }
.about-copy { align-self: center; padding: clamp(24px, 5vw, 64px); }
.about h2 { font-size: clamp(1.8rem, 3.1vw, 2.8rem); }
.about p:not(.eyebrow) { margin-top: 12px; color: var(--muted); }
.about .text-link { margin-top: 18px; }
.site-footer { background: #f5edf7; border-top: 1px solid #eadfed; }
.footer-inner { min-height: 105px; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--muted); font-size: .84rem; }
.footer-brand { width: 158px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 700; }
.footer-inner a:hover { color: var(--berry); text-decoration: underline; }
.catalog-intro { background: #f4e9f5; border-bottom: 1px solid #eaddf0; }
.catalog-intro-inner { display: flex; justify-content: space-between; align-items: end; gap: 20px; padding-block: 35px 37px; }
.catalog-intro h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
.catalog-intro p:not(.eyebrow) { color: var(--muted); margin-top: 8px; }
.catalog-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(315px, .46fr); gap: clamp(17px, 2.35vw, 30px); align-items: start; padding-block: 28px 54px; }
.catalog-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.catalog-toolbar > span, .currency-note { color: var(--muted); font-size: .78rem; }
.catalog-toolbar > span { white-space: nowrap; margin-left: auto; }
.catalog-toolbar input, .catalog-toolbar select, .stack-form input, .stack-form select, .stack-form textarea, .select-combobox {
    width: 100%; min-width: 0; padding: 9px 10px; color: var(--ink); background-color: #fff; border: 1px solid var(--field-border); border-radius: 9px; font-size: .91rem; min-height: 44px;
}
.catalog-search { position: relative; flex: 1; min-width: 0; }
.catalog-search .icon { position: absolute; top: 11px; left: 10px; width: 18px; height: 18px; color: var(--brand); pointer-events: none; }
.catalog-toolbar input { padding-left: 34px; }
.catalog-category { width: min(220px, 42%); }
.catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.catalog-grid .product-image { height: clamp(150px, 15vw, 190px); }
.currency-note { margin-top: 16px; }
.cart-panel, .receipt-card, .receipt-next, .auth-panel, .account-orders {
    min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 19px;
}
.cart-panel {
    --cart-gutter: 19px;
    padding: 0 var(--cart-gutter) var(--cart-gutter);
    border-color: #e1cfe7;
    box-shadow: var(--shadow);
    scrollbar-width: thin;
    scrollbar-color: #cdb0d4 transparent;
}
.cart-heading {
    position: sticky; top: 0; z-index: 2;
    margin: 0 calc(-1 * var(--cart-gutter)) 13px;
    min-height: 72px;
    padding: 12px var(--cart-gutter);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.cart-heading, .receipt-heading { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.receipt-heading { margin-bottom: 11px; }
.cart-title { display: flex; gap: 9px; align-items: center; }
.cart-title > span { display: grid; place-items: center; width: 44px; height: 44px; background: var(--brand-soft); color: var(--berry); border-radius: 12px; }
.cart-title p { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.cart-title h2, .receipt-heading h2, .receipt-next h2 { font-size: 1.42rem; }
.cart-close, .cart-floating, .cart-backdrop { display: none; }
.empty-state { margin: 10px 0; padding: 13px; background: #f5eef6; color: var(--muted); border-radius: 8px; font-size: .9rem; }
.cart-routes { padding: 11px; border-radius: 10px; background: #f6edf7; margin-top: 12px; }
.cart-routes h3, .checkout-form h3 { font-size: 1.03rem; letter-spacing: -.02em; margin: 0 0 7px; }
.cart-routes .route-card { padding: 7px 8px; margin-top: 5px; }
.cart-routes .route-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 7px; }
.cart-routes .route-icon .icon { width: 17px; height: 17px; }
.cart-routes .route-card strong { font-size: .88rem; }
.cart-routes .route-card div > span { font-size: .77rem; }
.cart-empty { padding: 16px 0; }
.cart-empty p { color: var(--muted); font-size: .88rem; margin: 3px 0 6px; }
.cart-edit { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 11px; margin-top: 11px; }
.cart-edit .button { min-height: 40px; padding: 7px 10px; font-size: .8rem; }
.cart-quantity { display: flex; align-items: center; margin-top: 7px; }
.cart-row small { display: block; color: var(--muted); font-size: .77rem; }
.quantity-control { display: inline-flex; align-items: center; border: 1px solid var(--field-border); border-radius: 9px; }
.quantity-control input { width: 48px; min-height: 35px; padding: 3px 4px; text-align: center; background: white; border: 0; border-radius: 8px; }
.quantity-control:focus-within { border-color: var(--brand); }
.quantity-step { display: grid; place-items: center; border: 0; background: var(--brand-wash); border-radius: 8px; color: var(--berry); width: 36px; height: 35px; padding: 0; }
.quantity-step:hover:not(:disabled) { background: var(--brand-soft); }
.quantity-step:disabled { color: #89788d; background: transparent; }
.quantity-step .icon { width: 16px; height: 16px; }
.catalog-page .cart-total { border: 1px solid var(--line); background: var(--brand-wash); border-radius: 10px; padding: 11px 12px; }
.cart-row { display: grid; grid-template-columns: 56px minmax(0,1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 8px 0; font-size: .88rem; }
.cart-row > img { width: 56px; height: 56px; border-radius: 9px; object-fit: cover; }
.cart-row > b { color: var(--berry); white-space: nowrap; }
.cart-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding: 14px 0 1px; border-top: 1px solid var(--line); font-weight: 700; }
.cart-total strong { color: var(--berry); font-size: 1.23rem; }
.cart-total small { font-size: .64rem; }
.stack-form { display: grid; gap: 10px; }
.stack-form label { display: block; font-weight: 800; font-size: .87rem; }
.stack-form label input, .stack-form label select, .stack-form label textarea { display: block; margin-top: 3px; font-weight: 500; }
.stack-form .select-combobox { margin-top: 3px; font-weight: 600; }
.stack-form small { color: var(--muted); font-weight: 500; }
.stack-form textarea { resize: vertical; }
.stack-form .phone-check-status { color: #8a3a31; display: block; }
.checkout-form { margin-top: 15px; }
.checkout-form h3 { margin-bottom: 0; }
.fine-print { color: var(--muted); font-size: .77rem; }
.fine-print a, .privacy-page p a, .auth-panel p a { text-decoration: underline; color: var(--berry); font-weight: 700; }
.clear-cart { margin-top: 10px; }
.clear-cart .text-link { color: var(--muted); font-size: .8rem; }
.flash { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: .88rem; overflow-wrap: anywhere; }
.flash-success { background: #e8f3e6; color: #28572e; }
.flash-error { background: #fae9e3; color: #843526; }
.receipt-wrap, .privacy-page, .account-main { padding-block: 47px 63px; min-height: 65vh; }
.receipt-wrap h1, .privacy-page h1, .account-main h1 { font-size: clamp(2.35rem, 5vw, 3.85rem); }
.receipt-intro { max-width: 650px; color: var(--muted); margin-top: 11px; }
.receipt-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; margin-top: 22px; }
.receipt-heading > span { color: var(--berry); background: #f0e3f3; border-radius: 7px; padding: 5px 8px; font-size: .76rem; font-weight: 700; }
.receipt-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 12px 0 15px; border-block: 1px solid var(--line); }
.receipt-facts dt, .receipt-items small { color: var(--muted); font-size: .78rem; }
.receipt-facts dd { font-weight: 700; overflow-wrap: anywhere; }
.receipt-card > p { font-size: .88rem; padding-top: 10px; }
.receipt-items { list-style: none; padding: 0; margin: 8px 0 0; }
.receipt-items li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; gap: 12px; }
.receipt-items small { display: block; }
.receipt-next { background: #f4e9f5; }
.receipt-next > span { margin-bottom: 12px; }
.receipt-next p { color: var(--muted); margin: 8px 0 15px; }
.receipt-next .text-link { margin-top: 7px; }
.privacy-page { max-width: 760px; }
.privacy-page h2 { font-size: 1.42rem; margin-top: 24px; }
.privacy-page p { color: var(--muted); margin-top: 10px; }
.auth-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; min-height: 410px; }
.auth-photo { position: relative; min-height: 240px; overflow: hidden; border-radius: 15px; }
.auth-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.auth-panel { padding: clamp(20px, 4vw, 44px); }
.auth-panel h1 { font-size: clamp(2rem, 4vw, 3rem); }
.auth-panel > .stack-form { margin-top: 20px; }
.auth-panel > p, .auth-links { margin-top: 13px; }
.auth-links { display: flex; gap: 14px; flex-wrap: wrap; }
.account-orders { margin-top: 18px; }
.account-orders h2 { font-size: 1.45rem; }
.account-orders > p, .account-welcome > p { color: var(--muted); margin-top: 9px; }
.order-history { display: grid; gap: 8px; margin-top: 12px; }
.order-history article { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; border-top: 1px solid var(--line); padding: 9px 0; overflow-wrap: anywhere; }
.order-history article span { display: block; color: var(--muted); font-size: .81rem; }
.ui-arrow { display: inline-block; width: 1em; height: 1em; vertical-align: -.13em; background: currentColor; -webkit-mask: url('../img/icons/arrow-right.svg') center / contain no-repeat; mask: url('../img/icons/arrow-right.svg') center / contain no-repeat; }
.ui-arrow-ne { transform: rotate(-45deg); }
.ui-arrow-sw { transform: rotate(135deg); }
.ui-arrow-w { transform: rotate(180deg); }
.admin-login { padding-block: 40px; }
@media (max-width: 1150px) {
    .wrap { width: calc(100% - 60px); }
    .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .hero { padding-block: 37px 27px; gap: 24px; }
    .hero-photo { min-height: 320px; }
    .main-nav { gap: 17px; }
    .header-inner { gap: 16px; }
    .route-intro { padding-inline: 6px; }
}
@media (max-width: 800px) {
    .wrap { width: calc(100% - 36px); }
    .hero { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: clamp(2.25rem, 6.2vw, 3.2rem); }
    .hero-text { margin-top: 14px; }
    .hero-actions { margin-top: 16px; }
    .route-intro { grid-column: 1 / -1; padding-block: 4px; }
    .routes { grid-template-columns: 1fr 1fr; }
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-grid .product-image, .product-image { height: clamp(140px, 32vw, 228px); }
    .cart-enhanced .catalog-layout { padding-bottom: 106px; }
    .cart-enhanced .cart-panel {
        --cart-gutter: clamp(15px, 5vw, 25px);
        position: fixed; inset: 0 0 auto; z-index: 61; width: min(620px, 100%); height: 100vh; height: 100dvh;
        margin: 0 auto; padding-bottom: max(26px, env(safe-area-inset-bottom));
        overflow: auto; overscroll-behavior: contain; scroll-padding-top: 86px; border: 0; border-radius: 0;
        visibility: hidden; pointer-events: none;
    }
    .cart-enhanced.cart-open .cart-panel { visibility: visible; pointer-events: auto; }
    .cart-heading { padding-top: max(12px, env(safe-area-inset-top)); }
    .cart-enhanced .cart-close { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; width: 44px; height: 44px; padding: 0; background: var(--brand-wash); color: var(--berry); }
    .cart-enhanced .cart-close:hover { background: var(--brand-soft); }
    .cart-enhanced .cart-floating {
        position: fixed; z-index: 39; inset-inline: 0; bottom: max(14px, env(safe-area-inset-bottom));
        display: flex; align-items: center; gap: 12px; width: min(440px, calc(100% - 32px)); margin-inline: auto;
        color: #fff9fc; background: var(--berry); border: 1px solid #732c75; border-radius: 15px;
        padding: 9px 14px 9px 9px; box-shadow: 0 13px 29px #3f174f45; text-align: left;
    }
    .cart-floating-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: var(--accent); color: var(--berry); }
    .cart-floating-copy { display: grid; flex: 1; line-height: 1.3; }
    .cart-floating-copy small { color: #f3def6; font-size: .76rem; }
    .cart-floating-total { white-space: nowrap; font-size: .93rem; }
    .cart-floating-total small { font-size: .65rem; }
    .cart-open .cart-floating, .menu-open .cart-floating { visibility: hidden; }
    .cart-open .cart-backdrop { display: block; position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; border: 0; background: #28112f90; }
    body.cart-open { overflow: hidden; }
    .cart-panel .checkout-form input, .cart-panel .checkout-form textarea,
    .cart-panel .checkout-form select, .cart-panel .checkout-form .select-combobox,
    .cart-panel .quantity-control input { font-size: 16px; }
    .quantity-step { width: 40px; height: 42px; }
    .quantity-control input { min-height: 42px; }
}
@media (max-width: 680px) {
    .hero { display: block; padding-top: 27px; }
    .hero h1 { font-size: clamp(2.45rem, 9vw, 3.75rem); }
    .hero-photo { height: clamp(205px, 58vw, 340px); min-height: 0; margin-top: 20px; border-radius: 16px; }
    .hero-photo figcaption { bottom: 11px; left: 11px; }
    .featured { padding-top: 34px; }
    .section-heading { flex-wrap: wrap; align-items: start; column-gap: 14px; row-gap: 5px; margin-bottom: 13px; }
    .product-content { padding: 11px; }
    .product-grid { gap: 10px; }
    .product-content h3 { font-size: 1.13rem; }
    .product-description { font-size: .81rem; }
    .about { grid-template-columns: 1fr; margin-block: 35px; }
    .about > img { min-height: 0; max-height: 260px; }
    .footer-inner { flex-wrap: wrap; padding-block: 12px 21px; gap: 9px 15px; }
    .footer-brand { width: 140px; }
    .footer-inner nav { width: 100%; }
    .catalog-intro-inner { align-items: start; flex-direction: column; gap: 9px; padding-block: 26px; }
    .receipt-layout, .auth-layout { grid-template-columns: 1fr; }
    .auth-photo { min-height: 180px; }
    .order-history article { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
    .announcement { font-size: .67rem; }
    .announcement .icon:last-child { display: none; }
    .header-cart > span { display: none; }
    .routes { grid-template-columns: 1fr; gap: 6px; }
    .catalog-toolbar { flex-wrap: wrap; }
    .catalog-toolbar > span { margin-left: 0; }
    .catalog-category { width: 47%; }
    .header-cart { padding-inline: 8px; }
    .brand { width: min(140px, 42vw); }
    .menu-caption { display: none; }
    .js-menu .menu-toggle { width: 44px; padding-inline: 0; }
    .product-buy { column-gap: 3px; }
    .receipt-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.admin-login-page .site-header, .admin-login-page .announcement, .admin-login-page .site-footer { font-family: var(--text); }

/* Shared form controls */
button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea, button { appearance: none; -webkit-appearance: none; }
input[type="number"] { appearance: textfield; -webkit-appearance: textfield; }
input::-webkit-inner-spin-button, input::-webkit-outer-spin-button, input::-webkit-search-cancel-button, input::-webkit-search-decoration { appearance: none; -webkit-appearance: none; margin: 0; }
input::placeholder, textarea::placeholder { opacity: 1; color: #75677b; }
input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 17px; height: 17px; margin: 0;
    border: 1px solid var(--field-border); border-radius: 4px; background-color: #fff;
}
input[type="checkbox"]:checked {
    border-color: var(--brand); background-color: var(--brand);
    background-image:
        linear-gradient(45deg, transparent 39%, #fff 39%, #fff 63%, transparent 63%),
        linear-gradient(-45deg, transparent 40%, #fff 40%, #fff 58%, transparent 58%);
    background-size: 5px 6px, 8px 8px;
    background-position: 2px 6px, 5px 3px;
    background-repeat: no-repeat;
}
input[type="radio"] { accent-color: var(--brand); }
select {
    background-image: linear-gradient(45deg, transparent 50%, var(--brand) 50%), linear-gradient(135deg, var(--brand) 50%, transparent 50%);
    background-position: right 15px center, right 10px center;
    background-size: 5px 5px; background-repeat: no-repeat;
    padding-inline-end: 29px !important;
}
.catalog-toolbar select, .stack-form select { background-color: white; }
select:disabled, input:disabled:not([type="hidden"]), textarea:disabled { background-color: var(--brand-wash); color: var(--muted); }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.select-native { display: none !important; }
.select-field { display: block; width: 100%; min-width: 0; }
.select-combobox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    line-height: 1.35;
    text-align: start;
}
.select-combobox::after, .admin-audit-detail > summary::after {
    content: ''; display: inline-block; flex: 0 0 8px; width: 8px; height: 8px;
    border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg); color: var(--brand);
}
.select-combobox[aria-expanded="true"]::after, .admin-audit-detail[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.select-combobox[aria-expanded="true"] { border-color: var(--brand); }
.select-combobox[aria-invalid="true"] { border-color: #a14435; }
.select-combobox[aria-disabled="true"] { color: var(--muted); background: var(--brand-wash); cursor: default; }
.select-value { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.select-list {
    display: block;
    position: fixed;
    z-index: 90;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 5px;
    border: 1px solid var(--field-border);
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 10px 28px #38153e2b;
}
.select-option {
    display: flex; align-items: center; gap: 8px; justify-content: space-between;
    padding: 9px 10px; min-height: 38px; border-radius: 7px; cursor: pointer;
    font: 600 .9rem/1.35 var(--text); text-align: start; overflow-wrap: anywhere;
}
.select-option[aria-selected="true"] { color: var(--berry); font-weight: 800; }
.select-option[aria-selected="true"]::after {
    content: ''; display: block; width: 7px; height: 12px; flex: 0 0 auto;
    border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px);
}
.select-option.is-active { background: var(--brand-soft); color: var(--berry); }
.select-error { display: block; margin-top: 4px; font: 700 .77rem/1.5 var(--text); color: #8f3328; }

@media (min-width: 801px) {
    .cart-panel {
        position: sticky; top: 22px; max-height: calc(100vh - 44px); max-height: calc(100dvh - 44px);
        overflow: auto; overscroll-behavior: contain; scroll-padding-top: 83px;
    }
}
@media (max-width: 800px) {
    .header-inner { min-height: 70px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0; }
    .brand { width: min(158px, 42vw); }
    .header-actions { gap: 7px; }
    .header-actions .account-link { display: none; }
    .main-nav { order: 3; width: 100%; padding: 4px 0 12px; gap: 14px; flex-wrap: wrap; }
    .main-nav .nav-account { display: inline-flex; }
    .js-menu .menu-toggle {
        display: inline-flex; width: auto; padding: 0 11px; gap: 8px;
        color: var(--berry); background: var(--brand-wash); border-color: #dec9e4;
    }
    .js-menu .menu-toggle:hover, .js-menu .menu-toggle[aria-expanded="true"] { color: #fff9fc; background: var(--berry); }
    .menu-caption { font-size: .81rem; }
    .menu-bars { display: grid; width: 21px; height: 21px; align-content: center; gap: 4px; }
    .menu-bars > span { width: 21px; height: 2px; border-radius: 3px; background: currentColor; transition: transform .18s ease, opacity .15s ease; }
    .menu-bars > span:nth-child(2) { width: 16px; }
    .menu-toggle[aria-expanded="true"] .menu-bars > span:first-child { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-bars > span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] .menu-bars > span:last-child { transform: translateY(-6px) rotate(-45deg); }
    .js-menu .main-nav {
        position: absolute; z-index: 1; top: calc(100% + 7px); right: 0; width: min(100%, 360px);
        max-height: min(510px, calc(100vh - 115px)); max-height: min(510px, calc(100dvh - 115px));
        overflow-y: auto; display: grid; gap: 4px; margin: 0; padding: 9px;
        border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); background: var(--surface);
    }
    .js-menu .main-nav:not(.open) { display: none; }
    .js-menu .main-nav.open { animation: menu-enter .2s ease both; }
    .js-menu .main-nav a { display: flex; align-items: center; gap: 11px; min-height: 45px; padding: 8px 11px; border-radius: 8px; box-shadow: none; }
    .js-menu .main-nav a:hover, .js-menu .main-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--berry); }
    .js-menu .nav-icon { display: inline-block; color: var(--brand); width: 19px; height: 19px; }
    .js-menu .nav-account { border-top: 1px solid var(--line); }
    .menu-open .menu-scrim { display: block; position: fixed; inset: 0; z-index: 30; background: #28112f6b; }
    .catalog-toolbar input, .catalog-toolbar select, .catalog-toolbar .select-combobox, .stack-form input, .stack-form textarea { font-size: 16px; }
}
@media (max-width: 400px) {
    .menu-caption { display: none; }
    .js-menu .menu-toggle { width: 44px; padding-inline: 0; }
    .js-menu .main-nav { width: 100%; }
    .cart-row { grid-template-columns: 48px minmax(0,1fr) auto; }
    .cart-row > img { width: 48px; height: 48px; }
    .cart-floating-copy { font-size: .88rem; }
}
@keyframes menu-enter {
    from { opacity: 0; translate: 0 -6px; }
    to { opacity: 1; translate: 0 0; }
}

.delivery-location { margin: 4px 0; padding: 11px; min-width: 0; border: 1px solid var(--line); border-radius: 11px; background: var(--brand-wash); }
.delivery-location legend { padding: 0 4px; font-size: .92rem; font-weight: 800; color: var(--berry); }
.delivery-location p { color: var(--muted); font-size: .81rem; }
.location-actions, .location-selection { display: flex; align-items: center; gap: 7px 10px; flex-wrap: wrap; margin-top: 8px; }
.location-actions .button { min-height: 39px; padding: 6px 9px; font-size: .81rem; }
.location-actions .text-link, .location-selection .text-link { font-size: .8rem; }
#delivery-map-panel { margin-top: 9px; overflow: hidden; border: 1px solid var(--field-border); border-radius: 9px; }
#delivery-map-panel iframe { display: block; width: 100%; height: 305px; border: 0; }
.delivery-location .location-status { margin-top: 7px; color: var(--berry); }
.location-manual { margin-top: 8px; }
.location-manual summary { display: list-item; list-style: disclosure-closed inside; padding-block: 4px; color: var(--berry); font-size: .81rem; font-weight: 800; cursor: pointer; }
.location-manual[open] summary { list-style-type: disclosure-open; }
.location-manual summary::-webkit-details-marker { display: inline; }
.location-manual .fine-print { margin-top: 5px; }
.cart-live .cart-edit .fine-print { display: none; }
.cart-remove { margin-top: 4px; color: var(--muted); font-size: .76rem; }
.cart-remove:hover { color: #8f3328; }

[data-cart-total] { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
    .hero-copy, .hero-photo, .catalog-intro-inner { animation: freskos-enter .45s cubic-bezier(.2,.65,.3,1) both; }
    .hero-photo { animation-delay: .075s; }
    .select-list:not([hidden]), #delivery-map-panel:not([hidden]) { animation: freskos-fade .18s ease-out; }
    .cart-open .cart-backdrop { animation: freskos-fade .2s ease-out; }
    .cart-enhanced.cart-open .cart-panel { animation: freskos-enter .24s cubic-bezier(.2,.65,.3,1); }
    .product-card { transition: box-shadow .22s ease, border-color .22s ease; }
    .product-image img { transition: transform .38s cubic-bezier(.2,.65,.3,1); }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .product-card:hover { border-color: var(--field-border); box-shadow: var(--shadow); }
    .product-card:hover .product-image img { transform: scale(1.035); }
}

@keyframes freskos-enter {
    from { opacity: 0; translate: 0 9px; }
    to { opacity: 1; translate: 0 0; }
}

@keyframes freskos-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
