/* ========================================================================== */
/* Kashish V4 — black-led palette and Bodoni Moda + Manrope                   */
/* Final visual-system layer. Keep this stylesheet after the inherited V2 CSS. */
/* ========================================================================== */

:root,
html[data-theme="kashish-black"],
html[data-theme="v4-black"],
html[data-theme="like-doen"],
html[data-theme="porcelain"],
html[data-theme="sage"],
html[data-theme="white"] {
  --font-display: "Bodoni Moda", "Bodoni 72", Didot, Georgia, serif;
  --font-ui: "Manrope", Arial, sans-serif;
  --body-font: var(--font-ui);
  --display-font: var(--font-display);
  --heading-font: var(--font-display);
  --script-font: var(--font-display);

  --v4-carbon: #0b0b0a;
  --v4-ink: #171714;
  --v4-ivory: #f7f5f0;
  --v4-porcelain: #fffefa;
  --v4-stone: #777770;
  --v4-hairline: #ded9d0;
  --v4-bronze: #9b8560;
  --v4-soft-carbon: #f2f1ed;
  --content-gutter: clamp(24px, 3.35vw, 56px);
  --gutter: var(--content-gutter);

  /* Re-map the inherited teal vocabulary so every existing component becomes black. */
  --kashish-teal: var(--v4-carbon);
  --kashish-teal-dark: var(--v4-carbon);
  --kashish-teal-wash: var(--v4-soft-carbon);
  --kashish-success: var(--v4-carbon);
  --v2-dark-teal: var(--v4-carbon);
  --v2-bright-teal: var(--v4-carbon);
  --v2-soft-teal: var(--v4-soft-carbon);

  --color-page-background: #fff;
  --color-surface-primary: #fff;
  --color-surface-secondary: var(--v4-ivory);
  --color-text-primary: var(--v4-ink);
  --color-text-secondary: #5f5d58;
  --color-text-tertiary: var(--v4-stone);
  --color-border-subtle: var(--v4-hairline);
  --color-action-primary: var(--v4-carbon);
  --color-action-hover: #242421;
  --color-focus: var(--v4-carbon);
  --color-success: var(--v4-carbon);
  --color-brand-teal: var(--v4-carbon);
  --color-brand-gold: var(--v4-bronze);

  --page: #fff;
  --surface: #fff;
  --surface-2: var(--v4-ivory);
  --ink: var(--v4-ink);
  --muted: #5f5d58;
  --accent: var(--v4-carbon);
  --accent-dark: #242421;
  --footer: var(--v4-carbon);
  --on-dark: var(--v4-porcelain);
  --line: var(--v4-hairline);
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--font-ui) !important;
}

.display,
.hero-campaign-title,
.pdp-title,
.product-card-info h3,
.section-heading h2,
.section-heading .display,
.page-hero h1,
.page-hero .display,
.utility-page-hero .display,
.utility-section-head h2,
.faq-intro h2,
.gift-preview-brand,
.gift-preview-message,
.editorial-page h1,
.editorial-page h2,
.editorial-page h3,
.footer-newsletter h2,
.mega-spot-copy strong,
.search-context,
.search-suggestion-list button,
.collection-edit-copy strong,
.manifesto-v2 p,
.story-timeline h3,
.footer-paper-edge-v2 p {
  font-family: var(--font-display) !important;
}

/* V4 is intentionally fixed; legacy review controls and saved theme choices cannot override it. */
.review-toolbar { display: none !important; }

*:focus-visible {
  outline-color: var(--v4-carbon) !important;
}

::selection {
  color: #fff;
  background: var(--v4-carbon);
}

.announcement,
.site-footer,
.footer-paper-edge-v2 + .site-footer,
.hero-brand-slide,
.button,
.button-solid,
.quick-view,
.quick-add,
.cart-drawer .view-bag,
.pdp-sticky-purchase .button-solid,
.size-table thead th {
  color: #fff !important;
  background-color: var(--v4-carbon) !important;
  border-color: var(--v4-carbon) !important;
}

.button:hover,
.button-solid:hover,
.quick-view:hover,
.quick-add:hover {
  color: #fff !important;
  background-color: #242421 !important;
  border-color: #242421 !important;
}

.text-link,
.collection-tool,
.collection-count-number,
.product-card-info .money,
.pdp-price,
.pdp-key-details-head,
.faq-item button svg,
.primary-nav .has-mega.is-open > .nav-trigger,
.primary-nav .nav-trigger:hover,
.collection-subnav a.is-active,
.collection-edit-copy strong,
.story-timeline h3,
.utility-page-hero .display,
.utility-section-head h2,
.faq-intro h2,
body[data-page="collection"] .page-hero .display {
  color: var(--v4-carbon) !important;
}

.primary-nav .has-mega.is-open > .nav-trigger::after,
.collection-subnav a.is-active::after {
  background: var(--v4-carbon) !important;
}

.brand-logo-colour,
.manifesto-logo {
  filter: brightness(0);
}

body[data-page="home"] .site-header:not(.is-solid):not(:hover):not(:focus-within) .brand-logo-colour {
  filter: none;
}

.hero-v2,
.hero-brand-slide {
  background: var(--v4-carbon) !important;
}

.hero-v2 .hero-secondary:hover {
  color: var(--v4-carbon) !important;
}

.manifesto-v2,
.roots-timeline .roots-copy,
.size-table tbody th {
  background: var(--v4-soft-carbon) !important;
}

.manifesto-v2 p,
.story-timeline p,
body[data-page="collection"] .page-hero > p:last-child,
.utility-page-hero > p:last-child,
.faq-answer {
  color: #55534e !important;
}

.story-timeline,
.story-timeline li,
.filter-bar,
.collection-tool,
.pdp-key-details,
.pdp-key-details-head,
.pdp-key-details dl > div,
.pdp-sticky-purchase,
.size-table th,
.size-table td,
.faq-list,
.faq-item {
  border-color: rgba(11, 11, 10, 0.2) !important;
}

.product-gallery-controls button,
.colour-swatch.is-active {
  color: var(--v4-carbon) !important;
  border-color: rgba(11, 11, 10, 0.24) !important;
}

.colour-swatch.is-active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--v4-carbon) !important;
}

.pdp-key-details,
.pdp-teal-section,
.product-detail-panel {
  background-color: #fbfbf9 !important;
}

.utility-badge,
.toast,
.progress-fill,
.filter-count,
.product-badge {
  background-color: var(--v4-carbon) !important;
  border-color: var(--v4-carbon) !important;
}

.tab-button.is-active {
  color: var(--v4-carbon) !important;
  background: transparent !important;
  border-color: var(--v4-carbon) !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--v4-carbon) !important;
}

input:focus,
select:focus,
textarea:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--v4-carbon) !important;
  box-shadow: 0 0 0 2px rgba(11, 11, 10, .16) !important;
}

.field.is-success input,
.field.is-success select,
.field.is-success textarea {
  border-color: var(--v4-carbon) !important;
  box-shadow: 0 0 0 2px rgba(11, 11, 10, .12) !important;
}

.site-footer {
  background: var(--v4-carbon) !important;
}

.site-footer a:hover,
.site-footer button:hover {
  color: #fff !important;
}

/* Shared V4 page frame: align content with the header logo and bag edges. */
.shell {
  width: calc(100% - (var(--content-gutter) * 2));
  max-width: none;
  margin-inline: auto;
}

.mega-layout,
.search-inner {
  max-width: none;
}

.mega-layout {
  width: 100%;
}

.search-inner {
  width: 100%;
  margin-inline: 0;
}

.site-footer {
  padding-inline: var(--content-gutter);
}

@media (max-width: 680px) {
  :root,
  html[data-theme="v4-black"] {
    --content-gutter: 20px;
  }
}

/* V4 homepage: staggered campaign stories replace the V2 50/50 theme blocks. */
.v4-story-duet {
  width: min(100% - clamp(32px, 7vw, 112px), 1540px);
  margin: clamp(50px, 7vw, 104px) auto;
  display: grid;
  gap: clamp(72px, 10vw, 156px);
}

.v4-story-panel {
  min-width: 0;
  display: grid;
  align-items: stretch;
}

.v4-story-panel--rakhi {
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr);
}

.v4-story-panel--rakhi .v4-story-panel__copy {
  align-self: center;
  margin-left: clamp(-58px, -3.2vw, -28px);
  padding: clamp(44px, 6vw, 92px);
  position: relative;
  z-index: 2;
  background: var(--v4-ivory);
  border-top: 1px solid var(--v4-bronze);
}

.v4-story-panel__media {
  position: relative;
  min-height: clamp(520px, 54vw, 820px);
  overflow: hidden;
  background: var(--v4-carbon);
}

.v4-story-panel__media > img,
.v4-story-panel__media > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.v4-story-panel__copy h2 {
  margin: 14px 0 22px;
}

.v4-story-panel__copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0 0 30px;
  color: #55534e;
  line-height: 1.72;
}

.v4-story-panel--darbar {
  grid-template-columns: minmax(250px, .58fr) minmax(0, 1.42fr);
  align-items: end;
  margin-left: clamp(0px, 8vw, 128px);
}

.v4-story-panel__product {
  min-height: auto;
  padding: clamp(30px, 4vw, 62px);
  position: relative;
  z-index: 3;
  transform: translate(clamp(20px, 4vw, 64px), clamp(26px, 5vw, 78px));
  background: var(--v4-porcelain);
  border: 1px solid rgba(11, 11, 10, .15);
}

.v4-story-panel__media--darbar {
  min-height: clamp(650px, 62vw, 920px);
}

.v4-story-panel__media--darbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 10, .02) 25%, rgba(11, 11, 10, .84) 100%);
  pointer-events: none;
}

.v4-story-panel__copy--overlay {
  max-width: 720px;
  position: absolute;
  right: clamp(28px, 5vw, 78px);
  bottom: clamp(30px, 5vw, 78px);
  left: clamp(70px, 11vw, 180px);
  z-index: 2;
  color: #fff;
}

.v4-story-panel__copy--overlay :is(.eyebrow, h2, h2 em, p) {
  color: #fff !important;
}

.v4-story-panel__copy--overlay .button {
  color: #fff !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, .72) !important;
}

.v4-story-panel__copy--overlay .button:hover,
.v4-story-panel__copy--overlay .button:focus-visible {
  color: var(--v4-carbon) !important;
  background: #fff !important;
}

/* V4 community: one chapter with three accessible content views. */
.v4-community {
  padding-block: clamp(60px, 8vw, 118px);
  background: #f1eee8;
  border-block: 1px solid rgba(11, 11, 10, .12);
}

.v4-community .community-heading {
  margin-top: 0 !important;
}

.v4-community-tabs {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 54px);
  margin-top: clamp(24px, 3vw, 44px);
  padding-bottom: 14px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(11, 11, 10, .18);
}

.v4-community-tabs .tab-button {
  flex: 0 0 auto;
}

.v4-community-panel {
  padding-top: clamp(34px, 5vw, 74px);
}

.v4-community-panel[hidden] {
  display: none !important;
}

.v4-testimonial-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr 1fr;
  gap: 1px;
  background: rgba(11, 11, 10, .18);
  border: 1px solid rgba(11, 11, 10, .18);
}

.v4-testimonial {
  min-width: 0;
  min-height: 340px;
  margin: 0;
  padding: clamp(30px, 4vw, 62px);
  display: flex;
  flex-direction: column;
  background: var(--v4-porcelain);
}

.v4-testimonial:nth-child(2) {
  transform: translateY(clamp(16px, 2vw, 28px));
}

.v4-testimonial__number,
.v4-testimonial small {
  color: #6c6962;
  font-family: Manrope, sans-serif;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.v4-testimonial blockquote {
  margin: auto 0 clamp(28px, 4vw, 54px);
  color: var(--v4-carbon);
  font-family: "Bodoni Moda", Didot, serif;
  font-size: clamp(26px, 2.45vw, 42px);
  line-height: 1.12;
}

.v4-testimonial figcaption {
  display: grid;
  gap: 4px;
  font-family: Manrope, sans-serif;
}

.v4-testimonial figcaption span {
  color: #6c6962;
  font-size: 12px;
}

.v4-testimonial small {
  margin-top: 18px;
  letter-spacing: .08em;
}

.manifesto-v4 {
  margin-top: 0;
}

.manifesto-v4 + .craft-feature {
  margin-top: 0;
}

@media (max-width: 980px) {
  .v4-story-panel--rakhi,
  .v4-story-panel--darbar {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .v4-story-panel--rakhi .v4-story-panel__copy {
    width: min(88%, 620px);
    margin: clamp(-72px, -7vw, -42px) 0 0 auto;
  }

  .v4-story-panel__product {
    width: min(82%, 520px);
    margin: 0 0 clamp(-72px, -6vw, -42px);
    transform: none;
  }

  .v4-story-panel__copy--overlay {
    left: clamp(28px, 6vw, 70px);
  }

  .v4-testimonial-grid {
    grid-template-columns: 1fr;
  }

  .v4-testimonial {
    min-height: 270px;
  }

  .v4-testimonial:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 680px) {
  .v4-story-duet {
    width: 100%;
    margin-block: 46px;
    gap: 72px;
  }

  .v4-story-panel__media,
  .v4-story-panel__media--darbar {
    min-height: 72vh;
  }

  .v4-story-panel--rakhi .v4-story-panel__copy {
    width: calc(100% - 24px);
    margin: -44px 0 0 24px;
    padding: 38px 28px;
  }

  .v4-story-panel__product {
    width: calc(100% - 48px);
    margin: 0 24px -34px;
    padding: 28px;
  }

  .v4-story-panel__copy--overlay {
    right: 24px;
    bottom: 32px;
    left: 24px;
  }

  .v4-community-tabs {
    margin-inline: 0;
  }

  .v4-testimonial-grid {
    border-inline: 0;
  }
}

/* The decorative footer transition is colour artwork; render it in the V4 monochrome system. */
.footer-paper-edge-v2 img {
  filter: grayscale(1) contrast(3.2);
}

.footer-paper-edge-v2 p {
  color: var(--v4-carbon) !important;
}

/* Carbon controls must retain white labels/icons after every inherited state rule. */
:is(
  .button,
  .button-solid,
  .quick-view,
  .quick-add,
  .cart-drawer .view-bag,
  .pdp-sticky-purchase .button-solid
):not(:disabled):not([aria-disabled="true"]) {
  color: #fff !important;
}

:is(
  .button,
  .button-solid,
  .quick-view,
  .quick-add,
  .cart-drawer .view-bag,
  .pdp-sticky-purchase .button-solid
):not(:disabled):not([aria-disabled="true"]) svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

.utility-badge,
.toast,
.tool-count,
.cart-badge,
.mobile-nav-badge,
.filter-count,
.product-badge {
  color: #fff !important;
}

/* Preserve deliberate light/outline actions on dark editorial imagery. */
.hero-v2 .hero-secondary,
.feature-banner-copy .button,
.accessories-banner .accessories-banner-secondary,
.v4-story-panel__copy--overlay .button {
  color: #fff !important;
  background: transparent !important;
  border-color: rgba(255, 255, 255, .88) !important;
}

.hero-v2 .hero-secondary:hover,
.hero-v2 .hero-secondary:focus-visible,
.feature-banner-copy .button:hover,
.feature-banner-copy .button:focus-visible,
.accessories-banner .accessories-banner-secondary:hover,
.accessories-banner .accessories-banner-secondary:focus-visible,
.v4-story-panel__copy--overlay .button:hover,
.v4-story-panel__copy--overlay .button:focus-visible {
  color: var(--v4-carbon) !important;
  background: #fff !important;
  border-color: #fff !important;
}

/* The brand slide is carbon, so its primary action is intentionally white. */
.hero-brand-slide .hero-actions .button:not(.hero-secondary) {
  color: var(--v4-carbon) !important;
  background: #fff !important;
  border-color: #fff !important;
}

.hero-brand-slide .hero-actions .button:not(.hero-secondary):hover,
.hero-brand-slide .hero-actions .button:not(.hero-secondary):focus-visible {
  color: var(--v4-carbon) !important;
  background: var(--v4-ivory) !important;
  border-color: var(--v4-ivory) !important;
}

/* Disabled actions remain visibly unavailable instead of inheriting the black fill. */
:is(
  .button,
  .button-solid,
  .quick-view,
  .quick-add,
  .cart-drawer .view-bag,
  .pdp-sticky-purchase .button-solid
):is(:disabled, [aria-disabled="true"]) {
  color: var(--v4-stone) !important;
  background: var(--v4-soft-carbon) !important;
  border-color: var(--v4-hairline) !important;
  cursor: not-allowed !important;
}

/* V4 editorial headings run at roughly 80% of the inherited V2 scale. */
.display {
  font-size: clamp(
    calc(34px * var(--type-scale)),
    calc(4vw * var(--type-scale)),
    calc(59px * var(--type-scale))
  ) !important;
}

.hero .hero-campaign-title {
  font-size: clamp(
    calc(38px * var(--type-scale)),
    calc(4.8vw * var(--type-scale)),
    calc(66px * var(--type-scale))
  ) !important;
}

.accessories-banner-copy h2 {
  font-size: clamp(
    calc(32px * var(--type-scale)),
    calc(2.9vw * var(--type-scale)),
    calc(51px * var(--type-scale))
  ) !important;
}

.stores-banner-copy h2 {
  font-size: clamp(
    calc(38px * var(--type-scale)),
    calc(3.7vw * var(--type-scale)),
    calc(58px * var(--type-scale))
  ) !important;
}

.appointment-intro .display {
  font-size: clamp(
    calc(37px * var(--type-scale)),
    4vw,
    calc(59px * var(--type-scale))
  ) !important;
}

body[data-page="product"] .recommendations .section-heading .display {
  font-size: clamp(1.6rem, 2.56vw, 2.56rem) !important;
}

.utility-page-hero .display {
  font-size: clamp(2.72rem, 5.6vw, 4.8rem) !important;
}

.utility-section-head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.4rem) !important;
}

.faq-intro h2 {
  font-size: clamp(1.68rem, 2.72vw, 2.8rem) !important;
}

.footer-newsletter h2 {
  font-size: clamp(19px, 2vw, 30px) !important;
}

.gift-preview-brand {
  font-size: clamp(
    calc(22px * var(--type-scale)),
    calc(3.2vw * var(--type-scale)),
    calc(42px * var(--type-scale))
  ) !important;
}

/* Dynamic editorial routes use these headings without the shared .display hook. */
.editorial-hero h1,
.designer-note-letter h1,
.editorial-next h2 {
  font-size: clamp(
    calc(34px * var(--type-scale)),
    calc(4vw * var(--type-scale)),
    calc(59px * var(--type-scale))
  ) !important;
}

.drawer-head h2,
.collection-curtain-head h2,
.modal-head h2,
.quick-view-copy h2 {
  font-size: calc(27px * var(--type-scale)) !important;
}

@media (max-width: 767px) {
  .feature-banner-copy h2,
  .accessories-banner-copy h2 {
    font-size: calc(37px * var(--type-scale)) !important;
  }

  .stores-banner-copy h2 {
    font-size: calc(42px * var(--type-scale)) !important;
  }
}

@media (max-width: 680px) {
  .hero .hero-campaign-title {
    font-size: calc(38px * var(--type-scale)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
