/* ============================================================
   TERRENE GROCERY 1.5.0 — EDITORIAL SINGLE PRODUCT EXPERIENCE
   Product photography + native WooCommerce purchase UI + long-form details.
   ============================================================ */

body.single-product {
  background: #f7f6f2 url("../images/topographic-paper.svg") center top / 100% auto repeat-y !important;
  color: #171715;
}

body.single-product .single-product-page {
  padding: 7.5rem 0 8rem !important;
}

body.single-product .single-product-page > .container {
  width: min(100% - 48px, 1380px);
  max-width: 1380px !important;
}

body.single-product .product.terrene-product-layout {
  display: block !important;
  width: 100%;
  margin: 0;
}

body.single-product .site-header {
  position: fixed !important;
  top: 10px !important;
  left: 50% !important;
  right: auto !important;
  z-index: 1600 !important;
  width: min(760px, calc(100% - 28px)) !important;
  max-width: 760px !important;
  transform: translateX(-50%) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 11px !important;
  background: rgba(13,13,13,.97) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.18) !important;
  color: #f7f5ee !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.single-product .site-header .header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 55px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  gap: 14px !important;
}

body.single-product .site-header .site-branding {
  flex: 0 0 auto !important;
  margin: 0 !important;
  min-width: 22px;
}

body.single-product .site-header .site-title {
  color: #f7f5ee !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: .92rem !important;
  font-weight: 500 !important;
  letter-spacing: .025em !important;
  text-transform: none !important;
  white-space: nowrap;
}

body.single-product .site-header .custom-logo {
  display: block;
  width: auto !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain;
  filter: none !important;
}

body.single-product .site-header .main-navigation {
  display: block !important;
  flex: 1 1 auto !important;
  width: auto !important;
  margin: 0 !important;
  min-width: 0;
}

body.single-product .site-header .main-navigation .menu {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-flow: row nowrap !important;
  gap: clamp(.55rem, 1.1vw, 1rem) !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .site-header .main-navigation li {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
}

body.single-product .site-header .main-navigation a {
  display: inline-flex !important;
  align-items: center;
  color: #f7f5ee !important;
  font-family: "DM Sans", Arial, sans-serif !important;
  font-size: .57rem !important;
  font-weight: 600 !important;
  letter-spacing: .055em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  white-space: nowrap;
  padding: 8px 0 !important;
}

body.single-product .site-header .main-navigation li:nth-child(6n+1) a::before,
body.single-product .site-header .main-navigation li:nth-child(6n+2) a::before,
body.single-product .site-header .main-navigation li:nth-child(6n+3) a::before,
body.single-product .site-header .main-navigation li:nth-child(6n+4) a::before,
body.single-product .site-header .main-navigation li:nth-child(6n+5) a::before,
body.single-product .site-header .main-navigation li:nth-child(6n) a::before {
  display: inline-block;
  margin-right: .32rem;
  font-size: .73rem;
  line-height: 1;
}
body.single-product .site-header .main-navigation li:nth-child(6n+1) a::before { content: "✦"; color: #d58acb; }
body.single-product .site-header .main-navigation li:nth-child(6n+2) a::before { content: "◈"; color: #b78bdd; }
body.single-product .site-header .main-navigation li:nth-child(6n+3) a::before { content: "✧"; color: #73c8d1; }
body.single-product .site-header .main-navigation li:nth-child(6n+4) a::before { content: "♡"; color: #ef8db7; }
body.single-product .site-header .main-navigation li:nth-child(6n+5) a::before { content: "✺"; color: #c49be2; }
body.single-product .site-header .main-navigation li:nth-child(6n) a::before { content: "⌁"; color: #9eabb5; }

body.single-product .site-header .header-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center;
  gap: 9px !important;
  margin: 0 !important;
}

body.single-product .site-header .header-icon,
body.single-product .site-header .menu-toggle {
  color: #f7f5ee !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.single-product .site-header .header-icon svg,
body.single-product .site-header .menu-toggle svg {
  stroke: currentColor;
}
body.single-product .site-header .menu-toggle span {
  background: #f7f5ee !important;
}

body.single-product .terrene-product__breadcrumb {
  margin: 0 0 1.2rem;
  padding: 0;
}
body.single-product .terrene-product__crumbs {
  color: #77776f !important;
  font-family: "DM Sans", Arial, sans-serif !important;
  font-size: .57rem !important;
  font-weight: 500;
  letter-spacing: .13em !important;
  line-height: 1.6;
  text-transform: uppercase;
}
body.single-product .terrene-product__crumbs a {
  color: #77776f !important;
  text-decoration: none;
}
body.single-product .terrene-product__crumbs a:hover { color: #e66f3e !important; }
body.single-product .terrene-product__crumb-separator { padding: 0 .55rem; color: #b0afa8; }

body.single-product .terrene-product__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  align-items: start;
  gap: clamp(3rem, 6.8vw, 7.5rem);
  min-height: 660px;
  padding: 1.1rem 0 3rem;
}

body.single-product .terrene-product__visual {
  position: sticky;
  top: 92px;
  min-width: 0;
  perspective: 1500px;
  transform-style: preserve-3d;
}
body.single-product .terrene-product__visual-label,
body.single-product .terrene-product__visual-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8b8a82;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
body.single-product .terrene-product__visual-label {
  margin: 0 0 .9rem;
}
body.single-product .terrene-product__visual-caption {
  margin: .9rem 0 0;
  color: #99988f;
  font-size: .48rem;
}

body.single-product .terrene-product__visual .woocommerce-product-gallery {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}
body.single-product .terrene-product__visual .woocommerce-product-gallery__wrapper {
  transform-style: preserve-3d;
  overflow: visible !important;
}
body.single-product .terrene-product__visual .woocommerce-product-gallery__image {
  display: grid !important;
  min-height: clamp(420px, 43vw, 600px);
  place-items: center;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
}
body.single-product .terrene-product__visual .woocommerce-product-gallery__image a {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  overflow: visible !important;
  cursor: zoom-in;
}
body.single-product .terrene-product__visual .woocommerce-product-gallery__image img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(90%, 570px) !important;
  max-height: clamp(360px, 40vw, 550px) !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 28px 25px rgba(35,31,23,.18));
  transform-origin: 50% 55%;
  animation: terrene-product-image-float 8.5s ease-in-out infinite;
  backface-visibility: hidden;
}
body.single-product .terrene-product__visual .woocommerce-product-gallery__image:nth-child(2n) img {
  animation-delay: -2.6s;
}
body.single-product .terrene-product__visual .flex-control-thumbs {
  display: flex !important;
  justify-content: center;
  gap: .65rem !important;
  margin: .6rem auto 0 !important;
  padding: 0 !important;
  max-width: 430px;
  overflow-x: auto;
}
body.single-product .terrene-product__visual .flex-control-thumbs li {
  flex: 0 0 64px;
  width: 64px !important;
  padding: 5px;
  border: 1px solid rgba(33,33,29,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.44);
}
body.single-product .terrene-product__visual .flex-control-thumbs img {
  display: block;
  width: 100% !important;
  height: 58px;
  object-fit: contain;
  opacity: .65;
  transition: opacity .25s ease, transform .25s ease;
}
body.single-product .terrene-product__visual .flex-control-thumbs img.flex-active,
body.single-product .terrene-product__visual .flex-control-thumbs img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

@keyframes terrene-product-image-float {
  0%, 100% { transform: translate3d(0, 9px, 24px) rotateX(1.5deg) rotateY(-5deg) rotateZ(-1.5deg); }
  50% { transform: translate3d(0, -12px, 46px) rotateX(-1.2deg) rotateY(5deg) rotateZ(1.5deg); }
}

body.single-product .terrene-product__summary {
  min-width: 0;
  max-width: 590px;
  padding: .65rem 0 0;
  color: #22221e;
}
body.single-product .terrene-product__eyebrow,
body.single-product .terrene-product__purchase-label {
  display: block;
  margin: 0 0 .95rem;
  color: #e66f3e;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .17em;
  line-height: 1.5;
  text-transform: uppercase;
}
body.single-product .terrene-product__eyebrow a {
  color: inherit;
  text-decoration: none;
}
body.single-product .terrene-product__category-separator { padding: 0 .35rem; color: #b6aaa0; }

body.single-product .terrene-product__summary h1.product_title {
  max-width: 13ch;
  margin: 0 0 1.05rem !important;
  color: #171715 !important;
  font-family: "Cormorant Garamond", "Bodoni MT", Georgia, serif !important;
  font-size: clamp(2.65rem, 4.25vw, 4.2rem) !important;
  font-weight: 500 !important;
  letter-spacing: -.038em !important;
  line-height: .91 !important;
  text-transform: none !important;
}
body.single-product .terrene-product__intro {
  max-width: 52ch;
  margin: 0 0 1.4rem;
  color: #66665f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.48;
}
body.single-product .terrene-product__intro p { margin: 0; }

body.single-product .terrene-product__rating-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: .45rem 0 1.25rem;
  padding: .8rem 0;
  border-top: 1px solid rgba(35,35,30,.16);
  border-bottom: 1px solid rgba(35,35,30,.16);
}
body.single-product .terrene-product__rating { min-width: 0; }
body.single-product .terrene-product__rating .woocommerce-product-rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 !important;
}
body.single-product .terrene-product__rating .star-rating { color: #d79a37; font-size: .85rem; }
body.single-product .terrene-product__rating .woocommerce-review-link {
  color: #74736b !important;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .66rem;
  text-decoration: none;
}
body.single-product .terrene-product__price .price {
  display: block !important;
  margin: 0 !important;
  color: #d66e38 !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 1.65rem !important;
  font-weight: 600;
  white-space: nowrap;
}
body.single-product .terrene-product__price .price del { color: #939087 !important; opacity: .75; font-size: .8em; }
body.single-product .terrene-product__price .price ins { text-decoration: none; }

body.single-product .terrene-product__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin: 1.1rem 0 1.35rem;
}
body.single-product .terrene-product__fact {
  display: flex;
  min-height: 76px;
  flex-direction: column;
  justify-content: center;
  gap: .28rem;
  padding: .75rem .9rem;
  border: 1px solid rgba(30,30,27,.10);
  border-radius: 12px;
  background: rgba(255,255,255,.52);
  box-shadow: 0 8px 20px rgba(28,26,22,.045);
}
body.single-product .terrene-product__fact-label {
  color: #8b8980;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .51rem;
  font-weight: 700;
  letter-spacing: .15em;
  line-height: 1.2;
  text-transform: uppercase;
}
body.single-product .terrene-product__fact strong {
  color: #34332f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.2;
}

body.single-product .terrene-product__purchase {
  margin: 1.2rem 0 .8rem;
}
body.single-product .terrene-product__purchase-label { margin-bottom: .55rem; }
body.single-product .terrene-product__summary form.cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
  margin: 0 0 .8rem !important;
}
body.single-product .terrene-product__summary form.cart .quantity {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 .6rem;
  border: 1px solid rgba(36,36,31,.20);
  border-radius: 999px;
  background: rgba(255,255,255,.4);
}
body.single-product .terrene-product__summary form.cart .quantity input.qty {
  width: 52px !important;
  min-width: 42px;
  padding: .55rem .2rem !important;
  border: 0 !important;
  background: transparent !important;
  color: #22221e !important;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .85rem;
  text-align: center;
  box-shadow: none !important;
}
body.single-product .terrene-product__summary .single_add_to_cart_button,
body.single-product .terrene-product__summary button.single_add_to_cart_button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  flex: 1 1 210px;
  padding: .85rem 1.4rem !important;
  border: 1px solid #141414 !important;
  border-radius: 999px !important;
  background: #111 !important;
  color: #fff !important;
  font-family: "DM Sans", Arial, sans-serif !important;
  font-size: .63rem !important;
  font-weight: 700 !important;
  letter-spacing: .15em !important;
  line-height: 1.2;
  text-transform: uppercase !important;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
body.single-product .terrene-product__summary .single_add_to_cart_button:hover {
  transform: translateY(-2px);
  background: #e66f3e !important;
  border-color: #e66f3e !important;
}
body.single-product .terrene-product__summary .single_add_to_cart_button:disabled,
body.single-product .terrene-product__summary .single_add_to_cart_button.disabled {
  opacity: .48;
  cursor: not-allowed;
}
body.single-product .terrene-product__summary form.variations_form {
  display: block;
}
body.single-product .terrene-product__summary table.variations {
  width: 100%;
  margin: 0 0 .8rem !important;
  border: 0 !important;
}
body.single-product .terrene-product__summary table.variations th,
body.single-product .terrene-product__summary table.variations td {
  display: block;
  width: 100%;
  padding: .2rem 0 .45rem !important;
  border: 0 !important;
  background: transparent !important;
  text-align: left;
}
body.single-product .terrene-product__summary table.variations label {
  color: #e66f3e;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .54rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
body.single-product .terrene-product__summary table.variations select {
  width: 100%;
  min-height: 44px;
  padding: .65rem 2.2rem .65rem .9rem;
  border: 1px solid rgba(34,34,30,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: #242420;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
}
body.single-product .terrene-product__summary .reset_variations {
  margin-left: .6rem;
  color: #88857d !important;
  font-size: .65rem;
}
body.single-product .terrene-product__summary .woocommerce-variation-price {
  margin: .3rem 0 .6rem;
  color: #d66e38;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
}
body.single-product .terrene-product__summary .group_table { width: 100%; }
body.single-product .terrene-product__summary .group_table td {
  padding: .45rem !important;
  border-bottom: 1px solid rgba(35,35,30,.1);
}
body.single-product .terrene-product__availability {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: .65rem 0 1rem;
  color: #727168;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .62rem;
  letter-spacing: .045em;
}
body.single-product .terrene-product__availability-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78a36c;
  box-shadow: 0 0 0 3px rgba(120,163,108,.13);
}
body.single-product .terrene-product__meta {
  padding-top: .8rem;
  border-top: 1px solid rgba(35,35,30,.15);
}
body.single-product .terrene-product__meta .product_meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  color: #7b7971;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .58rem;
  line-height: 1.7;
}
body.single-product .terrene-product__meta .product_meta > span {
  display: inline-block;
}
body.single-product .terrene-product__meta a {
  color: #55534e !important;
  text-decoration: underline;
  text-decoration-color: rgba(85,83,78,.25);
  text-underline-offset: 3px;
}

/* The long-form chapter below the product hero. */
body.single-product .terrene-product__story {
  max-width: 900px;
  margin: clamp(5rem, 9vw, 9rem) auto 0;
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}
body.single-product .terrene-product__story-heading {
  margin: 0 auto 2.4rem;
  text-align: center;
}
body.single-product .terrene-product__story-heading .terrene-product__eyebrow {
  margin-bottom: .7rem;
}
body.single-product .terrene-product__story-heading h2,
body.single-product .terrene-product__details-heading h2 {
  margin: 0;
  color: #181816;
  font-family: "Cormorant Garamond", "Bodoni MT", Georgia, serif;
  font-size: clamp(2.5rem, 4.7vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: .95;
  text-align: center;
  text-transform: none;
}
body.single-product .terrene-product__story-heading p {
  margin: .7rem 0 0;
  color: #838178;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
}
body.single-product .terrene-product__description {
  max-width: 800px;
  margin: 0 auto;
  color: #393832;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.72;
}
body.single-product .terrene-product__description > *:first-child::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  color: #171715;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3.5em;
  font-weight: 600;
  line-height: .72;
}
body.single-product .terrene-product__description h2,
body.single-product .terrene-product__description h3,
body.single-product .terrene-product__description h4 {
  margin: 2rem 0 .65rem;
  color: #1c1c19;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -.02em;
}
body.single-product .terrene-product__description p { margin: 0 0 1.25rem; }
body.single-product .terrene-product__description a { color: #b75f35; text-underline-offset: 3px; }
body.single-product .terrene-product__description img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 2px;
}
body.single-product .terrene-product__editor-note {
  padding: 1rem 1.2rem;
  border-left: 2px solid #e66f3e;
  background: rgba(255,255,255,.5);
  color: #77746b;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .82rem;
}

/* Expandable reference-inspired product notes. */
body.single-product .terrene-product__details {
  max-width: 920px;
  margin: 3.5rem auto 0;
  padding: 2rem 0 1rem;
}
body.single-product .terrene-product__details-heading {
  margin: 0 auto 2.2rem;
  text-align: center;
}
body.single-product .terrene-product__details-heading .terrene-product__eyebrow { margin-bottom: .65rem; }
body.single-product .terrene-product__details-heading h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
body.single-product .terrene-product__accordion-list {
  max-width: 800px;
  margin: 0 auto;
  border-left: 1px solid rgba(40,40,34,.22);
}
body.single-product .terrene-product__accordion {
  margin: 0;
  border-bottom: 1px solid rgba(40,40,34,.14);
}
body.single-product .terrene-product__accordion summary {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto 25px;
  align-items: center;
  gap: .65rem;
  min-height: 66px;
  padding: .9rem 1rem;
  cursor: pointer;
  list-style: none;
}
body.single-product .terrene-product__accordion summary::-webkit-details-marker { display: none; }
body.single-product .terrene-product__accordion-arrow {
  color: #8b8980;
  font-size: 1.15rem;
  transition: color .25s ease, transform .25s ease;
}
body.single-product .terrene-product__accordion-title {
  color: #22221e;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.1;
}
body.single-product .terrene-product__accordion-hint {
  color: #a19f97;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .48rem;
  font-weight: 600;
  letter-spacing: .14em;
  white-space: nowrap;
}
body.single-product .terrene-product__accordion-plus {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(36,36,31,.2);
  border-radius: 50%;
  color: #77756d;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .95rem;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
body.single-product .terrene-product__accordion[open] summary .terrene-product__accordion-arrow {
  color: #e66f3e;
  transform: translateX(4px);
}
body.single-product .terrene-product__accordion[open] summary .terrene-product__accordion-plus {
  transform: rotate(45deg);
  background: #171715;
  color: #fff;
}
body.single-product .terrene-product__accordion-body {
  padding: 0 3.5rem 1.5rem;
  color: #66645d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
  line-height: 1.65;
  animation: terrene-product-accordion-in .28s ease both;
}
body.single-product .terrene-product__accordion-body p { margin: 0; }
body.single-product .terrene-product__accordion-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: .98rem;
}
body.single-product .terrene-product__accordion-body th,
body.single-product .terrene-product__accordion-body td {
  padding: .6rem .3rem;
  border-bottom: 1px solid rgba(40,40,34,.1);
  text-align: left;
}
body.single-product .terrene-product__accordion-body th {
  color: #8b8980;
  font-weight: 500;
}
body.single-product .terrene-product__measurements {
  margin: 0;
}
body.single-product .terrene-product__measurements > div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(40,40,34,.1);
}
body.single-product .terrene-product__measurements dt { color: #8b8980; }
body.single-product .terrene-product__measurements dd { margin: 0; color: #2e2d28; }
@keyframes terrene-product-accordion-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

body.single-product .terrene-product__reviews {
  max-width: 920px;
  margin: 5rem auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(40,40,34,.16);
}
body.single-product .terrene-product__reviews #reviews,
body.single-product .terrene-product__reviews #comments {
  margin: 0;
}
body.single-product .terrene-product__reviews h2,
body.single-product .terrene-product__reviews .woocommerce-Reviews-title {
  color: #1d1d19;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 500;
}

/* Related products stay connected to WooCommerce and inherit the theme cards. */
body.single-product .related.products {
  margin: 6rem 0 0 !important;
  padding-top: 3rem;
  border-top: 1px solid rgba(40,40,34,.16);
}
body.single-product .related.products > h2 {
  margin: 0 0 2rem !important;
  color: #1c1c19;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: clamp(2.5rem, 4vw, 4rem) !important;
  font-weight: 500 !important;
  letter-spacing: -.035em;
  text-align: center;
  text-transform: none !important;
}

/* Floating compact add-to-basket bar, triggered after the main purchase form leaves view. */
body.single-product .terrene-sticky-purchase {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 1550;
  display: flex;
  width: min(540px, calc(100% - 28px));
  align-items: center;
  gap: 1rem;
  padding: .55rem .65rem .55rem 1.15rem;
  border: 1px solid rgba(25,25,22,.1);
  border-radius: 999px;
  background: rgba(250,249,245,.96);
  box-shadow: 0 12px 36px rgba(0,0,0,.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
body.single-product .terrene-sticky-purchase.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
body.single-product .terrene-sticky-purchase__info {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: .08rem;
}
body.single-product .terrene-sticky-purchase__name {
  overflow: hidden;
  color: #22221e;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.single-product .terrene-sticky-purchase__price {
  color: #77746b;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .57rem;
  letter-spacing: .025em;
  line-height: 1.3;
}
body.single-product .terrene-sticky-purchase__price .price { margin: 0; color: inherit; font-size: inherit; }
body.single-product .terrene-sticky-purchase__button {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
body.single-product .terrene-sticky-purchase__button:hover {
  background: #e66f3e;
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  body.single-product .site-header .main-navigation .menu { gap: .5rem !important; }
  body.single-product .site-header .main-navigation a { font-size: .51rem !important; }
  body.single-product .terrene-product__hero {
    grid-template-columns: minmax(0,1fr) minmax(350px,.95fr);
    gap: 2.7rem;
  }
}

@media (max-width: 900px) {
  body.single-product .site-header .main-navigation { display: none !important; }
  body.single-product .site-header .header-inner { min-height: 52px !important; }
  body.single-product .terrene-product__hero {
    grid-template-columns: minmax(0,1fr);
    gap: 2.2rem;
    min-height: 0;
  }
  body.single-product .terrene-product__visual {
    position: relative;
    top: auto;
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }
  body.single-product .terrene-product__visual .woocommerce-product-gallery__image {
    min-height: min(76vw, 540px);
  }
  body.single-product .terrene-product__visual .woocommerce-product-gallery__image img {
    max-height: min(70vw, 500px) !important;
  }
  body.single-product .terrene-product__summary {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
  }
  body.single-product .terrene-product__story { margin-top: 4rem; }
}

@media (max-width: 600px) {
  body.single-product .single-product-page {
    padding: 5.8rem 0 5rem !important;
  }
  body.single-product .single-product-page > .container {
    width: min(100% - 30px, 1380px);
  }
  body.single-product .terrene-product__breadcrumb { margin-bottom: .7rem; }
  body.single-product .terrene-product__hero { padding-top: .3rem; }
  body.single-product .terrene-product__visual-label { font-size: .45rem; }
  body.single-product .terrene-product__visual .woocommerce-product-gallery__image {
    min-height: 78vw;
  }
  body.single-product .terrene-product__visual .woocommerce-product-gallery__image img {
    max-width: 94% !important;
    max-height: 74vw !important;
  }
  body.single-product .terrene-product__summary h1.product_title {
    font-size: clamp(2.45rem, 12vw, 3.5rem) !important;
  }
  body.single-product .terrene-product__facts { gap: .45rem; }
  body.single-product .terrene-product__fact { min-height: 68px; padding: .6rem .7rem; }
  body.single-product .terrene-product__accordion summary {
    grid-template-columns: 18px minmax(0,1fr) 20px;
    gap: .45rem;
    min-height: 60px;
    padding: .75rem .65rem;
  }
  body.single-product .terrene-product__accordion-hint { display: none; }
  body.single-product .terrene-product__accordion-title { font-size: 1.25rem; }
  body.single-product .terrene-product__accordion-body { padding: 0 .8rem 1.1rem 2.2rem; }
  body.single-product .terrene-sticky-purchase { gap: .55rem; padding: .42rem .45rem .42rem .85rem; }
  body.single-product .terrene-sticky-purchase__name { font-size: .88rem; }
  body.single-product .terrene-sticky-purchase__price { font-size: .51rem; }
  body.single-product .terrene-sticky-purchase__button { min-height: 38px; padding: .65rem .8rem; font-size: .52rem; }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product .terrene-product__visual .woocommerce-product-gallery__image img {
    animation: none !important;
    transform: none !important;
  }
  body.single-product .terrene-sticky-purchase {
    transition: none !important;
  }
  body.single-product .terrene-product__accordion-body {
    animation: none !important;
  }
}


/* ------------------------------------------------------------
   1.5.1 reference sequence refinements
   ------------------------------------------------------------ */

/* Header matches the reference: transparent, wide at page top;
   compact black floating capsule after the navigation script toggles is-scrolled. */
body.single-product .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1600 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(247,246,242,0) !important;
  box-shadow: none !important;
  color: #181816 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: top .32s ease, left .32s ease, width .32s ease, border-radius .32s ease,
              background .32s ease, box-shadow .32s ease, transform .32s ease;
}
body.single-product .site-header .header-inner {
  width: min(100% - 52px, 1760px) !important;
  max-width: 1760px !important;
  min-height: 76px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  transition: min-height .32s ease, padding .32s ease, width .32s ease;
}
body.single-product .site-header .site-title,
body.single-product .site-header .main-navigation a,
body.single-product .site-header .header-icon,
body.single-product .site-header .menu-toggle {
  color: #181816 !important;
}
body.single-product .site-header .custom-logo {
  max-width: 54px !important;
  max-height: 58px !important;
}
body.single-product .site-header .main-navigation .menu {
  justify-content: flex-end !important;
  gap: clamp(.75rem, 1.6vw, 1.55rem) !important;
}
body.single-product .site-header .main-navigation a {
  font-size: .58rem !important;
}
body.single-product .site-header.is-scrolled {
  top: 10px !important;
  left: 50% !important;
  right: auto !important;
  width: min(760px, calc(100% - 28px)) !important;
  max-width: 760px !important;
  transform: translateX(-50%) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 11px !important;
  background: rgba(13,13,13,.97) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.18) !important;
  color: #f7f5ee !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}
body.single-product .site-header.is-scrolled .header-inner {
  width: 100% !important;
  max-width: none !important;
  min-height: 55px !important;
  padding: 0 15px !important;
}
body.single-product .site-header.is-scrolled .site-title,
body.single-product .site-header.is-scrolled .main-navigation a,
body.single-product .site-header.is-scrolled .header-icon,
body.single-product .site-header.is-scrolled .menu-toggle {
  color: #f7f5ee !important;
}
body.single-product .site-header.is-scrolled .custom-logo {
  max-width: 32px !important;
  max-height: 32px !important;
}

/* Delivery line and grocery option row. */
body.single-product .terrene-product__delivery-note {
  margin: -.45rem 0 1.05rem;
  color: #77756e;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .61rem;
  letter-spacing: .035em;
  line-height: 1.55;
}
body.single-product .terrene-product__purchase .variations_form {
  margin-bottom: .5rem !important;
}
body.single-product .terrene-product__purchase .variations {
  margin-bottom: .9rem !important;
}
body.single-product .terrene-product__purchase .variations tr {
  display: block;
  margin: 0 0 .65rem;
}
body.single-product .terrene-product__purchase .variations tr::after {
  display: block;
  clear: both;
  content: "";
}
body.single-product .terrene-product__purchase .variations td.value {
  padding: .25rem 0 .35rem !important;
}
body.single-product .terrene-product__purchase .terrene-variation-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  margin: .35rem 0 .15rem;
}
body.single-product .terrene-product__purchase .terrene-variation-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: .58rem .95rem;
  border: 1px solid rgba(33,33,29,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.38);
  color: #65635d;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: .94rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
body.single-product .terrene-product__purchase .terrene-variation-pill:hover {
  border-color: rgba(32,32,27,.42);
  color: #1b1b18;
}
body.single-product .terrene-product__purchase .terrene-variation-pill.is-selected {
  border-color: rgba(255,255,255,.9);
  background: #fff;
  color: #171715;
  box-shadow: 0 4px 14px rgba(0,0,0,.09);
}
body.single-product .terrene-product__purchase .terrene-native-variation-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}
body.single-product .terrene-product__purchase .reset_variations {
  display: inline-block;
  margin: .35rem 0 0 .2rem;
}
body.single-product .terrene-product__purchase .single_variation_wrap {
  margin-top: .45rem;
}
body.single-product .terrene-product__purchase .woocommerce-variation-add-to-cart {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem;
}
body.single-product .terrene-product__purchase-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin: .6rem 0 .95rem;
}
body.single-product .terrene-product__save {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: .38rem;
  padding: .42rem .82rem;
  border: 1px solid rgba(38,38,32,.2);
  border-radius: 999px;
  background: transparent;
  color: #77746d;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .12em;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
body.single-product .terrene-product__save > span:first-child { font-size: .9rem; }
body.single-product .terrene-product__save[aria-pressed="true"] {
  border-color: #d66f3b;
  background: rgba(230,111,62,.08);
  color: #c85c2d;
}
body.single-product .terrene-product__stock-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: .42rem;
  padding: .35rem .78rem;
  border: 1px solid rgba(174,130,32,.75);
  border-radius: 999px;
  color: #a57612;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .57rem;
  letter-spacing: .07em;
}
body.single-product .terrene-product__stock-pill.is-out-of-stock {
  border-color: rgba(185,75,62,.55);
  color: #a9473d;
}
body.single-product .terrene-product__stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
body.single-product .terrene-product__reassurance {
  display: grid;
  gap: .42rem;
  margin: .9rem 0 1.05rem !important;
  padding: .85rem 0 0 !important;
  border-top: 1px solid rgba(35,35,30,.17);
  list-style: none !important;
}
body.single-product .terrene-product__reassurance li {
  position: relative;
  margin: 0 !important;
  padding: 0 0 0 1.15rem !important;
  color: #69675f;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .59rem;
  letter-spacing: .035em;
  line-height: 1.55;
}
body.single-product .terrene-product__reassurance li::before {
  position: absolute;
  left: 0;
  top: .02em;
  color: #e66f3e;
  content: "✦";
  font-size: .72rem;
}

/* Image stack and grocery-specific provenance panel sit in the visual column. */
body.single-product .terrene-product__gallery-stage {
  position: relative;
  min-height: 580px;
  transform-style: preserve-3d;
}
body.single-product .terrene-product__visual .woocommerce-product-gallery {
  position: relative;
  z-index: 2;
}
body.single-product .terrene-product__angle-stack {
  position: absolute;
  z-index: 1;
  left: 5%;
  bottom: -36px;
  width: 54%;
  height: 185px;
  pointer-events: none;
  transform-style: preserve-3d;
}
body.single-product .terrene-product__angle-card {
  position: absolute;
  display: grid;
  width: 116px;
  height: 158px;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(40,40,34,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 20px 28px rgba(0,0,0,.13);
  transform-origin: 50% 80%;
}
body.single-product .terrene-product__angle-card--1 {
  left: 0;
  bottom: 0;
  transform: rotate(-8deg) translateZ(10px);
}
body.single-product .terrene-product__angle-card--2 {
  left: 30px;
  bottom: 4px;
  transform: rotate(5deg) translateZ(20px);
}
body.single-product .terrene-product__angle-card--3 {
  left: 58px;
  bottom: 0;
  transform: rotate(13deg) translateZ(30px);
}
body.single-product .terrene-product__angle-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
body.single-product .terrene-product__origin-card {
  position: relative;
  z-index: 5;
  width: min(280px, 58%);
  margin: 3.2rem 0 0 auto;
  padding: 1.1rem 1.1rem 1rem;
  border: 7px solid rgba(255,255,255,.92);
  border-radius: 13px;
  background: #171715;
  color: #f4f1e9;
  box-shadow: 0 24px 44px rgba(0,0,0,.19);
}
body.single-product .terrene-product__origin-card-kicker {
  display: block;
  margin-bottom: .45rem;
  color: #e8e3d9;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .14em;
}
body.single-product .terrene-product__origin-card h3 {
  margin: 0 0 .75rem !important;
  color: #fff !important;
  font-family: "Cormorant Garamond", Georgia, serif !important;
  font-size: 1.45rem !important;
  font-weight: 600 !important;
  line-height: 1.05;
}
body.single-product .terrene-product__origin-row {
  display: grid;
  gap: .18rem;
  margin: .55rem 0;
  padding: .55rem .6rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 7px;
}
body.single-product .terrene-product__origin-row span {
  color: #aaa79e;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .47rem;
  font-weight: 700;
  letter-spacing: .14em;
}
body.single-product .terrene-product__origin-row strong {
  color: #9bd7a7;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: .65rem;
  font-weight: 600;
  line-height: 1.35;
}
body.single-product .terrene-product__origin-card p {
  margin: .75rem 0 0;
  color: rgba(244,241,233,.68);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: .82rem;
  line-height: 1.3;
}

/* More of the reference product-page scroll: long, one-at-a-time disclosure list. */
body.single-product .terrene-product__details {
  margin-top: 3.2rem;
}
body.single-product .terrene-product__accordion-list {
  max-width: 830px;
}
body.single-product .terrene-product__accordion {
  border-bottom: 0;
}
body.single-product .terrene-product__accordion summary {
  min-height: 64px;
  border-bottom: 1px solid rgba(40,40,34,.1);
  transition: color .2s ease;
}
body.single-product .terrene-product__accordion summary:hover .terrene-product__accordion-title {
  color: #b45f38;
}
body.single-product .terrene-product__accordion-body strong {
  color: #292822;
  font-weight: 600;
}
body.single-product .terrene-product__accordion-body p + p {
  margin-top: .55rem;
}
body.single-product .terrene-product__reviews {
  scroll-margin-top: 110px;
}

/* A little more vertical space for the full editorial product flow. */
body.single-product .terrene-product__hero {
  min-height: 800px;
  padding-bottom: 4.5rem;
}
body.single-product .terrene-product__story {
  margin-top: 2rem;
  padding-top: 1.5rem;
}
body.single-product .terrene-product__details {
  margin-bottom: 5.5rem;
}

@media (max-width: 900px) {
  body.single-product .site-header {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    transform: none !important;
    background: rgba(247,246,242,.92) !important;
  }
  body.single-product .site-header .header-inner {
    width: calc(100% - 32px) !important;
    min-height: 64px !important;
  }
  body.single-product .site-header.is-scrolled {
    top: 8px !important;
    left: 50% !important;
    width: min(600px, calc(100% - 20px)) !important;
    transform: translateX(-50%) !important;
    background: rgba(13,13,13,.97) !important;
  }
  body.single-product .site-header.is-scrolled .header-inner {
    width: 100% !important;
    min-height: 52px !important;
  }
  body.single-product .terrene-product__gallery-stage {
    min-height: min(88vw, 590px);
  }
  body.single-product .terrene-product__angle-stack {
    left: 1%;
    bottom: -18px;
    width: 50%;
    transform: scale(.8);
    transform-origin: bottom left;
  }
  body.single-product .terrene-product__origin-card {
    width: min(320px, 75%);
    margin-top: 2rem;
  }
  body.single-product .terrene-product__hero {
    min-height: 0;
  }
}
@media (max-width: 600px) {
  body.single-product .site-header .header-inner {
    width: calc(100% - 28px) !important;
    min-height: 58px !important;
  }
  body.single-product .site-header .custom-logo {
    max-width: 42px !important;
    max-height: 46px !important;
  }
  body.single-product .site-header.is-scrolled .custom-logo {
    max-width: 29px !important;
    max-height: 30px !important;
  }
  body.single-product .terrene-product__gallery-stage {
    min-height: 84vw;
  }
  body.single-product .terrene-product__angle-stack {
    display: none;
  }
  body.single-product .terrene-product__origin-card {
    width: 88%;
    max-width: 320px;
    margin: 2rem auto 0;
  }
  body.single-product .terrene-product__reassurance li {
    font-size: .56rem;
  }
  body.single-product .terrene-product__purchase .terrene-variation-pill {
    min-height: 35px;
    padding: .55rem .75rem;
    font-size: .88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.single-product .site-header {
    transition: none !important;
  }
  body.single-product .terrene-product__angle-card,
  body.single-product .terrene-product__angle-image {
    transition: none !important;
  }
}
