/* Harborwright shop — extends main site tokens via styles.css */

body.shop-page {
  padding-top: 0;
}

.top.shop-top {
  mix-blend-mode: normal;
  background: rgba(244, 246, 242, 0.96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
  pointer-events: auto;
}

.top.shop-top .nav-cta {
  border-color: rgba(12, 20, 25, 0.35);
}

.top.shop-top .nav-cta:hover {
  background: var(--ink);
  color: var(--foam);
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(12, 20, 25, 0.28);
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  cursor: pointer;
}

.cart-btn:hover {
  background: var(--ink);
  color: var(--foam);
}

.cart-count {
  min-width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--copper);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 0.35rem;
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

/* Hero strip */
.shop-hero {
  padding: clamp(5.5rem, 12vw, 7rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 3.5rem);
  background:
    linear-gradient(165deg, var(--brine-deep) 0%, #2a524e 55%, var(--brine) 100%);
  color: var(--foam);
}

.shop-hero-inner {
  max-width: 68rem;
  margin: 0 auto;
}

.shop-hero .eyebrow {
  color: var(--sand);
}

.merch-blurb {
  margin-top: 1.5rem;
  max-width: 36rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(244, 246, 242, 0.22);
  background: rgba(12, 28, 26, 0.35);
}

.merch-blurb .eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper);
}

.merch-blurb p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(244, 246, 242, 0.88);
}

.merch-blurb a {
  color: var(--sand);
  text-underline-offset: 0.15em;
}

.merch-blurb a:hover {
  color: var(--foam);
}

.shop-hero h1 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 12ch;
  margin-bottom: 0.85rem;
}

.shop-hero .lede {
  opacity: 0.88;
  max-width: 36ch;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.shop-flow,
.merch-blurb,
.price-caveat {
  display: none;
}

.shop-flow {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: rgba(232, 235, 230, 0.85);
  margin-bottom: 1.5rem;
}

.shop-flow li strong {
  color: var(--sand);
  font-weight: 600;
}

.shop-hero .cta-row .btn.ghost {
  color: var(--foam);
  border-color: rgba(244, 246, 242, 0.45);
}

.stripe-mode-badge {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1e3f3c;
  background: rgba(184, 92, 56, 0.18);
  border: 1px solid rgba(184, 92, 56, 0.45);
}

.price-caveat {
  font-size: 0.85rem;
  opacity: 0.7;
  max-width: 48ch;
}

/* Filters */
.shop-toolbar {
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  background: var(--foam);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 3.5rem;
  z-index: 30;
}

.shop-toolbar-inner {
  max-width: 68rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.filter-chip {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-chip:hover {
  border-color: var(--brine);
  color: var(--ink);
}

.filter-chip.active {
  background: var(--brine-deep);
  color: var(--foam);
  border-color: var(--brine-deep);
}

/* Catalog grid */
.shop-catalog {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem);
  background: var(--foam);
}

.catalog-inner {
  max-width: 68rem;
  margin: 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem 1.25rem;
  background: transparent;
  border: 0;
}

@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 0.75rem;
  }
}

.product-card {
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  cursor: pointer;
}

.product-thumb {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

.product-thumb:active {
  cursor: pointer;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  padding: 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-thumb img {
  transform: scale(1.04);
}

.rotate-hint {
  display: none;
}

.product-card .cat-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.15rem;
}

.product-card h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--ink);
}

.product-card .desc {
  display: none;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.product-meta .badge {
  color: var(--brine-deep);
  font-weight: 500;
}

.product-meta .warn {
  color: var(--copper);
  font-weight: 600;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem;
  padding-top: 0;
  border-top: 0;
}

.product-price {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.product-price small {
  display: none;
}

.product-card .btn.sm {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-card:hover .btn.sm,
.product-card:focus-within .btn.sm {
  opacity: 1;
}

@media (max-width: 720px) {
  .product-card .btn.sm {
    opacity: 1;
  }
}

.btn.sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
}

.btn.ink {
  background: var(--brine-deep);
  color: var(--foam);
}

.btn.ink:hover {
  background: var(--ink);
}

.catalog-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ink-soft);
}

/* Honest notes band */
.shop-notes {
  background: #e8ebe6;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}

.shop-notes-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.shop-notes h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  max-width: 18ch;
  margin-bottom: 1rem;
}

.shop-notes ul {
  list-style: none;
  border-top: 1px solid var(--line);
}

.shop-notes li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.shop-notes li strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  display: block;
  margin-bottom: 0.2rem;
}

/* Cart drawer */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 25, 0.45);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(26rem, 100%);
  height: 100%;
  background: var(--foam);
  z-index: 60;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -8px 0 32px rgba(12, 20, 25, 0.12);
}

.cart-drawer.open {
  transform: none;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  max-width: none;
  margin: 0;
}

.icon-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  padding: 0.25rem;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.35rem;
}

.cart-empty {
  color: var(--ink-soft);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.95rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-line-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
}

.cart-line-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  grid-column: 1;
}

.cart-line-price {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: right;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  grid-column: 1 / -1;
  margin-top: 0.35rem;
}

.qty-row button {
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-weight: 600;
}

.qty-row button:hover {
  border-color: var(--brine);
}

.qty-row .remove {
  margin-left: auto;
  border: none;
  width: auto;
  height: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cart-foot {
  padding: 1.25rem 1.35rem;
  border-top: 1px solid var(--line);
  background: #e8ebe6;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.cart-foot .hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

/* Checkout panel (in drawer) */
.checkout-panel {
  display: none;
}

.checkout-panel.active {
  display: block;
}

.checkout-panel label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brine-deep);
  margin-bottom: 0.75rem;
}

.checkout-panel input,
.checkout-panel textarea,
.checkout-panel select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.checkout-panel input:focus,
.checkout-panel textarea:focus,
.checkout-panel select:focus {
  outline: 2px solid var(--copper);
  outline-offset: 1px;
}

.checkout-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn.ghost-dark {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(12, 20, 25, 0.35);
}

.btn.ghost-dark:hover {
  background: var(--ink);
  color: var(--foam);
}

.orders-tools {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.orders-tools button {
  font-size: 0.75rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--brine-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  padding: 0;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  background: var(--ink);
  color: var(--foam);
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  max-width: min(90vw, 28rem);
  text-align: center;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* —— Product detail page (Nike-style layout, Harborwright brand) —— */
.pdp-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--foam);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.pdp-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pdp {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.pdp-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: rgba(244, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.pdp-back {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.35rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pdp-back:hover {
  color: var(--brine);
}

.pdp-topbar .cart-btn-mini {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid rgba(12, 20, 25, 0.28);
  color: var(--ink);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.pdp-topbar .cart-btn-mini:hover {
  background: var(--ink);
  color: var(--foam);
}

.pdp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 0;
  max-width: 78rem;
  margin: 0 auto;
  min-height: calc(100vh - 3.5rem);
  padding-bottom: 5.5rem;
}

.pdp-gallery {
  background:
    radial-gradient(ellipse at 40% 30%, rgba(184, 92, 56, 0.06), transparent 55%),
    linear-gradient(165deg, #e6ebe4 0%, var(--foam) 70%);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.pdp-hero {
  width: 100%;
  max-width: 36rem;
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.pdp-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
}

.pdp-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 36rem;
  width: 100%;
}

.pdp-thumbs button {
  width: 4.25rem;
  height: 4.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  background: var(--foam);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pdp-thumbs button:hover {
  border-color: var(--brine);
}

.pdp-thumbs button.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.pdp-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pdp-info {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.35rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 28rem;
}

.pdp-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brine);
  margin: 0;
}

.pdp-info h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin: 0;
}

.pdp-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.pdp-price small {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.pdp-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0;
  max-width: 36ch;
}

.pdp-ship {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}

.pdp-ship strong {
  color: var(--ink);
  font-weight: 600;
}

.pdp-size-label,
.pdp-qty-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brine-deep);
  margin: 0 0 0.55rem;
}

.pdp-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pdp-sizes button {
  min-width: 3rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pdp-sizes button:hover {
  border-color: var(--ink);
}

.pdp-sizes button.active {
  background: var(--ink);
  color: var(--foam);
  border-color: var(--ink);
}

.pdp-sizes button.need-size {
  animation: pdp-shake 0.35s ease;
}

@keyframes pdp-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.pdp-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
}

.pdp-qty button {
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  background: transparent;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.pdp-qty button:hover {
  background: #e8ebe6;
}

.pdp-qty span {
  min-width: 2.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.pdp-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.pdp-actions .btn.wide {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.pdp-meta {
  list-style: none;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0.5rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.pdp-meta li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.pdp-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.pdp-related {
  grid-column: 1 / -1;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  background: #eef1ec;
}

.pdp-related h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  max-width: none;
}

.pdp-related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 68rem;
}

.pdp-related-card {
  background: var(--foam);
  padding: 0;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  font: inherit;
  color: inherit;
}

.pdp-related-card:hover .pdp-related-name {
  color: var(--brine);
}

.pdp-related-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: linear-gradient(160deg, #e8ece6, var(--foam));
  padding: 0.75rem;
}

.pdp-related-body {
  padding: 0.85rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pdp-related-cat {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brine);
}

.pdp-related-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  transition: color 0.2s;
}

.pdp-related-price {
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Sticky mobile CTA */
.pdp-sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 56;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
  background: rgba(244, 246, 242, 0.96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(12, 20, 25, 0.08);
  gap: 0.75rem;
  align-items: center;
}

.pdp-sticky-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  flex: 1;
  min-width: 0;
}

.pdp-sticky-price small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.pdp-sticky .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .pdp-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 5.75rem;
  }

  .pdp-gallery {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 1rem 1.5rem;
  }

  .pdp-hero {
    aspect-ratio: 1 / 0.95;
    max-width: 22rem;
  }

  .pdp-info {
    max-width: none;
    padding: 1.75rem 1.25rem 2rem;
  }

  .pdp-info h1 {
    max-width: none;
  }

  .pdp-actions {
    display: none;
  }

  .pdp-sticky {
    display: flex;
  }

  .pdp-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .pdp-thumbs button {
    width: 3.5rem;
    height: 3.5rem;
  }
}

/* Rotate / turntable overlay */
.rotate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 20, 25, 0.72);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.rotate-overlay.open {
  opacity: 1;
  visibility: visible;
}

.rotate-panel {
  background: var(--foam);
  width: min(36rem, 100%);
  padding: 1.5rem 1.5rem 1.35rem;
  position: relative;
  box-shadow: 0 24px 60px rgba(12, 20, 25, 0.35);
}

.rotate-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.rotate-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brine);
  margin: 0 0 0.35rem;
}

.rotate-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 2rem 1rem 0;
  line-height: 1.25;
}

.rotate-stage-wrap {
  perspective: 1100px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(184, 92, 56, 0.1), transparent 55%),
    linear-gradient(165deg, #e4e9e3, var(--foam));
  border: 1px solid var(--line);
  cursor: grab;
  user-select: none;
  touch-action: none;
  padding: 0.85rem 0.75rem 0.65rem;
}

.rotate-stage-wrap:active {
  cursor: grabbing;
}

.rotate-stage {
  --rx: 6deg;
  --ry: -8deg;
  width: min(240px, 72%);
  height: 230px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.08s linear;
}

.rotate-stage-tilt {
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}

.rotate-stage-cycle {
  transform: none;
  width: min(280px, 88%);
  height: 240px;
}

.rotate-photo-card {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--foam);
  box-shadow:
    0 14px 36px rgba(30, 63, 60, 0.22),
    0 2px 0 rgba(255, 255, 255, 0.6) inset;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rotate-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  padding: 0.5rem;
}

.rotate-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.rotate-dots button {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(30, 63, 60, 0.28);
  cursor: pointer;
}

.rotate-dots button.active {
  background: var(--brine);
  transform: scale(1.15);
}

.rotate-help {
  margin: 0.85rem 0 1rem;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.rotate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .shop-toolbar {
    top: 3.25rem;
  }

  .top.shop-top nav a:not(.nav-cta):not([aria-current]) {
    display: none;
  }

  .top.shop-top .cart-btn {
    display: inline-flex;
  }

  .rotate-stage-wrap {
    height: 260px;
  }
}
