/*
Theme Name: Elysian Orient
Theme URI: https://elysianorient.local
Author: Elysian Orient
Description: European luxury oriental porcelain art gallery. Requires WooCommerce.
Version: 0.4.2
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: elysian-orient
*/

:root {
  --eo-ivory: #f4efe6;
  --eo-paper: #f8f5ef;
  --eo-stone: #ece6db;
  --eo-charcoal: #1c1b18;
  --eo-ink: #2a2824;
  --eo-muted: #5c564c;
  --eo-line: #ddd4c6;
  --eo-blue: #3c536c;
  --eo-navy: #243446;
  --eo-gold: #9a8868;
  --eo-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --eo-sans: "Outfit", "Gill Sans", "Trebuchet MS", sans-serif;
  --eo-pad: clamp(22px, 4vw, 72px);
  --eo-tap: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--eo-paper);
  color: var(--eo-ink);
  font-family: var(--eo-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--eo-serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--eo-charcoal);
}

.site-announce {
  background: var(--eo-navy);
  color: #f4efe6;
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 11px 16px;
}

.site-header {
  padding: 32px var(--eo-pad) 0;
  background: var(--eo-paper);
}

.site-header__top {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) auto minmax(140px, 1fr);
  grid-template-areas: "left logo utils";
  align-items: center;
  gap: 24px;
}

.site-header__left {
  grid-area: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.site-header__utils {
  grid-area: utils;
  display: flex;
  gap: 22px;
  justify-content: flex-end;
}

.site-header__search,
.site-header__utils a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--eo-muted);
}

.site-header__search:hover,
.site-header__utils a:hover,
.site-nav a:hover {
  color: var(--eo-charcoal);
}

.site-logo {
  grid-area: logo;
  font-family: var(--eo-serif);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  color: var(--eo-charcoal);
}

.site-logo span {
  display: block;
  font-family: var(--eo-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.32em;
  margin-top: 8px;
  color: var(--eo-gold);
}

.nav-toggle {
  display: none;
  width: var(--eo-tap);
  height: var(--eo-tap);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
}

.nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--eo-charcoal);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header__utils a {
  min-height: var(--eo-tap);
  display: inline-flex;
  align-items: center;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 36px;
  width: 100%;
  padding: 28px 0 26px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--eo-line);
}

.site-nav a {
  padding: 8px 0;
}

.site-nav .menu,
.site-nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-extra {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  min-height: 88vh;
}

.hero__copy {
  background: var(--eo-ivory);
  padding: clamp(48px, 8vw, 96px) clamp(32px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__copy .section__label {
  text-align: left;
  margin-bottom: 18px;
}

.hero__copy h1 {
  font-size: clamp(42px, 5.4vw, 76px);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 28px;
}

.hero__copy p {
  max-width: 38ch;
  color: var(--eo-muted);
  font-size: 17px;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--eo-navy);
  color: #f8f5ef;
  border: 1px solid var(--eo-navy);
  padding: 15px 26px;
  letter-spacing: 0.18em;
  font-family: var(--eo-sans);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--eo-charcoal);
  border-color: var(--eo-charcoal);
}

.btn--ghost {
  background: transparent;
  color: var(--eo-navy);
}

.btn--ghost:hover {
  background: var(--eo-navy);
  color: #f8f5ef;
}

.hero__media {
  min-height: 88vh;
  background: var(--eo-stone) center/cover no-repeat;
}

.section {
  padding: clamp(72px, 10vw, 120px) var(--eo-pad);
}

.section__label {
  text-align: center;
  letter-spacing: 0.32em;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--eo-blue);
  margin: 0;
}

.section__label::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--eo-gold);
  margin: 14px auto 0;
}

.hero__copy .section__label::after,
.story-split .section__label::after,
.elysian-product .section__label::after {
  margin-left: 0;
  margin-right: auto;
}

.section h2 {
  font-size: clamp(34px, 4.2vw, 54px);
  text-align: center;
  font-weight: 500;
  line-height: 1.15;
  margin: 18px 0 56px;
}

.story-split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.story-split h2 {
  text-align: left;
  margin: 12px 0 24px;
}

.story-split p {
  color: var(--eo-muted);
  max-width: 48ch;
}

.story-split img,
.craft-banner {
  width: 100%;
  object-fit: cover;
}

.story-split img {
  aspect-ratio: 4/5;
}

.craft-banner {
  aspect-ratio: 21/8;
  margin: 8px 0 48px;
}

.grid-6,
.grid-4,
.grid-3 {
  display: grid;
  gap: clamp(20px, 2.4vw, 36px);
}

.grid-6 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: transparent;
}

.card img {
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--eo-stone);
}

#scenes .card img {
  aspect-ratio: 4/5;
}

.card__body {
  padding: 22px 8px 8px;
  text-align: center;
}

.card h3 {
  font-family: var(--eo-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
}

.card p,
.card .price,
ul.products .price {
  margin: 0;
  color: var(--eo-muted);
  font-size: 14px;
}

.card .price,
ul.products .price,
.woocommerce-Price-amount {
  font-family: var(--eo-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eo-blue);
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

.craft-points h3,
.trust h3 {
  font-family: var(--eo-serif);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 10px;
}

.craft-points p,
.trust p {
  margin: 0;
  color: var(--eo-muted);
  max-width: 36ch;
}

.trust,
.reviews,
.newsletter {
  background: var(--eo-ivory);
}

.reviews blockquote {
  max-width: 42ch;
  margin: 0 auto;
  text-align: center;
  font-family: var(--eo-serif);
  font-size: clamp(22px, 2.6vw, 32px);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
}

.reviews .stars {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--eo-gold);
  font-style: normal;
  margin-bottom: 16px;
}

.reviews cite {
  display: block;
  margin-top: 24px;
  font-family: var(--eo-sans);
  font-size: 11px;
  font-style: normal;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eo-muted);
}

.newsletter p {
  text-align: center;
  color: var(--eo-muted);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 480px;
  margin: 28px auto 0;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--eo-line);
  background: #fff;
  font-family: var(--eo-sans);
  font-size: 14px;
}

.elysian-product {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 4vw, 72px);
  padding: clamp(40px, 6vw, 72px) var(--eo-pad);
  align-items: start;
}

.elysian-product h1 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.12;
  margin: 8px 0 12px;
}

.elysian-subtitle {
  color: var(--eo-muted);
  max-width: 44ch;
  font-size: 16px;
}

.elysian-product .price {
  font-family: var(--eo-serif);
  font-size: 28px;
  color: var(--eo-charcoal);
  margin: 16px 0;
}

.pdp-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 24px 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eo-blue);
}

.pdp-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}

.pdp-points strong {
  display: block;
  font-family: var(--eo-serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}

.pdp-points p {
  margin: 0;
  color: var(--eo-muted);
  font-size: 14px;
}

.pdp-acc {
  border-top: 1px solid var(--eo-line);
  padding-top: 18px;
}

.pdp-acc summary {
  cursor: pointer;
  font-family: var(--eo-serif);
  font-size: 20px;
}

.pdp-acc ul {
  padding-left: 18px;
  color: var(--eo-muted);
}

.single_add_to_cart_button,
.woocommerce button.button,
.woocommerce a.button {
  background: var(--eo-navy) !important;
  color: #f8f5ef !important;
  border-radius: 0 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 11px !important;
  padding: 14px 22px !important;
}

.woocommerce .quantity .qty {
  padding: 12px;
  border: 1px solid var(--eo-line);
}

.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-products-header {
  display: none;
}

.collection-hero {
  padding: 56px var(--eo-pad) 0;
}

.page-body {
  max-width: 62ch;
  margin: 0 auto;
  color: var(--eo-muted);
  text-align: left;
}

.page-body p {
  margin: 0 0 1.2em;
}

.collection-hero__copy {
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 36px;
}

.collection-hero__copy h1 {
  font-size: clamp(36px, 4vw, 56px);
  margin: 0 0 12px;
}

.collection-hero__copy p {
  color: var(--eo-muted);
}

.collection-hero img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

ul.products {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.4vw, 40px);
  padding: 56px var(--eo-pad) 80px;
  margin: 0;
}

ul.products .card {
  text-align: center;
}

ul.products img {
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--eo-stone);
}

ul.products h3,
ul.products .woocommerce-loop-product__title {
  font-family: var(--eo-serif);
  font-size: 20px;
  font-weight: 500;
  margin: 18px 0 6px;
}

.woocommerce-product-gallery {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
}

.woocommerce-product-gallery ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

#gifts.hero,
.page-template-page-gifts .hero {
  min-height: 64vh;
}

#gifts.hero .hero__media,
.page-template-page-gifts .hero .hero__media {
  min-height: 64vh;
}

.site-footer {
  background: var(--eo-navy);
  color: #ece6db;
  padding: 72px var(--eo-pad) 56px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.site-footer strong {
  font-family: var(--eo-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer p {
  max-width: 42ch;
  color: rgba(244, 239, 230, 0.72);
}

.site-footer a {
  color: #ece6db;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.site-footer nav,
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--eo-gold);
  margin-bottom: 8px;
}

@media (max-width: 980px) {
  :root {
    --eo-pad: 22px;
  }

  body {
    font-size: 16px;
    line-height: 1.65;
  }

  .site-announce {
    font-size: 10px;
    letter-spacing: 0.12em;
    padding: 10px 16px;
    line-height: 1.45;
  }

  .site-header {
    padding: 14px var(--eo-pad) 0;
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--eo-paper);
  }

  .site-header__top {
    grid-template-columns: var(--eo-tap) minmax(0, 1fr) auto;
    grid-template-areas: "left logo utils";
    gap: 4px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header__search,
  .site-header__utils a.site-header__account {
    display: none;
  }

  .site-header__utils {
    justify-content: flex-end;
    gap: 0;
    min-width: 0;
  }

  .site-header__bag {
    font-size: 11px;
    letter-spacing: 0.14em;
    white-space: nowrap;
  }

  .site-logo {
    font-size: 18px;
    letter-spacing: 0.14em;
    line-height: 1.15;
    min-width: 0;
    padding: 0 4px;
  }

  .site-logo span {
    font-size: 9px;
    letter-spacing: 0.26em;
    margin-top: 4px;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 20px;
    border-bottom: 1px solid var(--eo-line);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  body.nav-open .site-nav .menu,
  body.nav-open .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 4px;
    font-size: 12px;
    letter-spacing: 0.18em;
    border-bottom: 1px solid var(--eo-line);
  }

  .nav-extra {
    display: flex;
    color: var(--eo-muted);
  }

  .hero,
  .story-split,
  .elysian-product,
  .grid-6,
  .grid-4,
  .grid-3,
  .site-footer,
  ul.products,
  .pdp-points,
  .woocommerce-product-gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero__media {
    order: -1;
    min-height: 52vh;
  }

  .hero__copy {
    padding: 36px var(--eo-pad) 48px;
  }

  .hero__copy h1,
  .collection-hero__copy h1,
  .section h2 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .hero__copy p,
  .collection-hero__copy p {
    max-width: none;
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn--ghost {
    justify-content: center;
    min-height: 48px;
    margin-left: 0;
    width: 100%;
  }

  .section {
    padding: 56px var(--eo-pad);
  }

  .story-split img,
  .collection-hero img,
  .craft-banner {
    aspect-ratio: 4/5;
    max-height: none;
  }

  .collection-hero {
    padding: 36px var(--eo-pad) 0;
  }

  .collection-hero img {
    aspect-ratio: 16/10;
    max-height: 42vh;
  }

  .grid-6,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  ul.products {
    grid-template-columns: 1fr;
    padding: 28px var(--eo-pad) 64px;
    gap: 36px;
  }

  ul.products img,
  .card img {
    width: 100%;
    aspect-ratio: 1;
  }

  ul.products h3 {
    font-size: 22px;
    padding: 0 8px;
  }

  .elysian-product {
    padding: 24px var(--eo-pad) 48px;
    gap: 28px;
  }

  .elysian-product h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .woocommerce-product-gallery {
    grid-template-columns: 1fr;
  }

  .woocommerce-product-gallery ol {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

  .woocommerce-product-gallery ol img {
    width: 64px;
    height: 64px;
    object-fit: cover;
  }

  form.cart {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .single_add_to_cart_button,
  .woocommerce button.button,
  .woocommerce a.button {
    width: 100% !important;
    min-height: 48px !important;
    justify-content: center;
  }

  .site-footer {
    padding: 48px var(--eo-pad) 36px;
    gap: 32px;
  }

  .site-footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

@media (min-width: 600px) and (max-width: 980px) {
  .grid-6,
  .grid-4,
  ul.products {
    grid-template-columns: 1fr 1fr;
  }

  .hero__media {
    min-height: 48vh;
  }
}
