:root {
  --red: #e60012;
  --orange: #ff4f00;
  --ink: #191919;
  --muted: #777;
  --line: #e5e5e5;
  --soft: #f5f5f5;
  --purple: #5f42ee;
  --blue: #146fe8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body { margin: 0; color: var(--ink); background: #fff; font: 14px/1.42 Arial, Helvetica, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px;
  height: 74px; padding: 10px max(24px, calc((100vw - 1450px) / 2)); background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}
.brand { min-width: 155px; font-size: 29px; font-weight: 700; letter-spacing: -2px; }
.brand-ali { color: var(--orange); }
.brand-express { color: var(--red); }
.category-button { display: none; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer; }
.search { display: flex; flex: 1; height: 42px; max-width: 720px; border: 2px solid #202020; border-radius: 24px; overflow: hidden; }
.search input { flex: 1; min-width: 0; padding: 0 18px; border: 0; outline: 0; }
.search button { width: 58px; margin: 2px; border: 0; border-radius: 21px; background: #202020; color: #fff; font-size: 26px; cursor: pointer; }
.header-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.icon-action { position: relative; display: grid; place-items: center; min-width: 54px; padding: 3px 7px; border: 0; background: transparent; cursor: pointer; font-size: 22px; }
.icon-action small { margin-top: 1px; font-size: 10px; white-space: nowrap; }
.cart-action b { position: absolute; top: 0; right: 6px; min-width: 16px; padding: 1px 4px; color: #fff; background: var(--red); border-radius: 9px; font-size: 10px; }

main { width: min(1450px, calc(100% - 44px)); margin: 0 auto; }
.breadcrumbs { display: flex; gap: 8px; padding: 14px 0; color: #737373; font-size: 12px; }
.breadcrumbs a:hover { color: var(--red); }

.product-shell { display: grid; grid-template-columns: minmax(430px, 1.03fr) minmax(390px, 1.1fr) 292px; gap: 24px; align-items: start; }
.gallery { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 14px; min-width: 0; }
.thumb-list { display: flex; flex-direction: column; gap: 10px; max-height: 620px; overflow: hidden; }
.thumb { width: 58px; height: 58px; padding: 0; border: 2px solid transparent; background: #f2f2f2; cursor: pointer; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: #222; }
.hero-media { position: relative; aspect-ratio: 1; overflow: hidden; background: #f4f4f4; }
.hero-media > img { width: 100%; height: 100%; object-fit: contain; transition: opacity .18s ease, transform .35s ease; }
.hero-media:hover > img { transform: scale(1.025); }
.play-button { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .5); font-size: 24px; cursor: pointer; }
.wish-button { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); font-size: 29px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.13); }
.wish-button.active { color: var(--red); }

.product-info { min-width: 0; }
.title-row { display: flex; align-items: flex-start; gap: 8px; }
.brand-plus { flex: none; padding: 2px 5px; border-radius: 2px; color: #fff; background: linear-gradient(100deg, #1977f3, #2ca2ff); font-size: 12px; font-weight: 700; }
h1 { margin: -4px 0 0; font-size: 20px; line-height: 1.25; }
.rating-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin: 10px 0 13px; color: #444; }
.rating-line a { text-decoration: underline; text-underline-offset: 2px; }
.stars { color: #ffb100; letter-spacing: 1px; }
.divider { width: 1px; height: 14px; background: #bbb; }
.price-block { display: flex; flex-direction: column; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.price-block strong { font-size: clamp(29px, 3vw, 39px); letter-spacing: -.9px; line-height: 1.25; }
.price-block span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.selector-group { margin-top: 16px; }
.selector-group p { margin: 0 0 10px; font-size: 15px; }
.swatches, .bundle-options { display: flex; flex-wrap: wrap; gap: 9px; }
.swatch { position: relative; width: 64px; height: 64px; border: 2px solid transparent; background: #f4f4f4; cursor: pointer; }
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch.active { border-color: #222; }
.swatch.active::after { content: '✓'; position: absolute; right: -2px; bottom: -2px; padding: 0 3px; color: #fff; background: #222; font-size: 11px; }
.option { min-height: 42px; padding: 8px 14px; border: 1px solid #bbb; background: #fff; cursor: pointer; }
.option.active { border: 2px solid #222; padding: 7px 13px; }
.ai-card { margin-top: 21px; padding-top: 14px; border-top: 1px solid var(--line); }
.ai-card h2 { margin: 0 0 4px; font-size: 17px; }
.ai-card h2 span { color: var(--purple); }
.disclaimer { margin: 0; color: #999; font-size: 11px; }
.ai-card ul { margin: 8px 0 3px; padding-left: 19px; }
.ai-card li { margin: 7px 0; }
.more-overview { display: none; }
.ai-card.expanded .more-overview { display: list-item; }
.text-button { padding: 4px 0; border: 0; color: #444; background: transparent; font-weight: 700; cursor: pointer; }

.purchase-card { position: sticky; top: 88px; padding: 17px; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 1px 5px rgba(0,0,0,.05); }
.seller-row { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 13px; }
.seller-row span { color: #555; }
.original-badge { margin: 14px 0; color: var(--blue); font-weight: 700; }
.original-badge span { margin-right: 5px; padding: 2px 5px; color: #fff; background: var(--blue); }
.delivery-line { display: flex; gap: 8px; margin-top: 15px; }
.subtle { margin: 4px 0 10px; color: #777; }
.indent { padding-left: 22px; }
.policy-row { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 4px; width: 100%; padding: 9px 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.security-copy { margin: -3px 0 13px 22px; color: #9a9a9a; font-size: 11px; }
.quantity-block { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding-top: 13px; border-top: 1px solid var(--line); }
.quantity-block > span { grid-column: 1 / -1; color: #555; }
.quantity-control { display: flex; height: 32px; background: var(--soft); border-radius: 18px; overflow: hidden; }
.quantity-control button { width: 32px; border: 0; background: transparent; cursor: pointer; font-size: 18px; }
.quantity-control input { width: 38px; border: 0; background: transparent; text-align: center; appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button { appearance: none; }
.buy-button { width: 100%; height: 48px; margin-top: 15px; border: 0; color: #fff; background: var(--red); font-size: 16px; font-weight: 700; cursor: pointer; }
.buy-button:hover { background: #c90010; }
.share-button { width: 100%; height: 42px; margin-top: 10px; border: 0; background: #f5f5f5; cursor: pointer; }

.section-tabs { position: sticky; top: 73px; z-index: 40; display: flex; gap: 34px; margin-top: 40px; padding: 0 12px; background: #fff; border-bottom: 1px solid var(--line); }
.section-tabs a { position: relative; padding: 17px 0 15px; color: #555; font-weight: 700; }
.section-tabs a.active, .section-tabs a:hover { color: #111; }
.section-tabs a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: #111; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: start; }
.main-column { min-width: 0; }
.content-section { padding: 30px 12px; border-bottom: 1px solid var(--line); }
.content-section h2 { margin: 0 0 5px; font-size: 24px; }
.content-section h2 span { color: #666; font-weight: 400; }
.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.verified { color: #13874d; font-size: 12px; }
.rating-count { margin: 0 0 20px; color: #666; }
.review-summary { display: flex; gap: 55px; padding: 20px; background: #fafafa; }
.score { display: grid; align-content: center; min-width: 170px; }
.score strong { font-size: 42px; line-height: 1; }
.score small { margin-top: 7px; color: #777; }
.traits { flex: 1; display: grid; gap: 10px; max-width: 620px; }
.traits div { display: flex; justify-content: space-between; padding: 11px 13px; background: #fff; border-radius: 4px; }
.review-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.filter { padding: 8px 14px; border: 1px solid #d5d5d5; border-radius: 18px; background: #fff; cursor: pointer; }
.filter.active { color: #fff; background: #222; border-color: #222; }
.review-card { display: grid; grid-template-columns: 40px 1fr; gap: 13px; padding: 22px 0; border-top: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: #ff7b53; font-weight: 700; }
.avatar.purple { background: #7764d8; }
.review-meta { display: flex; justify-content: space-between; gap: 15px; }
.review-meta span, .review-variant { color: #888; font-size: 12px; }
.review-card p { max-width: 860px; }
.helpful { padding: 0; border: 0; color: #666; background: transparent; cursor: pointer; }
.outline-button, .muted-button { min-height: 38px; padding: 8px 20px; border: 1px solid #222; background: #fff; cursor: pointer; }

.carousel-arrows { display: flex; gap: 7px; }
.carousel-arrows button { width: 34px; height: 34px; border: 1px solid #ccc; border-radius: 50%; background: #fff; font-size: 22px; cursor: pointer; }
.product-carousel { display: grid; grid-auto-columns: minmax(150px, 1fr); grid-auto-flow: column; gap: 15px; margin-top: 18px; overflow: hidden; scroll-behavior: smooth; }
.related-card { min-width: 0; cursor: pointer; }
.related-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #f5f5f5; }
.related-card h3 { display: -webkit-box; min-height: 40px; margin: 9px 0 4px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 14px; font-weight: 400; line-height: 20px; }
.related-card strong { display: block; font-size: 16px; }
.related-card small { color: #777; }
.save-label { display: inline-block; margin-top: 5px; padding: 2px 5px; color: var(--red); background: #fff1f1; font-size: 11px; }

.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); }
.spec-grid div { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 15px; background: #fff; }
.spec-grid span { color: #777; }
.brand-panel { display: flex; align-items: center; gap: 20px; margin-top: 18px; padding: 25px; background: #f7f7f7; }
.brand-monogram, .store-logo { display: grid; place-items: center; flex: none; width: 80px; height: 58px; border-radius: 8px; color: #fff; background: #111; font-size: 22px; font-weight: 700; font-style: italic; }
.brand-panel h3 { margin: 0 0 4px; }
.brand-panel p { margin: 0; color: #666; }
.brand-panel .outline-button { margin-left: auto; }
.description-hero { position: relative; min-height: 520px; margin-top: 20px; padding: 55px; overflow: hidden; color: #fff; background: #080b11; }
.description-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #080b11 0%, rgba(8,11,17,.94) 38%, rgba(8,11,17,.18) 75%); pointer-events: none; }
.description-hero > *:not(img) { position: relative; z-index: 2; max-width: 44%; }
.description-hero img { position: absolute; inset: 0 0 0 auto; width: 76%; height: 100%; object-fit: cover; opacity: .78; }
.description-hero h3 { margin: 7px 0 15px; font-size: 42px; line-height: 1.1; }
.description-hero p { font-size: 16px; }
.description-hero .eyebrow { color: #b9a9ff; font-size: 12px; letter-spacing: 2px; }

.store-sidebar { position: sticky; top: 140px; padding-top: 30px; }
.store-card { display: grid; justify-items: center; padding: 24px 18px; border: 1px solid var(--line); text-align: center; }
.store-card h3 { margin: 12px 0; }
.store-card > div { display: grid; margin: 7px 0; }
.store-card > div span { color: #777; font-size: 11px; }
.store-card button { width: 100%; margin-top: 10px; }
.store-card .muted-button { border-color: transparent; background: #f1f1f1; }

footer { margin-top: 60px; padding: 42px max(24px, calc((100vw - 1450px) / 2)); color: #ddd; background: #202020; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-grid h3 { margin: 0 0 13px; color: #fff; font-size: 15px; }
.footer-grid a { display: block; margin: 6px 0; color: #bdbdbd; font-size: 12px; }
.footer-grid a:hover { color: #fff; }
.legal { margin-top: 35px; padding-top: 20px; border-top: 1px solid #444; color: #999; font-size: 11px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; max-width: calc(100% - 30px); padding: 11px 18px; transform: translate(-50%, 20px); border-radius: 3px; color: #fff; background: rgba(30,30,30,.96); opacity: 0; pointer-events: none; transition: .22s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1180px) {
  .product-shell { grid-template-columns: minmax(390px, .95fr) minmax(380px, 1.05fr); }
  .purchase-card { position: relative; top: auto; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 18px; }
  .seller-row { grid-column: span 2; }
  .quantity-block { grid-column: span 2; border-top: 0; }
  .buy-button, .share-button { align-self: end; margin: 0; }
  .security-copy { display: none; }
}

@media (max-width: 900px) {
  .site-header { gap: 9px; padding-inline: 16px; }
  .brand { min-width: auto; font-size: 23px; }
  .header-actions .icon-action:not(.cart-action) { display: none; }
  main { width: min(100% - 28px, 760px); }
  .product-shell { grid-template-columns: 1fr; }
  .gallery { max-width: 700px; }
  .product-info { grid-row: 2; }
  .purchase-card { grid-row: 3; grid-column: auto; grid-template-columns: repeat(2, 1fr); }
  .section-tabs { gap: 25px; overflow-x: auto; }
  .section-tabs a { flex: none; }
  .content-grid { grid-template-columns: 1fr; }
  .store-sidebar { position: relative; top: auto; padding: 0 12px; }
  .store-card { grid-template-columns: 80px 1fr 1fr 1fr; justify-items: start; align-items: center; gap: 12px; text-align: left; }
  .store-card h3 { grid-column: span 3; }
  .store-card button { width: auto; margin: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .site-header { height: auto; flex-wrap: wrap; }
  .brand { order: 1; }
  .header-actions { order: 2; }
  .search { order: 3; flex-basis: 100%; height: 38px; }
  .search button { width: 50px; font-size: 22px; }
  .breadcrumbs { padding-block: 10px; overflow: hidden; white-space: nowrap; }
  .gallery { grid-template-columns: 1fr; }
  .hero-media { grid-row: 1; }
  .thumb-list { grid-row: 2; flex-direction: row; max-height: none; overflow-x: auto; }
  .thumb { flex: none; width: 54px; height: 54px; }
  h1 { font-size: 18px; }
  .price-block strong { font-size: 29px; }
  .purchase-card { display: block; }
  .purchase-card > * { margin-top: 10px; }
  .quantity-block { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); }
  .section-tabs { top: 111px; margin-top: 25px; padding-inline: 0; }
  .review-summary { display: grid; gap: 20px; }
  .review-card { grid-template-columns: 32px 1fr; }
  .review-meta { display: grid; gap: 2px; }
  .product-carousel { grid-auto-columns: 48%; }
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid div { grid-template-columns: 1.25fr 1fr; }
  .brand-panel { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
  .brand-panel .outline-button { margin: 0; }
  .description-hero { min-height: 440px; padding: 30px 22px; }
  .description-hero::after { background: linear-gradient(180deg, #080b11 0%, rgba(8,11,17,.8) 48%, rgba(8,11,17,.2)); }
  .description-hero img { width: 100%; opacity: .62; }
  .description-hero > *:not(img) { max-width: 100%; }
  .description-hero h3 { font-size: 34px; }
  .store-card { display: grid; grid-template-columns: 70px 1fr; }
  .store-card h3 { grid-column: auto; }
  .store-card > div, .store-card button { grid-column: span 2; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

