/*
 * Dhaka product page: the swing tag. The photos are framed in black like a poster in a shop
 * window; the details hang beside them as a big swing tag (a punched hole with its string), the
 * name in poster letters, the price shot on a yellow price-gun label. Chips, the quantity and the
 * buttons are the theme's street pieces; the delivery and seller boxes are stamped slips, the
 * description a folded leaflet. On phones, the sticky bar is a black strip at the bottom.
 */
.product .gallery-stage {
  border: 3px solid var(--dk-asphalt);
  border-radius: 8px;
  background: var(--dk-paper);
  box-shadow: 6px 6px 0 var(--dk-asphalt);
}
.product .gallery-thumb {
  border: 2px solid var(--dk-asphalt);
  border-radius: 4px;
  opacity: 0.75;
}
.product .gallery-thumb[aria-current='true'] {
  opacity: 1;
  box-shadow: 3px 3px 0 var(--accent);
  outline: none;
}
.product .gallery-nav {
  border: 2px solid var(--dk-asphalt);
  border-radius: 6px;
  background: #fff;
  color: var(--dk-asphalt);
}
.product :is(.gallery-count, .gallery-zoom-hint) {
  border-radius: 4px;
  background: var(--dk-asphalt);
  color: #fff;
  font-family: var(--dk-head);
}

/* ── The swing tag ── */
.product .details {
  position: relative;
  gap: 1.1rem;
  margin-top: 1.25rem;
  padding: 2.6rem clamp(1.1rem, 3vw, 1.9rem) clamp(1.3rem, 3vw, 1.9rem);
  border: 3px solid var(--dk-asphalt);
  border-radius: 10px 10px 8px 8px;
  background: #fffdf8;
  box-shadow: 8px 8px 0 var(--accent);
}
/* The punched hole and the string it hangs by. */
.product .details::before {
  content: '';
  position: absolute;
  top: 0.75rem;
  left: 50%;
  width: 1.1rem;
  height: 1.1rem;
  translate: -50% 0;
  border: 3px solid var(--dk-asphalt);
  border-radius: 50%;
  background: var(--bg);
}
.product .details::after {
  content: '';
  position: absolute;
  top: -1.4rem;
  left: calc(50% - 1px);
  width: 2px;
  height: 2.3rem;
  background: var(--dk-asphalt);
  rotate: 12deg;
  transform-origin: 50% 100%;
}
@media (min-width: 960px) {
  .product .details {
    margin-top: 0.75rem;
  }
}
.product .brand-line {
  margin: 0;
  color: var(--accent-ink);
  font-family: var(--dk-head);
  letter-spacing: 0.1em;
}
.product .brand-line:lang(bn) {
  letter-spacing: 0;
}
.product .details h1 {
  font-family: var(--dk-head);
  font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--dk-asphalt);
}
.product .details h1:lang(en) {
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.product .rating-link,
.product .qa-link {
  font-family: var(--dk-head);
}
/* The price on a price-gun label. */
.product .price-box {
  justify-self: start;
  gap: 0.3rem;
  padding: 0.7rem 1.2rem 0.6rem 2.1rem;
  border: 2px solid var(--dk-asphalt);
  border-radius: 4px 14px 14px 4px;
  background:
    radial-gradient(
        circle,
        var(--bg) 0 0.28rem,
        var(--dk-asphalt) 0.3rem 0.42rem,
        transparent 0.44rem
      )
      0.55rem 50% / 0.9rem 0.9rem no-repeat,
    var(--dk-yellow);
  rotate: -1.5deg;
}
.product .price-box .price {
  font-family: var(--dk-head);
  font-size: clamp(1.9rem, 1.6rem + 1.4vw, 2.5rem);
  font-weight: 800;
  color: var(--dk-asphalt);
  letter-spacing: 0;
}
.product .price-box .price s {
  color: color-mix(in oklab, var(--dk-asphalt) 60%, var(--dk-yellow));
}
.product .price-box .sale-tag {
  padding: 0.1rem 0.45rem;
  border: 2px solid var(--dk-asphalt);
  border-radius: 4px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--dk-sticker);
  font-size: 0.42em;
  rotate: 6deg;
}
.product .price-box.is-flash {
  background:
    radial-gradient(
        circle,
        var(--bg) 0 0.28rem,
        var(--dk-asphalt) 0.3rem 0.42rem,
        transparent 0.44rem
      )
      0.55rem 50% / 0.9rem 0.9rem no-repeat,
    #ffe57a;
}
.product .flash-banner {
  border: 2px solid var(--dk-asphalt);
  border-radius: 6px;
  background:
    repeating-linear-gradient(-45deg, var(--dk-yellow) 0 0.6rem, var(--dk-asphalt) 0.6rem 1.2rem) 0
      0 / 100% 0.45rem no-repeat,
    #fff;
  padding-top: 0.95rem;
  font-family: var(--dk-head);
}
.product .option-label {
  font-family: var(--dk-head);
  font-weight: 600;
}
.product .qty-label {
  font-family: var(--dk-head);
  font-weight: 700;
  color: var(--dk-asphalt);
}
main .product .qty {
  border: 2px solid var(--dk-asphalt);
  border-radius: 6px;
  background: #fff;
}
main .product .qty button {
  border-radius: 0;
}
main .product .qty button:hover {
  background: var(--dk-yellow);
}
main .product .qty input {
  font-family: var(--dk-head);
  font-weight: 800;
}
main .product .qty:focus-within {
  border-color: var(--dk-asphalt);
  box-shadow: 3px 3px 0 var(--dk-yellow);
}
.product .buy-pair {
  gap: 0.85rem;
}
.product .chat-order a {
  border: 2px solid var(--dk-asphalt);
  border-radius: 6px;
  font-family: var(--dk-head);
  box-shadow: 3px 3px 0 var(--dk-asphalt);
}
.product .offer-chips li {
  border: 2px dashed var(--accent);
  border-radius: 6px;
  background: #fff;
}
.product .offer-chip-tag {
  border-radius: 3px;
  font-family: var(--dk-head);
}
/* Delivery and the seller: stamped slips. */
.product .service-box,
.product .shop-box {
  border: 2px dashed var(--dk-asphalt);
  border-radius: 6px;
  background: #fff;
}
.product .service-title {
  font-family: var(--dk-head);
  font-weight: 700;
  color: var(--dk-asphalt);
}
.product .shop-box-logo {
  border: 2px solid var(--dk-asphalt);
  border-radius: 50%;
  background: var(--dk-yellow);
  color: var(--dk-asphalt);
}
.product .shop-box-visit {
  border: 2px solid var(--dk-asphalt);
  border-radius: 6px;
  color: var(--dk-asphalt);
  font-family: var(--dk-head);
}
.product .shop-box-visit:hover {
  background: var(--dk-yellow);
}
.product .shop-box-links {
  border-radius: 4px;
}
/* The description: a folded leaflet. */
.product .description-box {
  border-top: 2px solid var(--dk-asphalt);
}
.product .description-box summary {
  font-family: var(--dk-head);
  font-size: 1.15rem;
  font-weight: 800;
}
.product .description {
  line-height: 1.8;
}
@media (prefers-reduced-motion: reduce) {
  .product .price-box {
    rotate: none;
  }
}

/* Related pieces and reviews under the tag. */
.product ~ .section-title,
main .section-title {
  font-family: var(--dk-head);
}
.product-row > .section-title,
.reviews > .section-title {
  display: inline-block;
  padding: 0.25rem 0.9rem 0.15rem;
  background: var(--dk-asphalt);
  color: #fff;
  rotate: -1deg;
}
.product-row > .section-title::before,
.reviews > .section-title::before {
  content: none;
}

/* The phone's sticky bar: a black strip. */
@media (max-width: 959px) {
  .sticky-buy {
    border-top: 3px solid var(--dk-asphalt);
    background: var(--dk-asphalt);
    color: #fff;
    backdrop-filter: none;
    box-shadow: 0 -4px 0 var(--dk-yellow);
  }
  .sticky-buy-title {
    color: #e7e1d8;
    font-family: var(--dk-head);
  }
  .sticky-buy-price {
    color: var(--dk-yellow) !important;
    font-family: var(--dk-head);
    font-weight: 800;
  }
  .sticky-buy .buy,
  .sticky-buy .buy-now {
    border-color: #fff;
    box-shadow: 3px 3px 0 var(--dk-yellow);
  }
  .sticky-buy .buy-now {
    background: #fff;
    color: var(--dk-asphalt);
  }
}
