/*
Theme Name: Arabian Aura
Description: Burgundy mock-up storefront for the Arabian Aura tenant.
Author: WebMátrix
Version: 1.1.0
Template: twentytwentyfive
Text Domain: arabian-aura
*/

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 700;
  font-style: normal;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 700;
  font-style: italic;
}

@font-face {
  font-family: Manrope;
  src: url("assets/fonts/manrope.woff2") format("woff2");
  font-display: swap;
  font-weight: 400 700;
  font-style: normal;
}

:root {
  color-scheme: light;
  --cream: #F5EEE8;
  --burgundy: #58152E;
  --deep: #2B101C;
  --rose: #B98276;
  --powder: #D3A594;
  --white: #FFFDFC;
  --ink: #2B101C;
  --muted: #67575e;
  --line: rgba(43, 16, 28, .18);
  --max: 1280px;
  --text-min: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  font-size: var(--text-min);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--burgundy); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}
img { max-width: 100%; height: auto; display: block; }
.wp-site-blocks { overflow-x: clip; background: var(--cream); }

.factory-shell { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; max-width: var(--max); }
.wp-block-group.factory-header,
.wp-block-group.factory-footer,
.wp-block-group.factory-shell {
  max-width: var(--max);
}
header.wp-block-template-part,
header:has(.factory-header) {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 238, 232, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
header .wp-block-group.factory-header,
.factory-header {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 2rem;
  min-height: 88px;
  padding-block: .75rem;
  max-width: var(--max) !important;
  width: min(calc(100% - 2rem), var(--max)) !important;
  margin-inline: auto !important;
}
header .factory-header.is-layout-constrained > *,
header .factory-header > * {
  max-width: none !important;
  margin-inline: 0 !important;
}
.factory-brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
header img.factory-logo,
.factory-header img.factory-logo,
img.factory-logo {
  width: auto !important;
  max-width: 220px !important;
  height: 44px !important;
  max-height: 44px !important;
  object-fit: contain !important;
}
.factory-nav {
  display: flex;
  gap: 1.7rem;
  align-items: center;
  justify-content: flex-start;
  font-family: Manrope, system-ui, sans-serif;
}
.factory-nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
}
.factory-tools { display: flex; gap: .4rem; justify-content: flex-end; }
.factory-tool {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ink);
}
.factory-tool svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.factory-header .wp-block-navigation { display: none; }

.factory-kicker {
  margin: 0 0 14px;
  color: var(--burgundy);
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.factory-hero {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  min-height: 620px;
  margin-top: 1.5rem;
  background: var(--powder);
  overflow: hidden;
}
.factory-hero > .wp-block-shortcode,
.factory-categories > .wp-block-shortcode,
.factory-story > .wp-block-shortcode {
  display: contents;
}
.factory-hero-copy {
  padding: clamp(58px, 7vw, 104px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.factory-hero h1,
.factory-products h2,
.factory-section-heading h2,
.factory-finder h2,
.factory-story h2,
.factory-newsletter h2,
.factory-scents h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.026em;
  line-height: .98;
  text-wrap: balance;
}
.factory-hero h1,
.factory-hero h1.factory-tagline {
  max-width: 14ch;
  margin: 0 0 28px;
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  color: var(--deep);
}
.factory-hero-copy > p:not(.factory-kicker) {
  max-width: 36rem;
  margin: 0 0 34px;
}
.factory-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.factory-btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid var(--burgundy);
  background: transparent;
  color: var(--burgundy);
  font-weight: 650;
  text-decoration: none;
}
.factory-btn-primary { background: var(--burgundy); color: var(--cream); }
.factory-btn:hover { background: var(--deep); border-color: var(--deep); color: var(--cream); }
.factory-hero-media {
  position: relative;
  min-height: 650px;
  background: var(--cream);
  overflow: hidden;
}
.factory-hero-media img,
.factory-hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.factory-hero-media::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(245, 238, 232, .75);
  pointer-events: none;
}
.factory-hero-caption {
  position: absolute;
  right: 34px;
  bottom: 34px;
  z-index: 1;
  max-width: 320px;
  padding: 19px 22px;
  background: var(--cream);
}
.factory-hero-caption b {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.1;
}
.factory-hero-caption span { display: block; margin-top: 5px; }
.factory-hero-art,
.factory-finder-art {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--cream);
}
.factory-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  left: 14%;
  top: 72px;
  border: 1px solid var(--burgundy);
  border-radius: 50%;
}
.factory-blotter {
  position: absolute;
  width: 84px;
  height: 380px;
  border-radius: 48px 48px 6px 6px;
  background: var(--white);
  box-shadow: 0 25px 75px rgba(43, 16, 28, .18);
}
.factory-blotter::after {
  content: "";
  position: absolute;
  inset: 75px 13px 14px;
  border-radius: 40px 40px 3px 3px;
  background: linear-gradient(180deg, var(--rose), var(--burgundy));
}
.factory-blotter-one { left: 52%; top: 48px; transform: rotate(14deg); }
.factory-blotter-two { left: 32%; top: 118px; height: 300px; transform: rotate(-10deg); opacity: .78; }

.factory-categories,
.factory-products,
.factory-finder,
.factory-newsletter { padding-block: 5.5rem; }
.factory-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 48px;
  align-items: end;
  margin-bottom: 38px;
}
.factory-section-heading h2,
.factory-products h2,
.factory-finder h2,
.factory-story h2,
.factory-newsletter h2 { margin: 0 0 14px; font-size: clamp(2.8rem, 5vw, 4.8rem); }
.factory-section-heading p,
.factory-products-note { margin: 0; color: var(--muted); }
.factory-products { text-align: center; }
.factory-products-note { max-width: 42rem; margin: 0 auto 2rem; }
.factory-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.factory-category-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  text-decoration: none;
  background: var(--white);
  color: var(--cream);
}
.factory-category-media,
.factory-category-card > span:first-child {
  position: absolute;
  inset: 0;
}
.factory-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.factory-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(43, 16, 28, .65));
}
.factory-category-label {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
  color: var(--cream);
}
.factory-category-label b {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1;
}
.factory-category-label span { display: block; margin-top: 8px; color: var(--cream); }

.factory-scents {
  background: var(--deep);
  color: var(--cream);
  padding-block: 5.5rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding-inline: max(1rem, calc((100vw - var(--max)) / 2));
}
.factory-scents .factory-kicker { color: var(--powder); }
.factory-scents .factory-section-heading p { color: rgba(245, 238, 232, .72); }
.factory-scent-list { border-top: 1px solid rgba(245, 238, 232, .25); }
.factory-scent-link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 88px;
  border-bottom: 1px solid rgba(245, 238, 232, .25);
  color: var(--cream);
  text-decoration: none;
}
.factory-scent-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 500;
}
.factory-scent-note { color: rgba(245, 238, 232, .65); text-align: right; }

.factory-finder {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: stretch;
  padding-inline: 0;
  width: min(100%, var(--max));
}
.factory-finder-copy {
  padding: 55px 0 55px clamp(36px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.factory-finder-stats { display: flex; gap: 38px; margin: 0 0 32px; }
.factory-finder-stats b {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 500;
}
.factory-finder-stats span { display: block; margin-top: 6px; }

.factory-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--burgundy);
  color: var(--cream);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
}
.factory-story-media {
  min-height: 560px;
  background: var(--white);
  display: grid;
  place-items: center;
}
.factory-story-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 58px;
}
.factory-story-copy {
  padding: clamp(65px, 9vw, 138px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.factory-story .factory-kicker { color: var(--powder); }
.factory-story p:not(.factory-kicker) { max-width: 38rem; color: rgba(245, 238, 232, .82); }

.factory-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 3rem;
  border-bottom: 1px solid var(--line);
}
.factory-trust-item { padding: 6px 28px; border-right: 1px solid var(--line); }
.factory-trust-item:first-child { padding-left: 0; }
.factory-trust-item:last-child { padding-right: 0; border: 0; }
.factory-trust-item b {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.15;
}
.factory-trust-item span { display: block; margin-top: 9px; color: var(--muted); }

.factory-newsletter h2 { max-width: 16ch; }

footer.wp-block-template-part,
footer:has(.factory-footer) {
  margin-top: 0;
  background: var(--deep);
  color: var(--cream);
}
.factory-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  padding-block: 4.2rem 2.6rem;
}
.factory-footer p,
.factory-footer a { color: rgba(245, 238, 232, .82); }
.factory-footer-logo,
footer img.factory-footer-logo {
  width: auto !important;
  max-width: 9rem !important;
  height: 4.5rem !important;
  max-height: 4.5rem !important;
  object-fit: contain !important;
  margin-bottom: 1.2rem;
}
.factory-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 14px 40px;
  align-content: start;
}
.factory-footer-links a { text-decoration: none; color: var(--cream); }

.woocommerce-cart,
.woocommerce-checkout { min-height: 50vh; }
.woocommerce ul.products,
.wp-block-woocommerce-product-collection .wc-block-product-template {
  list-style: none;
  padding: 0;
}
.wp-block-woocommerce-product-collection .wc-block-product,
.woocommerce ul.products li.product {
  background: var(--white);
  padding-bottom: 1.2rem;
  text-align: center;
}
.wp-block-woocommerce-product-collection .wc-block-components-product-image,
.wp-block-woocommerce-product-collection img,
.woocommerce ul.products li.product img {
  background: #EDE4DC;
  object-fit: contain;
  aspect-ratio: 1 / 1.12;
  width: 100%;
  height: auto;
}
.wp-block-woocommerce-product-collection .wp-block-post-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.15;
}
.woocommerce div.product { color: var(--ink); }
.woocommerce div.product .product_title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: .98;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--burgundy);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}
.woocommerce div.product form.cart:not(.variations_form) {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.woocommerce div.product form.cart.variations_form { display: block; }
.woocommerce div.product .woocommerce-variation-add-to-cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.woocommerce div.product .single_add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.wc-block-components-product-button__button {
  background: var(--burgundy) !important;
  color: var(--cream) !important;
  border: 0;
  min-height: 54px;
  font-weight: 650;
}
.woocommerce-product-gallery {
  background: var(--white);
  min-height: 520px;
}
.woocommerce div.product div.images img { object-fit: contain; }
.woocommerce div.product .product_title { margin-top: 0; }
.woocommerce-product-gallery { background: var(--white); }
.single-product .woocommerce-breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 0 10px;
  color: var(--muted);
  font-family: Manrope, system-ui, sans-serif;
}
.single-product .woocommerce-breadcrumb a { color: var(--muted); text-decoration: none; }
.single-product div.product {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 64px;
  align-items: start;
  max-width: var(--max);
  margin: 0 auto 4rem;
}
.single-product .woocommerce-product-gallery {
  background: var(--white);
  min-height: 620px;
  padding: 40px;
}
.single-product div.product div.images img { object-fit: contain; width: 100%; height: auto; }
.single-product div.product .summary { padding-top: 12px; }
.factory-product-kicker {
  margin: 0 0 12px;
  color: var(--burgundy);
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.single-product div.product .product_title {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 500;
  line-height: .98;
  text-align: left;
}
.single-product div.product p.price,
.single-product div.product span.price {
  color: var(--deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 500;
}
.single-product div.product .woocommerce-product-details__short-description {
  color: var(--muted);
  margin: 18px 0 22px;
}
.single-product div.product .stock { margin: 0 0 22px; font-family: Manrope, system-ui, sans-serif; }
.single-product div.product form.cart:not(.variations_form) {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: stretch;
}
.single-product div.product .quantity {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 56px;
  border: 1px solid var(--burgundy);
}
.single-product div.product .quantity input.qty {
  width: 72px;
  border: 0;
  background: transparent;
  text-align: center;
}
.single-product div.product .single_add_to_cart_button {
  width: 100%;
  min-height: 56px;
}
.single-product div.product .product_meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 16px;
}
.single-product .woocommerce-tabs {
  max-width: var(--max);
  margin: 0 auto 3rem;
}
.single-product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 18px;
  border: 0;
  display: flex;
  gap: 8px;
}
.single-product .woocommerce-tabs ul.tabs li {
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0;
}
.single-product .woocommerce-tabs .panel h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; }
.single-product .related.products {
  max-width: var(--max);
  margin: 0 auto 4rem;
  text-align: left;
}
.single-product .related.products > h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 500;
  margin: 0 0 28px;
}
.single-product .related ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.single-product .upsells { display: none; }

@media (max-width: 782px) {
  .woocommerce-product-gallery {
    position: static !important;
    top: auto;
  }
}

@media (max-width: 960px) {
  :root { --text-min: 16px; }
  .factory-logo { max-width: 11.5rem; height: 2.5rem; }
  .factory-nav { display: none; }
  .factory-hero,
  .factory-finder,
  .factory-section-heading,
  .factory-trust,
  .factory-footer,
  .factory-story,
  .factory-category-grid,
  .single-product div.product,
  .single-product .related ul.products { grid-template-columns: 1fr; }
  .factory-hero-copy,
  .factory-finder-copy { padding: 3.2rem 1.4rem; }
  .factory-hero-art,
  .factory-hero-media { min-height: 420px; order: -1; }
  .factory-story-media { min-height: 360px; }
  .factory-story-media img { padding: 35px; }
  .factory-scent-link { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .factory-scent-note { text-align: left; }
  .factory-trust-item,
  .factory-trust-item:first-child,
  .factory-trust-item:last-child {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .factory-trust-item:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
