/* Shop + checkout flow (uses --dg-* from styles.css) */

/* ---- Product detail page (Gramms-style: airy gallery + buy column) ---- */

.shop-pdp {
  padding: calc(96px + var(--announce-bar-height, 36px)) 0 48px;
  background: var(--dg-cream, #f7f5f1);
}

.shop-pdp-container {
  max-width: 1120px;
}

.shop-breadcrumb {
  font-size: 12px;
  font-weight: 500;
  color: #8a8580;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.shop-breadcrumb a {
  color: #6b6560;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-breadcrumb a:hover {
  color: var(--dg-olive, #4a6741);
}

.shop-breadcrumb-sep {
  margin: 0 10px;
  opacity: 0.45;
  user-select: none;
}

.shop-breadcrumb-current {
  color: #2c2c2c;
  font-weight: 600;
}

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

.shop-grid--pdp {
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 5vw, 64px);
}

@media (max-width: 900px) {
  .shop-grid--pdp {
    grid-template-columns: 1fr;
  }
}

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

.shop-pdp-eyebrow {
  color: var(--dg-olive, #4a6741) !important;
  margin-bottom: 8px !important;
}

.shop-pdp-title {
  margin-bottom: 4px !important;
}

.shop-pdp-flavor {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6560;
  margin-bottom: 16px;
}

.shop-pdp-lead {
  margin-bottom: 24px !important;
}

.product-pdp-highlights {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}

.product-pdp-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(44, 44, 44, 0.08);
  font-size: 15px;
  line-height: 1.45;
  color: #3d3d3d;
}

.product-pdp-highlights li:first-child {
  border-top: 1px solid rgba(44, 44, 44, 0.08);
}

.product-pdp-highlight-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dg-olive, #4a6741);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.shop-divider {
  height: 1px;
  background: rgba(44, 44, 44, 0.1);
  margin: 8px 0 20px;
}

.shop-pdp-price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 20px;
  margin-bottom: 4px;
}

.shop-pdp-price {
  margin: 0 !important;
}

.shop-pdp-serving-note {
  font-size: 14px;
  color: #6b6560;
  font-weight: 500;
}

.shop-pdp-trust {
  margin-top: 20px !important;
}

.shop-pdp-ctas {
  margin-top: 20px !important;
}

.shop-pdp-disclaimer {
  max-width: 36rem;
}

.product-gallery-caption {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: #8a8580;
  max-width: 420px;
}

.shop-detail-panel {
  padding: 48px 0 64px;
  background: #fff;
  border-top: var(--border-hairline, 1px solid rgba(44, 44, 44, 0.08));
}

.shop-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 56px;
  max-width: 880px;
}

@media (max-width: 700px) {
  .shop-detail-grid {
    grid-template-columns: 1fr;
  }
}

.shop-detail-heading {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dg-olive, #4a6741);
  margin-bottom: 12px;
}

.shop-detail-text {
  font-size: 16px;
  line-height: 1.6;
  color: #5c5c5c;
}

.shop-detail-faq-link {
  margin-top: 36px;
  font-size: 15px;
  font-weight: 600;
}

.shop-detail-faq-link a {
  color: var(--dg-olive, #4a6741);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-product-img {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(44, 44, 44, 0.08);
}

.shop-price {
  font-size: 26px;
  font-weight: 600;
  color: #2C2C2C;
  margin: 20px 0 8px;
  letter-spacing: -0.02em;
}

.shop-price-note {
  font-size: 14px;
  color: #6B6560;
}

.checkout-flow {
  padding: calc(96px + var(--announce-bar-height, 36px)) 28px 88px;
  max-width: 560px;
  margin: 0 auto;
  background: var(--dg-cream, #f5f0e8);
  min-height: 70vh;
}

.checkout-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #A8A29E;
}

.checkout-steps span.active {
  color: #4A6741;
}

.checkout-steps span.done {
  color: #2C2C2C;
}

.checkout-card {
  background: #fff;
  border-radius: var(--radius, 14px);
  padding: 32px;
  border: var(--border-hairline, 1px solid rgba(44, 44, 44, 0.08));
  box-shadow: var(--shadow-soft, 0 20px 50px rgba(20, 20, 20, 0.06));
  margin-bottom: 20px;
}

.checkout-card h2 {
  font-size: 20px;
  margin-bottom: 16px;
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #E8E4DC;
  font-size: 15px;
}

.checkout-line:last-of-type {
  border-bottom: none;
  font-weight: 700;
  padding-top: 16px;
}

.checkout-field {
  margin-bottom: 16px;
}

.checkout-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #2C2C2C;
}

.checkout-field input {
  width: 100%;
  padding: 12px 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  border: 1px solid #D5D0C8;
  border-radius: 6px;
  background: #fff;
}

.checkout-field input:focus {
  outline: none;
  border-color: #4A6741;
}

.checkout-disclaimer {
  font-size: 12px;
  color: #6B6560;
  line-height: 1.5;
  margin-top: 16px;
}

.checkout-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  color: #2C2C2C;
  border: 1px solid #D5D0C8;
}

.btn-outline:hover {
  background: #E8E4DC;
  border-color: #C8C3BB;
}

.checkout-hidden {
  display: none !important;
}

/* Sold-out modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.65);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #F5F2ED;
  border-radius: 12px;
  padding: 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.modal-box h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.modal-box p {
  color: #6B6560;
  margin-bottom: 20px;
  font-size: 16px;
}

.modal-box .checkout-field {
  margin-bottom: 12px;
}

/* Product gallery (shop) */
.product-gallery-main {
  border-radius: var(--radius, 14px);
  background: #fff;
  box-shadow: var(--shadow-product, 0 24px 48px rgba(20, 20, 20, 0.08));
  border: var(--border-hairline, 1px solid rgba(44, 44, 44, 0.08));
  overflow: hidden;
  aspect-ratio: 1;
  max-height: min(72vh, 640px);
}

.product-gallery-main.product-gallery-main--contain {
  aspect-ratio: 11 / 18;
  max-height: min(78vh, 720px);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-gallery-main-img--contain {
  object-fit: contain !important;
  background: #fafaf9;
}

.product-gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.product-gallery-thumb {
  width: 76px;
  height: 76px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm, 8px);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  flex-shrink: 0;
  scroll-snap-align: start;
  box-shadow: 0 2px 12px rgba(20, 20, 20, 0.06);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-gallery-thumb--label img {
  object-fit: contain;
  background: #fafaf9;
}

.product-gallery-thumb.is-active,
.product-gallery-thumb:focus-visible {
  border-color: var(--dg-olive, #4a6741);
  outline: none;
}

.product-detail-title {
  font-size: clamp(1.75rem, 3vw, 2rem);
  margin-bottom: 12px;
  color: #2c2c2c;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.product-detail-lead {
  color: #6b6560;
  margin-bottom: 20px;
  line-height: 1.55;
}

.product-detail-bullets {
  margin: 0 0 20px;
  padding-left: 1.2em;
  color: #4a4a4a;
  font-size: 15px;
}

.product-detail-bullets li {
  margin-bottom: 8px;
}

.product-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dg-olive, #4a6741);
  margin: 20px 0;
}

.shipping-promo-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #2c2c2c;
  background: rgba(232, 224, 23, 0.28);
  padding: 9px 14px;
  border-radius: var(--radius-sm, 8px);
  margin: 12px 0 8px;
  letter-spacing: 0.04em;
}

.shop-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.toast-shop {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 150;
  background: var(--dg-dark, #1a1a1a);
  color: var(--dg-cream, #f5f0e8);
  padding: 14px 22px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.toast-shop.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Cart page */
.cart-page {
  padding: calc(96px + var(--announce-bar-height, 36px)) 28px 88px;
  max-width: 720px;
  margin: 0 auto;
  min-height: 60vh;
}

.cart-page h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.cart-line {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e8e4dc;
}

@media (max-width: 520px) {
  .cart-line {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }

  .cart-line-actions {
    grid-column: 1 / -1;
  }
}

.cart-line-img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.cart-line-meta strong {
  display: block;
  margin-bottom: 4px;
}

.cart-line-price {
  font-size: 14px;
  color: #6b6560;
}

.cart-line-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-qty-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #d5d0c8;
  border-radius: 6px;
  background: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}

.cart-qty-btn:hover {
  background: #f5f2ed;
}

.cart-qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
}

.cart-remove {
  font-size: 13px;
  color: #8a8580;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.cart-remove:hover {
  color: #2c2c2c;
}

.cart-summary-card {
  background: #fff;
  border: var(--border-hairline, 1px solid rgba(44, 44, 44, 0.08));
  border-radius: var(--radius, 14px);
  padding: 28px;
  margin-top: 24px;
  box-shadow: var(--shadow-soft, 0 20px 50px rgba(20, 20, 20, 0.06));
}

.cart-empty {
  text-align: center;
  padding: 48px 24px;
}

.cart-empty p {
  color: #6b6560;
  margin-bottom: 24px;
}

.checkout-cart-lines {
  margin-bottom: 8px;
}

.checkout-summary-line {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.checkout-summary-line img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #fff;
}

.checkout-summary-line-meta {
  flex: 1;
  min-width: 0;
}

.checkout-summary-line-meta strong {
  display: block;
  margin-bottom: 4px;
}

.checkout-summary-line-meta span {
  font-size: 14px;
  color: #6b6560;
}

.checkout-summary-line-price {
  font-weight: 600;
  white-space: nowrap;
}

.checkout-cart-lines + .checkout-line {
  border-top: 1px solid #e8e4dc;
  margin-top: 8px;
  padding-top: 16px;
}

.shop-below-fold {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  border-top: 1px solid #e8e4dc;
}

.shop-below-fold h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.shop-below-fold p {
  color: #6b6560;
  margin-bottom: 12px;
  max-width: 640px;
}
