/* The storefront keeps its Alpha identity while the buying journey follows a
   consistent hierarchy from discovery through the Mercado Pago payment. */
#drawer #checkout-form { display: none !important; }
.cart-checkout-action { padding: 1.2rem 1.5rem 0; border-top: 1px solid var(--rule); }
.cart-checkout-action .primary { display: flex; justify-content: space-between; align-items: center; width: 100%; text-decoration: none; }
.checkout-route .cart-checkout-action { display: none; }
.cart-total { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
#cart-warning:not(:empty) { color: var(--red); font-size: .85rem; line-height: 1.4; margin-bottom: 1rem; }
.checkout-review { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding-block: 1.1rem; margin-bottom: 1.2rem; border-block: 1px solid var(--rule); }
.review-heading { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.review-heading h3 { font-size: .9rem; letter-spacing: -.02em; }
.review-heading button { background: none; border: 0; padding: .65rem 0; color: var(--red); text-decoration: underline; font-size: .78rem; }
.checkout-review p { color: var(--muted); font-size: .87rem; line-height: 1.65; overflow-wrap: anywhere; }
.checkout-route .fields input, .checkout-route .coupon-row input, .checkout-route .cep-row input { min-width: 0; width: 100%; min-height: 48px; padding: .75rem; border: 1px solid var(--rule); border-radius: 3px; background: #fff; font: inherit; }
.checkout-route .fields label { display: grid; gap: .4rem; color: var(--muted); font-size: .82rem; }
.checkout-route .fields input { color: var(--ink); font-size: 1rem; }
.checkout-route .coupon-row { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem; }
.checkout-route .coupon-row > p { flex-basis: 100%; }
.checkout-route .coupon-row > label { display: grid; flex: 1; gap: .4rem; min-width: 0; }
.checkout-route .coupon-row button { min-height: 48px; }
.checkout-route .coupon-row input { max-width: 100%; }
.checkout-route .modes label { padding: .9rem; border: 1px solid var(--rule); background: #fff; }
.checkout-route .modes label:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.checkout-route :focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.category-landing { padding-block: clamp(2rem, 5vw, 4.5rem) 1rem; }
.category-landing nav { display: flex; gap: .6rem; color: var(--muted); font-size: .78rem; }
.category-landing nav a { text-underline-offset: 3px; }
.category-landing > div { padding-block: clamp(2rem, 4vw, 3.8rem); border-bottom: 1px solid var(--rule); }
.category-landing-label { color: var(--red); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.category-landing h1 { margin: .55rem 0 .8rem; font-size: clamp(3.2rem, 7vw, 6.8rem); line-height: .95; letter-spacing: -.075em; }
.category-landing h1 span { color: var(--red); }
.category-landing > div > p:last-child { max-width: 32rem; color: var(--muted); line-height: 1.5; }
.category-landing + .catalog { padding-top: 1.5rem; }

.product-media { position: relative; margin: calc(-1 * clamp(16px, 2.1vw, 30px)) calc(-1 * clamp(16px, 2.1vw, 30px)) 1.2rem; padding: .85rem; background: #f3f2ee; border-bottom: 1px solid var(--rule); }
.product-media .shop-cover { display: grid; place-items: center; min-height: 210px; text-decoration: none; }
.product-media .shop-cover img { height: clamp(175px, 20vw, 270px); width: 100%; object-fit: contain; margin: 0; transition: transform .24s ease; }
.product-media:hover .shop-cover img { transform: scale(1.035); }
.product-media-badge { position: absolute; z-index: 1; top: .9rem; left: .9rem; padding: .4rem .6rem; background: var(--ink); color: #fff; font-size: .67rem; font-weight: 800; }
.product-detail-link { display: block; margin-top: .25rem; padding: .65rem .3rem .1rem; color: var(--ink); font-size: .75rem; font-weight: 800; text-align: right; text-decoration: none; }
.product-detail-link:hover { color: var(--red); }
.product-cover-empty { color: var(--muted); font-size: .8rem; }
.home-product-grid .product-media { margin: -1.2rem -1.2rem 1rem; }
.home-product-grid .product-media .shop-cover img { height: clamp(160px, 18vw, 240px); }
.pdp-related { margin-top: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--rule); }
.pdp-related-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.2rem; }
.pdp-related-head h2 { margin: .5rem 0 0; }
.pdp-related-head > a { flex: none; font-weight: 800; font-size: .82rem; text-underline-offset: 3px; }

.checkout-shell { padding-block: clamp(2rem, 5vw, 4.5rem) 5rem; }
.checkout-heading { scroll-margin-top: 8rem; }
.checkout-heading > a { display: inline-block; color: var(--muted); font-size: .85rem; font-weight: 700; text-decoration: none; margin-bottom: 2.6rem; }
.checkout-heading > a:hover { color: var(--red); }
.checkout-eyebrow { color: var(--red); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.checkout-heading h1 { margin-top: .55rem; font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.07em; }
.checkout-heading h1 span { color: var(--red); }
.checkout-heading > p:last-child { margin-top: 1rem; color: var(--muted); }
.checkout-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; list-style: none; padding: 0; margin: 2.8rem 0 2rem; border-block: 1px solid var(--rule); }
.checkout-progress li { display: flex; align-items: center; gap: .85rem; min-width: 0; padding: 1.05rem .65rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.checkout-progress li:first-child { padding-left: 0; }
.checkout-progress b { display: grid; place-items: center; flex: none; width: 1.8rem; height: 1.8rem; border: 1px solid var(--rule); border-radius: 50%; font-size: .75rem; }
.checkout-progress [aria-current='step'] { color: var(--ink); }
.checkout-progress [aria-current='step'] b { background: var(--red); border-color: var(--red); color: #fff; }
.checkout-progress .is-complete b { background: var(--ink); border-color: var(--ink); color: #fff; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 330px); align-items: start; gap: clamp(1.2rem, 4vw, 4rem); }
.checkout-main { min-width: 0; }
.checkout-panel { min-height: 18rem; }
.checkout-panel > h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); letter-spacing: -.055em; line-height: 1.1; }
.checkout-panel > p { margin: .6rem 0 1.4rem; color: var(--muted); line-height: 1.5; }
.checkout-panel #bag-items { padding: 0; }
.checkout-panel .cart-line { grid-template-columns: minmax(0, 1fr) auto; padding-block: 1rem; }
.checkout-panel .cart-identity img { width: 76px; height: 76px; }
.checkout-panel fieldset { padding: 0; }
.checkout-panel fieldset legend { display: none; }
.checkout-route #checkout-form { padding: 0; }
.checkout-route #checkout-form .checkout-panel { min-height: 18rem; }
.checkout-route #checkout-form .coupon-row { margin-top: 1rem; }
.checkout-route #pay { margin-top: 1.3rem; }
.checkout-controls { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.checkout-controls button { min-height: 48px; padding-inline: 1.3rem; }
.checkout-controls button:last-child { margin-left: auto; }
.checkout-error:not(:empty) { margin: 1rem 0; padding: .75rem 1rem; border-left: 3px solid var(--red); background: #fff; }
.checkout-aside { position: sticky; top: 2rem; padding: 1.5rem; background: #fff; border: 1px solid var(--rule); }
.checkout-aside > span { display: block; color: var(--red); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.checkout-aside > strong { display: block; margin: .5rem 0 1rem; font-size: 1.6rem; letter-spacing: -.05em; }
.checkout-aside #checkout-side-items > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--rule); font-size: .79rem; line-height: 1.4; }
.checkout-aside #checkout-side-items > div strong { flex: none; }
.checkout-side-total { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--ink); font-weight: 800; }
.checkout-aside > p { margin-top: 1.1rem; color: var(--muted); font-size: .74rem; line-height: 1.5; }

@media (max-width: 760px) {
  .home-section-head { flex-wrap: wrap; align-items: start; }
  .home-newsletter-inner, .home-plans-inner { grid-template-columns: minmax(0, 1fr); }
  .home-newsletter-inner > div, .home-plans-inner > div { min-width: 0; }
  .checkout-review { grid-template-columns: 1fr; gap: .8rem; }
  .product-media { margin: -17px -18px 1rem; }
  .product-media .shop-cover { min-height: 190px; }
  .product-media .shop-cover img { height: 200px; }
  .home-product-grid .product-media { margin: -1.2rem -1.2rem 1rem; }
  .pdp-related-head { align-items: start; }
  .pdp-related-head h2 { font-size: 1.7rem; }
  .checkout-shell { padding-block: 1.5rem 3rem; }
  .checkout-heading > a { margin-bottom: 1.8rem; }
  .checkout-progress { margin-block: 2rem 1.5rem; }
  .checkout-progress li { flex-direction: column; align-items: flex-start; gap: .45rem; font-size: .68rem; line-height: 1.2; padding-inline: .25rem; }
  .checkout-progress b { width: 1.5rem; height: 1.5rem; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-panel { min-height: 0; }
  .checkout-aside { position: static; order: 2; }
  .checkout-panel .cart-identity img { width: 64px; height: 64px; }
  .checkout-controls { padding-bottom: 1.5rem; }
  .cart-checkout-action { padding-inline: 1rem; }
}
@media (max-width: 380px) {
  .bar { gap: .5rem; width: calc(100% - 24px); }
  .wordmark { font-size: 21px; }
  .header-actions { gap: .25rem; }
  .bag { gap: .3rem; padding-inline: .4rem; }
}
@media (max-width: 480px) {
  .checkout-route .fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .product-media .shop-cover img { transition: none; }
}
