/* Movimiento y estados de la compra */
@keyframes av-rise { from {opacity:0;transform:translateY(10px)} to {opacity:1;transform:none} }
@keyframes av-peek-in { from {opacity:0;transform:translateY(-10px) scale(.97)} to {opacity:1;transform:none} }
@keyframes av-peek-out { to {opacity:0;transform:translateY(-8px) scale(.98)} }
@keyframes av-progress { from {transform:translateX(-105%)} to {transform:translateX(345%)} }
.load-line {position:fixed;inset:0 0 auto;height:3px;z-index:20;pointer-events:none;overflow:hidden}
.load-line::before {content:"";display:block;width:30%;height:100%;background:var(--red);animation:av-progress 1s ease-in-out infinite}
.back-link,.catalog-heading a.back-link {
 display:inline-flex;align-items:center;gap:.4rem;width:fit-content;background:white;color:var(--darkred);
 border:1px solid #e7bac1;border-radius:2rem;padding:.42rem .88rem;font-size:.88rem;font-weight:700;text-decoration:none;
}
.back-link:hover,.catalog-heading a.back-link:hover {background:#fff0f1;color:var(--darkred)}
.checkout-shell {padding:clamp(1.6rem,4vw,3.2rem) 0 clamp(3rem,6vw,5rem);min-height:58vh}
.checkout-page,.policy-page {background:#faf7f7}
.checkout-page .top {background:white}
#order-title,.policy-band h1 {font-size:clamp(2.1rem,5vw,3.7rem);line-height:1.05;letter-spacing:-.055em;font-weight:790}
#order-title {margin:1.1rem 0 1.6rem;color:var(--ink);outline:0}
.order-grid {display:grid;grid-template-columns:minmax(0,1.55fr) minmax(260px,.85fr);gap:clamp(1rem,3vw,2.5rem);align-items:start}
.order-card,.order-summary,.order-receipt,.policy-layout article {border:1px solid #e6dbdd;background:white;border-radius:1.1rem;padding:clamp(1rem,2.5vw,2rem);box-shadow:0 6px 24px #46061907}
.order-card .checkout-section {padding:1.15rem 0;margin:0;border-bottom:1px solid var(--line);display:flow-root}
.order-card .checkout-section:first-child {padding-top:0}
.order-card .checkout-section legend {float:none;width:auto;font-weight:730;font-size:1.18rem;margin:0 0 .65rem}
.order-card .muted {margin-top:1rem;font-size:.9rem}
#pickup-map {display:grid;gap:.5rem}
#pickup-map iframe {display:block;width:100%;height:175px;background:#f6f1f1;border:1px solid var(--line);border-radius:.65rem}
#pickup-map a,.checkout-option a {color:var(--darkred);font-weight:650;font-size:.93rem}
.order-summary {position:sticky;top:1.5rem;border-top:4px solid var(--red)}
.order-summary h2 {font-size:1.4rem;margin:0 0 .75rem;color:var(--ink)}
.summary-line {display:flex;align-items:center;gap:.75rem;padding:.75rem 0;border-bottom:1px solid var(--line);font-size:.92rem}
.summary-line>div {flex:1;min-width:0}
.summary-line small {display:block;color:#695960}
.summary-line>strong {white-space:nowrap}
.summary-total {display:flex;align-items:center;justify-content:space-between;margin:1rem 0}
.summary-total strong {color:var(--red);font-size:1.5rem}
.order-receipt {max-width:760px}
.item-thumb {width:54px;height:48px;border-radius:.5rem;object-fit:cover;flex:0 0 auto;background:#fff1ee;border:1px solid var(--line)}
.thumb-empty {display:grid;place-items:center;color:var(--red);font-size:1.25rem;font-weight:750}
.cart-item-info {display:flex;align-items:center;gap:.6rem;min-width:0}
.cart-item-info>div {min-width:0;overflow-wrap:anywhere}
.cart-peek {position:fixed;top:85px;right:max(4vw,calc((100vw - 1180px)/2));z-index:12;width:min(330px,92vw);padding:1rem;background:white;border:1px solid #ead4d8;border-top:3px solid var(--red);border-radius:1rem;box-shadow:0 11px 36px #37121d25}
.peek-head {display:flex;align-items:center;justify-content:space-between;color:var(--darkred)}
.peek-head .closebox {width:28px;height:28px;font-size:1rem}
.cart-peek .action {margin-top:.75rem;width:100%}
.cart-flight {position:fixed;z-index:13;width:13px;height:13px;border:2px solid white;background:var(--red);border-radius:50%;box-shadow:0 2px 12px #6206153b;pointer-events:none}
.policy-band {background:var(--red);color:white;padding:clamp(2rem,5vw,4rem) 0}
.policy-band h1 {color:white;margin:0 0 .6rem}
.policy-band p {margin:0;font-size:1.04rem}
.policy-layout {display:grid;grid-template-columns:minmax(190px,.72fr) minmax(0,1.8fr);gap:clamp(1rem,4vw,4rem);padding:2rem 0 3.5rem}
.policy-layout nav {display:flex;flex-direction:column;align-items:flex-start;gap:.6rem}
.policy-layout nav a {color:var(--darkred);text-decoration:none;padding:.55rem .85rem;border-radius:.6rem;font-weight:650}
.policy-layout nav [aria-current] {background:#ffe4e7}
.policy-layout nav .back-link {margin-top:.6rem}
.policy-layout article p {line-height:1.8;max-width:72ch;margin:0 0 1.2rem}
.policy-layout article p:last-child {margin:0}
.policy-footer {background:var(--red);color:white;padding:1.3rem 0;font-size:.9rem}
@media (prefers-reduced-motion:no-preference) {
 .hero-text,.catalog-heading,.policy-band .shell,.checkout-shell>h1,.order-grid,.order-receipt,.policy-layout,.login-box,.product,.branch-card,.staff #toolpane>*,dialog[open] {animation:av-rise .33s ease-out both}
 .product:nth-child(2),.branch-card:nth-child(2){animation-delay:.045s}
 .product:nth-child(3),.branch-card:nth-child(3){animation-delay:.09s}
 .cart-peek:not([hidden]) {animation:av-peek-in .22s ease-out both}
 .cart-peek.leaving:not([hidden]) {animation:av-peek-out .2s ease-in both}
 button,.action,.back-link,.btn-gold {transition:transform .15s ease,background-color .18s ease,box-shadow .18s ease}
 button:not(:disabled):active,.action:active,.back-link:active,.btn-gold:active {transform:scale(.97)}
 .feature-offer>img,.product img {transition:transform .35s ease}
 @media(hover:hover){.feature-offer:hover>img,.product:hover>img {transform:scale(1.025)}}
}
@media (max-width:760px) {
 .order-grid,.policy-layout {grid-template-columns:1fr}
 .order-summary {position:static}
 .policy-layout nav {flex-direction:row;flex-wrap:wrap;gap:.25rem}
 .policy-layout nav .back-link {margin:0}
 .cart-peek {top:104px}
}
@media (prefers-reduced-motion:reduce) {
 html {scroll-behavior:auto}
 .load-line::before {animation:none;width:100%;opacity:.55}
 .cart-flight {display:none}
}

