/* ==========================================================================
   Trendy Box Product UI  v2.3.0  —  Luxury editorial
   Square edges, hairline borders, serif headings, spaced uppercase labels.
   All colours / sizes are CSS variables in the first block below.
   ========================================================================== */

.tb-gallery, .tb-summary, .tb-benefit-strip, .tb-details, .tb-ritual, .tb-related, .tb-sticky-bar {
  --tb-ink: #111111;
  --tb-text: #3b3835;
  --tb-muted: #6f6b67;
  --tb-soft: #9a948e;
  --tb-line: #e8e5e1;          /* hairlines */
  --tb-line-strong: #cfc8c0;
  --tb-bg: #f7f5f2;            /* off-white */
  --tb-sand: #d7c8bb;
  --tb-card: #ffffff;
  --tb-red: #b3121c;           /* Buy now */
  --tb-red-dark: #8e0e16;
  --tb-star: #b8935a;          /* champagne gold */
  --tb-btn-h: 54px;
  --tb-serif: Georgia, 'Times New Roman', serif;
  --tb-label: 11px;            /* spaced uppercase labels */
  --tb-ico-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
  --tb-ico-bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E");
}
.tb-gallery *, .tb-summary *, .tb-benefit-strip *, .tb-details *, .tb-ritual *, .tb-related *, .tb-sticky-bar * { box-sizing: border-box; }

/* ---------- Icons (thin line) ---------- */
.tb-icon { width: 24px; height: 24px; flex: none; display: block; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .tb-gallery-prev .tb-icon, [dir="rtl"] .tb-gallery-next .tb-icon, [dir="rtl"] .tb-dark-button .tb-icon { transform: scaleX(-1); }

/* ---------- Focus ---------- */
.tb-gallery button:focus-visible, .tb-tab:focus-visible, .tb-detail-item summary:focus-visible, .tb-qty-btn:focus-visible,
.tb-dark-button:focus-visible, .tb-card-button:focus-visible, .tb-sticky-button:focus-visible, .tb-rating:focus-visible,
.tb-cart-area form.cart .single_add_to_cart_button:focus-visible { outline: 1px solid var(--tb-ink); outline-offset: 3px; }

/* ==========================================================================
   Buttons: square, spaced uppercase.  Colour via --tb-btn-* variables.
   ========================================================================== */
.tb-cart-area form.cart .single_add_to_cart_button,
.tb-cart-area form.cart .tb-buy-now,
.tb-dark-button,
.tb-card-content .tb-card-button,
.tb-sticky-bar .tb-sticky-button,
.tb-product-card .added_to_cart,
.tb-details #respond .form-submit input[type="submit"] {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: var(--tb-btn-h);
  text-align: center;
  background: var(--tb-btn-bg, var(--tb-ink)) !important;
  color: var(--tb-btn-fg, #fff) !important;
  border: 1px solid var(--tb-btn-bd, var(--tb-btn-bg, var(--tb-ink))) !important;
  border-radius: 0 !important;
  text-decoration: none;
  padding: 14px 26px;
  font-size: var(--tb-label);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.tb-cart-area form.cart .single_add_to_cart_button:hover { --tb-btn-bg: #000; --tb-btn-bd: #000; opacity: .86; }
.tb-dark-button:hover, .tb-sticky-bar .tb-sticky-button:hover, .tb-details #respond .form-submit input[type="submit"]:hover { opacity: .86; }

/* Small icon inside Add to bag / Buy now (CSS mask, follows text colour) */
.tb-cart-area form.cart .single_add_to_cart_button::before,
.tb-cart-area form.cart .tb-buy-now::before {
  content: ""; width: 17px; height: 17px; flex: none; background: currentColor;
  -webkit-mask: var(--tb-ico-bag) center / contain no-repeat; mask: var(--tb-ico-bag) center / contain no-repeat;
}
.tb-cart-area form.cart .tb-buy-now::before { -webkit-mask-image: var(--tb-ico-bolt); mask-image: var(--tb-ico-bolt); }

/* Buy now = RED (deep, refined) */
.tb-cart-area form.cart .tb-buy-now { --tb-btn-bg: var(--tb-red); }
.tb-cart-area form.cart .tb-buy-now:hover { --tb-btn-bg: var(--tb-red-dark); --tb-btn-bd: var(--tb-red-dark); opacity: 1; }

/* Cards: outline button that fills black on hover (like the collections page) */
.tb-card-content .tb-card-button, .tb-product-card .added_to_cart { --tb-btn-bg: transparent; --tb-btn-fg: var(--tb-ink); --tb-btn-bd: var(--tb-ink); min-height: 46px; padding: 12px 10px; font-size: 10px; letter-spacing: .18em; font-weight: 500; }
.tb-card-content .tb-card-button:hover { --tb-btn-bg: var(--tb-ink); --tb-btn-fg: #fff; opacity: 1; }
.tb-product-card .added_to_cart { margin-top: auto; }

/* ==========================================================================
   Shared headings
   ========================================================================== */
.tb-product-title, .tb-details h2, .tb-ritual h2, .tb-related h2 { font-family: var(--tb-serif); font-weight: 400; line-height: 1.12; color: var(--tb-ink); letter-spacing: 0; }
[dir="rtl"] .tb-product-title, [dir="rtl"] .tb-details h2, [dir="rtl"] .tb-ritual h2, [dir="rtl"] .tb-related h2, [dir="rtl"] .tb-card-title { font-family: inherit; font-weight: 500; }
.tb-eyebrow { font-size: var(--tb-label); font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--tb-muted); margin-bottom: 16px; display: block; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.tb-gallery { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 14px; align-items: start; width: 100%; }
.tb-gallery.is-single { grid-template-columns: minmax(0, 1fr); }
.tb-gallery-thumbs { display: flex; flex-direction: column; gap: 10px; position: relative; }
.tb-gallery .tb-gallery-thumb { padding: 0; margin: 0; min-height: 0; line-height: 0; border: 1px solid transparent; border-radius: 0; background: var(--tb-bg); box-shadow: none; cursor: pointer; aspect-ratio: 1; overflow: hidden; opacity: .55; transition: opacity .25s, border-color .25s; }
.tb-gallery .tb-gallery-thumb:hover { opacity: 1; }
.tb-gallery .tb-gallery-thumb.is-active { border-color: var(--tb-ink); opacity: 1; }
.tb-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-gallery-main { position: relative; background: linear-gradient(145deg, #f3f0ec, #e4ddd5); overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.tb-gallery-slide { display: none; aspect-ratio: 1 / 1.1; }
.tb-gallery-slide.is-active { display: block; animation: tb-fade .4s ease; }
.tb-gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
@keyframes tb-fade { from { opacity: .3; } to { opacity: 1; } }

.tb-badge { position: absolute; z-index: 2; top: 14px; inset-inline-start: 14px; padding: 6px 11px; border-radius: 2px; background: var(--tb-ink); color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .14em; line-height: 1.2; direction: ltr; unicode-bidi: isolate; }

.tb-gallery .tb-gallery-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; min-height: 0; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--tb-line); border-radius: 0; background: rgba(255,255,255,.92); color: var(--tb-ink); box-shadow: none; cursor: pointer; line-height: 1; transition: background .2s, opacity .25s; }
.tb-gallery .tb-gallery-arrow:hover { background: #fff; }
.tb-gallery-arrow .tb-icon { width: 18px; height: 18px; stroke-width: 1.5; }
.tb-gallery-prev { inset-inline-start: 12px; }
.tb-gallery-next { inset-inline-end: 12px; }
@media (hover: hover) {
  .tb-gallery .tb-gallery-arrow { opacity: 0; }
  .tb-gallery-main:hover .tb-gallery-arrow, .tb-gallery .tb-gallery-arrow:focus-visible { opacity: 1; }
}
.tb-gallery-count { position: absolute; z-index: 2; bottom: 12px; inset-inline-end: 12px; padding: 5px 10px; background: #fff; color: var(--tb-ink); font-size: 10px; font-weight: 500; line-height: 1.4; letter-spacing: .14em; pointer-events: none; direction: ltr; unicode-bidi: isolate; }

/* ==========================================================================
   Summary
   ========================================================================== */
.tb-summary { color: var(--tb-ink); }
.tb-product-title { font-size: clamp(28px, 3vw, 40px); margin: 0 0 16px; overflow-wrap: anywhere; }

/* ----- Rating: thin gold stars + number + count, one quiet line ----- */
.tb-stars { position: relative; display: inline-block; line-height: 0; white-space: nowrap; color: var(--tb-star); vertical-align: middle; }
.tb-stars-base, .tb-stars-fill { display: inline-flex; gap: 3px; }
.tb-stars-base { color: #ddd6cd; }
.tb-stars-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--tb-rate, 0%); overflow: hidden; white-space: nowrap; }
.tb-stars .tb-icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.tb-rating { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px; padding: 0 0 6px; border-bottom: 1px solid var(--tb-line); font-size: 12px; line-height: 1; cursor: pointer; transition: border-color .25s; }
.tb-rating:hover { border-color: var(--tb-ink); }
.tb-rating-num { font-weight: 600; color: var(--tb-ink); letter-spacing: .06em; }
.tb-rating-count { color: var(--tb-muted); letter-spacing: .04em; }

.tb-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; font-size: 20px; font-weight: 500; letter-spacing: .02em; margin-bottom: 20px; }
.tb-price del { color: var(--tb-soft); font-weight: 400; font-size: .75em; }
.tb-price ins { text-decoration: none; }
.tb-short-description { font-size: 14px; line-height: 1.9; color: var(--tb-muted); }
.tb-short-description p:last-child { margin-bottom: 0; }

/* Mini benefits: hairline strip */
.tb-mini-benefits { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--tb-line); border-bottom: 1px solid var(--tb-line); margin: 28px 0; padding: 20px 0; }
.tb-mini-benefits > div { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 0 8px; border-inline-end: 1px solid var(--tb-line); }
.tb-mini-benefits > div:last-child { border-inline-end: 0; }
.tb-benefit-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 8px; color: var(--tb-ink); }
.tb-benefit-icon .tb-icon { width: 26px; height: 26px; }
.tb-mini-benefits strong { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; }
.tb-mini-benefits small { font-size: 11px; color: var(--tb-muted); line-height: 1.4; }

/* ==========================================================================
   Cart area:  [ − 1 + ] [ ADD TO BAG ]   /   [ BUY NOW (red) ]
   ========================================================================== */
.tb-cart-area form.cart:not(.variations_form), .tb-cart-area .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; width: 100%; margin: 0; }
.tb-cart-area form.cart .single_add_to_cart_button { flex: 1 1 0; min-width: 0; }
.tb-cart-area form.cart .single_add_to_cart_button.tb-buy-now { flex: 1 1 100%; }
.tb-cart-area form.cart .single_add_to_cart_button.disabled, .tb-cart-area form.cart .single_add_to_cart_button:disabled { opacity: .35; cursor: not-allowed; }

/* Quantity stepper */
.tb-cart-area form.cart .quantity { display: inline-flex !important; align-items: center; flex: none; height: var(--tb-btn-h); margin: 0 !important; padding: 0 !important; border: 1px solid var(--tb-line-strong); border-radius: 0; background: #fff; overflow: hidden; width: auto; transition: border-color .2s; }
.tb-cart-area form.cart .quantity:focus-within { border-color: var(--tb-ink); }
.tb-cart-area form.cart .quantity.hidden { display: none !important; }
.tb-cart-area form.cart .quantity .minus, .tb-cart-area form.cart .quantity .plus { display: none !important; }   /* theme's own +/- */
.tb-cart-area form.cart .quantity .qty { width: 46px !important; min-width: 0; max-width: 46px; height: 100% !important; min-height: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; text-align: center; font-size: 15px; font-weight: 500; letter-spacing: .04em; color: var(--tb-ink); -moz-appearance: textfield; appearance: textfield; }
.tb-cart-area form.cart .quantity .qty::-webkit-outer-spin-button, .tb-cart-area form.cart .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tb-cart-area form.cart .quantity .tb-qty-btn { flex: none; display: flex; align-items: center; justify-content: center; width: 42px; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--tb-ink); box-shadow: none; cursor: pointer; line-height: 1; transition: background .2s; }
.tb-qty-btn .tb-icon { width: 15px; height: 15px; stroke-width: 1.5; }
.tb-cart-area form.cart .quantity .tb-qty-btn:hover { background: var(--tb-bg); }
.tb-cart-area form.cart .quantity .tb-qty-btn.is-disabled { opacity: .25; pointer-events: none; }

/* Variations */
.tb-cart-area table.variations { width: 100%; margin: 0 0 18px; border: 0; border-collapse: collapse; }
.tb-cart-area table.variations tr { display: block; margin-bottom: 14px; }
.tb-cart-area table.variations th, .tb-cart-area table.variations td { display: block; padding: 0; border: 0; text-align: start; width: 100%; background: transparent; }
.tb-cart-area table.variations label { display: block; margin: 0 0 8px; font-size: var(--tb-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tb-ink); }
.tb-cart-area table.variations select { width: 100%; max-width: 100%; min-height: 50px; margin: 0; padding-block: 0; padding-inline: 16px 42px; border: 1px solid var(--tb-line-strong); border-radius: 0; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; -webkit-appearance: none; appearance: none; font-size: 16px; color: var(--tb-ink); box-shadow: none; }
[dir="rtl"] .tb-cart-area table.variations select { background-position: left 14px center; }
.tb-cart-area table.variations select:focus { outline: 0; border-color: var(--tb-ink); }
.tb-cart-area .reset_variations { display: inline-block; margin-top: 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--tb-muted); }
.tb-cart-area .woocommerce-variation-price { margin-bottom: 14px; font-weight: 500; font-size: 18px; }
.tb-cart-area .stock { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; color: var(--tb-muted); }

/* Trust row: hairline columns */
.tb-trust-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; border-top: 1px solid var(--tb-line); }
.tb-trust-row > div { display: flex; gap: 12px; align-items: center; padding: 18px 14px; border-inline-end: 1px solid var(--tb-line); }
.tb-trust-row > div:first-child { padding-inline-start: 0; }
.tb-trust-row > div:last-child { border-inline-end: 0; }
.tb-trust-icon { display: flex; flex: none; color: var(--tb-ink); }
.tb-trust-icon .tb-icon { width: 24px; height: 24px; }
.tb-trust-row > div > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tb-trust-row strong { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4; }
.tb-trust-row small { font-size: 11px; color: var(--tb-muted); line-height: 1.4; }

/* ==========================================================================
   Benefit strip
   ========================================================================== */
.tb-benefit-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--tb-line); border-bottom: 1px solid var(--tb-line); background: #fff; padding: 26px 0; }
.tb-benefit-strip > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; font-size: 11px; padding: 0 14px; border-inline-end: 1px solid var(--tb-line); }
.tb-benefit-strip > div:last-child { border-inline-end: 0; }
.tb-benefit-strip .tb-benefit-icon { margin: 0; }
.tb-benefit-strip .tb-benefit-icon .tb-icon { width: 28px; height: 28px; }
.tb-benefit-strip strong { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; line-height: 1.6; }

/* ==========================================================================
   Details: underline tabs, two columns, hairline accordions
   ========================================================================== */
.tb-details { margin: 64px 0 36px; }
.tb-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--tb-line); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; overscroll-behavior-x: contain; }
.tb-tabs::-webkit-scrollbar { display: none; }
.tb-details .tb-tab { flex: none; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; min-height: 52px; margin: 0 0 -1px; background: transparent; border: 0; border-bottom: 1px solid transparent; border-radius: 0; padding: 14px 22px; color: var(--tb-soft); font-size: var(--tb-label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; box-shadow: none; transition: color .25s, border-color .25s; }
.tb-details .tb-tab .tb-icon { width: 16px; height: 16px; }
.tb-details .tb-tab:hover { color: var(--tb-ink); }
.tb-details .tb-tab.is-active { border-bottom-color: var(--tb-ink); color: var(--tb-ink); font-weight: 600; }

.tb-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 40px 0; align-items: start; }
.tb-detail-copy { min-width: 0; padding-inline-end: 40px; border-inline-end: 1px solid var(--tb-line); }
.tb-details h2 { font-size: 30px; margin: 0 0 22px; }
.tb-details h2.tb-panel-title { display: flex; align-items: center; gap: 14px; }
.tb-panel-icon { display: flex; align-items: center; justify-content: center; flex: none; color: var(--tb-star); }
.tb-panel-icon .tb-icon { width: 24px; height: 24px; }
.tb-detail-copy p, .tb-detail-item div { font-size: 14px; line-height: 1.95; color: var(--tb-muted); }
.tb-tab-panel { display: none; }
.tb-tab-panel.is-active { display: block; animation: tb-fade .4s ease; }

.tb-detail-accordions { min-width: 0; border-top: 1px solid var(--tb-line); }
.tb-detail-item { border-bottom: 1px solid var(--tb-line); padding: 0; }
.tb-detail-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 16px 0; cursor: pointer; font-size: var(--tb-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; list-style: none; }
.tb-detail-item summary::-webkit-details-marker { display: none; }
.tb-detail-item summary::marker { content: ''; }
.tb-acc-label { display: flex; align-items: center; gap: 16px; }
.tb-acc-icon { display: flex; flex: none; color: var(--tb-star); }
.tb-acc-icon .tb-icon { width: 20px; height: 20px; }
.tb-plus { display: flex; flex: none; transition: transform .3s ease; }
.tb-plus .tb-icon { width: 16px; height: 16px; stroke-width: 1.5; }
.tb-detail-item[open] .tb-plus { transform: rotate(45deg); }
.tb-detail-item > div { padding: 0 0 22px; }
.tb-detail-item > div p:last-child { margin-bottom: 0; }

/* While the Reviews tab is open the reviews get the full width (accordions hide) */
.tb-details.is-reviews .tb-detail-layout { grid-template-columns: minmax(0, 1fr); }
.tb-details.is-reviews .tb-detail-copy { padding-inline-end: 0; border-inline-end: 0; }
.tb-details.is-reviews .tb-detail-accordions { display: none; }

/* ----- Reviews ----- */
.tb-review-summary { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 40px; align-items: center; margin-bottom: 34px; padding: 30px 34px; background: var(--tb-bg); }
.tb-rs-score { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.tb-rs-score strong { font-family: var(--tb-serif); font-size: 54px; font-weight: 400; line-height: 1; color: var(--tb-ink); }
[dir="rtl"] .tb-rs-score strong { font-family: inherit; font-weight: 500; }
.tb-rs-score .tb-stars .tb-icon { width: 16px; height: 16px; }
.tb-rs-score .tb-stars-base { color: #d9d1c7; }
.tb-rs-score > span:last-child { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--tb-muted); }
.tb-rs-bars { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.tb-rs-row { display: grid; grid-template-columns: 34px 1fr 28px; gap: 14px; align-items: center; font-size: 11px; color: var(--tb-muted); }
.tb-rs-label { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; color: var(--tb-ink); }
.tb-rs-label .tb-icon { width: 10px; height: 10px; fill: var(--tb-star); stroke: none; }
.tb-rs-track { display: block; height: 3px; background: #ddd6cd; overflow: hidden; }
.tb-rs-track i { display: block; height: 100%; background: var(--tb-ink); }
.tb-rs-count { text-align: end; }

.tb-details #reviews .woocommerce-Reviews-title { display: none; }
.tb-details #reviews ol.commentlist { list-style: none; margin: 0 0 34px; padding: 0; border-top: 1px solid var(--tb-line); }
.tb-details #reviews ol.commentlist li { margin: 0; padding: 0; list-style: none; border: 0; }
.tb-details #reviews ol.commentlist ul.children { list-style: none; margin: 0; padding: 0; }

/* Review = two columns: who (left)  |  what they said (right) */
.tb-review-item { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--tb-line); }
.tb-review-meta { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.tb-review-avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--tb-line-strong); border-radius: 50%; font-family: var(--tb-serif); font-size: 17px; line-height: 1; color: var(--tb-ink); background: #fff; }
.tb-review-who { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 3px; }
.tb-review-author { font-size: var(--tb-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tb-ink); overflow-wrap: anywhere; }
.tb-verified { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--tb-star); }
.tb-verified .tb-icon { width: 12px; height: 12px; stroke-width: 2; }
.tb-review-date { font-size: 12px; color: var(--tb-soft); letter-spacing: .02em; }
.tb-review-main { min-width: 0; }
.tb-review-main .tb-stars { display: block; width: max-content; margin-bottom: 12px; }
.tb-review-title { margin: 0 0 8px; font-family: var(--tb-serif); font-size: 19px; font-weight: 400; line-height: 1.35; color: var(--tb-ink); }
[dir="rtl"] .tb-review-title { font-family: inherit; font-weight: 600; }
.tb-review-text { max-width: 68ch; }
.tb-review-text p { margin: 0 0 .8em; font-size: 14px; line-height: 1.95; color: var(--tb-muted); }
.tb-review-text p:last-child { margin-bottom: 0; }
.tb-review-pending { margin: 0; font-size: 12px; letter-spacing: .06em; color: var(--tb-soft); font-style: italic; }
.tb-details #reviews .woocommerce-noreviews, .tb-details #reviews .woocommerce-verification-required { padding: 24px; background: var(--tb-bg); font-size: 13px; }
.tb-details #reviews .woocommerce-pagination { margin: -10px 0 30px; text-align: center; }

/* "Write a review" opens the form (JS adds .tb-collapsed; without JS the form just stays visible) */
.tb-write-review { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin: 0; padding: 12px 28px; border: 1px solid var(--tb-ink); border-radius: 0; background: transparent; color: var(--tb-ink); font-size: var(--tb-label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; box-shadow: none; transition: background-color .25s, color .25s; white-space: nowrap; }
.tb-write-review:hover, .tb-write-review[aria-expanded="true"] { background: var(--tb-ink); color: #fff; }
.tb-details #review_form_wrapper.tb-collapsed { display: none; }
.tb-details #review_form_wrapper { max-width: 760px; padding: 34px; background: var(--tb-bg); }
.tb-details #reply-title, .tb-details .comment-reply-title { display: block; margin-bottom: 20px; font-family: var(--tb-serif); font-size: 24px; font-weight: 400; color: var(--tb-ink); }
[dir="rtl"] .tb-details #reply-title, [dir="rtl"] .tb-details .comment-reply-title { font-family: inherit; font-weight: 600; }
.tb-details #respond .comment-form > p, .tb-details #respond .comment-form > div { margin: 0 0 18px; }
.tb-details #respond label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.tb-details #respond input[type="text"], .tb-details #respond input[type="email"], .tb-details #respond textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--tb-line-strong); border-radius: 0; background: #fff; font-size: 16px; box-shadow: none; transition: border-color .2s; }
.tb-details #respond input[type="text"]:focus, .tb-details #respond input[type="email"]:focus, .tb-details #respond textarea:focus { outline: 0; border-color: var(--tb-ink); }
.tb-details #respond p.stars { margin: 0; }
.tb-details #respond p.stars a { color: var(--tb-star); }
.tb-details #respond .comment-form-cookies-consent { display: flex; align-items: center; gap: 10px; }
.tb-details #respond .comment-form-cookies-consent label { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 12px; color: var(--tb-muted); }
.tb-details #respond .form-submit { margin-bottom: 0 !important; }
.tb-details #respond .form-submit input[type="submit"] { width: auto; min-width: 220px; }

/* ==========================================================================
   Complete the ritual  (editorial block)
   ========================================================================== */
.tb-ritual { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 56px; padding: 64px 6%; margin: 48px 0; background: #f2eee9; overflow: hidden; }
.tb-ritual h2 { font-size: clamp(30px, 3.4vw, 46px); margin: 0 0 18px; }
.tb-ritual-copy p { max-width: 440px; color: var(--tb-muted); font-size: 14px; line-height: 1.9; margin-bottom: 26px; }
.tb-dark-button { display: inline-flex; gap: 14px; padding: 15px 30px; margin-top: 4px; }
.tb-dark-button .tb-icon { width: 16px; height: 16px; stroke-width: 1.5; }
.tb-ritual-products { display: flex; align-items: flex-start; justify-content: center; gap: 14px; }
.tb-ritual-products a { flex: 1; min-width: 0; text-align: center; text-decoration: none; color: var(--tb-ink); font-size: 12px; line-height: 1.5; letter-spacing: .02em; }
.tb-ritual-products img { width: 100%; aspect-ratio: 1 / 1.15; height: auto; object-fit: contain; background: linear-gradient(145deg, #f7f4f0, #e6dfd7); mix-blend-mode: multiply; display: block; transition: opacity .3s; }
.tb-ritual-products a:hover img { opacity: .85; }
.tb-ritual-products span { display: block; margin-top: 12px; }

/* ==========================================================================
   Related products  (same look as the collections page)
   ========================================================================== */
.tb-related { margin: 48px 0 64px; }
.tb-related h2 { font-size: 34px; margin: 0 0 8px; }
.tb-related-subtitle { font-size: 12px; letter-spacing: .08em; color: var(--tb-muted); margin: 0 0 32px; }
.tb-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.tb-product-card { display: flex; flex-direction: column; border: 0; background: #fff; min-width: 0; }
.tb-card-image { display: block; background: linear-gradient(145deg, #f3f0ec, #e4ddd5); aspect-ratio: 1 / 1.15; overflow: hidden; }
.tb-card-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; display: block; transition: transform .6s ease; }
.tb-product-card:hover .tb-card-image img { transform: scale(1.04); }
.tb-card-content { display: flex; flex-direction: column; flex: 1; padding: 16px 2px 0; }
.tb-card-content small { display: block; order: 2; font-size: 12px; letter-spacing: .02em; color: var(--tb-soft); margin: 5px 0 0; text-transform: none; font-weight: 400; }
.tb-card-title { order: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--tb-ink); text-decoration: none; font-family: var(--tb-serif); font-size: 17px; line-height: 1.35; }
.tb-card-price { order: 3; font-size: 14px; letter-spacing: .02em; margin: 12px 0 16px; }
.tb-card-price del { color: var(--tb-soft); font-size: .88em; margin-inline-end: 8px; }
.tb-card-price ins { text-decoration: none; }
.tb-card-content .tb-card-button { order: 4; margin-top: auto; }
.tb-card-button.loading { opacity: .55; pointer-events: none; }
.tb-card-button.added { display: none !important; }

/* ==========================================================================
   Scroll reveal (class added by JS only, so content is never hidden without JS)
   ========================================================================== */
.tb-anim { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.tb-anim.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Sticky add-to-cart bar (phones only)
   ========================================================================== */
.tb-sticky-bar { display: none; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .tb-review-summary { grid-template-columns: 170px minmax(0, 1fr); }
  .tb-write-review { grid-column: 1 / -1; }
  .tb-review-item { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
  .tb-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-detail-layout { gap: 32px; }
  .tb-detail-copy { padding-inline-end: 24px; }
  .tb-trust-row { grid-template-columns: 1fr; }
  .tb-trust-row > div { border-inline-end: 0; border-bottom: 1px solid var(--tb-line); padding-inline-start: 0; }
  .tb-trust-row > div:last-child { border-bottom: 0; }
}
@media (max-width: 900px) {
  .tb-ritual { grid-template-columns: 1fr; padding: 44px 28px; gap: 32px; }
}

/* ==========================================================================
   Phones
   ========================================================================== */
@media (max-width: 767px) {
  .tb-gallery { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .tb-gallery-thumbs { order: 2; flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding-bottom: 2px; }
  .tb-gallery-thumbs::-webkit-scrollbar { display: none; }
  .tb-gallery .tb-gallery-thumb { flex: none; width: 62px; min-width: 62px; scroll-snap-align: center; }
  .tb-gallery-slide { aspect-ratio: 1 / 1.08; }
  .tb-gallery .tb-gallery-arrow { width: 38px; height: 38px; opacity: 1; }
  .tb-gallery-prev { inset-inline-start: 8px; }
  .tb-gallery-next { inset-inline-end: 8px; }

  .tb-product-title { font-size: 28px; }
  .tb-price { font-size: 19px; }

  .tb-mini-benefits { grid-template-columns: repeat(2, 1fr); margin: 22px 0; padding: 0; }
  .tb-mini-benefits > div { padding: 20px 8px; border-bottom: 1px solid var(--tb-line); }
  .tb-mini-benefits > div:nth-child(2n) { border-inline-end: 0; }
  .tb-mini-benefits > div:nth-last-child(-n+2) { border-bottom: 0; }

  .tb-cart-area form.cart .quantity .tb-qty-btn { width: 40px; }
  .tb-cart-area form.cart .quantity .qty { width: 38px !important; max-width: 38px; }
  .tb-cart-area form.cart .single_add_to_cart_button { padding-inline: 12px; letter-spacing: .12em; }

  .tb-trust-row { grid-template-columns: repeat(3, 1fr); margin-top: 22px; }
  .tb-trust-row > div { flex-direction: column; text-align: center; gap: 8px; padding: 16px 6px; border-inline-end: 1px solid var(--tb-line); border-bottom: 0; }
  .tb-trust-row > div:first-child { padding-inline-start: 6px; }
  .tb-trust-row > div:last-child { border-inline-end: 0; }
  .tb-trust-row > div > span:last-child { align-items: center; }
  .tb-trust-row strong { font-size: 9px; letter-spacing: .08em; }
  .tb-trust-row small { font-size: 10px; }

  .tb-benefit-strip { grid-template-columns: repeat(2, 1fr); padding: 0; }
  .tb-benefit-strip > div { padding: 22px 10px; border-bottom: 1px solid var(--tb-line); }
  .tb-benefit-strip > div:nth-child(2n) { border-inline-end: 0; }
  .tb-benefit-strip > div:nth-last-child(-n+2) { border-bottom: 0; }

  .tb-details { margin: 40px 0 22px; }
  .tb-details .tb-tab { padding: 14px 16px; font-size: 10px; }
  .tb-detail-layout { grid-template-columns: 1fr; gap: 0; padding: 26px 0; }
  .tb-detail-copy { padding-inline-end: 0; border-inline-end: 0; }
  .tb-details h2 { font-size: 24px; margin-bottom: 16px; }
  .tb-detail-accordions { display: none; }

  .tb-review-summary { grid-template-columns: 1fr; gap: 22px; padding: 24px 18px; }
  .tb-write-review { width: 100%; }
  .tb-review-item { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .tb-review-who { padding-top: 0; }
  .tb-details #review_form_wrapper { padding: 22px 16px; }
  .tb-details #respond .form-submit input[type="submit"] { width: 100%; }

  .tb-ritual { padding: 38px 20px; margin: 32px 0; gap: 28px; }
  .tb-ritual-copy { text-align: center; }
  .tb-ritual-copy p { margin-inline: auto; }
  .tb-dark-button { display: flex; width: 100%; }
  .tb-ritual-products { gap: 10px; }
  .tb-ritual-products a { font-size: 11px; }

  .tb-related { margin: 34px 0 40px; }
  .tb-related h2 { font-size: 26px; }
  .tb-product-grid { gap: 12px; }
  .tb-card-title { font-size: 15px; }

  .tb-sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; align-items: center; gap: 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--tb-line); transform: translateY(105%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
  .tb-sticky-bar.is-visible { transform: none; visibility: visible; transition: transform .3s ease; }
  .tb-sticky-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .tb-sticky-title { font-family: var(--tb-serif); font-size: 14px; line-height: 1.3; color: var(--tb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-sticky-price { font-size: 13px; color: var(--tb-muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-sticky-price del { opacity: .6; margin-inline-end: 4px; }
  .tb-sticky-price ins { text-decoration: none; font-weight: 600; color: var(--tb-ink); }
  .tb-sticky-bar .tb-sticky-button { flex: none; min-width: 140px; min-height: 48px; padding: 10px 18px; font-size: 10px; }
  body.tb-sticky-on { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 380px) {
  .tb-details .tb-tab { padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .tb-gallery-slide.is-active, .tb-tab-panel.is-active { animation: none; }
  .tb-plus, .tb-sticky-bar, .tb-sticky-bar.is-visible, .tb-anim, .tb-card-image img { transition: none; }
  .tb-anim { opacity: 1; transform: none; }
}

/* ==========================================================================
   Arabic / RTL typography
   Letter-spacing splits the joined Arabic letters apart, so it is switched off for every
   plugin element (product page, cart, checkout, shop, account) on RTL and Arabic / Persian / Urdu / Hebrew pages.
   ========================================================================== */
:is(.rtl, :lang(ar), :lang(fa), :lang(ur), :lang(he)) :is(.tb-gallery, .tb-summary, .tb-benefit-strip, .tb-details, .tb-ritual, .tb-related, .tb-sticky-bar),
:is(.rtl, :lang(ar), :lang(fa), :lang(ur), :lang(he)) :is(.tb-gallery, .tb-summary, .tb-benefit-strip, .tb-details, .tb-ritual, .tb-related, .tb-sticky-bar) *,
body:is(.rtl, :lang(ar), :lang(fa), :lang(ur), :lang(he)):is(.tb-shop-page, .tb-woo) :is(.woocommerce, .woocommerce-breadcrumb, .woocommerce-result-count, .woocommerce-ordering, ul.products, nav.woocommerce-pagination, form.checkout, .tb-secure-note),
body:is(.rtl, :lang(ar), :lang(fa), :lang(ur), :lang(he)):is(.tb-shop-page, .tb-woo) :is(.woocommerce, .woocommerce-breadcrumb, .woocommerce-result-count, .woocommerce-ordering, ul.products, nav.woocommerce-pagination, form.checkout, .tb-secure-note) * {
  letter-spacing: 0 !important;
}
:is(.rtl, :lang(ar), :lang(fa), :lang(ur), :lang(he)) :is(.tb-eyebrow, .tb-dark-button, .tb-card-button, .tb-tab) { text-transform: none; }
