:root { --photo-bg: #ececec; } /* 1.6.2: frame behind product photos (close to the studio backdrop) */
/* ============================================
   Potter's Hand Botanicals - Shop styles
   (loaded only on /shop pages; builds on styles.css variables)
   ============================================ */

.shop-hero { padding-bottom: 3.5rem; }

.shop-section { padding: 4rem 0 6rem; background: var(--diamond-white-pure); }

.shop-jump {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.shop-jump a {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0.5rem 1.2rem; border: 1px solid var(--border-light); border-radius: 999px;
  background: var(--diamond-white);
}
.shop-jump a:hover { border-color: var(--gold); }

.shop-perks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2rem;
  font-size: 0.9rem; color: var(--text-medium); margin: 0 0 3rem;
}
.shop-perks li { position: relative; padding-left: 1.1rem; }
.shop-perks li::before {
  content: ''; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold);
}
.shop-perks a { text-decoration: underline; text-underline-offset: 2px; }

.shop-category { margin-bottom: 4rem; scroll-margin-top: 100px; }
.shop-category-head h2 { margin-bottom: 0.75rem; }
.shop-category-head .section-divider { margin-bottom: 2rem; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.shop-card {
  display: flex; flex-direction: column;
  background: var(--diamond-white);
  border: 1px solid var(--border-light);
  border-radius: 4px; overflow: hidden;
  color: inherit; transition: all var(--transition);
}
.shop-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-medium);
  border-color: var(--gold-light); color: inherit;
}
/* 1.6.2: product photos are never cropped by their frames (square frames, mixed square / portrait / landscape
   photos): object-fit: contain on a neutral backdrop-matched grey. */
.shop-card-image { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--photo-bg); }
.shop-card-image > img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--transition); }
.shop-card:hover .shop-card-image > img { transform: scale(1.03); }
.shop-card.is-soldout .shop-card-image > img { opacity: 0.6; }
.shop-card-body { padding: 1.25rem 1.5rem 1.5rem; }
.shop-card-body h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.shop-card-meta { font-size: 0.8rem; color: var(--text-light); margin-bottom: 0.5rem; }
.shop-card-price { font-weight: 600; color: var(--deep-sage); margin: 0; }

.shop-badge {
  position: absolute; top: 0.75rem; left: 0.75rem;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 2px;
}
.shop-badge--soldout { background: var(--text-dark); color: var(--diamond-white); }
.shop-badge--low { background: var(--gold); color: var(--diamond-white); }

.shop-noimage {
  width: 100%; height: 100%; min-height: 200px; display: flex; align-items: center; justify-content: center;
  background: var(--diamond-white);
}
.shop-noimage img { width: 80px; opacity: 0.5; }

.shop-empty { text-align: center; }
.shop-empty .section-divider { margin-left: auto; margin-right: auto; }
.shop-empty p { max-width: 550px; margin: 1rem auto 2rem; font-size: 1.05rem; }

/* --- Product page --- */
.shop-product { padding: 8rem 0 5rem; background: var(--diamond-white-pure); }
.shop-breadcrumb { font-size: 0.85rem; color: var(--text-light); margin-bottom: 2rem; }
.shop-breadcrumb a { color: var(--text-medium); }
.shop-breadcrumb a:hover { color: var(--gold); }

.shop-product-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4rem; align-items: start;
}
.shop-gallery-main {
  border: 1px solid var(--border-light); border-radius: 4px; overflow: hidden;
  background: var(--photo-bg); aspect-ratio: 1 / 1;
}
.shop-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.shop-thumbs { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.shop-thumbs[hidden], .shop-thumb[hidden] { display: none; }
.shop-thumb {
  width: 72px; height: 72px; padding: 0; border: 1px solid var(--border-light); border-radius: 3px;
  overflow: hidden; background: var(--photo-bg); cursor: pointer; transition: border-color var(--transition);
}
.shop-thumb img { width: 100%; height: 100%; object-fit: contain; }
.shop-thumb:hover, .shop-thumb.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }

.shop-info-cat { font-size: 0.85rem; margin-bottom: 0.5rem; }
.shop-product-title { font-size: 2.4rem; line-height: 1.2; margin-bottom: 0.75rem; }
.shop-price { font-family: var(--serif); font-size: 1.8rem; color: var(--deep-sage); margin-bottom: 0.25rem; }
.shop-stock { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 1.75rem; }
.shop-stock--in { color: var(--eucalyptus); }
.shop-stock--low { color: var(--gold-dark); }
.shop-stock--soldout { color: #9A4B3C; }

.shop-option { border: 0; margin: 0 0 1.5rem; padding: 0; }
.shop-option legend {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dark); margin-bottom: 0.6rem;
}
.shop-option-current { font-weight: 500; letter-spacing: 0.5px; text-transform: none; color: var(--text-medium); }
.shop-choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.shop-choice { position: relative; cursor: pointer; }
.shop-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.shop-choice span {
  display: inline-block; min-width: 3.5rem; text-align: center;
  padding: 0.55rem 1rem; font-size: 0.9rem;
  border: 1px solid var(--border-light); border-radius: 2px; background: var(--diamond-white);
  transition: all var(--transition);
}
.shop-choice:hover span { border-color: var(--gold); }
.shop-choice input:checked + span {
  border-color: var(--deep-sage); background: var(--deep-sage); color: var(--diamond-white);
}
.shop-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.shop-choice.is-soldout span { text-decoration: line-through; color: var(--text-light); }
.shop-choice.is-soldout input:checked + span { color: rgba(247, 245, 240, 0.8); }
.shop-choice.is-unavailable span { border-style: dashed; color: var(--text-light); }
.shop-choice[hidden] { display: none; }
/* 1.6.1 color swatches (sampled from the product photos) */
.shop-swatch {
  display: inline-block; width: 0.8rem; height: 0.8rem; margin-right: 0.45rem; vertical-align: -0.1rem;
  border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.18); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.shop-swatch--sage-green { background: #9ba66f; }
.shop-swatch--river-slate { background: #767b93; }
.shop-swatch--blue-clay { background: #5d6e8e; }
.shop-swatch--terracotta { background: #a15d4d; }
.shop-swatch--transparent { background: linear-gradient(135deg, #f4f6f8 0%, #dfe4ea 50%, #f4f6f8 100%); }

.shop-buy { margin: 0.5rem 0 1rem; }
.shop-qty { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.shop-qty label { font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dark); }
.shop-add { width: 100%; max-width: 360px; }
.shop-cart-msg { font-size: 0.9rem; color: var(--deep-sage); margin: 0.75rem 0 0; min-height: 1.4em; }
.shop-cart-msg a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
/* back-in-stock signup (sold-out variants) */
.shop-notify { margin: 0 0 1.25rem; padding: 1.1rem 1.2rem; background: var(--diamond-white); border: 1px solid var(--border-light); border-radius: 2px; max-width: 460px; }
.shop-notify[hidden] { display: none; }
.shop-notify-title { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 0.35rem; color: var(--deep-sage); }
.shop-notify-lead { margin: 0 0 0.8rem; font-size: 0.92rem; color: var(--text-medium); }
.shop-notify-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.shop-notify-row input[type="email"] { flex: 1 1 200px; min-width: 0; padding: 0.7rem 0.8rem; font: inherit; font-size: 0.95rem; border: 1px solid var(--border-light); border-radius: 2px; background: var(--diamond-white-pure); }
.shop-notify-row input[type="email"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.shop-notify-btn { flex: 0 0 auto; }
.shop-notify-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.shop-notify-consent { margin: 0.7rem 0 0; font-size: 0.78rem; color: var(--text-light); }
.shop-notify-consent a { text-decoration: underline; text-underline-offset: 2px; }
.shop-notify-msg { margin: 0.6rem 0 0; font-size: 0.9rem; min-height: 1.3em; color: var(--text-medium); }
.shop-notify-msg.is-ok { color: var(--deep-sage); font-weight: 600; }
.shop-notify-msg.is-error { color: #a33a2c; }
@media (max-width: 520px) { .shop-notify-btn { width: 100%; } }

.shop-add:disabled, .shop-add:disabled:hover {
  cursor: not-allowed; opacity: 0.55; transform: none; box-shadow: none;
  background: linear-gradient(135deg, var(--deep-sage), var(--deep-sage-dark));
}
.shop-sku { font-size: 0.75rem; color: var(--text-light); letter-spacing: 0.5px; margin-bottom: 2rem; }
/* 1.5.2 Specs */
.shop-specs { border-top: 1px solid var(--border-light); padding-top: 1.25rem; margin-bottom: 1.5rem; }
.shop-specs[hidden] { display: none; }
.shop-specs-title { font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dark); margin: 0 0 0.75rem; font-family: inherit; }
.shop-specs-part { font-size: 0.9rem; font-weight: 600; color: var(--deep-sage); margin: 1rem 0 0.4rem; font-family: inherit; }
.shop-specs-list { margin: 0; display: grid; gap: 0.4rem; }
.shop-specs-list div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.75rem; font-size: 0.92rem; }
.shop-specs-list dt { color: var(--text-medium); }
.shop-specs-list dd { margin: 0; color: var(--text-dark); }
@media (max-width: 520px) { .shop-specs-list div { grid-template-columns: 1fr; gap: 0.1rem; } }
.shop-description { border-top: 1px solid var(--border-light); padding-top: 1.5rem; margin-bottom: 1.5rem; }
.shop-info .shop-perks { justify-content: flex-start; flex-direction: column; gap: 0.4rem; margin: 0; }

/* 1.6.0 Product page tagline + reusable tabs (views/shop.js tabsHtml, public/tabs.js).
   No JS: sections stacked, each with its heading. With JS (.is-enhanced): tab bar + one panel at a time. */
.ph-tagline { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; color: var(--deep-sage-dark); border-top: 1px solid var(--border-light); padding-top: 1.5rem; margin: 0 0 1.25rem; }
.ph-tagline-sub, .ph-tagline-main { display: block; }
.ph-tagline-sub { font-style: italic; font-size: 1.1rem; color: var(--deep-sage); margin-bottom: 0.2rem; }
.shop-info { min-width: 0; } /* grid item: let the tab bar scroll instead of widening the column */
.ph-tabs { margin-bottom: 1.5rem; min-width: 0; max-width: 100%; }
.ph-tablist { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border-light); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-bottom: 1.25rem; }
.ph-tablist::-webkit-scrollbar { display: none; }
.ph-tablist[hidden] { display: none; }
.ph-tab {
  flex: 0 0 auto; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
  padding: 0.75rem 1rem; min-height: 44px; font-family: inherit; font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-medium); transition: color 0.2s, border-color 0.2s;
}
.ph-tab:hover { color: var(--deep-sage); }
.ph-tab[aria-selected="true"] { color: var(--deep-sage-dark); border-bottom-color: var(--gold); }
.ph-tab:focus-visible { outline: 2px solid var(--deep-sage); outline-offset: -2px; border-radius: 2px; }
.ph-tabpanel { border-top: 1px solid var(--border-light); padding-top: 1.25rem; margin-bottom: 1.25rem; }
.ph-tabpanel-title { font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dark); margin: 0 0 0.75rem; font-family: inherit; }
.ph-tabs.is-enhanced .ph-tabpanel { border-top: 0; padding-top: 0; margin-bottom: 0; }
.ph-tabs.is-enhanced .ph-tabpanel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ph-tabpanel[hidden] { display: none; }
.ph-tabpanel:focus-visible { outline: 2px solid var(--deep-sage); outline-offset: 4px; }
.ph-tabpanel p { margin: 0 0 0.9rem; }
.ph-tabpanel .shop-description { border-top: 0; padding-top: 0; margin-bottom: 0; }
.ph-tabpanel .shop-specs--tab { border-top: 0; padding-top: 0; margin-bottom: 0; }
.ph-tabpanel .shop-specs-part:first-child { margin-top: 0; }
.ph-tabpanel a { text-decoration: underline; text-underline-offset: 2px; color: var(--deep-sage); }
.ph-note { background: rgba(46, 94, 78, 0.06); border-left: 3px solid var(--gold); padding: 0.75rem 1rem; border-radius: 2px; }
.ph-note strong { color: var(--deep-sage-dark); }
.ph-size-table-wrap { max-width: 100%; }
.ph-size-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; line-height: 1.35; margin: 0.25rem 0 0.75rem; }
.ph-size-table th, .ph-size-table td { padding: 0.5rem 0.45rem; border-bottom: 1px solid var(--border-light); text-align: left; vertical-align: bottom; overflow-wrap: break-word; }
.ph-size-table thead th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.4px; color: var(--text-medium); }
.ph-size-table thead th[scope="colgroup"] { color: var(--deep-sage); border-bottom: 2px solid var(--gold); text-align: center; }
.ph-size-table tbody th { font-weight: 600; color: var(--deep-sage-dark); white-space: nowrap; }
.ph-size-table td { color: var(--text-dark); white-space: nowrap; }
.ph-size-table tr[hidden] { display: none; }
.ph-size-note { font-size: 0.8rem; color: var(--text-medium); margin: 0 0 0.5rem; }
@media (max-width: 520px) {
  .ph-size-table th, .ph-size-table td { padding: 0.45rem 0.3rem; }
  .ph-size-table thead th { font-size: 0.68rem; letter-spacing: 0; }
}
/* Very narrow screens: each size becomes a small card of "heading: value" lines (no sideways scrolling). */
@media (max-width: 339px) {
  .ph-size-table, .ph-size-table tbody, .ph-size-table tr, .ph-size-table th, .ph-size-table td { display: block; }
  .ph-size-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ph-size-table tbody tr { border-bottom: 1px solid var(--border-light); padding: 0.4rem 0; }
  .ph-size-table tbody th, .ph-size-table td { border: 0; padding: 0.15rem 0; white-space: normal; }
  .ph-size-table td::before { content: attr(data-label) ": "; color: var(--text-medium); }
}
.ph-ship-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.ph-ship-list li { position: relative; padding-left: 1.1rem; }
.ph-ship-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
@media (max-width: 520px) {
  .ph-tagline { font-size: 1.15rem; }
  .ph-tagline-sub { font-size: 1rem; }
  .ph-tablist { gap: 0; }
  .ph-tab { flex: 1 1 auto; padding: 0.7rem 0.5rem; font-size: 0.72rem; letter-spacing: 0.6px; }
}

/* --- Quantity stepper (product + cart) --- */
.qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--border-light); border-radius: 2px; background: var(--diamond-white-pure); }
.qty-stepper button {
  width: 2.25rem; border: 0; background: transparent; color: var(--deep-sage); font-size: 1.1rem; cursor: pointer;
}
.qty-stepper button:hover:not(:disabled) { color: var(--gold); }
.qty-stepper button:disabled { color: var(--border-light); cursor: default; }
.qty-stepper input {
  width: 3rem; border: 0; border-left: 1px solid var(--border-light); border-right: 1px solid var(--border-light);
  text-align: center; font: inherit; font-size: 0.95rem; padding: 0.45rem 0; background: transparent; color: var(--text-dark);
  -moz-appearance: textfield; appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper input:focus-visible, .qty-stepper button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* --- Cart page --- */
.cart-section { padding-top: 3rem; }
.cart-loading { text-align: center; color: var(--text-light); }
.cart-empty { text-align: center; padding: 2rem 0; }
.cart-empty .section-divider { margin-left: auto; margin-right: auto; }
.cart-notices { border: 1px solid var(--gold-light); background: #FFFBEA; padding: 1rem 1.25rem; border-radius: 4px; margin-bottom: 2rem; }
.cart-notices p { margin: 0.25rem 0; color: var(--text-dark); font-size: 0.95rem; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 3rem; align-items: start; }
.cart-items { border-top: 1px solid var(--border-light); }
.cart-item {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto auto; gap: 1.25rem; align-items: center;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border-light);
}
.cart-item-img img { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--border-light); border-radius: 3px; background: var(--photo-bg); }
.cart-item-img .cart-noimg { object-fit: contain; padding: 1rem; }
.cart-item-info { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.cart-item-name { font-family: var(--serif); font-size: 1.1rem; color: var(--text-dark); }
.cart-item-variant, .cart-item-unit { font-size: 0.85rem; color: var(--text-medium); }
.cart-item-msg { font-size: 0.8rem; color: var(--gold-dark); font-weight: 600; }
.cart-item-total { font-weight: 600; color: var(--deep-sage); min-width: 5rem; text-align: right; }
.cart-item-remove {
  border: 0; background: none; color: var(--text-light); font: inherit; font-size: 0.8rem; text-decoration: underline;
  text-underline-offset: 2px; cursor: pointer; padding: 0.25rem;
}
.cart-item-remove:hover { color: #9A4B3C; }
.cart-summary {
  background: var(--diamond-white); border: 1px solid var(--border-light); border-radius: 4px; padding: 1.75rem;
  position: sticky; top: 100px;
}
.cart-summary h2 { font-size: 1.4rem; margin-bottom: 1.25rem; }
.cart-field label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 0.4rem; }
.cart-field select {
  width: 100%; font: inherit; font-size: 0.95rem; padding: 0.6rem 0.75rem; border: 1px solid var(--border-light);
  border-radius: 2px; background: var(--diamond-white-pure); color: var(--text-dark);
}
.cart-field select:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.cart-help { font-size: 0.78rem; color: var(--text-light); margin: 0.4rem 0 1.25rem; line-height: 1.5; }
.cart-totals { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; margin: 0 0 1rem; font-size: 0.95rem; }
.cart-totals dt { color: var(--text-medium); }
.cart-totals dd { text-align: right; color: var(--text-dark); }
.cart-totals .cart-total { font-weight: 700; color: var(--deep-sage); border-top: 1px solid var(--border-light); padding-top: 0.75rem; margin-top: 0.25rem; font-size: 1.05rem; }
.cart-promo { font-size: 0.85rem; color: var(--deep-sage); background: var(--cream, #f7f4ee); border: 1px dashed var(--border-light); border-radius: 6px; padding: 0.6rem 0.75rem; line-height: 1.5; margin: 0 0 0.5rem; }
.thanks-discount td { color: var(--deep-sage); }
.cart-note { font-size: 0.8rem; color: var(--text-medium); line-height: 1.5; }
.cart-checkout { width: 100%; }
.cart-checkout:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.cart-error { color: #9A4B3C; font-size: 0.9rem; margin: 0.75rem 0 0; min-height: 1em; }
.cart-secure { font-size: 0.75rem; color: var(--text-light); text-align: center; margin: 0.5rem 0 0; }

/* --- Thank-you page --- */
.thanks-container { max-width: 720px; }
.thanks-ref { font-size: 1.1rem; color: var(--text-dark); }
.thanks-ref strong { font-family: var(--serif); font-size: 1.4rem; color: var(--deep-sage); letter-spacing: 1px; }
.thanks-ship { font-size: 0.9rem; }
.thanks-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; font-size: 0.95rem; }
.thanks-table th { text-align: left; font-size: 0.75rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-medium); border-bottom: 1px solid var(--border-light); padding: 0.5rem 0; }
.thanks-table td { padding: 0.75rem 0; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.thanks-table .num { text-align: right; white-space: nowrap; padding-left: 1rem; }
.thanks-table tfoot td { border-bottom: 0; padding: 0.35rem 0; color: var(--text-medium); }
.thanks-table tfoot .thanks-total td { font-weight: 700; color: var(--deep-sage); border-top: 1px solid var(--border-light); padding-top: 0.75rem; font-size: 1.05rem; }
.thanks-table .cart-item-name { display: block; font-size: 1rem; }
.thanks-table .cart-item-variant { display: block; }
.thanks-help { font-size: 0.9rem; }

@media (max-width: 968px) {
  .cart-layout { grid-template-columns: 1fr; gap: 2rem; }
  .cart-summary { position: static; }
  .shop-product-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .shop-product-title { font-size: 2rem; }
}
@media (max-width: 600px) {
  .shop-product { padding-top: 6.5rem; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .shop-card-body { padding: 0.9rem 1rem 1.1rem; }
  .shop-card-body h3 { font-size: 1rem; }
  .shop-add { max-width: none; }
  .cart-item { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: 'img info total' 'img qty remove'; gap: 0.5rem 1rem; }
  .cart-item-img { grid-area: img; align-self: start; }
  .cart-item-img img { width: 72px; height: 72px; }
  .cart-item-info { grid-area: info; }
  .cart-item-qty { grid-area: qty; }
  .cart-item-total { grid-area: total; align-self: start; min-width: 0; }
  .cart-item-remove { grid-area: remove; justify-self: end; }
  .cart-summary { padding: 1.25rem; }
}

/* Owner preview of the closed shop (only rendered for a logged-in admin; see lib/layout.js) */
.shop-preview-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; background: #2F4A3E; color: #F6F1E4; border-top: 3px solid var(--gold); font-size: 0.88rem; line-height: 1.45; padding: 0.7rem 0; box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15); }
.shop-preview-bar strong { color: var(--gold-light, #E4CF8F); }
.shop-preview-bar a { color: #fff; font-weight: 600; margin-left: 0.35rem; white-space: nowrap; }
body:has(.shop-preview-bar) { padding-bottom: 5rem; }
@media (max-width: 600px) { .shop-preview-bar { font-size: 0.8rem; padding: 0.55rem 0; } }

/* ============ EverGrow feature page (/evergrow) ============ */
.shop-category-feature { margin: -1rem 0 1.75rem; font-size: 0.95rem; }
.shop-category-feature a { color: var(--deep-sage); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.shop-category-feature a:hover { color: var(--gold-dark); }

.eg-hero { padding: 7.5rem 0 4rem; background: var(--diamond-white); }
.eg-hero .shop-breadcrumb { margin-bottom: 1.5rem; }
.eg-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: center; }
.eg-hero-text h1 { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; color: var(--deep-sage-dark); margin: 0.5rem 0 1rem; }
.eg-lead { font-size: 1.1rem; line-height: 1.6; color: var(--text-medium); margin-bottom: 1rem; }
.eg-price { font-size: 1.05rem; margin-bottom: 1.5rem; }
.eg-price strong { font-family: var(--serif); font-size: 1.5rem; color: var(--deep-sage); }
.eg-hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.eg-hero-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.eg-hero-photo { margin: 0; background: var(--photo-bg); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-soft); }
.eg-hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.eg-hero-photo:nth-child(2) { transform: translateY(1.5rem); }

.eg-section { padding: 4.5rem 0; background: var(--diamond-white-pure); }
.eg-section:nth-of-type(odd) { background: var(--diamond-white); }
.eg-section .section-title { text-align: center; }
.eg-section .section-divider { margin: 0.75rem auto 2.5rem; }

.eg-how-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: eg; }
.eg-how-list li { counter-increment: eg; background: var(--diamond-white-pure); border: 1px solid var(--border-light); border-radius: 12px; padding: 1.5rem 1.25rem; }
.eg-how-list li::before { content: counter(eg); display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--deep-sage); color: #fff; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.75rem; }
.eg-how-list h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--deep-sage-dark); margin-bottom: 0.4rem; }
.eg-how-list p { font-size: 0.92rem; line-height: 1.55; color: var(--text-medium); margin: 0; }

/* 1.7.6 EverGrow "Features that make care easy": three even cards (photo, title, text); stacked on small screens. */
.eg-care-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.eg-care-card { background: var(--diamond-white-pure); border: 1px solid var(--border-light); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.eg-care-media { position: relative; aspect-ratio: 3 / 4; background: #eceae6; }
.eg-care-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.eg-care-media img.eg-care-inset { position: absolute; right: 0.75rem; bottom: 0.75rem; width: 38%; height: auto; aspect-ratio: 3 / 4; border: 3px solid #fff; border-radius: 8px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25); }
.eg-care-card h3 { font-family: var(--serif); font-size: 1.2rem; color: var(--deep-sage-dark); margin: 1.1rem 1.25rem 0.4rem; }
.eg-care-card p { font-size: 0.95rem; line-height: 1.6; color: var(--text-medium); margin: 0 1.25rem 1.4rem; }
.eg-care-points { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.95rem; line-height: 1.6; color: var(--text-medium); }
.eg-care-points li { margin-bottom: 0.5rem; }
@media (max-width: 900px) { .eg-care-list { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto; } }

.eg-designs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.eg-design { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.5rem; align-items: center; background: var(--diamond-white-pure);
  border: 1px solid var(--border-light); border-radius: 14px; padding: 1.25rem; }
.eg-design-photo { display: block; background: var(--photo-bg); border-radius: 10px; overflow: hidden; }
.eg-design-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.eg-design h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--deep-sage-dark); margin-bottom: 0.25rem; }
.eg-design-body > p { color: var(--text-medium); margin-bottom: 1rem; }
.eg-colors { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.4rem; }
.eg-colors a { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem 0.5rem; padding: 0.45rem 0.6rem; border-radius: 8px; border: 1px solid transparent; }
.eg-colors a:hover, .eg-colors a:focus-visible { border-color: var(--gold); background: var(--diamond-white); }
.eg-colors .shop-swatch { width: 1.1rem; height: 1.1rem; }
.eg-color-name { font-weight: 600; color: var(--text-dark); }
.eg-color-sizes { font-size: 0.85rem; color: var(--text-medium); }
.eg-color-sizes::before { content: '· '; }
.eg-availability { margin: 1.75rem auto 0; max-width: 46rem; text-align: center; color: var(--text-medium); font-size: 0.95rem; line-height: 1.8; }
.eg-availability .shop-swatch { margin-right: 0.4rem; vertical-align: -0.1em; }

.eg-size-prices { list-style: none; padding: 0; margin: 0 auto 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.eg-size-prices li { display: flex; flex-direction: column; align-items: center; min-width: 7.5rem; padding: 0.75rem 1rem; border: 1px solid var(--border-light); border-radius: 10px; background: var(--diamond-white-pure); }
.eg-size-name { font-family: var(--serif); font-size: 1.2rem; color: var(--deep-sage-dark); }
.eg-size-price { font-size: 0.9rem; color: var(--text-medium); }
.eg-sizes .ph-size-table-wrap { max-width: 52rem; margin: 0 auto; overflow-x: auto; }
.eg-sizes .ph-size-note { text-align: center; color: var(--text-medium); font-size: 0.9rem; }

.eg-cta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; max-width: 52rem; margin: 0 auto; }
.eg-cta-group h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--deep-sage-dark); margin-bottom: 0.75rem; text-align: center; }
.eg-cta-group ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.eg-cta { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0.6rem 0.5rem; border-radius: 10px;
  background: var(--deep-sage); color: #fff; font-weight: 600; text-align: center; transition: background var(--transition); }
.eg-cta span { font-size: 0.75rem; font-weight: 500; opacity: 0.85; }
.eg-cta:hover, .eg-cta:focus-visible { background: var(--deep-sage-dark); color: #fff; }
.eg-ship { text-align: center; margin-top: 2rem; color: var(--text-medium); font-size: 0.9rem; }
.eg-ship a { text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 1100px) { .eg-how-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 968px) {
  .eg-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .eg-designs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .eg-hero { padding: 6.5rem 0 3rem; }
  .eg-hero-photos { gap: 0.5rem; }
  .eg-hero-photo:nth-child(2) { transform: none; }
  .eg-how-list { grid-template-columns: minmax(0, 1fr); }
  .eg-design { grid-template-columns: minmax(0, 1fr); }
  .eg-design-photo { max-width: 16rem; margin: 0 auto; }
  .eg-cta-grid { grid-template-columns: minmax(0, 1fr); }
  .eg-section { padding: 3.25rem 0; }
}

/* ============ EverRoot feature page (/everroot): the /evergrow template + these ============ */
.er-hook { display: flex; flex-direction: column; gap: 0.35rem; }
.er-hook-sub { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 0.55em; color: var(--deep-sage); line-height: 1.25; }
.er-hook-main { line-height: 1.12; }
.er-hero-photos .eg-hero-photo img, .er-bundle-photos .eg-hero-photo img { aspect-ratio: 1 / 1; }
.er-how-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; max-width: 64rem; margin: 0 auto; }
.er-how-list li { display: flex; flex-direction: column; }
.er-wick { max-width: 46rem; margin: 1.75rem auto 0; }
.er-colors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.er-color { grid-template-columns: minmax(0, 1fr); text-align: center; }
.er-color h3 { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.er-color h3 .shop-swatch { width: 1.2rem; height: 1.2rem; }
.er-color-sizes { font-size: 0.9rem; color: var(--text-medium); }
.er-bundle-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2.5rem; align-items: center; max-width: 64rem; margin: 0 auto; }
.er-bundle-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.er-bundle-text > p:first-child { color: var(--text-medium); line-height: 1.6; margin-bottom: 0.75rem; }
.er-cta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 64rem; }
.er-cta-group h3 { display: flex; align-items: center; justify-content: center; gap: 0.45rem; }
@media (max-width: 968px) { .er-colors, .er-cta-grid { grid-template-columns: minmax(0, 1fr); } .er-bundle-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .er-how-list { grid-template-columns: minmax(0, 1fr); } }
.er-choose { margin: 1rem 0 .4rem; font-size: .9rem; font-weight: 600; color: var(--text-medium); }
