/* ==========================================================================
   Studio Theme Identity (Luxury Editorial / Scandinavian Minimalist)
   Applied cleanly via data-theme="studio" on the dynamic page root.
   ========================================================================== */

[data-theme="studio"] {
  background-color: var(--theme-bg);
  color: var(--theme-ink);
  font-family: var(--theme-font-body);
  letter-spacing: -0.01em;
}

/* Typography Overrides */
[data-theme="studio"] h1,
[data-theme="studio"] h2,
[data-theme="studio"] h3,
[data-theme="studio"] .font-heading,
[data-theme="studio"] .theme-hero-title,
[data-theme="studio"] .theme-product-grid-title,
[data-theme="studio"] .theme-rich-text-title,
[data-theme="studio"] .theme-faq-title,
[data-theme="studio"] .theme-contact-title,
[data-theme="studio"] .theme-policy-title,
[data-theme="studio"] .theme-header-name,
[data-theme="studio"] .theme-footer-name {
  font-family: var(--theme-font-heading);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--theme-ink, #171717);
}

/* --------------------------------------------------------------------------
   Studio Header & Navigation
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-header {
  border-bottom: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent);
  background-color: color-mix(in srgb, var(--theme-bg) 95%, transparent);
  backdrop-filter: blur(12px);
}

[data-theme="studio"] .theme-header-name {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--theme-ink, #171717) !important;
}

[data-theme="studio"] .theme-header-cart {
  background-color: var(--theme-primary, #171717) !important;
  color: var(--theme-on-primary, #ffffff) !important;
  border-radius: var(--theme-radius, 8px) !important;
  padding: 0.45rem 1rem !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
}

[data-theme="studio"] .theme-header-cart:hover {
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Studio Hero Section (Full Viewport Height & Deep Ink Contrast)
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-hero-section {
  border-bottom: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent);
}

/* The seller picks between these two in the editor, so the gradient can't be unconditional. */
[data-theme="studio"] .theme-hero-bg-gradient {
  background: linear-gradient(180deg, var(--theme-bg) 0%, color-mix(in srgb, var(--theme-ink) 5%, var(--theme-bg)) 60%, var(--theme-bg) 100%);
}

[data-theme="studio"] .theme-hero-bg-solid {
  background: var(--theme-bg);
}

[data-theme="studio"] .theme-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--theme-ink) 14%, transparent);
  background-color: color-mix(in srgb, var(--theme-surface) 95%, transparent);
  padding: 0.35rem 1.1rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--theme-ink, #171717) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

[data-theme="studio"] .theme-hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  line-height: 1.1 !important;
  margin-top: 1.5rem !important;
  color: var(--theme-ink, #171717);
}

[data-theme="studio"] .theme-hero-desc {
  color: var(--theme-muted, #525252);
  font-size: 1.125rem !important;
  line-height: 1.7 !important;
  margin-top: 1.25rem !important;
  max-width: 38rem !important;
}

[data-theme="studio"] .theme-hero-cta {
  border-radius: var(--theme-radius, 8px) !important;
  background-color: var(--theme-primary, #171717) !important;
  color: var(--theme-on-primary, #ffffff) !important;
  padding: 0.875rem 2.5rem !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  margin-top: 2rem;
  display: inline-block;
}

[data-theme="studio"] .theme-hero-cta:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="studio"] .theme-btn,
[data-theme="studio"] .theme-button,
[data-theme="studio"] button[type="submit"]:not(.rounded-full) {
  border-radius: var(--theme-radius, 8px);
}

/* --------------------------------------------------------------------------
   Studio Product Grid & 4:5 High-Fashion Cards
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-product-grid-section {
  max-width: 82rem;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--theme-bg);
}

[data-theme="studio"] .theme-product-grid-header {
  border-bottom: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent);
  padding-bottom: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Matches the shared `.theme-section-heading` clamp below, so the product grid's title sits on the
   same scale as every other section heading instead of being pinned a size apart from them. */
[data-theme="studio"] .theme-product-grid-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--theme-ink, #171717) !important;
}

[data-theme="studio"] .theme-product-grid-subtitle {
  color: color-mix(in srgb, var(--theme-ink) 70%, var(--theme-bg)) !important;
}

[data-theme="studio"] .theme-product-card {
  color: var(--theme-ink, #171717);
}

[data-theme="studio"] .theme-product-card-media {
  aspect-ratio: 4 / 5 !important;
  border-radius: var(--theme-card-radius, 12px) !important;
  border: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent);
  background-color: color-mix(in srgb, var(--theme-ink) 6%, var(--theme-bg));
  position: relative;
  overflow: hidden;
}

[data-theme="studio"] .theme-product-card-media img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="studio"] .theme-product-card:hover .theme-product-card-media img {
  transform: scale(1.05);
}

/* Typography only: the colour is set inline per badge, so sold-out stays neutral instead of reading as a promo. */
[data-theme="studio"] .theme-product-card-badge {
  border-radius: var(--theme-radius, 0.25rem);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

[data-theme="studio"] .theme-product-card-wishlist {
  background-color: color-mix(in srgb, var(--theme-surface, #ffffff) 95%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent);
  box-shadow: 0 2px 6px color-mix(in srgb, var(--theme-ink) 8%, transparent);
}

[data-theme="studio"] .theme-product-card-name {
  font-weight: 500;
  color: var(--theme-ink, #171717) !important;
  font-size: 0.9375rem;
}

[data-theme="studio"] .theme-product-card-price {
  font-family: var(--theme-font-body);
  font-weight: 600;
  color: var(--theme-ink, #171717) !important;
}

/* --------------------------------------------------------------------------
   Studio Rich Text & Philosophy
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-rich-text-section {
  border-top: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent);
  background-color: color-mix(in srgb, var(--theme-ink) 4%, var(--theme-bg));
}

[data-theme="studio"] .theme-rich-text-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--theme-ink, #171717) !important;
}

[data-theme="studio"] .theme-rich-text-content {
  font-style: italic;
  color: color-mix(in srgb, var(--theme-ink) 80%, var(--theme-bg)) !important;
  font-size: 1.1875rem;
  line-height: 1.8;
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Studio FAQ
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-faq-section {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="studio"] .theme-faq-title {
  font-size: 2rem;
  color: var(--theme-ink, #171717) !important;
}

[data-theme="studio"] .theme-faq-list {
  border-top: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent);
}

[data-theme="studio"] .theme-faq-item {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent) !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  padding: 1.25rem 0.25rem !important;
}

[data-theme="studio"] .theme-faq-question {
  font-size: 1rem;
  font-weight: 500;
  color: var(--theme-ink, #171717) !important;
}

[data-theme="studio"] .theme-faq-answer {
  color: color-mix(in srgb, var(--theme-ink) 70%, var(--theme-bg)) !important;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Studio Contact
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-contact-section {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="studio"] .theme-contact-title {
  font-size: 2rem;
  color: var(--theme-ink, #171717) !important;
}

[data-theme="studio"] .theme-contact-card {
  border: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent) !important;
  border-radius: var(--theme-card-radius, 12px) !important;
  background-color: var(--theme-surface, #ffffff) !important;
  padding: 2.5rem !important;
  color: var(--theme-ink, #171717) !important;
}

/* --------------------------------------------------------------------------
   Studio Footer
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-footer {
  border-top: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent);
  background-color: color-mix(in srgb, var(--theme-ink) 5%, var(--theme-bg)) !important;
  padding-top: 4rem;
  padding-bottom: 3.5rem;
  color: var(--theme-ink, #171717) !important;
}

[data-theme="studio"] .theme-footer-name {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--theme-ink, #171717) !important;
}

[data-theme="studio"] .theme-footer-link {
  color: color-mix(in srgb, var(--theme-ink) 70%, var(--theme-bg)) !important;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[data-theme="studio"] .theme-footer-link:hover {
  color: var(--theme-primary, #171717) !important;
}

[data-theme="studio"] .theme-footer-copy {
  color: color-mix(in srgb, var(--theme-ink) 55%, var(--theme-bg)) !important;
}

/* --------------------------------------------------------------------------
   Studio Shared Section Heading
   The grid, features, reviews, gallery and trust rows all render this header.
   Styling it once is what keeps their titles on one type scale.
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-section-heading h2,
[data-theme="studio"] .theme-section-heading h3 {
  font-family: var(--theme-font-heading);
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--theme-ink) !important;
}

[data-theme="studio"] .theme-section-heading p {
  color: var(--theme-muted) !important;
  font-size: 0.9375rem;
  line-height: 1.7;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Studio Features — quiet cards, accent glyph, generous inner space
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-features-grid li {
  background-color: var(--theme-surface) !important;
  border: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent) !important;
  border-radius: var(--theme-card-radius, 12px) !important;
  padding: 1.75rem !important;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

[data-theme="studio"] .theme-features-grid li:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-ink) 8%, transparent);
}

[data-theme="studio"] .theme-features-grid li h3 {
  font-family: var(--theme-font-heading);
  font-size: 1.0625rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Studio Trust row — hairline tiles, not filled chips
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-trust-badge {
  background-color: transparent !important;
  border: 1px solid color-mix(in srgb, var(--theme-ink) 12%, transparent) !important;
  /* Row token, not card: a reassurance chip is a short wide tile, and the card setting's 20px
     bows it. This rule is `!important`, so it would otherwise beat the component's own token. */
  border-radius: var(--theme-row-radius, 8px) !important;
  padding: 0.875rem 1.125rem !important;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Studio Reviews — the pull quote treatment, serif and roomy
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-reviews li {
  background-color: var(--theme-surface) !important;
  border: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent) !important;
  border-radius: var(--theme-card-radius, 12px) !important;
  padding: 1.75rem !important;
}

[data-theme="studio"] .theme-reviews li p:first-of-type {
  font-family: var(--theme-font-heading);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Studio Gallery — square plates, captions as quiet metadata
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-image-gallery figure > div {
  border-radius: var(--theme-card-radius, 12px) !important;
  overflow: hidden;
}

[data-theme="studio"] .theme-image-gallery figcaption {
  color: var(--theme-muted) !important;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Studio Image-with-text — a tinted band to break the page rhythm
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-image-with-text h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.5rem);
  line-height: 1.15;
}

[data-theme="studio"] .theme-image-with-text a {
  box-shadow: 0 2px 8px color-mix(in srgb, var(--theme-ink) 15%, transparent);
  letter-spacing: 0.05em;
  transition: filter 0.2s ease, transform 0.2s ease;
}

[data-theme="studio"] .theme-image-with-text a:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Studio Promo & Text banner
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-promo-title,
[data-theme="studio"] .theme-text-banner h2 {
  font-family: var(--theme-font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
}

[data-theme="studio"] .theme-promo-cta {
  letter-spacing: 0.05em;
  transition: filter 0.2s ease, transform 0.2s ease;
}

[data-theme="studio"] .theme-promo-cta:hover {
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Studio Bento — matches the card radius and the slow card zoom
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-bento-tile {
  border-radius: var(--theme-card-radius, 12px) !important;
}

[data-theme="studio"] .theme-bento-tile img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Studio Marquee — a hairline strip, not a filled bar
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-marquee {
  background-color: color-mix(in srgb, var(--theme-ink) 5%, var(--theme-bg)) !important;
  color: var(--theme-ink) !important;
  border-top: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent);
}

[data-theme="studio"] .theme-marquee .shrink-0 {
  letter-spacing: 0.12em;
}

/* Over a photo the hero copy is forced white, so the badge must not keep its light pill fill.
   The component sets the colours inline; these only release the theme's `!important` claims. */
[data-theme="studio"] .theme-hero-bg-image .theme-hero-badge {
  background-color: transparent !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

[data-theme="studio"] .theme-hero-bg-image .theme-hero-title,
[data-theme="studio"] .theme-hero-bg-image .theme-hero-desc {
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   Studio Track Order — the same editorial card treatment as the rest of the site
   -------------------------------------------------------------------------- */
[data-theme="studio"] .theme-track-title {
  font-family: var(--theme-font-heading);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--theme-ink) !important;
}

[data-theme="studio"] .theme-track-subtitle {
  font-family: var(--theme-font-heading);
  font-weight: 500;
  letter-spacing: -0.01em;
}

[data-theme="studio"] .theme-track-form,
[data-theme="studio"] .theme-track-card {
  border-radius: var(--theme-card-radius, 12px) !important;
  border: 1px solid color-mix(in srgb, var(--theme-ink) 10%, transparent) !important;
  background-color: var(--theme-surface) !important;
}

/* Matches the hero/product CTA: filled, letter-spaced, lifts on hover. */
[data-theme="studio"] .theme-track-cta {
  border-radius: var(--theme-radius, 8px) !important;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: filter 0.2s ease, transform 0.2s ease;
}

[data-theme="studio"] .theme-track-cta:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

[data-theme="studio"] .theme-track-cta-outline {
  box-shadow: none;
  border-color: color-mix(in srgb, var(--theme-ink) 20%, transparent) !important;
}

[data-theme="studio"] .theme-track-cta-outline:hover {
  transform: none;
  filter: none;
}
