/* Shop section anchor (home) + product listing + detail pages */

#catalog {
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 0.75rem);
}

.listing-card-visual .product-thumb {
  width: auto;
  max-width: 130px;
  max-height: 120px;
  object-fit: contain;
  display: block;
}

/* --- Subpages (listing + detail) --- */

.page-main {
  padding-bottom: var(--space-xl);
}

.page-hero {
  padding-block: clamp(var(--space-lg), 5vw, var(--space-xl));
  background: linear-gradient(175deg, var(--color-sage) 0%, var(--color-butter) 50%, var(--color-cream) 100%);
  border-bottom: 1px solid var(--color-border);
}

.page-hero--dark {
  background: linear-gradient(145deg, var(--color-teal) 0%, var(--color-teal-dark) 55%, #0a383b 100%);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.page-hero--dark .page-hero-title,
.page-hero--dark .breadcrumb a {
  color: var(--color-white);
}

.page-hero--dark .breadcrumb {
  color: rgba(255, 255, 255, 0.65);
}

.page-hero--dark .page-hero-lead {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero--dark .breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.92);
}

.breadcrumb {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 var(--space-sm);
  color: var(--color-text-muted);
  overflow-wrap: break-word;
}

.breadcrumb a {
  color: var(--color-teal);
}

.breadcrumb a:hover {
  color: var(--color-teal-dark);
}

.breadcrumb [aria-current="page"] {
  color: inherit;
  font-weight: 700;
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  margin: 0 0 var(--space-sm);
  line-height: 1.12;
  color: var(--color-ink);
  text-transform: none;
  letter-spacing: -0.02em;
}

.product-weight {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-teal);
  background: var(--color-sage);
  border: 1px solid var(--color-sage-deep);
  border-radius: var(--radius-sm);
  padding: 0.35rem 1rem;
  margin: 2.5rem 0 0 0;
  letter-spacing: 0.04em;
  text-transform: none;
}

.product-size-label {
  display: inline;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-right: 0.3rem;
  vertical-align: middle;
}

.product-ingredients-block {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0;
  margin-top: 0.4rem;
  vertical-align: middle;
}
.product-ingredients-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.product-ingredients-value {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.ingredient-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-teal);
  background: var(--color-sage);
  border: 1px solid var(--color-sage-deep);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  letter-spacing: 0.01em;
}

.page-hero-tag {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-gold);
  margin: 0 0 var(--space-sm);
}

.page-hero--dark .page-hero-tag {
  color: var(--color-gold-light);
}

.page-hero-lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.page-hero-shell {
  display: grid;
  align-items: center;
  gap: var(--space-xl);
}
@media (min-width: 768px) {
  .page-hero-shell {
    grid-template-columns: 1fr auto;
  }
}
.hero-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: none;
}
@media (min-width: 768px) {
  .hero-panel {
    min-width: 210px;
    max-width: 270px;
  }
}
.hero-panel-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-teal);
  margin: 0 0 var(--space-sm);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}
.hero-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.hero-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--color-text);
  line-height: 1.4;
}
.hero-panel-list li::before {
  content: "✓";
  color: var(--color-teal);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 0.08rem;
}
.hero-panel-highlight {
  font-weight: 700;
  color: var(--color-ink);
  font-size: 0.925rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px dashed var(--color-border);
}

/* Listing grid */
.listing-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }
}

.listing-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: inherit;
  transition:
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

@media (min-width: 640px) {
  .listing-card {
    grid-template-columns: 140px 1fr;
    align-items: center;
  }
}

.listing-card:hover {
  border-color: rgba(23, 94, 97, 0.22);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.listing-card:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.listing-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.listing-card-body h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
  color: var(--color-ink);
}

.listing-card-body p {
  margin: 0 0 var(--space-sm);
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.listing-card-more {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--color-teal);
}

/* Product detail */
.detail-section {
  padding-block: clamp(var(--space-lg), 4vw, var(--space-xl));
}

.detail-layout {
  display: grid;
  gap: var(--space-lg);
  align-items: start;
}

.detail-layout > * {
  min-width: 0;
}

@media (min-width: 900px) {
  .detail-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .detail-layout {
    grid-template-columns: 1.15fr 1fr;
  }
}

/* Outer frame (soft panel) + inner white “mat” around the photo */
.detail-visual {
  position: relative;
  box-sizing: border-box;
  padding: clamp(0.5rem, 1.5vw, 0.75rem);
  background: linear-gradient(
    165deg,
    var(--color-cream) 0%,
    var(--color-butter) 45%,
    rgba(236, 232, 224, 0.95) 100%
  );
  border: 1px solid rgba(42, 40, 36, 0.07);
  border-radius: calc(var(--radius-lg) + 6px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.detail-visual--dark {
  background: linear-gradient(160deg, var(--color-teal-dark) 0%, var(--color-teal) 100%);
  border-color: rgba(232, 213, 160, 0.25);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.detail-product-photo {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  height: auto;
  object-fit: cover;
  object-position: center;
  padding: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow:
    0 2px 4px rgba(42, 40, 36, 0.04),
    0 14px 36px -6px rgba(42, 40, 36, 0.14);
  filter: none;
}

.detail-visual--dark .detail-product-photo {
  padding: clamp(0.6rem, 2vw, 1.1rem);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.2),
    0 22px 48px -12px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(232, 213, 160, 0.18);
}

.detail-jar-wrap {
  position: relative;
  filter: drop-shadow(0 20px 36px rgba(23, 94, 97, 0.12));
}

.detail-prose h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: var(--space-md) 0 var(--space-sm);
}

.detail-prose h2:first-child {
  margin-top: 0;
}

.detail-prose p {
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  line-height: 1.75;
}
.detail-prose .product-weight {
  margin-bottom: 0.25rem;
}

.spec-list {
  margin: var(--space-md) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(23, 94, 97, 0.12);
}

.spec-list li {
  display: grid;
  grid-template-columns: minmax(7rem, 38%) 1fr;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(23, 94, 97, 0.08);
  font-size: 0.95rem;
}

@media (max-width: 520px) {
  .spec-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.spec-label {
  margin: 0;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-leaf);
}

.spec-value {
  margin: 0;
  color: var(--color-text-muted);
}

.detail-use-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.detail-use-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0.3rem;
}

.detail-use-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--color-teal);
  opacity: 0.6;
}

.detail-visual--gift .feature-jar-glass {
  border-width: 2px;
  border-color: rgba(232, 213, 160, 0.6);
}

.detail-price-block {
  margin-top: 1.25rem;
  padding: 0.15rem var(--space-md) 0.15rem;
  border-left: 3px solid var(--color-teal);
  background: linear-gradient(135deg, rgba(23, 94, 97, 0.04) 0%, transparent 100%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.detail-price-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
}
.detail-price-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-price-was {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin: 0 !important;
  line-height: 0.9;
  white-space: nowrap;
  text-decoration: line-through;
  opacity: 0.65;
}

.detail-price-was [data-i18n="price.currency"] {
  font-weight: 700;
}

.detail-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  letter-spacing: -0.02em;
  margin: 0 !important;
  line-height: 1;
  white-space: nowrap;
}

.detail-price [data-i18n="price.currency"] {
  font-weight: 700;
}

.detail-price-stack > .detail-price {
  margin-top: -0.9rem !important;
}
.detail-price-total {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-teal-dark);
  margin: 0;
}

.detail-price-meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.2;
}
.detail-price-label {
  font-weight: 700;
  color: var(--color-teal);
  margin-right: 0.4rem;
}
.detail-price-note {
  display: inline;
  margin: 0;
}
.detail-qty-inline {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: var(--space-md);
  border-left: 1px solid rgba(23, 94, 97, 0.15);
}
.detail-qty-inline-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-teal);
}
.qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
}
.qty-btn {
  background: var(--color-sage);
  border: none;
  width: 2.4rem;
  min-width: 2.4rem;
  height: 2.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  flex-grow: 0;
  flex-shrink: 0;
  transition: background var(--transition);
}
.qty-btn--minus {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.qty-btn--plus {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.qty-btn:hover {
  background: rgba(23, 94, 97, 0.15);
}
.qty-input {
  width: 3rem;
  height: 2.4rem;
  border: none;
  border-left: 1.5px solid var(--color-border-strong);
  border-right: 1.5px solid var(--color-border-strong);
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ink);
  background: var(--color-white);
  -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}
.qty-input:focus {
  outline: none;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 0.5rem;
  align-items: center;
}
/* Demote "Place an Inquiry" to a subtle text link — WhatsApp is the primary CTA */
.detail-actions .btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0;
  height: auto;
  box-shadow: none;
  border-radius: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.detail-actions .btn:hover {
  color: var(--color-teal-dark);
  transform: none;
  background: none;
}
.qty-sep {
  display: block;
  width: 1px;
  align-self: stretch;
  background: rgba(23, 94, 97, 0.3);
  flex-shrink: 0;
}
.wa-section {
  display: flex;
  align-items: center;
}
.btn-wa-order {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  color: #fff;
  padding: 0 1rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(23, 94, 97, 0.22);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-wa-order:hover {
  background: linear-gradient(135deg, var(--color-teal-bright) 0%, var(--color-teal) 100%);
  box-shadow: 0 4px 14px rgba(23, 94, 97, 0.3);
  transform: translateY(-1px);
  color: #fff;
}
.btn-wa-order svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
  color: #5feba8;
}


.related-block {
  margin-top: 7rem;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(23, 94, 97, 0.12);
}

.related-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 var(--space-md);
}

.related-block .product-grid {
  margin: 0;
}

/* ── Order Toast ─────────────────────────────────────────────────────────── */

.order-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 3000;
  background: #1c1917;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

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

.order-toast svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: #25d366;
}

/* ── Gift Modal Note ─────────────────────────────────────────────────────── */

.gift-modal-note {
  font-size: 0.83rem;
  color: var(--color-text-muted);
  background: var(--color-sage);
  border-left: 3px solid var(--color-teal);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  margin: 0 0 var(--space-md);
  line-height: 1.5;
}

/* ── More Items Section ──────────────────────────────────────────────────── */

.more-items-section {
  margin-bottom: var(--space-sm);
}

.more-items-label {
  margin-bottom: 0.4rem;
}

.more-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  margin-bottom: 0.4rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  flex-wrap: wrap;
}
.more-item:last-child { margin-bottom: 0; }
.more-item.is-checked {
  border-color: var(--color-teal);
  background: var(--color-sage);
}

.more-item-check {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  accent-color: var(--color-teal-dark);
  cursor: pointer;
}

.more-item-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.more-item-info {
  flex: 1;
  min-width: 0;
}

.more-item-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-item-price {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.more-item-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.more-item-qty-wrap .qty-btn {
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.9rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 4px;
  background: var(--color-white);
  cursor: pointer;
  color: var(--color-teal-dark);
}

.more-item-qty-wrap .qty-input {
  width: 2.2rem;
  text-align: center;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 4px;
  font-size: 0.85rem;
  padding: 0.1rem 0.2rem;
  background: var(--color-white);
  color: var(--color-ink);
  -moz-appearance: textfield;
}
.more-item-qty-wrap .qty-input::-webkit-inner-spin-button { display: none; }

/* ── Order Items Review ──────────────────────────────────────────────────── */

.order-items-review {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--color-border-strong);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.order-items-review:empty {
  display: none;
}

.review-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin: 0 0 0.15rem;
}

.review-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
}

.review-item-thumb {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.review-item-info {
  flex: 1;
  min-width: 0;
}

.review-item-name {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-item-qty {
  display: block;
  font-size: 0.73rem;
  color: var(--color-text-muted);
}

.review-item-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Order Totals ────────────────────────────────────────────────────────── */

.order-totals {
  border-top: 1px solid var(--color-border-strong);
  padding-top: 0.65rem;
  margin-top: 0.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.order-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.order-totals-grand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  border-top: 1px dashed var(--color-border-strong);
  padding-top: 0.35rem;
  margin-top: 0.1rem;
}

/* ── Order Modal ─────────────────────────────────────────────────────────── */

.order-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  backdrop-filter: blur(2px);
}

.order-modal-overlay[hidden] {
  display: none;
}

.order-modal-box {
  background: var(--color-butter);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  padding: var(--space-lg);
  width: 100%;
  max-width: 400px;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 12px 48px rgba(28, 25, 23, 0.14), 0 2px 8px rgba(28, 25, 23, 0.06);
}

.order-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.order-modal-close:hover {
  background: var(--color-cream-deep);
  color: var(--color-ink);
}

.order-modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  margin: 0 0 var(--space-sm);
  padding: 0 2.2rem;
  letter-spacing: -0.01em;
  text-align: center;
}

.order-modal-summary {
  background: var(--color-cream);
  border: 1px solid var(--color-border-strong);
  border-left: 3px solid var(--color-teal);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.order-modal-summary[hidden] { display: none; }

.order-summary-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.order-summary-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.order-summary-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-summary-detail {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.order-modal-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.order-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}
p.order-label {
  text-align: center;
}

.order-input {
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--color-ink);
  background: var(--color-white);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.order-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}
.order-input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px var(--color-teal-glow);
}
.order-input.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.field-error {
  font-size: 0.75rem;
  color: #c0392b;
  font-weight: 500;
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.field-error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  background: #c0392b;
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.order-confirm-check.is-invalid {
  border-color: #c0392b;
  background: #fdf2f1;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}
.order-modal-form.shake {
  animation: shake 0.35s ease;
}

.order-textarea {
  resize: vertical;
  min-height: 64px;
}

label.order-label[for="order-phone"] {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-transform: none;
}
label.order-label[for="order-phone"]::before {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2325d366' d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.435 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.order-payment-opts {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.order-payment-opt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  background: var(--color-white);
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.order-payment-opt input[type="radio"] {
  display: none;
}
/* Cash on Delivery — green */
.order-payment-opt:has(input[value="cod"]:checked) {
  border-color: #2e7d32;
  background: #edf7ee;
  color: #1b5e20;
  font-weight: 600;
}
/* Bank Transfer — blue */
.order-payment-opt:has(input[value="bank"]:checked) {
  border-color: #1565c0;
  background: #e8f0fc;
  color: #0d47a1;
  font-weight: 600;
}

/* Bank transfer section */
.bank-section[hidden] {
  display: none;
}

.bank-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.bank-details-box {
  background: var(--color-cream);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.bank-details-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  margin: 0 0 0.5rem;
  text-transform: none;
}

.bank-details-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 0.75rem;
  margin: 0;
  font-size: 0.85rem;
}

.bank-details-list dt {
  color: var(--color-text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.bank-details-list dd {
  color: var(--color-ink);
  font-weight: 500;
  margin: 0;
}

.order-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--color-text);
  line-height: 1.5;
  cursor: pointer;
  background: #fff8ed;
  border: 1px solid #e8941a44;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
}

.order-confirm-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--color-teal-dark);
  cursor: pointer;
}

/* Submit button */
.order-modal-submit {
  margin-top: var(--space-xs);
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background 0.15s, transform 0.12s, opacity 0.15s;
}
.order-modal-submit:hover:not(:disabled) {
  background: #1ebe5d;
  transform: translateY(-1px);
}
.order-modal-submit:disabled {
  background: var(--color-cream-deep);
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
}

.detail-price-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.detail-price-footer-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wa-section-fallback {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: right;
  flex-shrink: 0;
  margin: 0;
  line-height: 1.5;
}

.wa-section-fallback a {
  color: var(--color-accent);
  text-decoration: none;
}

.wa-section-fallback a:hover {
  text-decoration: underline;
}

.order-modal-fallback {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.4rem;
  margin-bottom: 0;
  white-space: nowrap;
}

.order-modal-fallback a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.order-modal-fallback a:hover {
  text-decoration: underline;
}

/* ── Responsive fixes ───────────────────────────────────────────────────── */


/* Related block: reduce large top margin on mobile/tablet */
@media (max-width: 767px) {
  .related-block {
    margin-top: var(--space-xl);
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .related-block {
    margin-top: 3.5rem;
  }
}

/* Size + ingredients: always left-aligned on mobile and tablets */
@media (max-width: 1199px) {
  .product-ingredients-block {
    display: flex;
    margin-left: 0;
    margin-top: 0.4rem;
  }
}

/* Page hero: tighten gap on mobile */
@media (max-width: 767px) {
  .page-hero-shell {
    gap: var(--space-md);
  }
  .page-hero-title {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}

/* Detail actions: ensure buttons are touch-friendly on all small screens */
@media (max-width: 600px) {
  .detail-actions {
    flex-direction: column;
  }
  .detail-actions .btn {
    width: 100%;
    justify-content: center;
  }
  /* Flatten block so we can reorder: price → qty → delivery/total → WhatsApp → fallback */
  .detail-price-block { gap: 0.65rem; }
  .detail-price-row { display: contents; }
  .detail-price-footer { display: contents; }
  .detail-price-stack { order: 1; }
  .qty-sep { display: none; }
  .qty-control { order: 2; width: 100%; }
  .qty-input { flex: 1; width: auto; }
  .qty-btn { flex: 0 0 3rem; height: 3rem; width: 3rem; }
  .qty-input { height: 3rem; }
  .detail-price-footer-left { order: 3; }
  .wa-section { order: 4; width: 100%; }
  .btn-wa-order { width: 100%; justify-content: center; }
  .wa-section-fallback { order: 5; text-align: center; }
}

/* Related block product grid: no asymmetric padding, proper columns */
@media (min-width: 640px) {
  .related-block .product-grid {
    padding-right: 0;
  }
}
/* 3 columns from iPad mini up — all 3 cards fit in one row, no orphan */
@media (min-width: 768px) and (max-width: 1023px) {
  .related-block .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }
  .related-block .product-grid > li:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
    margin-inline: 0;
  }
}
/* 1 column on very small screens */
@media (max-width: 479px) {
  .related-block .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile text justify (product pages) ────────────────────────────────── */
@media (max-width: 767px) {
  .page-hero-lead,
  .detail-prose p:not(.wa-section-fallback):not(.detail-price-meta):not(.detail-price-total):not(.detail-price):not(.detail-price-was),
  .listing-card-body p,
  .enjoy-list li {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
  }
}

/* Product detail: 2-col at tablets — image narrower, content wider */
@media (min-width: 768px) and (max-width: 899px) {
  .detail-layout {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-md);
    align-items: start;
  }
}

/* Price row: wrap WhatsApp to its own full-width row at all tablet + mid-desktop widths */
@media (min-width: 601px) and (max-width: 1199px) {
  .detail-price-row {
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: space-between;
    align-items: center;
  }
  .qty-sep { display: none; }
  .wa-section {
    flex: 1 1 100%;
  }
  .btn-wa-order {
    width: 100%;
    justify-content: center;
  }
  .detail-price-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }
  .wa-section-fallback {
    text-align: center;
  }
}

/* Product grid at mid-tablet: when 3 cards sit in a 2-col grid the last
   lone card gets centered instead of left-hugging */
@media (min-width: 640px) and (max-width: 1023px) {
  .product-grid > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - var(--space-sm) / 2);
    margin-inline: auto;
  }
}
