:root {
  --red: #ec1a2d;
  --ink: #111;
  --muted: #6e6e6e;
  --line: #dedede;
  --soft: #f7f7f7;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { background: #fff; }
body { margin: 0; color: var(--ink); font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.uniqlo-page { min-height: 100vh; background: #fff; }
.delivery-bar { height: 34px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; background: #111; font-size: 12px; letter-spacing: .02em; }
.delivery-bar strong { color: #fff; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #ddd; background: rgba(255,255,255,.97); }
.nav-inner { max-width: var(--max); min-height: 72px; margin: 0 auto; padding: 0 18px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-size: 24px; font-weight: 900; letter-spacing: -.07em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--red); line-height: .85; font-size: 16px; font-weight: 900; }
.brand-mark span { display: block; text-align: center; }
.main-nav { display: flex; align-items: center; gap: 18px; flex: 1; font-size: 13px; font-weight: 700; }
.main-nav a:hover { color: var(--red); }
.nav-actions { display: flex; align-items: center; gap: 14px; color: #222; }
.nav-action { border: 0; background: none; padding: 5px; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; }
.nav-action .icon { font-size: 19px; }
.mobile-nav { display: none; }
.breadcrumb { max-width: var(--max); margin: 0 auto; padding: 19px 18px 12px; color: #777; font-size: 12px; }
.product-layout { max-width: var(--max); margin: 0 auto; padding: 0 18px 64px; display: grid; grid-template-columns: minmax(0, 1.36fr) minmax(360px, .86fr); gap: 42px; align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery-card { margin: 0; background: #f3f3f3; overflow: hidden; aspect-ratio: 3 / 4; }
.gallery-card img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .3s ease; }
.gallery-card:hover img { transform: scale(1.025); }
.product-panel { position: sticky; top: 96px; }
.product-kicker { margin: 2px 0 8px; color: #777; font-size: 12px; letter-spacing: .08em; }
.product-title { margin: 0; font-size: 24px; line-height: 1.35; font-weight: 700; }
.product-subtitle { margin: 8px 0 17px; color: #555; line-height: 1.55; }
.rating-row { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 13px; }
.stars { color: #e5a300; letter-spacing: 2px; }
.reviews { color: #555; text-decoration: underline; }
.price-row { display: flex; align-items: baseline; gap: 11px; margin: 0 0 23px; }
.sale-price { color: var(--red); font-size: 26px; font-weight: 700; }
.original-price { color: #777; font-size: 13px; text-decoration: line-through; }
.sale-label { padding: 4px 8px; color: #fff; background: var(--red); font-size: 11px; font-weight: 700; }
.option-block { padding: 18px 0; border-top: 1px solid var(--line); }
.option-head { display: flex; justify-content: space-between; margin-bottom: 12px; font-weight: 700; }
.option-note { color: #777; font-size: 12px; font-weight: 400; }
.color-row { display: flex; gap: 10px; }
.color-option { width: 52px; height: 52px; padding: 3px; border: 1px solid #d6d6d6; background: #fff; }
.color-option.is-selected { border: 2px solid #111; }
.color-option img { width: 100%; height: 100%; display: block; object-fit: cover; }
.size-row { display: flex; flex-wrap: wrap; gap: 7px; }
.size-option { min-width: 47px; height: 38px; padding: 0 12px; border: 1px solid #999; background: #fff; }
.size-option.is-selected { border: 2px solid #111; font-weight: 700; }
.delivery-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.delivery-card { min-height: 68px; padding: 10px; border: 1px solid var(--line); font-size: 12px; line-height: 1.4; }
.delivery-card strong { display: block; margin-bottom: 4px; font-size: 13px; }
.purchase-row { display: grid; grid-template-columns: 108px 1fr; gap: 10px; margin-top: 20px; }
.quantity { height: 52px; display: grid; grid-template-columns: 31px 1fr 31px; border: 1px solid #aaa; }
.quantity button { border: 0; background: #fff; font-size: 19px; }
.quantity input { width: 100%; border: 0; text-align: center; font-weight: 700; outline: 0; }
.add-to-cart { height: 52px; color: #fff; border: 0; background: #111; font-size: 16px; font-weight: 700; }
.add-to-cart:hover { background: #333; }
.secondary-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.secondary-actions button { height: 42px; border: 1px solid #111; background: #fff; font-weight: 700; }
.secondary-actions button:hover { background: #f4f4f4; }
.service-note { margin: 13px 0 0; color: #666; font-size: 12px; line-height: 1.6; }
.product-sections { max-width: var(--max); margin: 0 auto; padding: 0 18px 80px; }
.section-title { margin: 0; padding: 21px 0; border-top: 1px solid #ddd; font-size: 20px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-card { margin: 0; background: #f5f5f5; }
.feature-card img { width: 100%; display: block; }
.feature-card figcaption { padding: 15px 16px 18px; font-weight: 700; line-height: 1.6; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #ddd; }
.detail-item { padding: 18px 14px; border-bottom: 1px solid #ddd; }
.detail-item:nth-child(odd) { border-right: 1px solid #ddd; }
.detail-item strong { display: block; margin-bottom: 7px; font-size: 12px; color: #555; }
.detail-item span { line-height: 1.65; }
.accordion { border-top: 1px solid #ddd; }
.accordion-item { border-bottom: 1px solid #ddd; }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 0; border: 0; background: #fff; font-weight: 700; text-align: left; }
.accordion-trigger .plus { font-size: 22px; font-weight: 400; }
.accordion-content { display: none; padding: 0 0 20px; color: #555; line-height: 1.75; }
.accordion-item.is-open .accordion-content { display: block; }
.footer { padding: 34px 18px; border-top: 1px solid #ddd; color: #666; text-align: center; font-size: 12px; }
.floating-cart { position: fixed; right: 20px; bottom: 20px; z-index: 10; display: none; }

@media (max-width: 900px) {
  .nav-inner { gap: 18px; }
  .main-nav { gap: 11px; }
  .nav-action span:not(.icon) { display: none; }
  .product-layout { grid-template-columns: 1fr; gap: 28px; }
  .product-panel { position: static; }
}
@media (max-width: 640px) {
  .delivery-bar { height: 31px; font-size: 11px; }
  .nav-inner { min-height: 59px; padding: 0 14px; justify-content: space-between; }
  .brand { font-size: 20px; }
  .brand-mark { width: 34px; height: 34px; font-size: 13px; }
  .main-nav { display: none; }
  .nav-actions { gap: 5px; }
  .mobile-nav { display: flex; gap: 6px; padding: 0 14px 11px; overflow-x: auto; white-space: nowrap; font-size: 12px; font-weight: 700; }
  .mobile-nav a { padding-right: 12px; border-right: 1px solid #ddd; }
  .breadcrumb { padding: 14px 14px 10px; }
  .product-layout, .product-sections { padding-left: 14px; padding-right: 14px; }
  .gallery { gap: 7px; }
  .product-title { font-size: 21px; }
  .delivery-list { grid-template-columns: 1fr; }
  .purchase-row { grid-template-columns: 96px 1fr; }
  .feature-grid, .detail-list { grid-template-columns: 1fr; }
  .detail-item:nth-child(odd) { border-right: 0; }
  .floating-cart { display: block; left: 14px; right: 14px; bottom: 12px; }
  .floating-cart button { width: 100%; height: 48px; color: #fff; border: 0; background: #111; font-weight: 700; }
  .footer { padding-bottom: 78px; }
}
