:root {
  --page: #fff;
  --surface-subtle: #f8f8f8;
  --divider: #e8e8e8;
  --text-primary: #161616;
  --text-secondary: #5f5f5f;
  --text-muted: #8a8a8a;
  --brand-pink: #fe2c55;
  --brand-cyan: #25f4ee;
  --shipping: #168c8c;
  --home-orange: #ff6a2a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #f4f4f4; }
body { margin: 0; color: var(--text-primary); background: #f4f4f4; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
.page-shell { width: 100%; max-width: 520px; min-height: 100vh; margin: 0 auto; background: var(--page); overflow: hidden; }

.topbar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 6px 12px; border-bottom: 1px solid #e3e6eb; background: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-action { display: grid; place-items: center; width: 36px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.header-action svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header-action--close svg { width: 23px; height: 23px; }
.variant-row svg, .description-toggle svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.gallery { position: relative; width: 100%; height: min(92vw, 380px); min-height: 320px; background: #fff; overflow: hidden; }
.gallery-track { display: flex; width: 100%; height: 100%; transition: transform 240ms ease; }
.gallery-slide { display: grid; flex: 0 0 100%; place-items: center; width: 100%; height: 100%; margin: 0; background: #fff; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-slide--portrait img { width: 100%; height: 100%; object-fit: contain; }
.gallery-slide--video { position: relative; overflow: hidden; background: #f2f2f2; }
.gallery-slide--video video { display: block; width: 100%; height: 100%; background: #000; object-fit: contain; }
.gallery-slide--detail img { width: calc(100% - 28px); height: calc(100% - 40px); object-fit: cover; }
.gallery-hit { position: absolute; z-index: 2; top: 50%; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgb(20 23 32 / 36%); color: #fff; cursor: pointer; transform: translateY(-50%); }
.gallery-hit::after { content: ""; position: absolute; top: 12px; width: 10px; height: 10px; border-top: 2px solid #fff; border-right: 2px solid #fff; }
.gallery-hit--prev { left: 8px; }
.gallery-hit--prev::after { left: 15px; transform: rotate(-135deg); }
.gallery-hit--next { right: 8px; }
.gallery-hit--next::after { right: 15px; transform: rotate(45deg); }
.gallery-counter { position: absolute; right: 15px; bottom: 13px; padding: 2px 5px; border-radius: 2px; color: white; background: rgb(150 150 150 / 54%); font-size: 10px; }
.gallery-thumbnails { display: flex; gap: 8px; padding: 10px 12px 12px; overflow-x: auto; border-bottom: 1px solid var(--divider); background: #fff; scrollbar-width: none; scroll-snap-type: x proximity; }
.gallery-thumbnails::-webkit-scrollbar { display: none; }
.gallery-thumbnails button { position: relative; flex: 0 0 58px; width: 58px; height: 58px; padding: 3px; overflow: hidden; border: 2px solid #e0e5ed; border-radius: 6px; background: #fff; scroll-snap-align: center; cursor: pointer; }
.gallery-thumbnails button.selected { border-color: var(--brand-pink); }
.gallery-thumbnails img { display: block; width: 100%; height: 100%; border-radius: 3px; object-fit: cover; }
.gallery-thumbnails button > span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgb(0 0 0 / 28%); font-size: 18px; }

.product-summary { padding: 10px 14px 11px; }
.price-row { display: flex; align-items: baseline; gap: 5px; }
.price-row .discount { color: var(--brand-pink); font-size: 16px; }
.price-row strong { font-size: 18px; }
.price-row .currency { margin-right: 1px; font-size: 13px; }
.price-row del { color: var(--text-muted); font-size: 12px; }
.product-summary h1 { margin: 4px 0 0; font-size: 14px; font-weight: 600; line-height: 18px; }
.seller { margin: 6px 0 0; color: var(--text-secondary); font-size: 11px; }
.social-proof { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: var(--text-secondary); font-size: 11px; }
.star { color: #2d2d2d; font-size: 10px; }
.shipping { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: var(--shipping); font-weight: 600; white-space: nowrap; }
.shipping svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.variant-row { display: flex; align-items: center; width: 100%; height: 41px; padding: 0 14px; border: 0; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); background: #fff; cursor: pointer; }
.variant-row strong { flex: 0 0 auto; font-size: 14px; }
.variant-row span { min-width: 0; margin-left: auto; overflow: hidden; color: var(--text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.variant-row svg { flex: 0 0 17px; width: 17px; margin-left: 2px; color: #8a8a8a; }
.variant-row:active { background: #f7f7f7; }
.mobile-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; min-height: 68px; padding: 10px 8px; border-bottom: 1px solid var(--divider); background: #fff; }
.mobile-benefits > span { display: grid; grid-template-columns: 20px 1fr; align-content: center; padding: 0 7px; border-right: 1px solid var(--divider); }
.mobile-benefits > span:last-child { border-right: 0; }
.mobile-benefits svg { grid-row: 1 / 3; width: 17px; margin-top: 3px; fill: none; stroke: var(--brand-pink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mobile-benefits b { font-size: 10px; line-height: 14px; }
.mobile-benefits small { color: var(--text-muted); font-size: 8px; line-height: 11px; }
.section-gap, .footer-gap { height: 7px; background: #f6f6f6; }

.about-section > h2 { display: flex; align-items: center; height: 44px; margin: 0; padding: 0 14px; font-size: 15px; }
.description-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 44px; padding: 0 14px; border: 0; background: #fff; cursor: pointer; }
.description-toggle strong { font-size: 12px; }
.description-toggle svg { width: 17px; transition: transform 180ms ease-out; }
.description-toggle[aria-expanded="false"] svg { transform: rotate(180deg); }
.description { overflow: hidden; }
.description[hidden] { display: none; }
.product-video { margin-top: 18px; padding: 14px 14px 18px; border-top: 1px solid var(--divider); }
.product-video h3 { margin: 0 0 10px; font-size: 13px; line-height: 20px; }
.product-video video { display: block; width: 100%; max-height: 78vh; border-radius: 8px; background: #000; object-fit: contain; }
.seller-size-chart { display: block; width: calc(100% - 28px); height: auto; margin: 0 14px; border-radius: 10px; }
.editorial-copy { padding: 0 14px; font-size: 12px; line-height: 16px; }
.editorial-copy h3 { margin: 10px 0 0; text-align: center; font-size: 13px; font-weight: 400; line-height: 18px; }
.editorial-copy .sparkle { margin: 7px 0 10px; text-align: center; font-size: 13px; }
.editorial-copy p { margin: 10px 0 0; }
.editorial-copy ul { margin: 7px 0 0; padding: 0; list-style: none; text-align: center; }
.editorial-copy li { margin: 5px 0; }
.editorial-copy li::before { content: "·"; }
.footer-gap { height: 8px; margin-top: 18px; }

.footer { padding: 32px 18px 82px; color: #0b1020; }
.footer h2 { margin: 0 0 18px; font-size: 20px; line-height: 26px; }
.footer details { border-bottom: 1px solid #dfe5ee; }
.footer summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 15px; font-weight: 700; cursor: pointer; list-style: none; }
.footer summary::-webkit-details-marker { display: none; }
.footer summary span { color: #101521; font-size: 22px; transform-origin: center; }
.footer details[open] summary span { transform: rotate(180deg); }
.footer details p { margin: -3px 0 16px; color: #667a99; font-size: 14px; line-height: 21px; }
.footer-contact { margin-top: 34px; }
.footer-contact h2 { margin-bottom: 12px; }
.footer-contact a { display: flex; align-items: flex-start; gap: 9px; margin: 9px 0; color: #667a99; font-size: 14px; line-height: 20px; text-decoration: none; }
.footer-contact svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-links { margin-top: 32px; }
.footer-links h2 { margin-bottom: 8px; font-size: 16px; }
.footer-links div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.footer-links a { color: #667a99; font-size: 14px; text-decoration: none; }
.footer-legal { margin: 28px 0 0; padding-top: 18px; border-top: 1px solid #dfe5ee; color: #667a99; font-size: 12px; line-height: 18px; }

.modal[hidden], .cart-modal[hidden], .checkout-modal[hidden], .toast[hidden], [data-pix-result][hidden], [data-checkout-form-view][hidden] { display: none; }
.modal { position: fixed; z-index: 100; inset: 0; display: flex; justify-content: center; align-items: end; }
.cart-modal { position: fixed; z-index: 105; inset: 0; display: flex; justify-content: center; align-items: end; }
.cart-sheet { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(100%,520px); max-height: 92dvh; min-height: 55dvh; overflow: hidden; border-radius: 18px 18px 0 0; background:#f6f6f6; animation:rise 180ms ease-out; }
.cart-header { display:grid; grid-template-columns:42px 1fr 42px; align-items:center; min-height:54px; padding:0 8px; border-bottom:1px solid var(--divider); background:#fff; }
.cart-header h2 { margin:0; text-align:center; font-size:17px; }
.cart-header button { border:0; background:transparent; font-size:34px; line-height:1; cursor:pointer; }
.cart-list { display:grid; gap:8px; padding:10px; overflow-y:auto; }
.cart-item { display:grid; grid-template-columns:86px 1fr; gap:11px; padding:12px; border-radius:10px; background:#fff; }
.cart-item img { width:86px; height:86px; border-radius:7px; object-fit:cover; }
.cart-item-info { min-width:0; }
.cart-item-info h3 { margin:0 28px 5px 0; overflow:hidden; font-size:13px; line-height:17px; text-overflow:ellipsis; white-space:nowrap; }
.cart-item-info p { margin:0 0 9px; color:var(--text-secondary); font-size:11px; }
.cart-item-bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.cart-item-bottom strong { color:var(--brand-pink); font-size:15px; }
.cart-stepper { display:flex; align-items:center; border:1px solid #e5e5e5; border-radius:4px; }
.cart-stepper button,.cart-stepper span { display:grid; place-items:center; width:29px; height:27px; border:0; background:#fafafa; font-size:13px; }
.cart-stepper span { background:#fff; }
.cart-remove { position:absolute; right:14px; margin-top:-2px; border:0; background:transparent; color:#999; font-size:18px; cursor:pointer; }
.cart-empty { flex:1; padding:65px 20px; text-align:center; background:#fff; }
.cart-empty span { font-size:42px; }.cart-empty h3{margin:12px 0 5px}.cart-empty p{margin:0 0 18px;color:var(--text-secondary);font-size:12px}.cart-empty button{padding:11px 18px;border:1px solid var(--brand-pink);border-radius:5px;background:#fff;color:var(--brand-pink);font-weight:700}
.cart-footer { margin-top:auto; padding:14px 14px max(14px,env(safe-area-inset-bottom)); border-top:1px solid var(--divider); background:#fff; }
.cart-footer div { display:flex; align-items:center; justify-content:space-between; }.cart-footer strong{font-size:20px}.cart-footer small{display:block;margin:3px 0 11px;color:#13a17c}.cart-footer>button{width:100%;height:48px;border:0;border-radius:5px;background:var(--brand-pink);color:#fff;font-weight:800;font-size:15px}
.checkout-modal { position: fixed; z-index: 110; inset: 0; display: flex; justify-content: center; align-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgb(0 0 0 / 48%); }
.checkout-sheet { position: relative; z-index: 1; width: min(100%, 520px); max-height: 94dvh; padding: 24px; overflow-y: auto; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgb(0 0 0 / 24%); }
.checkout-kicker { color: var(--brand-pink); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.checkout-sheet h2 { margin: 6px 0 4px; font-size: 22px; }
.checkout-subtitle,.pix-result>p { margin: 0 0 18px; color: var(--text-secondary); font-size: 12px; }
.checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-form label { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.checkout-form label span { font-size: 11px; font-weight: 700; }
.checkout-form input { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #dfe2e7; border-radius: 8px; outline: none; }
.checkout-form input:focus { border-color: var(--brand-pink); box-shadow: 0 0 0 3px rgb(254 44 85 / 10%); }
.field-wide { grid-column: 1 / -1; }
.checkout-submit { width: 100%; min-height: 46px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--brand-pink); color: #fff; font-weight: 800; cursor: pointer; }
.checkout-submit:disabled { opacity: .65; cursor: wait; }
.checkout-error { margin: 0; color: #c62828; font-size: 11px; }
.pix-result { text-align: center; }
.pix-result>img { display: block; width: min(100%, 280px); margin: 12px auto; border-radius: 8px; }
.pix-result textarea { width: 100%; height: 82px; margin: 5px 0 10px; padding: 10px; resize: none; border: 1px solid #dfe2e7; border-radius: 8px; font-size: 10px; }
.pix-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 13px; color: #8a6417; font-size: 12px; font-weight: 700; }
.pix-status i { width: 8px; height: 8px; border-radius: 50%; background: #f2b331; animation: pulse 1.4s infinite; }
.pix-status.approved { color: #16834a; }.pix-status.approved i { background: #20a864; animation: none; }
@keyframes pulse { 50% { opacity: .35; } }
.options-sheet { position: relative; z-index: 1; width: min(100%, 520px); max-height: 92vh; padding: 18px 16px max(18px, env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 16px 16px 0 0; background: #fff; animation: rise 180ms ease-out; overscroll-behavior: contain; }
.sheet-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.sheet-product { display: flex; gap: 12px; align-items: end; }
.sheet-product img { width: 92px; height: 92px; border-radius: 7px; object-fit: cover; }
.sheet-product div { display: flex; flex-direction: column; padding-bottom: 5px; }
.sheet-product span, .sheet-product small { color: var(--text-secondary); font-size: 11px; }
.sheet-product strong { margin: 3px 0; color: var(--brand-pink); font-size: 20px; }
.options-sheet h2 { margin: 18px 0 10px; font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-width: 46px; padding: 9px 12px; border: 1px solid #ddd; border-radius: 5px; background: #fff; cursor: pointer; }
.chips button.selected { border-color: var(--brand-pink); color: var(--brand-pink); background: #fff4f6; }
.variant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.variant-grid button { min-width: 0; padding: 4px; overflow: hidden; border: 1px solid #e1e1e1; border-radius: 5px; background: #fff; cursor: pointer; }
.variant-grid button.selected { border: 2px solid var(--brand-pink); padding: 3px; color: var(--brand-pink); background: #fff6f7; }
.variant-grid img { display: block; width: 100%; aspect-ratio: 1; border-radius: 3px; object-fit: cover; }
.variant-grid span { display: block; min-height: 29px; margin-top: 4px; overflow: hidden; font-size: 10px; line-height: 13px; text-overflow: ellipsis; }
.quantity { display: flex; align-items: center; justify-content: space-between; margin: 20px 0; font-size: 14px; font-weight: 600; }
.quantity div { display: flex; align-items: center; border: 1px solid var(--divider); }
.quantity button, .quantity output { display: grid; place-items: center; width: 36px; height: 34px; border: 0; background: #f8f8f8; }
.quantity output { background: #fff; }
.sheet-actions { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 -2px; padding-top: 10px; background: #fff; }
.add-button { width: 100%; height: 46px; border: 1px solid var(--brand-pink); border-radius: 4px; background: var(--brand-pink); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.add-button--outline { color: var(--brand-pink); background: #fff; }
.mobile-buybar { position: fixed; z-index: 70; right: 0; bottom: 0; left: 0; display: none; grid-template-columns: 48px 48px 48px 1fr 1fr; align-items: stretch; width: 100%; height: calc(58px + env(safe-area-inset-bottom)); padding: 6px 8px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid var(--divider); background: rgb(255 255 255 / 98%); box-shadow: 0 -3px 10px rgb(0 0 0 / 7%); }
.buybar-icon { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; border: 0; background: transparent; color: #333; font-size: 9px; cursor: pointer; }
.buybar-icon img, .buybar-icon svg { width: 22px; height: 22px; object-fit: contain; fill: none; stroke: currentColor; stroke-width: 1.7; }
.buybar-icon b { position: absolute; top: 0; right: 3px; display: none; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 8px; background: var(--brand-pink); color: #fff; font-size: 9px; line-height: 15px; }
.buybar-icon b.has-items { display: block; }
.buybar-cta { margin: 2px 0 2px 7px; border: 1px solid var(--brand-pink); font-size: 11px; font-weight: 700; cursor: pointer; }
.buybar-cta--cart { border-radius: 4px 0 0 4px; color: var(--brand-pink); background: #fff; }
.buybar-cta--buy { margin-left: 0; border-radius: 0 4px 4px 0; color: #fff; background: var(--brand-pink); }
.desktop-buybar { position:fixed; z-index:65; right:24px; bottom:24px; display:flex; align-items:center; gap:22px; min-width:390px; padding:14px 16px; border:1px solid #e5e7eb; border-radius:14px; background:#fff; box-shadow:0 10px 32px rgb(15 23 42 / 18%); }
.desktop-buybar div { display:flex; flex-direction:column; }
.desktop-buybar span { color:#64748b; font-size:12px; }
.desktop-buybar strong { color:#ef1d2f; font-size:21px; }
.desktop-buybar button,.add-button,.buybar-cta--buy { border-color:#ef1d2f; background:#ef1d2f; color:#fff; font-family:Arial,sans-serif; font-weight:800; }
.desktop-buybar button { flex:1; min-height:48px; padding:0 28px; border:0; border-radius:8px; font-size:16px; cursor:pointer; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; width: max-content; max-width: calc(100% - 28px); padding: 11px 16px; border-radius: 20px; background: #161616; color: #fff; font-size: 13px; transform: translateX(-50%); }
@keyframes rise { from { transform: translateY(100%); } to { transform: translateY(0); } }

:focus-visible { outline: 2px solid #161616; outline-offset: 2px; }
@media (max-width: 359px) {
  .topbar { padding-inline: 5px; }
  .product-summary, .about-section > h2, .description-toggle, .variant-row { padding-right: 12px; padding-left: 12px; }
  .editorial-copy { padding-inline: 12px; }
  .seller-size-chart { width: calc(100% - 24px); margin-inline: 12px; }
  .product-video { padding-inline: 12px; }
}
@media (max-width: 520px) {
  .desktop-buybar { display:none; }
  .page-shell { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .mobile-buybar { display: grid; }
  .footer { padding-bottom: 44px; }
  .modal { align-items: end; }
  .options-sheet { max-height: 94dvh; border-radius: 16px 16px 0 0; }
  .options-sheet::before { content: ""; display: block; width: 38px; height: 4px; margin: -9px auto 10px; border-radius: 2px; background: #d7d7d7; }
  .checkout-modal { align-items: end; padding: 0; }
  .checkout-sheet { max-height: 95dvh; padding: 22px 16px max(20px, env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  .checkout-form { gap: 10px; }
}
@media (min-width: 768px) {
  .page-shell { box-shadow: 0 0 30px rgb(0 0 0 / 8%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
