/* ==========================================================================
   PRODUCT DETAIL PAGE — The Sacred Code
   Modern, responsive single-product layout.
   ========================================================================== */

.tsc-pd-wrap { padding-top: 1.5rem; padding-bottom: 2rem; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.tsc-gallery { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 90px; }

.tsc-main-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #EFE7D8;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-card);
  order: 1;
}
.tsc-main-image { width: 100%; height: 100%; }
.tsc-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.tsc-main-image-wrap:hover img { transform: scale(1.05); }

.tsc-gallery-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.tsc-gallery-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
}
.tsc-gallery-badge.bestseller { background: var(--foreground); }
.tsc-gallery-badge.sale { background: var(--destructive, #d9534f); }

.tsc-gallery-wishlist {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
}
.tsc-gallery-wishlist:hover { color: var(--primary); transform: scale(1.08); }
.tsc-gallery-wishlist.active { color: var(--primary); }

/* Thumbs — horizontal strip below image on mobile, vertical side on desktop */
.tsc-thumb-col {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  order: 2;
}
.tsc-thumb-col::-webkit-scrollbar { display: none; }
.tsc-thumb-col .thumb {
  flex-shrink: 0;
  width: 72px;
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: #EFE7D8;
  opacity: 0.75;
  transition: all 0.2s ease;
}
.tsc-thumb-col .thumb:hover { opacity: 1; }
.tsc-thumb-col .thumb.active { border-color: var(--primary); opacity: 1; }
.tsc-thumb-col .thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 992px) {
  .tsc-gallery { flex-direction: row; align-items: flex-start; }
  .tsc-main-image-wrap { order: 2; flex: 1; aspect-ratio: auto; min-height: 500px; }
  .tsc-thumb-col { order: 1; flex-direction: column; overflow-y: auto; overflow-x: hidden; max-height: 600px; padding-right: 4px; }
  .tsc-thumb-col .thumb { width: 80px; }
}

/* --------------------------------------------------------------------------
   Product Info
   -------------------------------------------------------------------------- */
.tsc-product-info .brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
}
.tsc-product-title {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  color: var(--foreground);
  margin: 0.35rem 0 0.5rem;
  line-height: 1.25;
}
.tsc-product-info .short-desc {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin-bottom: 0.9rem;
}

.tsc-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.tsc-price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--foreground);
  font-weight: 700;
  margin: 0;
}
.tsc-price-compare {
  font-size: 1.05rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
}
.tsc-save-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--success-foreground);
  background: var(--success);
  padding: 4px 12px;
  border-radius: 999px;
}
.tsc-price-note { font-size: 0.78rem; color: var(--muted-foreground); margin: 0.4rem 0 1rem; }

.tsc-stock-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.tsc-stock-line.in-stock { color: var(--success-foreground); }
.tsc-stock-line.low-stock { color: #b8860b; }
.tsc-stock-line.out-stock { color: var(--destructive); }
.tsc-sku { font-weight: 400; font-size: 0.78rem; color: var(--muted-foreground); }

.tsc-product-info .desc {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* Feature chips */
.tsc-feature-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.3rem; }
.tsc-feature-strip span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  background: var(--muted);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
}

/* Specifications card */
.tsc-specs {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 1.3rem 0 1.4rem;
  background: var(--card);
}
.tsc-specs-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--muted);
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tsc-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.tsc-spec-row:last-child { border-bottom: none; }
.tsc-spec-label { color: var(--muted-foreground); flex-shrink: 0; }
.tsc-spec-value { text-align: right; font-weight: 500; }

/* Action buttons */
.tsc-action-wrap { display: flex; align-items: stretch; gap: 10px; max-width: 460px; margin: 0 0 1.2rem; }
.tsc-product-info .action-row { display: flex; align-items: stretch; gap: 10px; flex: 1; margin: 0; }
.tsc-product-info .action-row .hero-btn { flex: 1; }
.tsc-wishlist-btn {
  flex-shrink: 0;
  width: 52px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.25s ease;
}
.tsc-wishlist-btn:hover, .tsc-wishlist-btn.active { border-color: var(--primary); color: var(--primary); background: var(--muted); }

/* --------------------------------------------------------------------------
   Details Tabs
   -------------------------------------------------------------------------- */
.tsc-details-section { background: var(--secondary); padding: 3.5rem 0; }
.premium-accordion {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}
.premium-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.premium-accordion .accordion-item:last-child { border-bottom: none; }
.premium-accordion .accordion-button {
  padding: 1.1rem 1.4rem;
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-family-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}
.premium-accordion .accordion-button .tab-icon {
  font-size: 1.05rem;
  color: var(--primary);
  margin-right: 10px;
  flex-shrink: 0;
}
.premium-accordion .accordion-button:not(.collapsed) {
  color: #3F5B2B;
  background: rgba(110, 141, 86, 0.06);
  box-shadow: none;
}
.premium-accordion .accordion-button:not(.collapsed)::after {
  filter: none;
}
.premium-accordion .accordion-body {
  padding: 1.2rem 1.4rem;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.75;
}
.premium-tabs-container { margin-bottom: 1.75rem; }
.premium-tabs {
  border-bottom: none;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.premium-tabs::-webkit-scrollbar { display: none; }
.premium-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  background: var(--card);
  border: 1px solid var(--border) !important;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.78rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}
.premium-tabs .nav-link .tab-icon {
  font-size: 1.05rem;
  color: var(--gold-primary, #d4af37);
  transition: transform 0.3s ease;
}
.premium-tabs .nav-link.active, .premium-tabs .nav-link:hover {
  color: var(--primary-foreground);
  background: var(--primary);
  border-color: var(--primary) !important;
}
.premium-tabs .nav-link.active .tab-icon,
.premium-tabs .nav-link:hover .tab-icon {
  color: var(--primary-foreground);
  transform: scale(1.1);
}
.premium-tab-pane {
  font-family: var(--font-family-body);
  color: var(--foreground);
  line-height: 1.9;
  max-width: 820px;
  margin: 0 auto;
  font-size: 0.95rem;
  animation: tscFadeIn 0.4s ease;
}
.tab-content-inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.25rem 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  text-align: center;
}
.tab-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-size: 0.82rem;
  color: var(--foreground);
}
.tab-description {
  font-size: 0.96rem;
  line-height: 1.85;
  color: var(--foreground);
  margin-bottom: 0;
}
.tab-care-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}
@keyframes tscFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --------------------------------------------------------------------------
   Trust Strip
   -------------------------------------------------------------------------- */
.tsc-trust-section { background: var(--secondary); padding: 3.5rem 0 4rem; }
.trust-badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 1.7rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  height: 100%;
  border: 1px solid var(--border);
}
.trust-badge-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--primary);
}
.trust-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  transition: all 0.3s ease;
}
.trust-badge-card:hover .trust-icon-wrapper {
  background: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.08);
}
.trust-badge-title { font-weight: 600; color: var(--foreground); font-size: 0.92rem; margin: 0; }
.trust-badge-desc { font-size: 0.78rem; color: var(--muted-foreground); margin: 0; line-height: 1.4; }

/* --------------------------------------------------------------------------
   Sticky Mobile Action Bar
   -------------------------------------------------------------------------- */
.tsc-mobile-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  display: none;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}
.tsc-mbtn {
  flex: 1;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.tsc-mbtn:active { transform: scale(0.97); }
.tsc-mbtn-cart { background: var(--card); color: var(--foreground); border: 1.5px solid var(--foreground); }
.tsc-mbtn-buy { background: var(--primary); color: var(--primary-foreground); }
.tsc-mobile-actions-spacer { display: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  /* Thumbs rail on the left of the main image */
  .tsc-gallery { flex-direction: row; gap: 14px; }
  .tsc-gallery .tsc-main-image-wrap { order: 2; flex: 1; }
  .tsc-gallery .tsc-thumb-col { order: 1; flex-direction: column; overflow-y: auto; overflow-x: hidden; }
}

@media (max-width: 991px) {
  .tsc-product-info { margin-top: 0.5rem; }
  .tsc-gallery { position: static; }
}

@media (max-width: 767px) {
  .tsc-action-wrap { display: none; }
  .tsc-mobile-actions { display: flex; }
  .tsc-mobile-actions-spacer { display: block; height: 84px; }
  .tsc-details-section, .tsc-trust-section { padding: 2.25rem 0 2.5rem; }
  .tsc-price { font-size: 1.6rem; }
  .premium-tabs {
    justify-content: flex-start;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }
  .tab-content-inner {
    padding: 1.5rem 1.25rem;
    border-radius: 10px;
  }
  .tab-description {
    font-size: 0.9rem;
    line-height: 1.75;
  }
}

@media (max-width: 575px) {
  .tsc-pd-wrap { padding-top: 1rem; }
  .tsc-gallery { gap: 12px; }
  .tsc-thumb-col .thumb { width: 62px; }
  .tsc-gallery-wishlist { width: 40px; height: 40px; }
  .tsc-spec-row { flex-direction: column; gap: 2px; padding: 10px 16px; }
  .tsc-spec-value { text-align: left; }
  .premium-tabs .nav-link { padding: 0.5rem 1rem; font-size: 0.72rem; }
}

/* ==========================================================================
   Reference-Style Product Main Section
   ========================================================================== */

/* Feature chips with icons + arrows */
.tsc-ref-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 1.4rem; }
.tsc-ref-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted-foreground); font-family: var(--font-family-body); }
.tsc-ref-chip iconify-icon { color: var(--primary); }
.tsc-ref-chip-sep { display: inline-flex; align-items: center; color: var(--border); font-size: 13px; }

/* Stacked action buttons */
.tsc-ref-actions { display: flex; flex-direction: column; gap: 10px; max-width: 460px; margin: 0 0 1.2rem; }
.tsc-ref-btn {
  width: 100%;
  padding: 0.95rem 2rem;
  border-radius: var(--radius-md);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.25s ease;
}
.tsc-ref-btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.tsc-ref-btn-primary:hover { background: var(--accent); border-color: var(--accent); color: var(--primary-foreground); }
.tsc-ref-btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.tsc-ref-btn-outline:hover { background: var(--primary); color: var(--primary-foreground); }
.tsc-ref-btn-border { background: transparent; border-color: var(--border); color: var(--foreground); }
.tsc-ref-btn-border:hover, .tsc-ref-btn-border.active { border-color: var(--primary); color: var(--primary); background: var(--muted); }

/* Handmade note banner */
.tsc-ref-note {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 16px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: auto;
  font-size: 0.7rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  white-space: normal;
}

.tsc-ref-note-content {
  flex: 1;
  min-width: 0;
}

.tsc-ref-note-content > span {
  display: block;
  word-break: break-word;
  font-size: 0.85rem;
}

.tsc-ref-note-logo { width: 36px; height: auto; flex-shrink: 0; }

.tsc-ref-note ul {
  text-align: left;
  margin-top: 0.75rem;
  padding: 0;
  margin-bottom: 0;
}

.tsc-ref-note ul li {
  margin-bottom: 0.4rem;
}

.tsc-ref-note ul li span {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  line-height: 1.4;
  font-weight: 400;
  display: block;
  word-break: break-word;
}

/* Click-to-zoom */
.tsc-zoomable { cursor: zoom-in; }
.tsc-zoomable.zoomed { transform: scale(1.9); cursor: zoom-out; }
.tsc-main-image-wrap:hover .tsc-zoomable.zoomed { transform: scale(1.9); }
.tsc-zoom-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted-foreground);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Underline tabs */
.tsc-ref-tabs-section { background: var(--background); padding: 3.5rem 0; }
.tsc-ref-tabs-nav {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
}
.tsc-ref-tabs-nav::-webkit-scrollbar { display: none; }
.tsc-ref-tabs-nav .nav-link {
  padding: 0 0.25rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color 0.3s ease;
}
.tsc-ref-tabs-nav .nav-link:hover { color: var(--foreground); }
.tsc-ref-tabs-nav .nav-link.active {
  color: var(--foreground);
  background: transparent;
  border-bottom-color: var(--primary);
}
.tsc-ref-tab-content { margin: 2rem 0 0; }
.tsc-ref-tab-pane {
  font-family: var(--font-family-body);
  color: var(--foreground);
  line-height: 1.9;
  font-size: 0.95rem;
}
.tsc-ref-tab-pane .tab-description { font-size: 0.95rem; line-height: 1.85; color: var(--foreground); }

/* Divided trust bar */
.tsc-ref-trust { background: var(--secondary); border-top: 1px solid var(--border); padding: 2rem 0 2.5rem; }
.tsc-ref-trust-row { display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap; }
.tsc-ref-trust-item {
  flex: 1 1 0;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  padding: 0.6rem 1.1rem;
  border-left: 1px solid var(--border);
}
.tsc-ref-trust-item:first-child { border-left: none; }
.tsc-ref-trust-item strong { font-size: 0.8rem; font-weight: 600; color: var(--foreground); font-family: var(--font-family-body); }
.tsc-ref-trust-item span { font-size: 0.75rem; color: var(--muted-foreground); }

/* Section titles with side rules */
.tsc-ref-section-title { display: flex; align-items: center; justify-content: center; gap: 1.1rem; }
.tsc-ref-section-title::before, .tsc-ref-section-title::after {
  content: '';
  height: 1px;
  width: 60px;
  background: var(--primary);
  opacity: 0.4;
  flex-shrink: 0;
}
.tsc-ref-section-title h2 {
  font-family: var(--font-family-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--foreground);
  margin: 0;
  text-align: center;
}
.tsc-ref-section-subtitle { text-align: center; font-size: 0.8rem; color: var(--muted-foreground); margin: 0.4rem 0 0; }

/* Best places grid */
.tsc-ref-places-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }

/* Instagram-style post card */
.tsc-ref-insta-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: #EFE7D8;
}
.tsc-ref-insta-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.tsc-ref-insta-card:hover img { transform: scale(1.06); }

.tsc-ref-insta-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #E1306C;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tsc-ref-insta-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 26px 12px 10px;
  font-size: 0.7rem;
  color: #ffffff;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 70%);
}
.tsc-ref-insta-stats { display: flex; align-items: center; gap: 10px; }
.tsc-ref-insta-stat { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.tsc-ref-insta-handle { font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); }
.tsc-ref-places-text { max-width: 720px; margin: 1.5rem auto 0; text-align: center; font-size: 0.9rem; line-height: 1.8; color: var(--muted-foreground); }

/* Reference-style responsive */
@media (max-width: 991px) {
  .tsc-ref-note { min-height: 0; }
}

@media (max-width: 767px) {
  .tsc-ref-actions { display: none; }
  .tsc-ref-tabs-section { padding: 2.25rem 0 2.5rem; }
  .tsc-ref-tabs-nav { justify-content: flex-start; gap: 1.25rem; }
  .tsc-ref-tabs-nav .nav-link { font-size: 0.7rem; }
  .tsc-ref-tab-content { margin-top: 1.5rem; }
  .tsc-ref-trust-item { flex: 1 1 40%; min-width: 0; border-left: none; }
  .tsc-ref-places-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tsc-ref-places-text { font-size: 0.85rem; }
  .tsc-ref-note { font-size: 0.75rem; }
}

@media (max-width: 575px) {
  .tsc-ref-trust-item { padding: 0.5rem 0.75rem; }
  .tsc-ref-chips { gap: 6px 10px; }
  .tsc-ref-btn { padding: 0.85rem 1.25rem; font-size: 0.72rem; }
  .tsc-ref-places-grid { gap: 10px; }
  .tsc-ref-note { font-size: 0.65rem; padding: 1rem 1.1rem; gap: 8px; }
  .tsc-ref-note-logo { width: 30px; }
}

/* ==========================================================================
   Dynamic Instagram Feed (product / category / shop pages)
   ========================================================================== */
.tsc-insta-reels {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.tsc-insta-reel {
  flex: 0 0 200px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: #EFE7D8;
  scroll-snap-align: start;
}
.tsc-insta-reel .instagram-media,
.tsc-insta-feed-item .instagram-media { margin: 0 !important; min-width: 100% !important; }
.tsc-insta-feed {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.tsc-insta-feed-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  background: #EFE7D8;
}
.tsc-insta-feed-item iframe,
.tsc-insta-reel iframe { width: 100% !important; min-width: 100% !important; height: 100% !important; }

@media (max-width: 768px) {
  .tsc-insta-feed { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tsc-insta-reel { flex-basis: 160px; }
}

/* --------------------------------------------------------------------------
   Smooth interactions (add-to-cart / wishlist / buy-now / qty steppers)
   -------------------------------------------------------------------------- */
@keyframes tscPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
@keyframes tscBadgePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.5); }
  100% { transform: scale(1); }
}
@keyframes tscQtyPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.tsc-pop { animation: tscPop 0.35s cubic-bezier(0.22, 1, 0.36, 1); }
.tsc-badge-pop { animation: tscBadgePop 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.tsc-qty-pop { animation: tscQtyPop 0.3s cubic-bezier(0.22, 1, 0.36, 1); }

.tsc-product-card .card-icons button,
.tsc-gallery-wishlist,
.tsc-ref-btn,
.tsc-mbtn,
.qty-btn,
.co-qty-btn {
  transition: transform 0.15s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.tsc-product-card .card-icons button:active,
.tsc-gallery-wishlist:active,
.tsc-ref-btn:active,
.tsc-mbtn:active,
.qty-btn:active:not(:disabled),
.co-qty-btn:active:not(:disabled) {
  transform: scale(0.9);
}

.tsc-btn-processing {
  opacity: 0.7;
  pointer-events: none;
}

/* Instagram feed image tiles (image-only, no official embed widget) */
.tsc-insta-feed-item {
  display: block;
  position: relative;
}
.tsc-insta-icon {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  padding: 5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.tsc-insta-feed-item:hover .tsc-insta-icon,
.instagram-post:hover .tsc-insta-icon {
  opacity: 1;
}

/* ==========================================================================
   PRODUCT VARIANTS CHIP SELECTOR
   ========================================================================== */
.tsc-variants-section {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.tsc-variants-label-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tsc-variants-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground, #888);
}

.tsc-variants-selected-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary, #b8860b);
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.35);
  border-radius: 20px;
  padding: 3px 10px;
  letter-spacing: 0.03em;
  transition: all 0.2s ease;
}

.tsc-variant-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tsc-variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--card, #fff);
  border: 1.5px solid var(--border, #ddd);
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--foreground, #1a1a1a);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  text-align: left;
}

.tsc-variant-chip:hover:not(.disabled) {
  border-color: var(--primary, #b8860b);
  color: var(--primary, #b8860b);
  background: rgba(197, 160, 89, 0.06);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(184, 134, 11, 0.12);
}

.tsc-variant-chip.active {
  border-color: var(--primary, #b8860b);
  background: rgba(197, 160, 89, 0.1);
  color: var(--primary, #b8860b);
  box-shadow: 0 0 0 1.5px var(--primary, #b8860b);
}

.tsc-variant-chip.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
  filter: grayscale(0.5);
}

.tsc-chip-color-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  border: 1.5px solid rgba(0,0,0,0.18);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.tsc-chip-label {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.2;
}

.tsc-chip-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted-foreground, #777);
  margin-left: 2px;
}

.tsc-chip-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
  margin-left: 2px;
}

.tsc-chip-badge.sale {
  background: #fde8e8;
  color: #c0392b;
}

.tsc-chip-badge.out {
  background: #eee;
  color: #888;
  text-decoration: none;
}

@media (max-width: 576px) {
  .tsc-variant-chips-wrap {
    gap: 7px;
  }
  .tsc-variant-chip {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
}
