/* ==========================================================================
   it matters. — design tokens lifted verbatim from the WordPress build
   (Astra global colours + Elementor kit 8 + Astra typography settings).
   ========================================================================== */

:root {
  /* Astra global colours */
  --ast-color-0: #7e8427; /* olive — primary */
  --ast-color-1: #000000;
  --ast-color-2: #000000;
  --ast-color-3: rgba(0, 0, 0, 0.7);
  --ast-color-4: #eeeae3; /* beige — secondary surface */
  --ast-color-5: #ffffff;
  --ast-color-6: #c89374; /* terracotta */

  /* Elementor kit extras */
  --sand: #dbcab4;
  --brown: #645a47;
  --hero-tan: #d9cebc;
  --hero-beige: #efeae3;

  --border: #dddddd;
  --container: 1200px;
  --body-line-height: 1.65em;

  --font-body: "Hind", -apple-system, BlinkMacSystemFont, "PingFang HK",
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --font-head: "Lexend", "PingFang HK", "Noto Sans TC", "Microsoft JhengHei",
    sans-serif;
  --font-btn: "Lexend Deca", "PingFang HK", "Noto Sans TC", sans-serif;
  --font-serif: "Prata", "Noto Serif TC", serif;

  --header-h: 67px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: var(--body-line-height);
  color: var(--ast-color-3);
  background: var(--ast-color-4);
  overflow-x: hidden;
}

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

/* Author `display` rules on .checkout-layout / .cart-page would otherwise beat
   the UA stylesheet's [hidden] rule and leak hidden panels. */
[hidden] {
  display: none !important;
}

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

/* ---------- Typography scale (Astra) ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ast-color-2);
  margin: 0 0 20px;
}

h1 {
  font-size: 50px;
  font-weight: 600;
  line-height: 1.4em;
}
h2 {
  font-size: 40px;
  line-height: 1.3em;
}
h3 {
  font-size: 30px;
  line-height: 1.3em;
}
h4 {
  font-size: 25px;
  line-height: 1.2em;
}
h5 {
  font-size: 20px;
  line-height: 1.2em;
}
h6 {
  font-size: 16px;
  line-height: 1.25em;
}

p {
  margin: 0 0 1.5em;
}

@media (max-width: 1024px) {
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 35px;
  }
  h3 {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 33px;
  }
  h2 {
    font-size: 30px;
  }
  h3 {
    font-size: 20px;
  }
}

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 inherit;
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-btn);
  font-weight: 400;
  font-size: 14px;
  line-height: 1em;
  letter-spacing: 1px;
  text-transform: capitalize;
  padding: 17px 27px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: var(--ast-color-0);
  color: var(--ast-color-5);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: var(--brown);
  color: var(--ast-color-5);
}

.btn--sand {
  background: var(--sand);
  color: var(--ast-color-2);
  border-radius: 5px;
}

.btn--sand:hover {
  background: var(--brown);
  color: var(--ast-color-5);
}

.btn--outline {
  background: transparent;
  color: var(--ast-color-2);
  border: 1px solid var(--ast-color-2);
}

.btn--outline:hover {
  background: var(--ast-color-2);
  color: var(--ast-color-5);
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: var(--body-line-height);
  padding: 10px 18px;
  border-radius: 15px;
  background: var(--ast-color-0);
  color: var(--ast-color-5);
  border: 0;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.btn-pill:hover {
  background: var(--brown);
  color: var(--ast-color-5);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ast-color-5);
}

.site-header__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
}

.site-header__logo img {
  width: 100px;
  height: 33px;
  object-fit: contain;
}

.site-header__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  font-size: 15px;
  color: var(--ast-color-3);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--ast-color-0);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-social a {
  color: var(--ast-color-2);
  display: inline-flex;
  transition: color 0.2s ease;
}

.header-social a:hover {
  color: var(--ast-color-0);
}

.header-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 2px;
  cursor: pointer;
  color: var(--ast-color-0);
}

.cart-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.cart-toggle__count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ast-color-0);
  color: #fff;
  font-family: var(--font-btn);
  font-size: 10px;
  line-height: 17px;
  text-align: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: var(--ast-color-2);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 921px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ast-color-5);
    border-top: 1px solid #eaeaea;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.07);
  }

  .nav-main.is-open {
    display: flex;
  }

  .nav-main li {
    border-bottom: 1px solid #f0eeea;
  }

  .nav-main a {
    display: block;
    padding: 12px 24px;
  }

  .site-header__inner {
    position: relative;
  }
}

@media (max-width: 600px) {
  .header-social {
    display: none;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ast-color-5);
  color: rgba(0, 0, 0, 0.6);
  font-size: 14px;
}

.site-footer__primary {
  max-width: var(--container);
  margin-inline: auto;
  padding: 45px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr);
  gap: 30px;
  align-items: start;
}

.site-footer a {
  color: rgba(0, 0, 0, 0.6);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--ast-color-0);
}

.footer-menu {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.site-footer__col--end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 921px) {
  .site-footer__primary {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .site-footer__col--end {
    align-items: center;
    text-align: center;
  }
}

/* ==========================================================================
   Home / marketing sections (mirrors Elementor post-6 layout)
   ========================================================================== */

.hero-home {
  min-height: 89vh;
  background-color: var(--hero-beige);
  background-image: url("../img/hero-home.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: contain;
}

@media (max-width: 1024px) {
  .hero-home {
    min-height: 60vh;
  }
}

@media (max-width: 767px) {
  .hero-home {
    min-height: 33vh;
    background-position: center center;
  }
}

/* 50 / 50 image + copy split.
   The brand-story row is full bleed while the two product rows sit inside the
   1200px container, exactly as the Elementor containers do. */
.split {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.split--boxed {
  max-width: var(--container);
  margin-inline: auto;
}

.split__media {
  flex: 0 0 50%;
  max-width: 50%;
  min-height: 680px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.split__copy {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 127px;
  text-align: center;
}

.split__eyebrow {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 3px;
  line-height: 1.25em;
  color: var(--ast-color-2);
  margin: 0 0 20px;
}

.split__copy p {
  color: var(--ast-color-3);
}

.split__copy .btn,
.split__copy .btn--sand {
  align-self: center;
}

@media (max-width: 1024px) {
  .split__media {
    min-height: 450px;
  }

  .split__copy {
    padding: 36px 36px 36px 61px;
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .split {
    flex-direction: column;
  }

  .split--reverse {
    flex-direction: column-reverse;
  }

  .split__media,
  .split__copy {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .split__media {
    min-height: 300px;
  }

  .split__copy {
    padding: 10% 15% 8%;
  }
}

/* ==========================================================================
   Page hero banners (product / about)
   ========================================================================== */

.page-hero {
  min-height: 89vh;
  background-color: var(--hero-tan);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-hero--short {
  min-height: 50vh;
}

@media (max-width: 1024px) {
  .page-hero {
    min-height: 50vh;
  }
  .page-hero--short {
    min-height: 50vh;
  }
}

@media (max-width: 767px) {
  .page-hero {
    min-height: 21vh;
  }
  .page-hero--short {
    min-height: 26vh;
  }
}

.badge-bar {
  background: var(--sand);
  padding: 30px 0 20px;
  text-align: center;
}

.badge-bar--olive {
  background: var(--ast-color-0);
}

.badge-bar__title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ast-color-3);
}

.badge-bar--olive .badge-bar__title {
  color: var(--ast-color-5);
}

.badge-bar__text {
  margin: 0;
  color: var(--ast-color-3);
}

.badge-bar--olive .badge-bar__text {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Section shells
   ========================================================================== */

.section {
  padding: 90px 0;
}

.section--beige {
  background: var(--ast-color-4);
}

.section--white {
  background: var(--ast-color-5);
}

.section--plain {
  background: transparent;
}

.section--tight {
  padding: 56px 0;
}

.section__title {
  margin-bottom: 32px;
}

@media (max-width: 767px) {
  .section {
    padding: 48px 0;
  }
}

.page-title-band {
  background: var(--ast-color-4);
  padding: 64px 0 0;
}

.page-title-band h1 {
  margin: 0;
}

/* ==========================================================================
   Shop grid
   ========================================================================== */

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
  font-size: 14px;
}

.shop-toolbar select {
  font-family: var(--font-body);
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: var(--ast-color-5);
  color: var(--ast-color-3);
  border-radius: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--hero-beige);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card__cat {
  margin: 14px 0 4px;
  font-size: 12px;
  color: var(--ast-color-6);
}

.product-card__name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 500;
  color: var(--ast-color-2);
  margin: 0 0 6px;
}

.product-card__price {
  font-family: var(--font-btn);
  color: var(--ast-color-2);
  margin: 0 0 14px;
}

.product-card__actions {
  margin-top: auto;
}

/* ==========================================================================
   Single product
   ========================================================================== */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

@media (max-width: 921px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.gallery__main {
  background: var(--hero-beige);
  overflow: hidden;
}

.gallery__main img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.gallery__thumbs button {
  padding: 0;
  border: 1px solid transparent;
  background: var(--hero-beige);
  cursor: pointer;
  overflow: hidden;
}

.gallery__thumbs button[aria-selected="true"] {
  border-color: var(--ast-color-0);
}

.gallery__thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-summary__cat {
  font-size: 12px;
  color: var(--ast-color-6);
  margin: 0 0 10px;
}

.product-summary h1 {
  font-size: 40px;
  margin-bottom: 12px;
}

@media (max-width: 767px) {
  .product-summary h1 {
    font-size: 30px;
  }
}

.product-summary__price {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 500;
  color: var(--ast-color-2);
  margin: 0 0 18px;
}

.product-summary__excerpt {
  color: var(--ast-color-3);
}

.product-summary__ship-note {
  font-size: 13px;
  color: var(--ast-color-6);
  margin: 0 0 24px;
}

.variant-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.variant-row__label {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--ast-color-2);
}

.variant-row select,
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--ast-color-5);
  color: var(--ast-color-2);
}

.variant-row select:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(126, 132, 39, 0.35);
  outline-offset: 1px;
  border-color: var(--ast-color-0);
}

.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  padding: 18px 0 10px;
  border-top: 1px solid var(--border);
}

.qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
}

.qty button {
  width: 40px;
  border: 0;
  background: var(--ast-color-5);
  font-size: 18px;
  line-height: 1;
  color: var(--ast-color-2);
  cursor: pointer;
}

.qty button:hover {
  background: var(--ast-color-4);
}

.qty input {
  width: 56px;
  border: 0;
  border-inline: 1px solid var(--border);
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ast-color-2);
  -moz-appearance: textfield;
}

.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-meta {
  font-size: 13px;
  color: var(--ast-color-3);
  margin: 18px 0 0;
}

/* Tabs + accordion */

.tabs {
  border-top: 1px solid var(--border);
  margin-top: 56px;
}

.tabs__nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tabs__nav button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 18px 0;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--ast-color-3);
  cursor: pointer;
}

.tabs__nav button[aria-selected="true"] {
  color: var(--ast-color-0);
  border-bottom-color: var(--ast-color-0);
}

.tabs__panel {
  padding-top: 24px;
}

.tabs__panel[hidden] {
  display: none;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.spec-table th {
  width: 140px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--ast-color-2);
  background: var(--ast-color-4);
}

.accordion {
  border-top: 1px solid var(--border);
}

.accordion__item {
  border-bottom: 1px solid var(--border);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 0;
  background: none;
  border: 0;
  font-family: var(--font-head);
  font-size: 15px;
  text-align: left;
  color: var(--ast-color-2);
  cursor: pointer;
}

.accordion__trigger::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ast-color-0);
  flex: 0 0 auto;
}

.accordion__panel {
  padding: 0 0 26px 20px;
  color: var(--ast-color-3);
}

.accordion__panel[hidden] {
  display: none;
}

/* ==========================================================================
   Cart drawer
   ========================================================================== */

/* Floating basket bubble, mirroring the side-cart plugin on the WP site. */
.cart-bubble {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 80;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50% 0 0 50%;
  background: var(--ast-color-5);
  color: var(--ast-color-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.14);
}

.cart-bubble svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.cart-bubble__count {
  position: absolute;
  top: -8px;
  left: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ast-color-1);
  color: #fff;
  font-family: var(--font-btn);
  font-size: 11px;
  line-height: 22px;
  text-align: center;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 90;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 100%);
  background: var(--ast-color-5);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--ast-color-0);
  color: #fff;
}

.cart-drawer__head h2 {
  margin: 0;
  font-size: 18px;
  color: #fff;
}

.cart-drawer__close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 22px;
}

.cart-drawer__foot {
  border-top: 1px solid var(--border);
  padding: 18px 22px;
  display: grid;
  gap: 10px;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0eeea;
}

.cart-line__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  background: var(--hero-beige);
}

.cart-line__name {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--ast-color-2);
  margin: 0 0 4px;
}

.cart-line__variant {
  font-size: 12px;
  color: var(--ast-color-3);
  margin: 0 0 8px;
}

.cart-line__price {
  font-family: var(--font-btn);
  font-size: 14px;
  color: var(--ast-color-2);
  white-space: nowrap;
}

.cart-line__remove {
  background: none;
  border: 0;
  padding: 0;
  font-size: 12px;
  color: var(--ast-color-3);
  text-decoration: underline;
  cursor: pointer;
}

.cart-line__remove:hover {
  color: #b3261e;
}

.cart-empty {
  text-align: center;
  padding: 40px 0;
  color: var(--ast-color-3);
}

.cart-totals {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.cart-totals__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-totals__row--grand {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  font-family: var(--font-head);
  font-size: 17px;
  color: var(--ast-color-2);
}

.ship-hint {
  font-size: 12px;
  color: var(--ast-color-6);
  margin: 0;
}

/* ==========================================================================
   Cart & checkout pages
   ========================================================================== */

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 921px) {
  .cart-page,
  .checkout-layout {
    grid-template-columns: 1fr;
  }
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ast-color-3);
  text-align: left;
  padding: 0 12px 14px;
  border-bottom: 1px solid var(--border);
}

.cart-table td {
  padding: 18px 12px;
  border-bottom: 1px solid #f0eeea;
  vertical-align: middle;
}

.cart-table td:last-child,
.cart-table th:last-child {
  text-align: right;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-product img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  background: var(--hero-beige);
  flex: 0 0 auto;
}

.panel {
  background: var(--ast-color-4);
  padding: 28px;
}

.panel--white {
  background: var(--ast-color-5);
  border: 1px solid var(--border);
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.panel__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 500;
  color: var(--ast-color-2);
  margin: 0 0 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--ast-color-2);
}

.field .req {
  color: #b3261e;
}

.field__sub {
  font-size: 12px;
  color: var(--ast-color-3);
}

.field__error {
  font-size: 12px;
  color: #b3261e;
  min-height: 0;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: #b3261e;
}

.option-list {
  display: grid;
  gap: 12px;
}

.option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--ast-color-5);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.option:hover {
  border-color: var(--sand);
}

.option input {
  margin: 3px 0 0;
  accent-color: var(--ast-color-0);
  flex: 0 0 auto;
}

.option__body {
  flex: 1;
}

.option__title {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--ast-color-2);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.option__desc {
  font-size: 13px;
  color: var(--ast-color-3);
  margin: 4px 0 0;
}

.option:has(input:checked) {
  border-color: var(--ast-color-0);
  box-shadow: inset 0 0 0 1px var(--ast-color-0);
}

.option--compact {
  align-items: center;
  padding: 12px 14px;
}

.sf-dest {
  margin-top: 20px;
}

.sf-dest__legend {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--ast-color-2);
  margin: 0 0 10px;
}

.sf-dest__choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .sf-dest__choice {
    grid-template-columns: 1fr;
  }
}

.form-note {
  font-size: 13px;
  color: var(--ast-color-3);
}

.alert {
  padding: 14px 16px;
  border-left: 3px solid var(--ast-color-0);
  background: var(--ast-color-4);
  font-size: 14px;
  color: var(--ast-color-2);
  margin-bottom: 20px;
}

.alert--error {
  border-left-color: #b3261e;
  background: #fdecea;
}

.alert--warn {
  border-left-color: var(--ast-color-6);
  background: #fbf3ec;
}

/* ==========================================================================
   Order received
   ========================================================================== */

.order-hero {
  background: var(--ast-color-4);
  padding: 64px 0 48px;
}

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 921px) {
  .order-grid {
    grid-template-columns: 1fr;
  }
}

.qr-card {
  background: var(--ast-color-5);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}

.qr-card img {
  width: 100%;
  max-width: 340px;
  margin: 0 auto 16px;
}

.qr-card__amount {
  font-family: var(--font-head);
  font-size: 26px;
  color: var(--ast-color-2);
  margin: 0 0 4px;
}

.qr-card__hint {
  font-size: 13px;
  color: var(--ast-color-3);
  margin: 0;
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .pay-grid {
    grid-template-columns: 1fr;
  }
}

.pay-method {
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px 16px;
  text-align: center;
}

.pay-method.is-selected {
  border-color: var(--ast-color-0);
  box-shadow: 0 0 0 1px var(--ast-color-0);
}

.pay-method__title {
  font-size: 16px;
  margin: 0 0 4px;
}

.pay-method__hint {
  font-size: 13px;
  color: var(--ast-color-3);
  margin: 0 0 12px;
}

.pay-grid--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pay-grid--compact .pay-method {
  padding: 12px 8px;
}

.pay-grid--compact .pay-method img {
  max-width: 160px;
}

.summary-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.summary-list dt,
.summary-list__key {
  color: var(--ast-color-3);
}

.summary-list__val {
  color: var(--ast-color-2);
  text-align: right;
}

.order-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.order-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  font-size: 14px;
}

.order-steps li::before {
  content: counter(step);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ast-color-0);
  color: #fff;
  font-family: var(--font-btn);
  font-size: 12px;
  display: grid;
  place-items: center;
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-section {
  background-color: var(--ast-color-4);
  background-image: url("../img/contact-bg.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  padding: 120px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

@media (max-width: 921px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-section {
    padding: 90px 0 60px;
  }
}

.contact-info {
  display: grid;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

/* The phone card takes only what it needs so the longer email address always
   stays on one line. */
.contact-info__row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(240px, 1fr);
  gap: 30px;
}

@media (max-width: 600px) {
  .contact-info__row {
    grid-template-columns: 1fr;
  }
}

.info-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.info-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ast-color-0);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.info-card__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.info-card__label {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--ast-color-0);
  margin: 0 0 4px;
}

.info-card__value {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.4em;
  color: var(--ast-color-2);
  margin: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .info-card__value {
    font-size: 17px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ==========================================================================
   Prose (privacy / long copy)
   ========================================================================== */

.prose {
  max-width: 820px;
}

.prose h2 {
  font-size: 26px;
  margin-top: 42px;
}

.prose h3 {
  font-size: 20px;
  margin-top: 30px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  margin: 0 0 1.5em;
}

.prose li {
  margin-bottom: 8px;
}

.prose__meta {
  font-size: 13px;
  color: var(--ast-color-6);
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */

.wa-float {
  position: fixed;
  left: 14px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: var(--ast-color-5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  font-size: 13px;
  color: var(--ast-color-2);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .wa-float span {
    display: none;
  }

  .wa-float {
    padding: 6px;
  }
}

/* ==========================================================================
   Misc helpers
   ========================================================================== */

.stack {
  display: grid;
  gap: 18px;
}

.text-center {
  text-align: center;
}

.muted {
  color: var(--ast-color-3);
}

.eyebrow {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--ast-color-2);
  margin: 0 0 18px;
}

.divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.herbs-figure {
  max-width: 620px;
  margin: 40px auto 0;
}

.herbs-figure--wide {
  max-width: 100%;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

@media print {
  .site-header,
  .site-footer,
  .wa-float,
  .cart-drawer,
  .drawer-backdrop,
  .no-print {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
