/*
Theme Name: LATER — AFTER 6
Author: OpenAI
Description: Dark one-product fragrance landing page with fully editable hero, privacy-first local fonts, optional navigation/footer and full WooCommerce compatibility.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: later-after6
*/

:root {
  --later-bg: #070709;
  --later-accent: #a66f67;
  --later-text: #cf8f82;
  --later-muted: #b9776d;
  --later-button-bg: rgba(7, 6, 8, .44);
  --later-button-text: #da9a8c;
  --later-button-border: #9a655e;
  --later-overlay: .16;

  --later-content-width: 1440px;
  --later-copy-width: 760px;
  --later-hero-min-height: 100svh;
  --later-top-space: 42px;
  --later-bottom-space: 46px;

  --later-headline-size: 54px;
  --later-headline-line: 1.16;
  --later-headline-track: .21em;
  --later-product-size: 104px;
  --later-product-line: .96;
  --later-product-track: .04em;
  --later-notes-size: 17px;
  --later-notes-track: .25em;
  --later-meta-size: 12px;
  --later-brand-size: 12px;
  --later-brand-track: .50em;
  --later-button-size: 16px;
  --later-button-track: .24em;
  --later-gap: 26px;

  --later-button-width: 390px;
  --later-button-radius: 2px;
  --later-button-top-space: 26px;
  --later-button-x: 0px;
  --later-button-y: 0px;

  --later-bottle-width: 350px;
  --later-bottle-opacity: .90;
  --later-bottle-x: 0px;
  --later-bottle-y: 0px;
  --later-copy-x: 0px;
  --later-copy-y: 0px;

  --later-font-headline: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --later-font-product: Didot, "Bodoni 72", "Bodoni MT", "Times New Roman", Georgia, serif;
  --later-font-small: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --later-mobile-top-space: 26px;
  --later-mobile-bottom-space: 24px;
  --later-mobile-headline-size: 34px;
  --later-mobile-headline-track: .16em;
  --later-mobile-product-size: 62px;
  --later-mobile-notes-size: 13px;
  --later-mobile-gap: 19px;
  --later-mobile-button-top-space: 12px;
  --later-mobile-button-x: 0px;
  --later-mobile-button-y: 0px;
  --later-mobile-bottle-width: 180px;
  --later-mobile-bottle-x: 0px;
  --later-mobile-bottle-y: 0px;
  --later-mobile-copy-x: 0px;
  --later-mobile-copy-y: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  background: var(--later-bg);
  color: var(--later-text);
  font-family: var(--later-font-small);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  z-index: 99999;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 12px 16px;
  overflow: visible;
  clip: auto;
  background: #fff;
  color: #111;
  white-space: normal;
}




/* =========================================================
   OPTIONAL HEADER / MAIN NAVIGATION
   ========================================================= */
.later-header {
  width: 100%;
  height: var(--later-header-height);
  z-index: 1000;
  color: var(--later-header-text);
  font-family: var(--later-header-font);
  background: var(--later-header-bg);
  border-bottom: 1px solid var(--later-header-border);
  -webkit-backdrop-filter: blur(var(--later-header-blur));
  backdrop-filter: blur(var(--later-header-blur));
}
.later-header--absolute { position: absolute; top: 0; left: 0; }
.later-header--sticky { position: sticky; top: 0; }
.later-header--static { position: relative; }
.admin-bar .later-header--absolute,
.admin-bar .later-header--sticky { top: 32px; }

.later-header-inner {
  position: relative;
  z-index: 1003;
  width: min(calc(100% - (var(--later-header-side-padding) * 2)), var(--later-header-max-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.later-header-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: var(--later-header-text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: var(--later-header-brand-size);
  font-weight: 400;
  line-height: 1;
  letter-spacing: var(--later-header-brand-track);
  white-space: nowrap;
}
.later-header-brand img {
  display: block;
  width: auto;
  max-width: var(--later-header-logo-width);
  max-height: calc(var(--later-header-height) * .60);
  object-fit: contain;
}
.later-main-nav { margin-left: auto; }
.later-header--menu-left .later-main-nav { margin-left: 0; margin-right: auto; }
.later-header--menu-center .later-main-nav { position: absolute; left: 50%; margin: 0; transform: translateX(-50%); }
.later-header--menu-right .later-main-nav { margin-left: auto; margin-right: 0; }
.later-main-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--later-header-menu-gap);
}
.later-main-menu li { margin: 0; padding: 0; }
.later-main-menu a {
  display: inline-block;
  color: var(--later-header-text);
  text-decoration: none;
  text-transform: uppercase;
  font-size: var(--later-header-menu-size);
  line-height: 1.3;
  letter-spacing: var(--later-header-menu-track);
  transition: color .2s ease, opacity .2s ease;
}
.later-main-menu a:hover,
.later-main-menu a:focus-visible,
.later-main-menu .current-menu-item > a,
.later-main-menu .current_page_item > a { color: var(--later-header-hover); }

.later-menu-toggle {
  display: none;
  width: calc(var(--later-burger-width) + 20px);
  height: 48px;
  margin: 0 -10px 0 0;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--later-burger-color);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.later-menu-toggle span {
  display: block;
  width: var(--later-burger-width);
  height: var(--later-burger-line-height);
  background: currentColor;
  transform-origin: center;
  transition: transform .28s ease, opacity .2s ease;
}
.later-header.is-menu-open .later-menu-toggle span:nth-child(1) { transform: translateY(calc(7px + var(--later-burger-line-height))) rotate(45deg); }
.later-header.is-menu-open .later-menu-toggle span:nth-child(2) { opacity: 0; }
.later-header.is-menu-open .later-menu-toggle span:nth-child(3) { transform: translateY(calc(-7px - var(--later-burger-line-height))) rotate(-45deg); }

.later-mobile-backdrop,
.later-mobile-menu { display: none; }
html.later-menu-open,
body.later-menu-open { overflow: hidden; }


.later-site {
  min-height: 100svh;
  background: var(--later-bg);
}

.later-hero {
  position: relative;
  isolation: isolate;
  min-height: var(--later-hero-min-height);
  overflow: hidden;
  background-color: var(--later-bg);
  background-image: url("assets/images/hero-desktop.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Only a soft legibility overlay. No artificial dot grid or fake fig shapes. */
.later-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(0,0,0,var(--later-overlay)), rgba(0,0,0,var(--later-overlay))),
    radial-gradient(circle at 48% 50%, transparent 0 44%, rgba(0,0,0,.12) 72%, rgba(0,0,0,.40) 100%);
}

.later-inner {
  width: min(calc(100% - 64px), var(--later-content-width));
  min-height: var(--later-hero-min-height);
  margin: 0 auto;
  padding: var(--later-top-space) 0 var(--later-bottom-space);
  display: flex;
  flex-direction: column;
}

.later-brand {
  margin: 0;
  font-family: var(--later-font-small);
  font-size: var(--later-brand-size);
  line-height: 1;
  letter-spacing: var(--later-brand-track);
  text-transform: uppercase;
  color: var(--later-muted);
  font-weight: 400;
  transform: translate(var(--later-brand-x, 0px), var(--later-brand-y, 0px));
}

.later-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "copy visual"
    "button visual";
  column-gap: clamp(38px, 6vw, 112px);
  align-items: center;
  padding-top: clamp(30px, 4.5vh, 66px);
}

.later-copy {
  grid-area: copy;
  width: min(100%, var(--later-copy-width));
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: var(--later-gap);
  transform: translate(var(--later-copy-x), var(--later-copy-y));
}

.later-headline {
  margin: 0;
  max-width: 12em;
  font-family: var(--later-font-headline);
  font-weight: var(--later-headline-weight, 300);
  font-size: clamp(34px, 4vw, var(--later-headline-size));
  line-height: var(--later-headline-line);
  letter-spacing: var(--later-headline-track);
  text-transform: uppercase;
  color: var(--later-text);
  text-wrap: balance;
}

.later-rule {
  width: 1px;
  height: 38px;
  background: linear-gradient(to bottom, transparent, var(--later-accent), transparent);
  opacity: .70;
}

.later-product {
  margin: 0;
  font-family: var(--later-font-product);
  font-weight: var(--later-product-weight, 400);
  font-size: clamp(60px, 7vw, var(--later-product-size));
  line-height: var(--later-product-line);
  letter-spacing: var(--later-product-track);
  text-transform: uppercase;
  color: var(--later-text);
  text-shadow: 0 12px 38px rgba(0,0,0,.44);
}

.later-notes {
  margin: 0;
  font-family: var(--later-font-small);
  font-size: var(--later-notes-size);
  line-height: 1.5;
  letter-spacing: var(--later-notes-track);
  text-transform: uppercase;
  color: var(--later-text);
  font-weight: 400;
}

.later-meta {
  margin: -7px 0 0;
  font-family: var(--later-font-small);
  font-size: var(--later-meta-size);
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--later-muted);
  opacity: .84;
}

.later-visual {
  grid-area: visual;
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(100%, 590px);
  min-height: 530px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 24px 20px 0;
  transform: translate3d(var(--later-bottle-x), var(--later-bottle-y), 0);
}

.later-bottle-glow {
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  right: -3%;
  bottom: 7%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166,91,84,.16), rgba(84,39,47,.07) 44%, transparent 72%);
  filter: blur(30px);
  opacity: var(--later-bottle-glow-opacity, .55);
}

.later-bottle {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, var(--later-bottle-width));
  height: auto;
  object-fit: contain;
  opacity: var(--later-bottle-opacity);
  filter: drop-shadow(0 28px 28px rgba(0,0,0,.44));
}

.later-buy {
  grid-area: button;
  width: min(100%, var(--later-button-width));
  min-height: 70px;
  margin-top: var(--later-button-top-space);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 26px;
  border: 1px solid var(--later-button-border);
  border-radius: var(--later-button-radius);
  background: var(--later-button-bg);
  color: var(--later-button-text);
  text-decoration: none;
  text-transform: uppercase;
  font-family: var(--later-font-small);
  font-size: var(--later-button-size);
  font-weight: 400;
  letter-spacing: var(--later-button-track);
  line-height: 1.2;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  position: relative;
  left: var(--later-button-x);
  top: var(--later-button-y);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.later-buy:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--later-accent) 16%, transparent);
  border-color: var(--later-accent);
}
.later-buy:focus-visible {
  outline: 2px solid var(--later-text);
  outline-offset: 5px;
}


/* =========================================================
   OPTIONAL FOOTER / FOOTER NAVIGATION
   ========================================================= */
.later-footer {
  position: relative;
  z-index: 20;
  padding: var(--later-footer-padding-top) var(--later-footer-side-padding) var(--later-footer-padding-bottom);
  background: var(--later-footer-bg);
  color: var(--later-footer-text);
  border-top: 1px solid var(--later-footer-border);
  font-family: var(--later-footer-font);
}
.later-footer-inner {
  width: min(100%, var(--later-footer-max-width));
  margin: 0 auto;
  display: flex;
  gap: var(--later-footer-row-gap);
}
.later-footer--stacked .later-footer-inner { flex-direction: column; }
.later-footer--inline .later-footer-inner { flex-direction: row; align-items: center; }
.later-footer-brand {
  color: var(--later-footer-link);
  text-decoration: none;
  text-transform: uppercase;
  font-size: var(--later-footer-brand-size);
  line-height: 1.2;
  letter-spacing: var(--later-footer-brand-track);
  white-space: nowrap;
}
.later-footer-nav { min-width: 0; }
.later-footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px var(--later-footer-menu-gap);
}
.later-footer-menu li { margin: 0; padding: 0; }
.later-footer-menu a,
.later-footer-copy {
  font-size: var(--later-footer-font-size);
  line-height: 1.5;
  letter-spacing: var(--later-footer-track);
  text-transform: uppercase;
}
.later-footer-menu a {
  color: var(--later-footer-link);
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
.later-footer-menu a:hover,
.later-footer-menu a:focus-visible,
.later-footer-menu .current-menu-item > a,
.later-footer-menu .current_page_item > a { color: var(--later-footer-hover); }
.later-footer-copy { color: var(--later-footer-text); }

.later-footer--left .later-footer-inner { align-items: flex-start; text-align: left; }
.later-footer--center .later-footer-inner { align-items: center; text-align: center; }
.later-footer--right .later-footer-inner { align-items: flex-end; text-align: right; }
.later-footer--left .later-footer-menu { justify-content: flex-start; }
.later-footer--center .later-footer-menu { justify-content: center; }
.later-footer--right .later-footer-menu { justify-content: flex-end; }

.later-footer--inline.later-footer--left .later-footer-inner,
.later-footer--inline.later-footer--center .later-footer-inner,
.later-footer--inline.later-footer--right .later-footer-inner { align-items: center; }
.later-footer--inline.later-footer--left .later-footer-inner { justify-content: flex-start; }
.later-footer--inline.later-footer--center .later-footer-inner { justify-content: center; }
.later-footer--inline.later-footer--right .later-footer-inner { justify-content: flex-end; }
.later-footer--inline .later-footer-copy { margin-left: auto; }
.later-footer--inline.later-footer--right .later-footer-brand { margin-right: auto; }

/* Alignment classes are set from the Customizer. */
.later-copy.align-left { align-items: flex-start; text-align: left; }
.later-copy.align-center { align-items: center; text-align: center; }
.later-copy.align-right { align-items: flex-end; text-align: right; }
.later-copy.align-left .later-rule { margin-left: .12em; }
.later-copy.align-center .later-rule { margin-left: 0; }
.later-copy.align-right .later-rule { margin-left: auto; margin-right: .12em; }

.later-brand.brand-left { align-self: flex-start; text-align: left; }
.later-brand.brand-center { align-self: center; text-align: center; }
.later-brand.brand-right { align-self: flex-end; text-align: right; }

.later-buy.button-left { justify-self: start; }
.later-buy.button-center { justify-self: center; }
.later-buy.button-right { justify-self: end; }

@media (max-width: 980px) {
  .later-inner { width: min(calc(100% - 42px), var(--later-content-width)); }
  .later-stage {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .74fr);
    column-gap: 28px;
  }
  .later-visual { min-height: 460px; }
}


@media (max-width: 860px) {
  .later-main-nav { display: none; }
  .later-menu-toggle { display: flex; }

  .later-mobile-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,.44);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
  }
  .later-mobile-menu {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001;
    width: min(var(--later-mobile-menu-width), 100vw);
    height: 100dvh;
    padding: calc(var(--later-header-height) + 34px) var(--later-mobile-menu-padding) 46px;
    align-items: center;
    background: var(--later-mobile-menu-bg);
    color: var(--later-mobile-menu-text);
    -webkit-backdrop-filter: blur(var(--later-mobile-menu-blur));
    backdrop-filter: blur(var(--later-mobile-menu-blur));
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .32s cubic-bezier(.22,.8,.22,1), visibility .32s ease;
    overflow-y: auto;
  }
  .later-header.is-menu-open .later-mobile-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .later-header.is-menu-open .later-mobile-menu {
    transform: translateX(0);
    visibility: visible;
  }
  .later-mobile-menu-list {
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--later-mobile-menu-gap);
  }
  .later-mobile-menu-list li { margin: 0; padding: 0; }
  .later-mobile-menu-list a {
    display: block;
    color: var(--later-mobile-menu-text);
    text-decoration: none;
    text-transform: uppercase;
    font-family: var(--later-header-font);
    font-size: var(--later-mobile-menu-size);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: var(--later-mobile-menu-track);
  }
  .later-mobile-menu-list a:hover,
  .later-mobile-menu-list a:focus-visible,
  .later-mobile-menu-list .current-menu-item > a,
  .later-mobile-menu-list .current_page_item > a { color: var(--later-mobile-menu-hover); }
  .later-mobile-menu--left .later-mobile-menu-list { text-align: left; align-items: flex-start; }
  .later-mobile-menu--center .later-mobile-menu-list { text-align: center; align-items: center; }
  .later-mobile-menu--right .later-mobile-menu-list { text-align: right; align-items: flex-end; }
}

@media (max-width: 782px) {
  .admin-bar .later-header--absolute,
  .admin-bar .later-header--sticky { top: 46px; }
}

@media (max-width: 767px) {
  .later-hero {
    background-image: url("assets/images/hero-mobile.webp");
    background-position: center center;
  }
  .later-inner {
    width: min(calc(100% - 30px), 560px);
    min-height: var(--later-hero-min-height);
    padding: var(--later-mobile-top-space) 0 var(--later-mobile-bottom-space);
  }
  .later-brand {
    font-size: 10px;
    letter-spacing: .44em;
  }
  .later-stage {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "copy"
      "visual"
      "button";
    gap: 0;
    padding-top: clamp(25px, 4vh, 48px);
    align-items: start;
  }
  .later-copy {
    width: 100%;
    max-width: 100%;
    gap: var(--later-mobile-gap);
    transform: translate(var(--later-mobile-copy-x), var(--later-mobile-copy-y));
  }
  .later-headline {
    font-size: var(--later-mobile-headline-size);
    line-height: 1.18;
    letter-spacing: var(--later-mobile-headline-track);
    max-width: 10.8em;
  }
  .later-rule { height: 28px; }
  .later-product {
    font-size: var(--later-mobile-product-size);
    line-height: 1;
    white-space: nowrap;
  }
  .later-notes {
    font-size: var(--later-mobile-notes-size);
    letter-spacing: .18em;
    line-height: 1.55;
  }
  .later-meta { font-size: 10px; letter-spacing: .14em; }
  .later-visual {
    width: 100%;
    min-height: 0;
    height: clamp(235px, 31svh, 360px);
    align-self: auto;
    justify-self: center;
    padding: 10px 0 0;
    transform: translate3d(var(--later-mobile-bottle-x), var(--later-mobile-bottle-y), 0);
  }
  .later-bottle {
    width: min(100%, var(--later-mobile-bottle-width));
    max-height: 100%;
  }
  .later-bottle-glow {
    width: 58%;
    right: 10%;
    bottom: 8%;
  }
  .later-buy {
    width: min(100%, var(--later-mobile-button-width, 100%));
    min-height: 64px;
    margin-top: var(--later-mobile-button-top-space);
    left: var(--later-mobile-button-x);
    top: var(--later-mobile-button-y);
    padding: 17px 20px;
    font-size: 14px;
    letter-spacing: .20em;
  }

  .later-copy.mobile-align-left { align-items: flex-start; text-align: left; }
  .later-copy.mobile-align-center { align-items: center; text-align: center; }
  .later-copy.mobile-align-right { align-items: flex-end; text-align: right; }
  .later-copy.mobile-align-left .later-rule { margin-left: .12em; margin-right: 0; }
  .later-copy.mobile-align-center .later-rule { margin-left: 0; margin-right: 0; }
  .later-copy.mobile-align-right .later-rule { margin-left: auto; margin-right: .12em; }

  .later-buy.mobile-button-left { justify-self: start; }
  .later-buy.mobile-button-center { justify-self: center; }
  .later-buy.mobile-button-right { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .later-buy { transition: none; }
}


@media (max-width: 767px) {
  .later-header-inner {
    width: min(calc(100% - 30px), var(--later-header-max-width));
  }
  .later-header-brand img { max-width: min(var(--later-header-logo-width), 46vw); }

  .later-footer-inner,
  .later-footer--inline .later-footer-inner {
    flex-direction: column;
    gap: var(--later-footer-row-gap);
  }
  .later-footer--inline .later-footer-copy,
  .later-footer--inline.later-footer--right .later-footer-brand { margin-left: 0; margin-right: 0; }

  .later-footer-mobile--left .later-footer-inner { align-items: flex-start; text-align: left; }
  .later-footer-mobile--center .later-footer-inner { align-items: center; text-align: center; }
  .later-footer-mobile--right .later-footer-inner { align-items: flex-end; text-align: right; }
  .later-footer-mobile--left .later-footer-menu { justify-content: flex-start; }
  .later-footer-mobile--center .later-footer-menu { justify-content: center; }
  .later-footer-mobile--right .later-footer-menu { justify-content: flex-end; }
}

/* =========================================================
   v1.5 — STANDARD PAGES + WOOCOMMERCE
   ========================================================= */
.later-page-shell,
.later-commerce-shell {
  min-height: 70svh;
  background: var(--later-bg);
  color: #eee7e4;
}

.later-page-inner,
.later-commerce-inner {
  width: min(calc(100% - 48px), 1220px);
  margin: 0 auto;
  padding: clamp(86px, 10vw, 150px) 0 clamp(70px, 9vw, 130px);
}

.later-page-title,
.later-commerce-shell .woocommerce-products-header__title.page-title {
  margin: 0 0 42px;
  color: var(--later-text);
  font-family: var(--later-font-product);
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
}

.later-page-content {
  font-size: 16px;
  line-height: 1.75;
}

.later-page-content a,
.later-commerce-shell a {
  color: inherit;
}

/* WooCommerce layout reset for this dark custom theme. */
.woocommerce .later-commerce-inner,
.woocommerce-page .later-commerce-inner {
  color: #eee7e4;
}

.later-commerce-shell .woocommerce-breadcrumb {
  margin: 0 0 30px;
  color: rgba(238,231,228,.55);
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.later-commerce-shell .woocommerce-breadcrumb a {
  color: rgba(238,231,228,.72);
  text-decoration: none;
}

.later-commerce-shell .woocommerce-result-count,
.later-commerce-shell .woocommerce-ordering {
  color: rgba(238,231,228,.70);
}

.later-commerce-shell .woocommerce-ordering select,
.woocommerce-page select,
.woocommerce-page input.input-text,
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="tel"],
.woocommerce-page input[type="password"],
.woocommerce-page input[type="number"],
.woocommerce-page textarea,
.woocommerce-page .select2-container--default .select2-selection--single {
  min-height: 46px;
  border: 1px solid rgba(207,143,130,.38);
  border-radius: 2px;
  background: rgba(255,255,255,.035);
  color: #f4eeeb;
  box-shadow: none;
}

.woocommerce-page input.input-text,
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="tel"],
.woocommerce-page input[type="password"],
.woocommerce-page input[type="number"],
.woocommerce-page textarea {
  padding: 12px 14px;
}

.woocommerce-page textarea { min-height: 120px; }
.woocommerce-page label { color: rgba(238,231,228,.82); }

.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #f4eeeb;
  line-height: 44px;
}
.woocommerce-page .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
}

/* Product cards */
.later-commerce-shell ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 58px) clamp(18px, 3vw, 42px);
  margin: 42px 0 0 !important;
  padding: 0 !important;
}

.later-commerce-shell ul.products::before,
.later-commerce-shell ul.products::after { display: none !important; }

.later-commerce-shell ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left;
}

.later-commerce-shell ul.products li.product a {
  text-decoration: none;
}

.later-commerce-shell ul.products li.product img {
  width: 100%;
  height: auto;
  margin: 0 0 18px !important;
  background: rgba(255,255,255,.025);
}

.later-commerce-shell ul.products li.product .woocommerce-loop-product__title {
  padding: 0 !important;
  margin: 0 0 9px !important;
  color: #f0e8e5;
  font-family: var(--later-font-product);
  font-size: clamp(24px, 2.5vw, 34px) !important;
  font-weight: 400;
  line-height: 1.1;
}

.later-commerce-shell ul.products li.product .price,
.later-commerce-shell div.product p.price,
.later-commerce-shell div.product span.price {
  color: var(--later-text) !important;
  font-size: 15px !important;
  letter-spacing: .08em;
}

.later-commerce-shell .star-rating { color: var(--later-text); }

/* Woo buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.wc-block-components-button,
.wp-block-woocommerce-cart .wc-block-cart__submit-button,
.wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button {
  min-height: 48px;
  padding: 14px 22px !important;
  border: 1px solid var(--later-button-border) !important;
  border-radius: var(--later-button-radius) !important;
  background: var(--later-button-bg) !important;
  color: var(--later-button-text) !important;
  font-family: var(--later-font-small) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  letter-spacing: .16em !important;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
.wc-block-components-button:hover {
  border-color: var(--later-accent) !important;
  background: rgba(166,111,103,.12) !important;
  color: #fff3ef !important;
}

/* Single product */
.later-commerce-shell div.product {
  color: #eee7e4;
}

.later-commerce-shell div.product .product_title {
  margin: 0 0 18px;
  color: var(--later-text);
  font-family: var(--later-font-product);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 400;
  line-height: .98;
}

.later-commerce-shell div.product .woocommerce-product-details__short-description {
  color: rgba(238,231,228,.78);
  line-height: 1.7;
}

.later-commerce-shell div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin-top: 32px;
}

.later-commerce-shell .quantity .qty {
  min-height: 48px;
  width: 76px;
  padding: 0 10px;
  border: 1px solid rgba(207,143,130,.38);
  background: rgba(255,255,255,.035);
  color: #fff;
}

.later-commerce-shell .woocommerce-product-gallery img {
  background: rgba(255,255,255,.02);
}

.later-commerce-shell .woocommerce-tabs {
  padding-top: 60px;
}

.later-commerce-shell .woocommerce-tabs ul.tabs {
  padding: 0 !important;
  border: 0 !important;
}

.later-commerce-shell .woocommerce-tabs ul.tabs::before { border-color: rgba(207,143,130,.20) !important; }
.later-commerce-shell .woocommerce-tabs ul.tabs li {
  border-color: rgba(207,143,130,.20) !important;
  background: rgba(255,255,255,.025) !important;
}
.later-commerce-shell .woocommerce-tabs ul.tabs li a { color: rgba(238,231,228,.72) !important; }
.later-commerce-shell .woocommerce-tabs ul.tabs li.active a { color: var(--later-text) !important; }

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--later-accent) !important;
  background: rgba(255,255,255,.045) !important;
  color: #eee7e4 !important;
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--later-accent) !important; }

/* Cart / Checkout / Account classic templates */
.woocommerce table.shop_table {
  border-color: rgba(207,143,130,.22) !important;
  color: #eee7e4;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { border-color: rgba(207,143,130,.15) !important; }
.woocommerce table.shop_table a { color: #f1e8e5; }

.woocommerce .cart_totals,
.woocommerce .woocommerce-checkout-review-order,
.woocommerce .woocommerce-MyAccount-navigation,
.woocommerce .woocommerce-MyAccount-content {
  color: #eee7e4;
}

.woocommerce .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(207,143,130,.18);
}
.woocommerce .woocommerce-MyAccount-navigation li {
  border-bottom: 1px solid rgba(207,143,130,.18);
}
.woocommerce .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 13px 0;
  text-decoration: none;
}

/* WooCommerce Blocks (Cart / Checkout) */
.woocommerce-page .wc-block-components-main,
.woocommerce-page .wc-block-components-sidebar,
.woocommerce-page .wc-block-components-form,
.woocommerce-page .wc-block-cart,
.woocommerce-page .wc-block-checkout,
.woocommerce-page .wp-block-woocommerce-cart,
.woocommerce-page .wp-block-woocommerce-checkout {
  color: #eee7e4;
}

.woocommerce-page .wc-block-components-product-name,
.woocommerce-page .wc-block-components-title,
.woocommerce-page .wc-block-components-totals-item__label,
.woocommerce-page .wc-block-components-totals-item__value,
.woocommerce-page .wc-block-components-order-summary-item__description,
.woocommerce-page .wc-block-components-order-summary-item__total-price,
.woocommerce-page .wc-block-cart-item__prices,
.woocommerce-page .wc-block-components-product-price,
.woocommerce-page .wc-block-components-formatted-money-amount {
  color: #eee7e4;
}

.woocommerce-page .wc-block-components-text-input input,
.woocommerce-page .wc-block-components-combobox .wc-block-components-combobox-control input,
.woocommerce-page .wc-blocks-components-select .wc-blocks-components-select__select {
  background: rgba(255,255,255,.035) !important;
  color: #f4eeeb !important;
  border-color: rgba(207,143,130,.38) !important;
}

.woocommerce-page .wc-block-components-order-summary,
.woocommerce-page .wc-block-components-totals-wrapper,
.woocommerce-page .wc-block-components-sidebar-layout .wc-block-components-main,
.woocommerce-page .wc-block-components-sidebar {
  border-color: rgba(207,143,130,.18) !important;
}

/* Keep product images and plugin-generated content visible even when plugin
   versions add inline/default light-theme rules. */
.woocommerce-page img,
.woocommerce img { opacity: 1; visibility: visible; }
.woocommerce-page .woocommerce,
.woocommerce-page .wc-block-cart,
.woocommerce-page .wc-block-checkout { display: block; visibility: visible; }

@media (max-width: 900px) {
  .later-page-inner,
  .later-commerce-inner {
    width: min(calc(100% - 32px), 1220px);
    padding-top: 78px;
    padding-bottom: 78px;
  }
  .later-commerce-shell ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 16px;
  }
}

@media (max-width: 560px) {
  .later-commerce-shell ul.products {
    grid-template-columns: 1fr;
  }
  .later-commerce-shell div.product form.cart {
    align-items: stretch;
  }
  .later-commerce-shell div.product form.cart .button {
    flex: 1 1 auto;
  }
}
