/*
 * Shared storefront styling for the custom WooCommerce theme.
 * PHP supplies the reference --fmp-* values from palette.json. Legacy theme 
 * variables point to those tokens so untouched theme components inherit them.
 */
/* Base white, inverse blush, and pale blue match the three observed store sections. */
:root {
  --fmp-text: var(--fmp-primary);
  --fmp-control: var(--fmp-price);
  --omm-ink: var(--fmp-primary);
  --omm-navy: var(--fmp-primary);
  --omm-pink: var(--fmp-accent);
  --omm-sky: var(--fmp-surface);
  --omm-blush: var(--fmp-blush);
  --omm-white: var(--fmp-background);
  --omm-line: var(--fmp-border);
  --fmp-focus: var(--fmp-primary);
  --wp--preset--color--contrast: var(--fmp-primary);
  --wp--preset--color--base: var(--fmp-background);
  --wc-primary: var(--fmp-primary);
  --wc-primary-text: var(--fmp-background);
  --wc-secondary: var(--fmp-surface);
  --wc-secondary-text: var(--fmp-text);
  --wc-content-bg: var(--fmp-background);
}
body.omm-store, .omm-home, .omm-info, .omm-page, .omm-native-shop {
  background-color: var(--fmp-background);
  color: var(--fmp-text);
}
.omm-store :is(h1,h2,h3,h4,h5,h6) { color: var(--fmp-primary); }
.omm-store :where(a), .omm-home a, .omm-info a { color: var(--fmp-primary); }
.omm-store :where(p,li,small) > a:not([class]), .omm-info-reading a:not(.omm-button) {
  text-decoration: underline;
  text-underline-offset: .18em;
}
.omm-store a:hover { text-underline-offset: .22em; }
.omm-store :focus-visible { outline: 2px solid var(--fmp-focus); outline-offset: 3px; }
.omm-store input::placeholder, .omm-store textarea::placeholder {
  color: var(--fmp-text);
  opacity: 1;
}
.omm-store :is(input,textarea,select) {
  color: var(--fmp-text);
  background-color: var(--fmp-background);
  border-color: var(--fmp-control);
  accent-color: var(--fmp-primary);
}
.omm-store .omm-info-form :is(input:not([type=checkbox]),textarea),
.omm-store .omm-newsletter input[type=email] {
  color: var(--fmp-text);
  background-color: var(--fmp-background);
  border-color: var(--fmp-control);
}
.omm-store .omm-skip:focus { background: var(--fmp-background); color: var(--fmp-primary); }

/* Keep the retailer identity and the site's five category links on one row. */
.omm-announcement {
  background: var(--fmp-blush);
  color: var(--fmp-primary);
}
.omm-header {
  background: var(--fmp-background);
  color: var(--fmp-primary);
  border-color: var(--fmp-border);
}
.omm-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 1.9vw, 34px);
  padding-inline: clamp(22px, 3vw, 52px);
}
.omm-header .omm-retailer-logo.omm-logo {
  width: clamp(158px, 15.5vw, 220px);
  justify-self: start;
}
.omm-store .omm-retailer-logo.fmp-brand-link {
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
}
.omm-store .fmp-brand-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.omm-header .omm-desktop-nav {
  justify-self: center;
  margin: 0;
  gap: clamp(14px, 1.65vw, 32px);
  flex-wrap: nowrap;
}
.omm-desktop-nav > a { white-space: nowrap; }
.omm-desktop-nav > a[aria-current=page], .omm-mobile-drawer a[aria-current=page] {
  text-decoration: underline;
  text-decoration-color: var(--fmp-price);
  text-decoration-thickness: 2px;
  text-underline-offset: .32em;
}
.omm-header-actions { justify-self: end; }
.omm-store .bag-count {
  background: var(--fmp-accent);
  color: var(--fmp-price);
  box-shadow: 0 0 0 1px var(--fmp-background);
}
.omm-store .woocommerce span.onsale {
  background: var(--fmp-accent);
  color: var(--fmp-price);
  border: 1px solid var(--fmp-price);
}
@media (max-width: 960px) {
  .omm-header-inner {
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    gap: 0;
    padding-inline: clamp(10px, 2.8vw, 22px);
    height: clamp(62px, 8.5vw, 78px);
  }
  .omm-header .omm-menu-open { grid-column: 1; justify-self: start; }
  .omm-header .omm-retailer-logo.omm-logo {
    grid-column: 2;
    justify-self: center;
    position: static;
    transform: none;
    width: clamp(106px, calc(100vw - 208px), 188px);
  }
  .omm-header-actions { grid-column: 3; margin: 0; }
  .omm-header-actions .omm-icon-button, .omm-header .omm-menu-open {
    width: 44px;
    min-height: 44px;
  }
}
.omm-store .omm-header .omm-icon-button,
.omm-store .omm-drawer .omm-icon-button { color: var(--fmp-primary); }
@media (max-width: 480px) {
  .omm-header-inner { grid-template-columns: auto minmax(0,1fr) auto; column-gap: 6px; }
  .omm-header .omm-retailer-logo.omm-logo { width: min(100%, clamp(112px, 40vw, 186px)); }
}
.omm-store .omm-button, .omm-home .omm-button {
  background: var(--fmp-accent);
  color: var(--fmp-price);
  border-color: var(--fmp-price);
}
.omm-store .omm-button:hover {
  background: var(--fmp-accent);
  color: var(--fmp-price);
  text-decoration: underline;
  text-underline-offset: .2em;
}
/* The blue reference color scheme uses a navy button and a powder-blue hover. */
.omm-store :is(.omm-home-featured, .omm-home-editorial-blue) .omm-button,
.omm-store .omm-to-top {
  background: var(--fmp-primary);
  color: var(--fmp-background);
  border-color: var(--fmp-primary);
}
.omm-store :is(.omm-home-featured, .omm-home-editorial-blue) .omm-button:hover,
.omm-store .omm-to-top:hover {
  background: var(--fmp-secondary);
  color: var(--fmp-primary);
  border-color: var(--fmp-primary);
}
.omm-store .omm-button-outline {
  background: transparent;
  color: var(--fmp-primary);
  border-color: var(--fmp-primary);
}
.omm-store .omm-button-outline:hover {
  background: var(--fmp-primary);
  color: var(--fmp-background);
}

/* Put the collection copy beside the full-color product photo. The picture can
   change with each slide without changing the contrast of any text. */
.omm-home-hero {
  height: clamp(480px, 43vw, 645px);
  background: var(--fmp-surface);
  color: var(--fmp-primary);
}
.omm-home-slide {
  display: grid;
  grid-template-columns: minmax(310px, 39%) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  background: var(--fmp-surface);
}
.omm-home-slide > img {
  grid-area: 1 / 2;
  position: static;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center 59%;
}
.omm-home-slide::after { content: none; }
.omm-home-hero-copy {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 42px clamp(26px, 4.8vw, 83px) 92px;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  background: var(--fmp-background);
}
.omm-store .omm-home-hero-copy :is(h1,h2) {
  color: var(--fmp-primary);
  font-size: clamp(52px, 5.6vw, 88px);
}
.omm-store .omm-home-hero-copy p { color: var(--fmp-text); }
.omm-home-hero-copy .omm-hero-collection {
  display: flex;
  align-items: center;
  gap: .75em;
}
.omm-home-hero-copy .omm-hero-collection::before {
  content: "";
  flex: 0 0 24px;
  height: 2px;
  background: var(--fmp-accent);
}
.omm-home-hero-copy .omm-button {
  min-width: 180px;
  max-width: 100%;
}
.omm-home-carousel-bottom {
  left: clamp(26px, 4.8vw, 83px);
  bottom: 20px;
  transform: none;
  gap: 12px;
}
.omm-store .omm-home-slide-arrow, .omm-store .omm-home-slide-pause {
  color: var(--fmp-primary);
  background: var(--fmp-background);
  border: 1px solid var(--fmp-control);
}
.omm-store .omm-home-slide-arrow { top: auto; bottom: 20px; }
.omm-home-slide-prev { left: auto; right: 78px; }
.omm-home-slide-next { right: 24px; }
.omm-home-slide-dots button { width: 34px; }
.omm-home-slide-dots button span { background: var(--fmp-control); }
.omm-home-slide-dots button[aria-current=true] span { background: var(--fmp-price); }
.omm-home-hero :is(button,a):focus-visible { outline: 2px solid var(--fmp-primary); outline-offset: 3px; }
@media (max-width: 760px) {
  .omm-home-hero { height: clamp(525px, 125vw, 642px); }
  .omm-home-slide {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: minmax(0,1fr) auto;
  }
  .omm-home-slide > img { grid-area: 1 / 1; }
  .omm-home-hero-copy {
    grid-area: 2 / 1;
    align-items: center;
    padding: 20px 18px 56px;
    text-align: center;
  }
  .omm-store .omm-home-hero-copy :is(h1,h2) {
    font-size: clamp(38px, 8vw, 54px);
    line-height: 1;
    margin-bottom: 15px;
  }
  .omm-home-hero-copy .omm-hero-collection { margin-bottom: 9px; }
  .omm-home-hero-copy .omm-button { min-height: 44px; }
  .omm-home-carousel-bottom { left: 50%; bottom: 6px; transform: translateX(-50%); }
  .omm-store .omm-home-slide-arrow {
    top: clamp(105px, 29vw, 170px);
    bottom: auto;
    width: 34px;
    height: 34px;
  }
  .omm-home-slide-prev { left: 10px; right: auto; }
  .omm-home-slide-next { right: 10px; }
}
.omm-home-ribbon, .omm-department-links, .omm-home-discover,
.omm-home-look-hotspot, .omm-home-discover-pair span {
  background-color: var(--fmp-background);
  color: var(--fmp-primary);
}
.omm-home-color-category::after {
  background: linear-gradient(to bottom, transparent 25%,
    color-mix(in srgb, var(--fmp-primary) 70%, transparent) 60%,
    color-mix(in srgb, var(--fmp-primary) 76%, transparent));
}
.omm-home-color-category span { color: var(--fmp-background); }
.omm-home-look-hotspot { box-shadow: 0 0 0 5px var(--fmp-control); }
.omm-home-look-hotspot:hover { box-shadow: 0 0 0 7px var(--fmp-control); }
.omm-home-featured, .omm-home-look-product,
.omm-home-journal, .omm-info-hero, .omm-info-about-note,
.omm-store .omm-newsletter, .omm-store .omm-footer {
  background-color: var(--fmp-surface);
  color: var(--fmp-text);
}
.omm-home-editorial-blue { background: var(--fmp-surface); }
.omm-home-editorial-pink, .omm-home-journal, .omm-home-look-product, .omm-info-about-note { background: var(--fmp-blush); }
.omm-info-guide-image { background: var(--fmp-background); }
.omm-store .omm-newsletter { background: var(--fmp-blush); }
.omm-store .omm-newsletter .omm-button {
  background: var(--fmp-accent);
  color: var(--fmp-price);
  border-color: var(--fmp-price);
}
.omm-home .omm-home-look-tabs button[aria-selected=true] { border-bottom-color: var(--fmp-accent); }
.omm-store :is(.omm-home-eyebrow,.omm-info-eyebrow,.omm-eyebrow) {
  color: var(--fmp-primary);
}
.omm-home-editorial-copy .omm-home-eyebrow::before, .omm-newsletter .omm-eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.55em;
  height: 2px;
  margin-inline-end: .65em;
  vertical-align: middle;
  background: var(--fmp-accent);
}
.omm-info-notice { background: var(--fmp-surface); color: var(--fmp-text); }
.omm-info-error { border-left-color: var(--fmp-accent); }
.omm-footer { border-top: 1px solid var(--fmp-border); }
.omm-footer .omm-retailer-logo.omm-logo { width: min(204px, 100%); }
.omm-footer-grid > div > a:not(.omm-logo), .omm-store .omm-footer h3 {
  color: var(--fmp-primary);
}
.omm-footer-bottom { border-color: var(--fmp-border); }

