/* ==========================================================================
   ROYAL-ONE — LIGHT & CLEAN PRODUCT PAGE STYLES (TSG Brands LLC)
   ========================================================================== */

/* --- 0. Shared Section Scaffolding --- */
.us-product-wrapper,
.us-p-wrapper {
  background: var(--bg);
  color: var(--text);
  width: 100%;
  overflow-x: hidden;
}

/* --- 1. Product Hero (balanced 2-column) --- */
.us-p-hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 36px var(--gutter) 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
  box-sizing: border-box;
}
@media (max-width: 900px) {
  .us-p-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 20px 16px 40px;
  }
}

/* --- 2. Left Column: Gallery --- */
.us-p-gallery-col {
  width: 100%;
  min-width: 0;
  position: sticky;
  top: 90px;
}
@media (max-width: 900px) {
  .us-p-gallery-col {
    position: static;
  }
}

.us-p-main-img-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  /* No inner padding: the photo fills the frame to the rounded edge. */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-sizing: border-box;
}
.us-p-main-img-box img {
  /* height:100%, not auto — the box is a 1:1 frame via aspect-ratio, so an
     auto height would leave a gap under any landscape photo. cover fills
     the frame and crops the overflow rather than letterboxing it. */
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

/* Thumbnail carousel row with circular arrows */
.us-p-thumb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.us-thumb-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.us-thumb-arrow:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.us-thumb-arrow:disabled {
  opacity: 0.35;
  cursor: default;
  border-color: var(--line);
  color: var(--muted-light);
}
.us-p-thumb-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.us-p-thumb-track::-webkit-scrollbar {
  display: none;
}
.us-p-thumb {
  width: 62px;
  height: 62px;
  flex-shrink: 0;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.us-p-thumb.is-active,
.us-p-thumb:hover {
  border-color: var(--accent);
}
.us-p-thumb img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* --- 3. Right Column: Product Info --- */
.us-p-info-col {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.us-p-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.us-p-stars {
  color: #F59E0B;
  letter-spacing: 2px;
}
.us-p-review-link {
  font-weight: 600;
  color: var(--muted);
}

.us-p-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
}

.us-p-lede {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 18px;
}

/* Centered section divider */
.us-bundle-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.us-bundle-divider::before,
.us-bundle-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.us-bundle-divider span {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.us-bundle-shipping-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  background: var(--save-bg);
  border: 1px solid var(--save-border);
  color: var(--save);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.us-bundle-shipping-note strong {
  font-weight: 800;
}

/* --- 3b. Bundle Cards ---
   One full-width row per bundle so the whole row is an easy tap target:
   radio dot, box picture, name + sachets + per-box price, then the price
   column on the right. The badge sits on the row's top edge. */
.us-p-bundle-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.us-p-bundle-card {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px 16px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.us-p-bundle-card.has-badge {
  margin-top: 6px;
  padding-top: 18px;
}
.us-p-bundle-card:hover {
  border-color: var(--line-loud);
}
.us-p-bundle-card:active {
  transform: scale(0.99);
}
.us-p-bundle-card:focus-visible {
  outline: 3px solid rgba(217, 119, 6, 0.35);
  outline-offset: 2px;
}
.us-p-bundle-card.is-selected {
  border-color: var(--accent);
  background: #FFFBF2;
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

/* Badge pill on the top edge */
.us-p-bundle-topbadge {
  position: absolute;
  top: -11px;
  left: 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.us-p-bundle-topbadge.is-green {
  background: var(--save);
}

/* Radio dot */
.us-p-bundle-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-loud);
  background: var(--surface);
  box-sizing: border-box;
  flex-shrink: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.us-p-bundle-card.is-selected .us-p-bundle-radio {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--surface);
  background: var(--accent);
}

.us-p-bundle-pack {
  position: relative;
  height: 52px;
  width: 64px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.us-p-bundle-pack img {
  height: 100%;
  width: auto;
  max-width: 52px;
  object-fit: contain;
}
/* Overlap the extra boxes slightly so two or three still read as a stack. */
.us-p-bundle-pack.is-double img { max-width: 40px; }
.us-p-bundle-pack.is-triple img { max-width: 32px; }
.us-p-bundle-pack.is-double img + img,
.us-p-bundle-pack.is-triple img + img { margin-left: -12px; }

/* Real box count on the picture (it shows at most 3 boxes). */
.us-p-bundle-count {
  position: absolute;
  bottom: -6px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: var(--radius-full);
  background: var(--text);
  color: var(--surface);
  border: 2px solid var(--surface);
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

/* Space between the trust line and the Bundle & Save block. */
.us-bundle-select {
  margin-top: 20px;
}

.us-p-bundle-info {
  min-width: 0;
}
.us-p-bundle-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.us-p-bundle-sachets {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.us-p-bundle-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.us-p-bundle-tags:empty {
  display: none;
}
.us-p-bundle-perbox,
.us-p-bundle-ship {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.us-p-bundle-perbox {
  background: var(--accent-light);
  color: var(--accent-dark);
}
.us-p-bundle-ship {
  background: var(--save-bg);
  color: var(--save);
}

.us-p-bundle-prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}
.us-p-bundle-price {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.us-p-bundle-card.is-selected .us-p-bundle-price {
  color: var(--accent-dark);
}
.us-p-bundle-compare {
  font-size: 13px;
  color: var(--muted-light);
  text-decoration: line-through;
}
/* Sale price is an <ins>: no underline; it keeps the .us-p-bundle-price look. */
ins.us-p-bundle-price {
  text-decoration: none;
  background: none;
}
del.us-p-bundle-compare {
  display: block;
}
.us-p-bundle-sub.is-save {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--sale-badge-text);
  background: var(--sale-badge-bg);
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .us-p-bundle-grid { gap: 12px; }
  .us-p-bundle-card {
    gap: 10px;
    padding: 12px;
    min-height: 78px;
  }
  .us-p-bundle-card.has-badge { padding-top: 17px; }
  .us-p-bundle-topbadge { left: 12px; font-size: 10px; }
  .us-p-bundle-radio { width: 20px; height: 20px; }
  .us-p-bundle-pack { width: 58px; height: 44px; }
  .us-p-bundle-pack img { max-width: 44px; }
  .us-p-bundle-pack.is-double img { max-width: 32px; }
  .us-p-bundle-pack.is-triple img { max-width: 26px; }
  .us-p-bundle-pack.is-double img + img,
  .us-p-bundle-pack.is-triple img + img { margin-left: -10px; }
  .us-p-bundle-name { font-size: 15.5px; }
  .us-p-bundle-sachets { font-size: 12px; }
  .us-p-bundle-price { font-size: 18px; }
  .us-p-bundle-compare { font-size: 12px; }
}
@media (max-width: 360px) {
  .us-p-bundle-pack { display: none; }
}

/* --- 3c. Subscription Refill Box --- */
.us-p-refill-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1.5px dashed var(--line-loud);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 14px 16px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.us-p-refill-box:hover {
  border-color: var(--accent);
}
.us-p-refill-box.is-active {
  border-style: solid;
  border-color: var(--accent);
  background: #FFFDF9;
}
.us-p-refill-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.us-p-refill-circle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid var(--line-loud);
  border-radius: var(--radius-full);
  background: var(--surface);
  position: relative;
  transition: all 0.2s ease;
}
.us-p-refill-box.is-active .us-p-refill-circle {
  border-color: var(--accent);
}
.us-p-refill-box.is-active .us-p-refill-circle::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: var(--radius-full);
  background: var(--accent);
}
.us-p-refill-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
  min-width: 0;
}
.us-p-refill-copy strong {
  font-size: 13.5px;
  color: var(--text);
}

/* --- 3d. Stock / Shipping status --- */
.us-p-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.us-p-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.us-p-status-sep {
  color: var(--line-loud);
}
.us-p-dot {
  font-size: 9px;
  line-height: 1;
}

/* --- 3e. Payment logo strip --- */
.us-p-payments {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.us-p-pay-strip {
  max-height: 34px;
  max-width: 100%;
  /* auto on both: the width/height attributes must not stretch the strip. */
  width: auto;
  height: auto;
  object-fit: contain;
}
.us-p-pay-pill {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

/* Retained: shortcode error state */
.us-error {
  max-width: var(--max-w);
  margin: 40px auto;
  padding: 0 var(--gutter);
  text-align: center;
  color: var(--muted);
}

/* --- 5. Add to Cart & Trust Section --- */
.us-atc-btn,
.us-p-atc-btn {
  width: 100%;
  height: 56px;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.us-atc-btn:hover,
.us-p-atc-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.us-stock-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.us-stock-badge {
  color: var(--save);
  display: flex;
  align-items: center;
  gap: 6px;
}

.us-payment-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  opacity: 0.85;
}

/* --- 7. Hero Guarantee Strip --- */
.us-hero-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--save-bg);
  border: 1px solid var(--save-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.45;
  color: #14532D;
}

/* --- 9. 3-Tab Product Info System --- */
.us-p-tabs-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px var(--gutter);
}
.us-p-tabs-container {
  max-width: var(--max-w);
  margin: 0 auto;
}

.us-p-tab-nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.us-p-tab-btn {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.us-p-tab-btn:hover {
  color: var(--text);
  background: #ECE5DC;
}
.us-p-tab-btn.is-active {
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  border-color: var(--line);
  border-top: 2px solid var(--accent);
  margin-bottom: -1px;
}

.us-p-tab-content-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
}

.us-p-tab-panel {
  display: none;
}
.us-p-tab-panel.is-active {
  display: block;
  animation: usFadeIn 0.25s ease;
}

@keyframes usFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.us-tab-guide-box {
  max-width: 760px;
}

.us-tab-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.us-tab-checklist li::before {
  content: "✔ ";
  color: var(--save);
  font-weight: 800;
  margin-right: 6px;
}
.us-tab-checklist strong {
  color: var(--text);
}

/* Horizontal scroll for the tab bar on narrow screens */
@media (max-width: 640px) {
  .us-p-tab-nav {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .us-p-tab-nav::-webkit-scrollbar {
    display: none;
  }
  .us-p-tab-btn {
    flex-shrink: 0;
    padding: 12px 16px;
    font-size: 13px;
  }
  .us-p-tab-content-wrap {
    padding: 24px 18px;
  }
}

/* --- 10b. UGC Video Showcase --- */
.us-p-ugc-section {
  background: var(--bg);
  padding: 80px var(--gutter);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.us-p-ugc-container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.us-p-ugc-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}
.us-p-ugc-stars {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.us-p-ugc-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--text);
}

.us-p-ugc-slider-wrap {
  position: relative;
}

.us-p-ugc-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .us-p-ugc-track {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 14px !important;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .us-p-ugc-track::-webkit-scrollbar { display: none; }
}

.us-p-ugc-card {
  position: relative;
  aspect-ratio: 9 / 14;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  background: #181512;
}
@media (max-width: 900px) {
  .us-p-ugc-card {
    flex: 0 0 75% !important;
    scroll-snap-align: center;
  }
}
@media (max-width: 500px) {
  .us-p-ugc-card {
    flex: 0 0 82% !important;
  }
}

.us-p-ugc-media {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  /* Shown while the lazy poster is still on its way. */
  background: #2A231C;
}
/* The poster is a lazy <img> filling the card the way background-size: cover
   did; the overlay, later in the markup, paints above it. */
.us-p-ugc-poster {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.us-p-ugc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.75) 100%);
  display: flex;
  flex-direction: column;
  /* flex-end, not space-between: the play button used to sit centred with auto
     margins and push the caption to the bottom. With the button gone,
     space-between would strand the caption at the top of the tile. */
  justify-content: flex-end;
  padding: 18px;
  color: #FFFFFF;
}

/* The whole overlay is the click target now that there is no play button to
   aim at. Inherits colour and drops underlines so the caption is unchanged. */
.us-p-ugc-overlay-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
}
.us-p-ugc-overlay-link:hover .us-p-ugc-caption {
  text-decoration: underline;
}
.us-p-ugc-overlay-link:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: -4px;
  border-radius: 4px;
}

.us-p-ugc-caption {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.us-p-ugc-tag {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* Controls */
.us-p-ugc-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.us-p-ugc-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.us-p-ugc-arrow:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}
.us-p-ugc-progress {
  width: 120px;
  height: 4px;
  background: var(--line);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.us-p-ugc-progress-bar {
  height: 100%;
  width: 35%;
  background: var(--accent);
  border-radius: var(--radius-full);
  transition: width 0.3s ease;
}

/* Above 900px the track is a 4-up grid with nothing to scroll,
   so the arrows and progress bar would be inert. */
@media (min-width: 901px) {
  .us-p-ugc-controls {
    display: none;
  }
}

/* --- 14. Mobile Sticky Add-To-Cart Bar --- */
/* Mobile sticky Add-To-Cart bar */
.us-sticky-atc {
  display: flex !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-top: 1px solid var(--line) !important;
  padding: 10px 16px !important;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 9990 !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1) !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  transform: translateY(120%) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  gap: 12px;
}

.us-sticky-atc.is-visible {
  transform: translateY(0) !important;
}
.us-sticky-info {
  flex: 1;
  min-width: 0;
}
.us-sticky-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.us-sticky-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.us-sticky-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 22px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}
.us-sticky-btn:hover {
  background: var(--accent-dark);
}
.us-sticky-btn:disabled,
.us-atc-btn:disabled,
.us-p-atc-btn:disabled {
  background: var(--muted-light);
  cursor: not-allowed;
  box-shadow: none;
}

/* Desktop keeps the in-page CTA only. */
@media (min-width: 901px) {
  .us-sticky-atc {
    display: none !important;
  }
}

/* --- 15. Small-screen refinements --- */
@media (max-width: 600px) {
  .us-atc-btn,
  .us-p-atc-btn {
    font-size: 16px;
  }
  .us-product-wrapper {
    padding-bottom: 84px; /* room for the sticky bar */
  }
}

/* ==========================================================================
   SECTION RHYTHM — one vertical scale for every product page section
   Desktop 80/20 · Tablet (<=900px) 60/16 · Mobile (<=600px) 48/16
   ========================================================================== */
@media (max-width: 900px) {
  .us-p-tabs-section,
.us-p-ugc-section {
    padding: 60px 16px;
  }
}
@media (max-width: 600px) {
  .us-p-tabs-section,
.us-p-ugc-section {
    padding: 48px 16px;
  }
}

/* Legacy WooCommerce top notices — replaced by the slide-out cart drawer */
.woocommerce-message,
.woocommerce-info {
  display: none !important;
}

/* ==========================================================================
   Touch carousel hardening
   pan-x is required: a horizontal scroller declaring only pan-y tells the
   browser not to handle horizontal swipes, which disables the carousel.
   ========================================================================== */
.us-p-thumb-row,
.us-p-thumb-track,
.us-p-ugc-track,
.us-p-tab-nav {
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x pan-y pinch-zoom !important;
  overscroll-behavior-x: contain !important;
}

/* ==========================================================================
   Final adjustments
   ========================================================================== */

/* Carousel slides only exist for mobile; desktop shows the one main image. */
.us-p-swipe-slide {
  display: none;
}

/* --- Mobile: one column, gallery then buy block -------------------------
   display:contents dissolves the gallery column on mobile only, making the
   main image and thumbnail row direct items of the hero, ordered above the
   info column. Desktop is untouched. */
@media (max-width: 768px) {
  .us-p-hero-grid {
    display: flex;
    flex-direction: column;
    /* The base rule sets align-items:start for the desktop grid, where it
       only affects vertical alignment. In a flex column it becomes the
       horizontal axis and shrinks every child to its content width — which
       is what collapsed the gallery and pushed the right thumbnail arrow
       off-screen. stretch restores full-width children. */
    align-items: stretch;
  }
  .us-p-gallery-col {
    display: contents;
  }

  /* display:contents removes .us-p-gallery-col's min-width:0, so each former
     child now has to carry its own containment. */
  .us-p-main-img-box,
  .us-p-thumb-row,
  .us-p-info-col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .us-p-main-img-box  { order: 1; }
  .us-p-thumb-row     { order: 2; }
  .us-p-info-col      { order: 3; }

  /* --- 1. Native swipe carousel: the finger drives the scroll 1:1 --- */
  .us-p-main-img-box {
    display: flex;
    flex-wrap: nowrap;
    /* flex-start is essential. The base rule centres content; an overflowing
       flex row that is centred spills half its slides into negative scroll
       offset, which can never be reached. That was the previous breakage. */
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* Swiping past the last photo must not trigger browser back-navigation. */
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .us-p-main-img-box::-webkit-scrollbar {
    display: none;
  }
  .us-p-main-img-box > img,
  .us-p-main-img-box > .us-p-swipe-slide {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* --- 3. Both arrows always inside the viewport --- */
  .us-p-thumb-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }
  .us-thumb-arrow {
    flex: 0 0 32px;
  }

  /* --- 4. Swipeable thumbnail strip --- */
  .us-p-thumb-track {
    flex: 1 1 0;
    min-width: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .us-p-thumb-track::-webkit-scrollbar {
    display: none;
  }
  .us-p-thumb {
    scroll-snap-align: start;
  }
}

/* --- Desktop gallery: exactly one full image in the frame ---------------
   Desktop is not a scroll carousel: the thumbnails swap the single
   #us-main-product-img (see product.js). The mobile-only slides are meant
   to be hidden here by `.us-p-swipe-slide { display: none }`, but the older
   `.us-p-main-img-box img { display: block }` is more specific (class +
   element beats one class), so every slide rendered inside the flex frame
   and they shrank to share it: half one photo, half the next.

   min-width: 769px sits exactly above the max-width: 768px carousel rules,
   so the mobile gallery is untouched. */
@media (min-width: 769px) {
  .us-p-main-img-box > .us-p-swipe-slide {
    display: none;
  }
  /* The one remaining image fills the 1:1 frame and can never be squeezed
     by a sibling. */
  .us-p-main-img-box > #us-main-product-img {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* ==========================================================================
   Product info tabs -> pill accordion on mobile
   Desktop keeps the horizontal tabs; these headings are hidden there.
   At <=768px the tab bar is hidden and each panel gets a separate pill-shaped
   heading (light fill, thin grey border, thin + on the right). Tapping one
   drops its content open beneath the pill (.is-open, set by product.js).

   Selectors carry an extra class where product-mobile-fixes.css (loaded
   after this file, doubled-class rules) would otherwise re-add the
   wrapper's padding and its "Tap a tab above" prompt.
   ========================================================================== */
.us-p-acc-btn {
  display: none;
}

@media (max-width: 768px) {
  .us-p-tabs-section .us-p-tab-nav {
    display: none;
  }

  /* No frame around the list: the pills sit straight on the section. */
  .us-p-tabs-section .us-p-tab-content-wrap.us-p-tab-content-wrap {
    display: block;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  .us-p-tabs-section .us-p-tabs-container .us-p-tab-content-wrap.us-p-tab-content-wrap::before {
    content: none;
    display: none;
  }

  /* Pill heading. */
  .us-p-tabs-section .us-p-acc-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0 0 12px;
    padding: 16px 24px;
    background: #F7F7F5;
    border: 1px solid #D1D1D1;
    border-radius: 50px;
    box-shadow: none;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
  .us-p-tabs-section .us-p-acc-btn.is-open {
    background: #F1F0ED;
    border-color: #BDBDBD;
  }
  .us-p-tabs-section .us-p-acc-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  @media (hover: hover) {
    .us-p-tabs-section .us-p-acc-btn:hover {
      border-color: #BDBDBD;
    }
  }

  /* Thin + on the far right; the vertical stroke folds away to a minus
     when the item is open. */
  .us-p-acc-icon {
    position: relative;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: none;
    transform: none;
  }
  .us-p-acc-icon::before,
  .us-p-acc-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 1.5px;
    border-radius: 1px;
    background: var(--text);
    transform: translate(-50%, -50%);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .us-p-acc-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .us-p-acc-btn.is-open .us-p-acc-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0;
  }

  /* Content drops open below its pill. The panel is always laid out as a
     one-row grid whose row animates 0fr -> 1fr, so the height eases open
     and shut instead of jumping; browsers without that transition just
     open instantly. visibility keeps closed content out of reach. */
  .us-p-tabs-section .us-p-tab-panel,
  .us-p-tabs-section .us-p-tab-panel.is-active {
    display: grid;
    grid-template-rows: 0fr;
    margin: 0;
    padding: 0;
    visibility: hidden;
    animation: none;
    transition: grid-template-rows 0.3s ease, margin 0.3s ease, visibility 0s linear 0.3s;
  }
  .us-p-tabs-section .us-p-tab-panel > * {
    min-height: 0;
    overflow: hidden;
    padding-left: 24px;
    padding-right: 24px;
  }
  .us-p-tabs-section .us-p-tab-panel.is-open {
    grid-template-rows: 1fr;
    margin: -2px 0 20px;
    visibility: visible;
    transition: grid-template-rows 0.3s ease, margin 0.3s ease, visibility 0s linear 0s;
  }

  
  
  
  
  
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .us-p-tabs-section .us-p-tab-panel,
  .us-p-tabs-section .us-p-tab-panel.is-open,
  .us-p-acc-icon::before,
  .us-p-acc-icon::after {
    transition: none;
  }
}

/* ==========================================================================
   Royal One — native WooCommerce variations form.
   The bundle/pack picker was replaced with woocommerce_variable_add_to_cart(),
   which ships Woo's default markup. These rules give the Size dropdown and the
   add-to-cart button the same weight as the rest of the product page.
   ========================================================================== */
.us-p-atc-wrap { margin: 18px 0 14px; }
/* Bundle boxes pick the variation (see .us-p-bundle-card), so the native
   dropdown, its Clear link, the repeated price, the "N in stock" line and the
   quantity box (the bundle sets the amount; it stays at 1) are hidden. */
.us-p-atc-wrap.has-bundle-cards { margin-top: 0; }
.us-p-atc-wrap.has-bundle-cards .variations,
.us-p-atc-wrap.has-bundle-cards .reset_variations,
.us-p-atc-wrap.has-bundle-cards .woocommerce-variation-price,
.us-p-atc-wrap.has-bundle-cards .woocommerce-variation-availability,
.us-p-atc-wrap.has-bundle-cards .quantity { display: none !important; }
.us-p-atc-wrap .variations { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.us-p-atc-wrap .variations th,
.us-p-atc-wrap .variations td { display: block; width: 100%; padding: 0; text-align: left; }
.us-p-atc-wrap .variations th.label label {
  display: block; margin: 0 0 6px; font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text);
}
.us-p-atc-wrap .variations td.value { margin-bottom: 14px; }
.us-p-atc-wrap .variations select {
  width: 100%; min-height: 48px; padding: 0 40px 0 14px;
  border: 1px solid var(--line); border-radius: 8px;
  background-color: var(--surface); color: var(--text);
  font-size: 15px; font-weight: 600; line-height: 1.4; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23D97706' stroke-width='2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.us-p-atc-wrap .variations select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.us-p-atc-wrap .reset_variations {
  display: inline-block; margin: 0 0 12px; font-size: 12px; font-weight: 700; color: var(--muted);
}
.us-p-atc-wrap .woocommerce-variation-price { margin: 0 0 14px; }
.us-p-atc-wrap .woocommerce-variation-price .price {
  font-size: 26px; font-weight: 800; color: var(--text);
}
.us-p-atc-wrap .woocommerce-variation-price del { opacity: .55; font-weight: 600; margin-right: 8px; }
.us-p-atc-wrap .woocommerce-variation-availability { margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.us-p-atc-wrap .quantity { display: inline-block; margin: 0 10px 12px 0; vertical-align: middle; }
.us-p-atc-wrap .quantity input[type="number"] {
  width: 76px; min-height: 48px; padding: 0 8px; text-align: center;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--text); font-size: 15px; font-weight: 700;
}
.us-p-atc-wrap .single_add_to_cart_button {
  width: 100%; min-height: 54px; padding: 0 22px; border: 0; border-radius: 10px;
  background: var(--accent); color: #fff; cursor: pointer;
  font-size: 15px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.us-p-atc-wrap .single_add_to_cart_button:hover,
.us-p-atc-wrap .single_add_to_cart_button:focus { background: var(--accent-dark); }
.us-p-atc-wrap .single_add_to_cart_button.disabled,
.us-p-atc-wrap .single_add_to_cart_button:disabled { opacity: .45; cursor: not-allowed; }
.us-p-atc-wrap .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.us-p-atc-wrap .woocommerce-variation-add-to-cart .quantity { margin: 0; }
.us-p-atc-wrap .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1 1 200px; width: auto; }
.us-p-atc-wrap .stock.out-of-stock { font-weight: 700; color: #DC2626; }

/* Buy Now — sits under Add to Cart, full width, dark so the two read apart. */
.us-p-atc-wrap .single_add_to_cart_button.us-buy-now-btn {
  flex: 1 1 100%; width: 100%;
  background: #111827; color: #fff;
}
.us-p-atc-wrap .single_add_to_cart_button.us-buy-now-btn:hover,
.us-p-atc-wrap .single_add_to_cart_button.us-buy-now-btn:focus { background: #000; }

/* ==========================================================================
   Suggested products ("Try It in a Mix Pack" / "Complete Your Order")
   ========================================================================== */
.us-p-rec-section {
  background: var(--surface);
  padding: 72px var(--gutter);
  border-top: 1px solid var(--line);
}
.us-p-rec-container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.us-p-rec-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}
.us-p-rec-title {
  font-size: clamp(26px, 3.6vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--text);
}
.us-p-rec-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.us-p-rec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.us-p-rec-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.us-p-rec-card:hover,
.us-p-rec-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(24, 21, 18, .08);
}
.us-p-rec-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
}
.us-p-rec-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.us-p-rec-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
}
.us-p-rec-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
  flex: 1;
}
.us-p-rec-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.us-p-rec-size {
  font-size: 13px;
  color: var(--muted);
}
.us-p-rec-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}
.us-p-rec-from {
  font-size: 12px;
  color: var(--muted);
}
.us-p-rec-now {
  font-weight: 800;
  font-size: 17px;
}
.us-p-rec-was {
  font-size: 13px;
  color: var(--muted-light);
  text-decoration: line-through;
}
.us-p-rec-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-dark);
}
@media (max-width: 900px) {
  .us-p-rec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .us-p-rec-section { padding: 48px 16px; }
  .us-p-rec-grid { gap: 12px; }
  .us-p-rec-body { padding: 12px; }
  .us-p-rec-name { font-size: 14px; }
  .us-p-rec-size { font-size: 12px; }
}
