/* shop.css — loja online, carrinho, checkout e encomendas */

/* ---------- montra ---------- */
.shop-hero .container { padding-top: 64px; padding-bottom: 60px; gap: 44px; }
.shop-hero-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.shop-hero-text { flex: 999 1 420px; min-width: 0; }
.shop-hero-text .lead a { margin-left: 6px; font-weight: 700; }
.shop-hero .hero-stats { flex: 0 1 300px; gap: 28px; }
.shop-hero .hero-stat strong { font-size: 32px; }
.shop-filters { background: var(--paper); border-bottom: 1px solid var(--line); }
.shop-filters .shop-toolbar { padding-top: 26px; padding-bottom: 26px; gap: 20px; }
.shop-filters .chip { min-height: 44px; padding: 0 20px; font-size: 14px; border-width: 1.5px; border-color: var(--line); color: var(--text-2); }
.shop-filters .chip.is-active { color: var(--paper); border-color: var(--ink); }
.chip-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-size: 11px; font-weight: 800; }
.chip.is-active .chip-count { background: var(--ink-line); color: var(--y); }
.shop-sort { gap: 10px; }
.select--sm { min-height: 44px; width: auto; font-size: 14px; font-weight: 600; border-width: 1.5px; }
.shop-grid-section { padding: 36px 0 56px; }
.shop-grid-section .product-grid { gap: 20px; }
.shop-perks { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 40px 0; }
.product-card .product-media { background: #F6F2E7; }

/* ---------- ficha de produto ---------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 64px; }
.product-gallery { position: sticky; top: 96px; }
.gallery-main svg { max-height: 100%; }
.product-info .eyebrow { margin-bottom: 14px; }
.product-title { font-size: 56px; line-height: 0.94; margin-bottom: 18px; }
.product-lead { font-size: 17px; line-height: 1.6; color: var(--muted); margin-bottom: 22px; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.price--lg { font-size: 44px; }
.product-price .price-old { font-size: 18px; }
.product-price .badge { align-self: center; }
.stock-box { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.stock-box .text-muted { font-weight: 600; }
.product-form { margin-top: 22px; }
.option-group { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.option-group legend { padding: 0; margin-bottom: 10px; }
.option-group .chip { min-height: 42px; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.buy-row .qty { height: 54px; }
.buy-row .qty button { width: 42px; }
.ship-box { margin-top: 26px; padding: 20px; }
.ship-box .label-caps { margin: 0 0 12px; }
.ship-box .input-group .input { min-height: 44px; }
.ship-rows { margin: 14px 0; }
.ship-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ship-row strong { display: block; font-size: 14px; }
.ship-row small { display: block; font-size: 12.5px; color: var(--muted-2); }
.ship-row > span { font-weight: 800; white-space: nowrap; }
.ship-box .field-error { margin-top: 8px; }
.product-details { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 64px 0; }
.product-details-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 64px; }
.product-details h2 { font-size: 34px; }
.related { padding: 64px 0 80px; }
.related-title { font-size: 34px; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.related-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: box-shadow 0.15s, transform 0.15s; }
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.related-media { display: flex; align-items: center; justify-content: center; height: 120px; padding: 16px; background: #F6F2E7; border-bottom: 1px solid var(--line); }
.related-media img { width: 100%; height: 100%; object-fit: contain; }
.related-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.related-body strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 18px; line-height: 1.05; }
.related-body span { font-weight: 800; font-size: 15px; }

/* ---------- carrinho / checkout ---------- */
.shop-cart-hero .container:first-child { padding-bottom: 20px; align-items: center; }
.shop-steps-wrap { padding-top: 0 !important; padding-bottom: 32px !important; }
.shop-steps li { color: var(--muted-2); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; align-items: start; }
.cart-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.cart-line-info .label-caps { font-size: 10.5px; margin: 0 0 4px; }
.cart-line-info h3 { font-size: 21px; margin-bottom: 4px; }
.cart-line-info h3 a { text-decoration: none; }
.cart-line-price { text-align: right; }
.cart-line-price strong { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1; }
.cart-line-price small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted-2); }
.cart-qty-form { display: inline-flex; gap: 8px; align-items: center; }
.cart-assembly { display: flex; gap: 12px; align-items: center; font-size: 14px; background: var(--paper-3); }
.cart-assembly svg { width: 20px; height: 20px; flex: none; }
.coupon-applied { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--y-soft); border: 1px solid #F2DC8C; border-radius: var(--radius-sm); }
.coupon-applied strong { display: block; font-size: 14px; }
.coupon-applied small { display: block; font-size: 12.5px; color: var(--muted); }
.coupon-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--y); font-weight: 800; flex: none; }
.cart-postal { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.cart-empty svg { max-width: 220px; margin: 0 auto; }
.cart-empty p { max-width: 420px; margin-left: auto; margin-right: auto; }

.summary-items { list-style: none; margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px solid var(--ink-line); }
.summary-items li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; color: var(--sand-2); }
.summary-items li span:last-child { font-weight: 700; color: var(--paper); white-space: nowrap; }
.summary-items b { color: var(--y); }
.summary-items small { display: block; font-size: 12px; color: var(--muted-2); }
.summary-vat { margin: 0 0 18px; color: var(--muted-2); text-align: right; }
.summary-note { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 14px 0 0; color: var(--sand); text-align: center; }
.summary-note svg { width: 14px; height: 14px; flex: none; }
.summary-pay { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--ink-line); }
.summary-pay .label-caps { margin: 0 0 10px; color: var(--muted-2); }
.summary-terms { margin: 4px 0 16px; color: var(--sand-2); font-size: 13px; }
.summary-terms a { color: var(--y); }
.summary-terms input { accent-color: var(--y); }
.summary-terms.has-error span { color: #F2A29C; }
.summary-error { margin: -8px 0 14px; color: #F2A29C; }
.reassure ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.reassure li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.reassure svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ok); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-right: 12px; border-radius: 50%; background: var(--y); font-family: var(--font); font-size: 13px; font-weight: 800; vertical-align: 3px; }
.ship-options.has-error .ship-option { border-color: var(--danger); }
.pay-option .pay-methods { margin-left: auto; }
.pay-option .pay-methods span { font-size: 10px; padding: 4px 7px; }
.ship-option[hidden], .ship-option.is-unavailable { display: none; }
[data-pickup-note] svg { width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- encomenda ---------- */
.order-status { font-size: 12px; padding: 8px 14px; }
.order-status--yellow { background: var(--y); color: var(--ink); }
.order-status--dark { background: var(--paper); color: var(--ink); }
.order-status--ok { background: #4CC38A; color: var(--ink); }
.order-status--muted { background: var(--ink-line); color: var(--sand); }
.tracking .code-box { background: var(--paper-3); }
.lookup-form .form-grid { margin-top: 4px; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 960px) {
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .product-gallery { position: static; }
  .product-details-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr); }
  .cart-aside { position: static; }
}
@media (max-width: 720px) {
  .shop-hero .container { padding-top: 40px; padding-bottom: 36px; gap: 24px; }
  .shop-filters .shop-toolbar { padding-top: 16px; padding-bottom: 16px; }
  .shop-filters .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .shop-filters .chip { flex: none; min-height: 40px; padding: 0 16px; }
  .shop-grid-section { padding: 20px 0 40px; }
  .shop-grid-section .product-grid { gap: 10px; }
  .product-title { font-size: 40px; }
  .price--lg { font-size: 36px; }
  .gallery-main { padding: 20px; }
  .buy-row { flex-wrap: wrap; }
  .buy-row .btn { flex: 1 1 100%; }
  .product-details, .related { padding: 44px 0; }
  .related-grid { gap: 10px; }
  .related-media { height: 96px; }
  .related-body strong { font-size: 15px; }
  .cart-postal { grid-template-columns: minmax(0, 1fr); }
  .cart-line-price { text-align: left; }
  .card-head h2 { font-size: 20px; }
  .step-num { width: 26px; height: 26px; margin-right: 8px; }
  .shop-steps { gap: 8px 14px; }
  .shop-steps li { font-size: 12px; }
  .shop-cart-hero .container:first-child .btn { display: none; }
  .pay-option .pay-methods { display: none; }
}
