.breadcrumb-band {
  background: #e8e8e6;
  border-bottom: 1px solid #d8d6d0;
}

.breadcrumb-inner {
  display: grid;
  min-height: 166px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.breadcrumb-inner .eyebrow { margin-bottom: 5px; }
.breadcrumb-inner h1 { margin: 0; font-size: 29px; line-height: 1.2; }
.breadcrumb-inner nav { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.breadcrumb-inner nav svg { width: 14px; height: 14px; }
.breadcrumb-inner nav a:hover { color: var(--amber-dark); }

.detail-loading,
.detail-not-found {
  display: grid;
  min-height: 480px;
  place-items: center;
  align-content: center;
  gap: 18px;
  text-align: center;
}

.detail-loading svg { width: 34px; height: 34px; animation: detail-spin 1s linear infinite; }
.detail-not-found > svg { width: 52px; height: 52px; color: var(--muted); }
.detail-not-found h2 { margin: 0; }
@keyframes detail-spin { to { transform: rotate(360deg); } }

.product-overview { background: #fff; padding: 78px 0 72px; }
.detail-gallery { display: grid; grid-template-columns: repeat(var(--gallery-columns, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.gallery-view { position: relative; min-width: 0; aspect-ratio: 1 / 0.82; overflow: hidden; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #ece9e2; padding: 0; }
.gallery-view::after { position: absolute; inset: 10px; border: 1px solid transparent; content: ''; pointer-events: none; transition: border-color 160ms ease; }
.gallery-view:hover::after,
.gallery-view.active::after { border-color: var(--amber); }
.gallery-view img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 180ms ease; }
.gallery-view:hover img { transform: scale(1.03); }
.product-image-caption { max-width: 920px; margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }

.product-summary { display: grid; max-width: 720px; justify-items: center; margin-top: 42px; text-align: center; }
.product-summary h2 { max-width: 660px; margin: 0; font-size: 32px; line-height: 1.16; text-wrap: balance; }
.product-lead { max-width: 650px; margin: 18px 0 0; color: var(--muted); }
.detail-price-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 10px 14px; margin-top: 18px; }
.detail-price-row strong { color: var(--red); font-size: 25px; }
.detail-price-row del { color: var(--muted); font-size: 14px; }
.detail-stock { flex-basis: 100%; color: var(--green); font-size: 13px; }
.detail-stock.low { color: var(--red); }

.purchase-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: center; gap: 10px; margin-top: 24px; }
.quantity-picker { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: left; }
.quantity-picker > div { display: grid; grid-template-columns: 40px 52px 40px; min-height: 46px; border: 1px solid var(--line); background: white; }
.quantity-picker button { display: grid; place-items: center; border: 0; background: transparent; }
.quantity-picker button:first-child { border-right: 1px solid var(--line); }
.quantity-picker button:last-child { border-left: 1px solid var(--line); }
.quantity-picker button:hover { background: var(--paper); }
.quantity-picker svg { width: 15px; height: 15px; }
.quantity-picker output { display: grid; place-items: center; color: var(--ink); font-weight: 800; }
.detail-add { min-width: 184px; }

.detail-service-list { display: grid; width: min(100%, 560px); gap: 10px; margin-top: 28px; border-block: 1px solid var(--line); padding: 18px 0; text-align: left; }
.detail-service-list > div { display: flex; align-items: center; gap: 12px; }
.detail-service-list svg { width: 19px; height: 19px; color: var(--amber-dark); }
.detail-service-list span { font-size: 14px; }

.detail-information { background: var(--paper); padding: 74px 0; }
.detail-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid #c9c5bc; scrollbar-width: none; }
.detail-tabs::-webkit-scrollbar { display: none; }
.detail-tabs button { min-height: 48px; flex: 0 0 auto; border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 0 22px; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.detail-tabs button.active { border-color: var(--amber); color: var(--amber-dark); }
.detail-panel { min-height: 330px; border: 1px solid var(--line); border-top: 0; background: #fff; padding: 38px; }
.detail-panel h3 { margin: 0 0 18px; font-size: 20px; }
.detail-panel > p { max-width: 850px; margin: 0 0 16px; color: #494640; line-height: 1.85; }
.detail-empty { place-items: center; align-content: center; text-align: center; }
.detail-empty:not([hidden]) { display: grid; }
.detail-empty svg { width: 34px; height: 34px; color: var(--muted); }
.detail-empty h3 { margin: 14px 0 4px; }
.detail-empty p { color: var(--muted); }

.specification-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.specification-grid > div { display: grid; grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specification-grid dt,
.specification-grid dd { margin: 0; padding: 14px 16px; overflow-wrap: anywhere; }
.specification-grid dt { background: #f0eee8; color: var(--muted); font-size: 13px; font-weight: 800; }
.specification-grid dd { font-size: 14px; }

.shipping-panel:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
.shipping-panel > div { max-width: 470px; }
.shipping-panel svg { width: 30px; height: 30px; margin-bottom: 14px; color: var(--amber-dark); }
.shipping-panel p { color: var(--muted); line-height: 1.75; }
.detail-return { padding: 0 0 74px; }
.detail-return a { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.detail-return svg { width: 18px; }
.detail-return a:hover { color: var(--amber-dark); }

@media (max-width: 980px) {
  .product-header-main { grid-template-columns: auto 1fr; }
  .product-header-main .search { grid-column: 1 / -1; order: 3; }
  .product-header-main .header-actions { justify-self: end; }
  .detail-gallery { grid-template-columns: repeat(var(--gallery-columns-mobile, 2), minmax(0, 1fr)); }
  .specification-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .product-header-main { grid-template-columns: minmax(0, 1fr) auto; }
  .product-header-main .brand { min-width: 0; }
  .breadcrumb-inner { min-height: 142px; }
  .breadcrumb-inner h1 { font-size: 24px; }
  .breadcrumb-inner nav { max-width: 100%; overflow: hidden; }
  .breadcrumb-inner nav span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .product-overview { padding: 42px 0 52px; }
  .detail-gallery { width: 100%; grid-template-columns: repeat(var(--gallery-columns-mobile, 2), minmax(0, 1fr)); }
  .gallery-view { aspect-ratio: 1 / 0.92; }
  .product-summary { margin-top: 34px; }
  .product-summary h2 { font-size: 26px; }
  .purchase-row { width: 100%; align-items: stretch; }
  .quantity-picker { width: 100%; justify-items: center; text-align: center; }
  .detail-add,
  .purchase-row > .button { width: 100%; }
  .detail-information { padding: 52px 0; }
  .detail-tabs { width: 100%; padding-inline: 12px; }
  .detail-panel { width: 100%; min-height: 300px; padding: 26px 18px; }
  .specification-grid > div { grid-template-columns: minmax(108px, 0.8fr) minmax(0, 1.2fr); }
  .specification-grid dt,
  .specification-grid dd { padding: 12px; }
  .shipping-panel:not([hidden]) { grid-template-columns: 1fr; gap: 34px; }
  .detail-return { padding: 0 12px 52px; }
}
