:root {
  --brand: #7a0046;
  --brand-dark: #52002f;
  --ink: #1f1f29;
  --muted: #757583;
  --paper: #ffffff;
  --soft: #fff5fa;
  --line: #eeeeee;
  --accent: #f05a28;
  --brand-light: #b34f79;
  --text: #1f1f29;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #fff;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  overflow: visible;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 72px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.08);
}

.brand {
  color: var(--brand);
  font-size: 30px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  position: relative;
  z-index: 1000;
  overflow: visible;
}

.simple-nav a,
.main-menu a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.main-menu {
  display: flex;
  gap: 34px;
  align-items: center;
  list-style: none;
  overflow: visible;
}

.main-menu li {
  position: relative;
  overflow: visible;
}

.main-menu a {
  display: block;
  padding: 13px 4px;
  white-space: nowrap;
}

.dropdown,
.submenu {
  display: none;
  position: absolute;
  list-style: none;
  min-width: 156px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid rgba(122, 0, 70, 0.08);
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
  z-index: 2000;
}

.dropdown {
  top: 100%;
  left: 0;
}

.submenu {
  top: 0;
  left: 100%;
}

.dropdown a,
.submenu a {
  padding: 12px 18px;
  color: var(--brand);
}

.dropdown a:hover,
.submenu a:hover {
  background: var(--soft);
}

.has-menu:hover > .dropdown,
.has-submenu:hover > .submenu,
.has-menu.menu-open > .dropdown,
.has-submenu.menu-open > .submenu {
  display: block;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.hero {
  width: min(1180px, 90%);
  min-height: 440px;
  margin: 38px auto 56px;
  padding: 58px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 38px;
  align-items: center;
  border-radius: 28px;
  background: radial-gradient(circle at 88% 12%, #fff0cc, transparent 30%), linear-gradient(135deg, #fff3f8, #fff8e4);
  overflow: hidden;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.hero h1 {
  color: var(--brand);
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08;
  margin-bottom: 18px;
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  color: #4c4c58;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-btn,
.checkout-btn,
.add-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 13px 24px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-btn:hover,
.checkout-btn:hover,
.add-cart-btn:hover {
  transform: translateY(-1px);
  background: var(--brand-dark);
}

.hero-card {
  justify-self: center;
  width: min(350px, 100%);
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(122, 0, 70, 0.18);
}

.hero-card img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.container {
  width: min(1180px, 90%);
  margin: 0 auto 70px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading h2,
.section-heading h1 {
  color: var(--brand);
  font-size: 34px;
}

.text-btn {
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  padding: 9px 18px;
  font-weight: 900;
  cursor: pointer;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}

.toolbar label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.toolbar input {
  min-width: 250px;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  outline: none;
}

.toolbar input:focus {
  border-color: var(--brand);
}

.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-group span {
  color: var(--muted);
  font-weight: 900;
  margin-right: 2px;
}

.filter-btn,
.volume-btn,
.variant-btn,
.qty-btn,
.remove-btn {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ink);
  cursor: pointer;
}

.filter-btn.active,
.volume-btn.active,
.variant-btn.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

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

.product-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.06);
}

.product-image-wrap {
  aspect-ratio: 4 / 3;
  background: #fafafa;
  overflow: hidden;
}

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

.product-body {
  padding: 18px;
}

.product-body h3 {
  font-size: 20px;
  color: var(--brand);
  margin-bottom: 8px;
}

.product-description {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.product-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
}

.price {
  color: var(--accent);
  font-size: 22px;
  font-weight: 900;
}

.empty-message {
  grid-column: 1 / -1;
  padding: 38px;
  text-align: center;
  color: var(--muted);
  background: #fafafa;
  border-radius: 18px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  transition: 0.25s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.cart-page {
  padding-top: 38px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.cart-item img {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border-radius: 12px;
}

.cart-item h3 {
  color: var(--brand);
  margin-bottom: 6px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  padding: 0;
}

.remove-btn {
  color: #bb1d1d;
  border-color: #f0c9c9;
}

.cart-summary {
  position: sticky;
  top: 112px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--soft);
}

.cart-summary h2 {
  color: var(--brand);
  margin-bottom: 18px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(122, 0, 70, 0.12);
}

.summary-line.total {
  font-size: 20px;
  color: var(--accent);
  border-bottom: 0;
  margin-bottom: 18px;
}

.checkout-btn {
  width: 100%;
}

.checkout-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.small-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 14px;
}

.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background: linear-gradient(135deg, #fff3f8, #fff8e4);
}

.status-card {
  width: min(560px, 100%);
  padding: 38px;
  text-align: center;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 24px 68px rgba(122, 0, 70, 0.12);
}

.status-card h1 {
  color: var(--brand);
  margin-bottom: 14px;
}

.status-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 22px;
}

@media (max-width: 960px) {
  .site-header {
    height: auto;
    padding: 18px;
    flex-wrap: wrap;
    gap: 16px;
  }

  .main-menu {
    width: 100%;
    gap: 16px;
    flex-wrap: wrap;
    overflow: visible;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 34px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

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

  .cart-item {
    grid-template-columns: 88px 1fr;
  }

  .cart-item img {
    width: 88px;
    height: 68px;
  }

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

.product-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.clickable-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.clickable-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122, 0, 70, 0.28);
  box-shadow: 0 24px 48px rgba(122, 0, 70, 0.13);
}

.product-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.product-summary-row strong {
  color: var(--accent);
  font-size: 18px;
}

.details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.product-detail-page {
  padding-top: 32px;
}

.back-link {
  display: inline-flex;
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
  margin-bottom: 22px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 34px;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.07);
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  background: #f7f7f7;
}

.detail-info h1 {
  color: var(--brand);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  margin-bottom: 14px;
}

.detail-description {
  color: #4c4c58;
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.detail-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-weight: 900;
  font-size: 13px;
}

.detail-panel,
.selected-option-box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.04);
}

.detail-panel h2,
.selected-option-box h2 {
  color: var(--brand);
  margin-bottom: 8px;
}

.detail-help,
.selected-label {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
}

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

.detail-option-card {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.detail-option-card:hover,
.detail-option-card.active {
  border-color: var(--brand);
  background: var(--soft);
}

.detail-option-card img {
  width: 68px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
}

.detail-option-card span {
  color: var(--ink);
  font-weight: 900;
}

.detail-option-card strong {
  color: var(--accent);
  white-space: nowrap;
}

.selected-option-box {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #fff5fa, #fffaf0);
}

.selected-option-box p {
  color: var(--muted);
  line-height: 1.55;
}

#selectedOptionPrice {
  color: var(--accent);
  font-size: 30px;
  white-space: nowrap;
}

.detail-buy-row {
  display: flex;
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
}

.qty-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 900;
}

.qty-label input {
  width: 92px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 14px;
}

.product-info-panel p {
  color: #4c4c58;
  line-height: 1.7;
  margin-bottom: 14px;
}

.product-info-panel ul {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  color: #4c4c58;
}

.product-not-found {
  grid-column: 1 / -1;
  margin: 30px auto;
}

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

  .detail-gallery {
    position: static;
  }
}

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

  .detail-option-card {
    grid-template-columns: 58px 1fr;
  }

  .detail-option-card strong {
    grid-column: 2;
  }

  .selected-option-box,
  .detail-buy-row {
    align-items: stretch;
    flex-direction: column;
  }
}


/* V5 polish: spreadsheet-driven products, multiline options, unavailable state */
.product-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.status-badge.available {
  color: #057a48;
  background: #e8fff3;
}

.status-badge.partial {
  color: #a05a00;
  background: #fff3d9;
}

.status-badge.unavailable {
  color: #777;
  background: #eeeeee;
}

.product-card-unavailable .product-image-wrap img {
  filter: grayscale(0.9) blur(0.4px);
  opacity: 0.72;
}

.product-unavailable-note {
  margin: -4px 0 12px;
  color: #777;
  font-size: 14px;
  font-weight: 800;
}

.option-lines {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.option-main {
  color: var(--ink);
  font-weight: 950;
  line-height: 1.2;
}

.option-sub {
  color: #555;
  font-size: 13px;
  line-height: 1.3;
}

.option-questions,
.selected-questions {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff2dd;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.option-unavailable {
  color: #777;
  font-size: 12px;
  font-weight: 900;
}

.detail-option-card.variant-unavailable {
  background: #f4f4f4;
  opacity: 0.82;
}

.detail-option-card.variant-unavailable img {
  filter: grayscale(0.95) blur(0.35px);
  opacity: 0.72;
}

.detail-option-card.variant-unavailable strong {
  color: #777;
}

.selected-subname {
  color: #4c4c58;
  font-weight: 800;
  margin-bottom: 8px;
}

.add-cart-btn.unavailable-action,
.add-cart-btn:disabled {
  background: #b8b8b8;
  color: #fff;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(1) blur(0.2px);
  opacity: 0.75;
}

.add-cart-btn.unavailable-action:hover,
.add-cart-btn:disabled:hover {
  background: #b8b8b8;
  transform: none;
}

.delivery-panel {
  background: linear-gradient(135deg, #fff5fa, #fffaf0);
}

.delivery-panel p {
  color: #4c4c58;
  line-height: 1.7;
}

.cart-option-lines {
  display: grid;
  gap: 4px;
}

.cart-option-lines strong {
  color: var(--ink);
}

.cart-option-lines span {
  display: block;
}

@media (max-width: 960px) {
  .submenu {
    left: 0;
    top: 100%;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
  }

  .nav {
    width: 100%;
  }

  .main-menu {
    gap: 10px;
  }

  .dropdown,
  .submenu {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 6px;
  }

  .detail-option-card {
    grid-template-columns: 62px 1fr;
  }

  .detail-option-card strong {
    grid-column: 2;
  }

  .product-card-topline {
    align-items: flex-start;
  }
}

/* V6 checkout form: bilingual Gmail collection before Stripe */
.checkout-page {
  padding-top: 38px;
}

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

.checkout-form-card,
.checkout-order-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.05);
}

.trust-strip {
  margin-bottom: 22px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff5fa, #fffaf0);
  border: 1px solid rgba(122, 0, 70, 0.08);
}

.trust-strip strong,
.delivery-reminder strong {
  display: block;
  color: var(--brand);
  margin-bottom: 8px;
}

.trust-strip p,
.delivery-reminder p {
  color: #4c4c58;
  line-height: 1.6;
  font-size: 14px;
  margin-top: 6px;
}

.checkout-form {
  display: grid;
  gap: 18px;
}

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

.checkout-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.checkout-form label span b {
  color: var(--accent);
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #ddd;
  border-radius: 14px;
  outline: none;
  background: #fff;
}

.checkout-form input:focus,
.checkout-form textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(122, 0, 70, 0.08);
}

.checkout-form small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.checkbox-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px !important;
  padding: 14px;
  border-radius: 16px;
  background: #fafafa;
  color: #4c4c58 !important;
  line-height: 1.55;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.checkout-actions {
  display: grid;
  gap: 10px;
}

.form-error {
  min-height: 22px;
  color: #bb1d1d;
  font-weight: 900;
  line-height: 1.5;
}

.checkout-order-card {
  position: sticky;
  top: 112px;
  background: var(--soft);
}

.checkout-order-card h2 {
  color: var(--brand);
  margin-bottom: 16px;
}

.checkout-items {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-mini-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(122, 0, 70, 0.08);
}

.checkout-mini-item img {
  width: 64px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
}

.checkout-mini-item h3 {
  color: var(--brand);
  font-size: 14px;
  margin-bottom: 4px;
}

.checkout-mini-item p {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.checkout-mini-item > strong {
  color: var(--accent);
  white-space: nowrap;
}

.checkout-empty {
  padding: 18px;
}

.delivery-reminder {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(122, 0, 70, 0.08);
}

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

  .checkout-order-card {
    position: static;
  }
}

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

  .checkout-mini-item {
    grid-template-columns: 58px 1fr;
  }

  .checkout-mini-item > strong {
    grid-column: 2;
  }
}

/* ===== v7 polish overrides ===== */
.site-header {
  gap: 18px;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 250px;
}

.header-search input {
  width: 100%;
  min-width: 180px;
  padding: 11px 14px;
  border: 1px solid rgba(122, 0, 70, 0.15);
  border-radius: 999px;
  background: #fff;
}

.header-search button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  padding: 11px 16px;
  cursor: pointer;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-secondary-btn {
  padding: 12px 20px;
  background: #fff;
}

.quick-grade-wrap {
  margin-top: -12px;
}

.quick-grade-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.quick-grade-label {
  color: var(--muted);
  font-weight: 800;
  margin-right: 6px;
}

.quick-grade-btn {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
}

.quick-grade-btn.is-outline {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.section-heading.single {
  align-items: flex-start;
}

.faq-section {
  margin-bottom: 80px;
}

.faq-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.faq-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.04);
}

.faq-card h3 {
  color: var(--brand);
  margin-bottom: 10px;
}

/* show full square images without cropping */
.product-image-wrap,
.detail-gallery,
.detail-option-card img,
.checkout-mini-item img {
  background: #fff;
}

.product-image-wrap {
  aspect-ratio: 1 / 1;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.detail-gallery {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.detail-option-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 8px;
}

.checkout-mini-item img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

/* checkout in a single vertical flow */
.checkout-layout {
  grid-template-columns: 1fr;
}

.form-grid {
  grid-template-columns: 1fr;
}

.checkout-form-card,
.checkout-order-card {
  max-width: 820px;
}

.checkout-order-card {
  width: 100%;
}

@media (max-width: 1180px) {
  .site-header {
    height: auto;
    padding: 16px 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-menu {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .header-search {
    order: 3;
    width: 100%;
    max-width: 520px;
  }
}

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

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

  .quick-grade-bar {
    padding: 16px;
  }

  .header-search {
    min-width: 0;
  }

  .header-search input {
    min-width: 0;
  }
}

/* ===== v8 admin dashboard ===== */
.admin-page {
  padding-top: 34px;
}

.admin-heading {
  align-items: flex-start;
}

.admin-subtitle {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.6;
}

.admin-login-card,
.admin-dashboard {
  max-width: 1120px;
}

.admin-login-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.admin-login-card h2 {
  color: var(--brand);
  margin-bottom: 10px;
}

.admin-login-card p {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.admin-login-form {
  display: grid;
  gap: 14px;
  max-width: 460px;
}

.admin-login-form label,
.admin-toolbar label,
.admin-note-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.admin-login-form input,
.admin-toolbar input,
.admin-toolbar select,
.admin-note-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.admin-stat-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, var(--soft));
}

.admin-stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-stat-card strong {
  color: var(--brand);
  font-size: 28px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 0.9fr auto auto;
  gap: 14px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  margin-bottom: 18px;
}

.admin-note-banner {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff8e4;
  color: #5b4b24;
  line-height: 1.65;
}

.admin-note-banner code {
  font-weight: 900;
}

.admin-orders {
  display: grid;
  gap: 18px;
}

.admin-order-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.05);
}

.admin-order-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-order-id {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.admin-order-head h2 {
  color: var(--brand);
  margin-bottom: 6px;
}

.admin-order-head p:not(.admin-order-id) {
  color: var(--muted);
}

.admin-status-stack {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.admin-status-stack strong {
  color: var(--brand);
  font-size: 24px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.payment-paid,
.delivery-shared {
  background: #e8f8ee;
  color: #116b34;
}

.payment-pending_payment,
.delivery-not_shared {
  background: #fff4d8;
  color: #8a5a00;
}

.payment-failed,
.payment-refunded {
  background: #ffe8e8;
  color: #9b1c1c;
}

.admin-customer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.admin-customer-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafafa;
  min-width: 0;
}

.admin-customer-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 5px;
}

.admin-customer-grid strong {
  display: block;
  overflow-wrap: anywhere;
}

.admin-customer-note {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 16px;
  background: var(--soft);
  color: var(--ink);
  line-height: 1.65;
}

.admin-order-items {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-order-item {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.admin-order-item img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
}

.admin-order-item p {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin-top: 4px;
}

.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px;
}

.admin-actions-row .text-btn,
.admin-save-note-btn {
  padding: 8px 13px;
  font-size: 13px;
}

.admin-note-field textarea {
  resize: vertical;
  min-height: 58px;
  margin-bottom: 10px;
}

.admin-timeline {
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  background: #fafafa;
}

.admin-timeline summary {
  cursor: pointer;
  color: var(--brand);
  font-weight: 900;
}

.admin-timeline ul {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-timeline li span {
  display: inline-block;
  min-width: 170px;
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 980px) {
  .admin-stats-grid,
  .admin-customer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .admin-stats-grid,
  .admin-customer-grid,
  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-order-head {
    display: grid;
  }

  .admin-status-stack {
    justify-items: start;
  }

  .admin-order-item {
    grid-template-columns: 56px 1fr;
  }

  .admin-order-item > strong {
    grid-column: 1 / -1;
  }
}

/* ===== v10 mascot starter design ===== */
:root {
  --brand: #8d2853;
  --brand-dark: #631534;
  --accent: #ef7b45;
  --peach: #ffe4d5;
  --cream: #fff8ec;
  --mint: #eaf7e7;
  --gold: #f5b544;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 228, 213, 0.9), transparent 34rem),
    radial-gradient(circle at top right, rgba(234, 247, 231, 0.9), transparent 30rem),
    #fffaf3;
}

.mascot-header {
  border-bottom: 1px solid rgba(141, 40, 83, 0.08);
}

.brand-with-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffd6c4, #fff0b8);
  color: var(--brand);
  box-shadow: 0 10px 22px rgba(141, 40, 83, 0.14);
}

.mascot-hero {
  position: relative;
  grid-template-columns: 1fr 0.96fr;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.9), transparent 22rem),
    linear-gradient(135deg, #fff6e7 0%, #ffe7da 48%, #fff9d8 100%);
  border: 1px solid rgba(141, 40, 83, 0.08);
  box-shadow: 0 24px 80px rgba(141, 40, 83, 0.1);
}

.mascot-hero h1 {
  max-width: 680px;
  letter-spacing: -0.04em;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(141, 40, 83, 0.1);
  color: var(--brand);
  font-weight: 900;
  font-size: 13px;
}

.hero-mascot-stage {
  position: relative;
  min-height: 400px;
  isolation: isolate;
}

.hero-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  z-index: -1;
}

.hero-blob-one {
  width: 330px;
  height: 330px;
  right: 4%;
  top: 32px;
  background: rgba(255, 213, 123, 0.5);
}

.hero-blob-two {
  width: 250px;
  height: 250px;
  left: 12%;
  bottom: 30px;
  background: rgba(255, 187, 179, 0.42);
}

.hero-mascot {
  position: absolute;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(76, 35, 20, 0.18));
}

.hero-mascot.pineapple {
  width: min(54%, 270px);
  right: 4%;
  top: 4%;
  transform: rotate(4deg);
}

.hero-mascot.peach {
  width: min(55%, 280px);
  left: 6%;
  bottom: 3%;
  transform: rotate(-5deg);
}

.subject-mascot-section,
.process-section {
  margin-bottom: 50px;
}

.subject-card-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}

.subject-card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  overflow: hidden;
  border: 1px solid rgba(141, 40, 83, 0.1);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,246,238,.9));
  box-shadow: 0 18px 42px rgba(141, 40, 83, 0.08);
  padding: 16px;
  cursor: pointer;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.subject-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(141, 40, 83, 0.14);
  border-color: rgba(141, 40, 83, 0.26);
}

.subject-card::before {
  content: '';
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  top: 20px;
  right: -30px;
  background: rgba(255, 217, 143, 0.42);
}

.subject-mascots {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  height: 130px;
  pointer-events: none;
}

.subject-mascots img {
  position: absolute;
  width: 48%;
  height: 128px;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(76, 35, 20, 0.16));
}

.subject-mascots img:first-child {
  left: 2%;
  transform: rotate(-5deg);
}

.subject-mascots img:last-child {
  right: 2%;
  transform: rotate(5deg);
}

.subject-card span {
  position: relative;
  z-index: 2;
  color: var(--brand);
  font-size: 24px;
  font-weight: 950;
}

.subject-card small {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-weight: 800;
  min-height: 2.4em;
}

.process-card {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(141, 40, 83, 0.1);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(141, 40, 83, 0.07);
}

.process-card h2 {
  color: var(--brand);
  font-size: 32px;
}

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

.process-steps span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 12px;
  border-radius: 20px;
  background: var(--cream);
  color: var(--brand);
  text-align: center;
  font-weight: 950;
}

.product-card {
  border-radius: 26px;
  box-shadow: 0 16px 36px rgba(141, 40, 83, 0.07);
  border-color: rgba(141, 40, 83, 0.09);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 52px rgba(141, 40, 83, 0.12);
}

.product-image-wrap {
  background: linear-gradient(135deg, #fff, #fff7ef);
}

.details-btn,
.add-cart-btn,
.checkout-btn,
.hero-btn,
.quick-grade-btn,
.header-search button {
  box-shadow: 0 10px 18px rgba(141, 40, 83, 0.18);
}

.site-footer {
  padding: 34px 0;
  background: #fff;
  border-top: 1px solid rgba(141, 40, 83, 0.08);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner strong {
  color: var(--brand);
  font-size: 24px;
}

.footer-inner p {
  color: var(--muted);
  margin-top: 4px;
}

.footer-inner img {
  width: 78px;
  height: 78px;
  object-fit: contain;
}

@media (max-width: 1180px) {
  .subject-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .hero-mascot-stage {
    min-height: 310px;
  }

  .subject-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-card {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .subject-card-grid {
    grid-template-columns: 1fr;
  }

  .subject-card {
    min-height: 200px;
  }

  .hero-mascot-stage {
    min-height: 260px;
  }

  .hero-mascot.pineapple {
    width: 58%;
    right: -3%;
  }

  .hero-mascot.peach {
    width: 58%;
    left: -2%;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
  }
}

/* ===== v11 Fiuu-review-ready polish ===== */
.brand-with-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 180px;
}

.brand-with-logo img {
  width: 230px;
  max-width: 32vw;
  height: auto;
  display: block;
  object-fit: contain;
}

.brand-with-logo.small-logo img {
  width: 190px;
}

.policy-inline-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.policy-inline-note a,
.footer-links a,
.policy-page a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.policy-page {
  margin-top: 42px;
  margin-bottom: 70px;
}

.policy-hero-card {
  padding: 36px;
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(141, 40, 83, 0.10);
  box-shadow: 0 18px 46px rgba(141, 40, 83, 0.08);
}

.policy-hero-card h1 {
  color: var(--brand);
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 18px;
}

.policy-hero-card h2 {
  color: var(--brand);
  margin: 24px 0 10px;
  font-size: 22px;
}

.policy-hero-card p {
  color: #4f4f5d;
  line-height: 1.75;
  margin-bottom: 12px;
}

.contact-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff9f2, #fff2f7);
  border: 1px solid rgba(141, 40, 83, 0.09);
  text-decoration: none;
}

.contact-card strong {
  color: var(--brand);
  font-size: 18px;
}

.contact-card span {
  color: #4f4f5d;
}

.policy-note {
  padding: 16px 18px;
  border-radius: 18px;
  background: #fff8e9;
  border: 1px solid rgba(240, 160, 58, 0.22);
}

.status-card .status-mascot {
  width: 138px;
  max-height: 160px;
  object-fit: contain;
  margin-bottom: 12px;
}

.order-id-line {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff6ed;
  display: inline-block;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.footer-brand-block {
  max-width: 300px;
}

.footer-logo {
  width: 210px !important;
  height: auto !important;
  max-height: 78px;
  object-fit: contain;
  object-position: left center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 160px;
}

.footer-links strong {
  color: var(--brand);
  margin-bottom: 3px;
}

.footer-links span {
  color: var(--muted);
  font-weight: 800;
}

.footer-mascot {
  width: 82px !important;
  height: 82px !important;
  object-fit: contain;
}

.mini-footer .footer-inner {
  align-items: flex-start;
}

.checkout-form-card .trust-strip {
  background: linear-gradient(135deg, #fff7ec, #fff0f7);
}

@media (max-width: 900px) {
  .brand-with-logo img,
  .brand-with-logo.small-logo img {
    width: 178px;
    max-width: 70vw;
  }

  .contact-card-grid {
    grid-template-columns: 1fr;
  }

  .policy-hero-card {
    padding: 26px;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .footer-logo {
    width: 190px !important;
  }
}

/* ===== v12 professional polish ===== */
.nav {
  flex: 1 1 auto;
  min-width: 0;
}

.main-menu {
  gap: 20px;
}

.simple-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 18px;
}

.site-header-secondary {
  min-height: 88px;
  height: auto;
  padding: 16px 40px;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.site-header-secondary .brand-with-logo.small-logo img {
  width: 170px;
}

.site-header-secondary .simple-nav a {
  padding: 8px 0;
}

.header-search {
  flex: 0 1 280px;
}

.hero-secondary-btn {
  border-radius: 999px;
  border: 1px solid rgba(141, 40, 83, 0.14);
}

.hero-blob-one,
.hero-blob-two {
  filter: blur(0);
}

.hero-blob-one {
  width: 340px;
  height: 340px;
  right: 2%;
  top: 24px;
  background: rgba(255, 255, 255, 0.76);
}

.hero-blob-two {
  width: 300px;
  height: 300px;
  left: 8%;
  bottom: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.quick-grade-btn.is-disabled {
  background: #f3edf2;
  color: #8c7c87;
  box-shadow: none;
  cursor: not-allowed;
}

.catalog-section {
  margin-bottom: 50px;
}

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

.catalog-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 220px;
  padding: 26px;
  border-radius: 26px;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(141, 40, 83, 0.1);
  box-shadow: 0 18px 42px rgba(141, 40, 83, 0.08);
}

.catalog-card h3 {
  color: var(--brand);
  font-size: 28px;
}

.catalog-card p {
  color: #555563;
  line-height: 1.7;
  flex: 1;
}

.catalog-card strong {
  color: var(--brand);
}

.catalog-card.is-active {
  background: linear-gradient(135deg, #fff8ed 0%, #fff2f7 100%);
}

.catalog-card.is-soon {
  background: linear-gradient(135deg, #fff 0%, #fcf7ff 100%);
}

.catalog-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(141, 40, 83, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.faq-card a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.footer-brand-block p {
  line-height: 1.7;
}

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

@media (max-width: 900px) {
  .site-header-secondary {
    padding: 16px 22px;
  }

  .simple-nav {
    justify-content: flex-start;
  }
}

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

  .site-header,
  .site-header-secondary {
    padding: 16px 18px;
  }

  .site-header-secondary .brand-with-logo.small-logo img,
  .brand-with-logo img {
    width: 170px;
    max-width: 70vw;
  }

  .header-search {
    flex: 1 1 100%;
    min-width: 0;
  }

  .main-menu {
    gap: 12px;
  }
}

/* ===== v13 premium cleanup ===== */
:root {
  --brand: #7b184b;
  --brand-dark: #4f0f31;
  --accent: #e86f3c;
  --cream: #fff8ef;
  --warm-card: #fffdf9;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 236, 217, 0.62), transparent 34rem),
    radial-gradient(circle at top right, rgba(255, 247, 204, 0.45), transparent 34rem),
    #fffaf4;
}

.site-header {
  box-shadow: 0 8px 28px rgba(69, 24, 45, 0.07);
  border-bottom: 1px solid rgba(123, 24, 75, 0.08);
}

.mascot-header {
  padding-left: 42px;
  padding-right: 42px;
}

.brand-with-logo img {
  width: 210px;
  max-height: 62px;
  object-fit: contain;
}

.main-menu {
  gap: 16px;
}

.main-menu a,
.simple-nav a {
  font-size: 14px;
  letter-spacing: .01em;
}

.header-search {
  flex-basis: 240px;
}

.header-search input {
  min-width: 0;
  border-color: rgba(123, 24, 75, .13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.mascot-hero {
  min-height: 520px;
  padding: 68px 62px;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.62)),
    radial-gradient(circle at 84% 26%, rgba(255, 224, 139, .45), transparent 20rem),
    radial-gradient(circle at 62% 70%, rgba(255, 187, 174, .22), transparent 18rem),
    #fff8ed;
  box-shadow: 0 30px 90px rgba(76, 31, 52, .10);
}

.mascot-hero h1 {
  font-size: clamp(38px, 4.6vw, 58px);
  max-width: 760px;
}

.mascot-hero p:not(.eyebrow) {
  color: #51515d;
  max-width: 610px;
}

.hero-trust-row span {
  background: rgba(255,255,255,.82);
  color: #672342;
  box-shadow: 0 8px 18px rgba(76,31,52,.06);
}

.hero-mascot-stage {
  min-height: 430px;
}

.hero-mascot {
  filter: drop-shadow(0 26px 28px rgba(76, 35, 20, 0.13));
}

.hero-mascot.pineapple {
  width: min(48%, 246px);
  right: 8%;
  top: 2%;
  transform: rotate(2deg);
}

.hero-mascot.peach {
  width: min(49%, 255px);
  left: 9%;
  bottom: 2%;
  transform: rotate(-3deg);
}

.catalog-card {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-color: rgba(123, 24, 75, .08);
}

.catalog-card.is-active {
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,247,236,.95));
}

.catalog-card h3 {
  font-size: 26px;
  letter-spacing: -.02em;
}

.process-card,
.faq-card,
.product-card,
.toolbar,
.quick-grade-bar,
.policy-hero-card,
.checkout-form-card,
.checkout-order-card,
.cart-summary,
.cart-item {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  border-color: rgba(123, 24, 75, .08);
}

.product-card {
  border-radius: 28px;
}

.product-image-wrap {
  background: linear-gradient(135deg, #fffdf8, #fff3e8);
}

.details-btn {
  border-radius: 999px;
}

.level-subject-chooser {
  margin: 0 0 24px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(123, 24, 75, .08);
  box-shadow: 0 18px 42px rgba(76, 31, 52, .07);
}

.level-subject-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.level-subject-heading h3 {
  color: var(--brand);
  font-size: 26px;
}

.level-subject-heading p {
  color: var(--muted);
  font-weight: 800;
  max-width: 420px;
  line-height: 1.5;
}

.level-subject-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.level-subject-card {
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  overflow: hidden;
  border: 1px solid rgba(123, 24, 75, .08);
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(180deg, #fff, #fff8ef);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(76, 31, 52, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.level-subject-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(76, 31, 52, .12);
  border-color: rgba(123, 24, 75, .2);
}

.level-subject-mascots {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 92px;
}

.level-subject-mascots img {
  position: absolute;
  width: 46%;
  height: 90px;
  object-fit: contain;
  filter: drop-shadow(0 10px 11px rgba(76,35,20,.12));
}

.level-subject-mascots img:first-child {
  left: 6px;
  transform: rotate(-4deg);
}

.level-subject-mascots img:last-child {
  right: 6px;
  transform: rotate(4deg);
}

.level-subject-card strong,
.level-subject-card span {
  position: relative;
  z-index: 2;
}

.level-subject-card strong {
  color: var(--brand);
  font-size: 20px;
}

.level-subject-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-footer {
  background: rgba(255,255,255,.88);
}

@media (max-width: 1320px) {
  .mascot-header {
    height: auto;
    flex-wrap: wrap;
    justify-content: center;
    padding: 16px 28px;
  }

  .mascot-header .nav {
    order: 3;
    flex-basis: 100%;
  }

  .mascot-header .main-menu {
    justify-content: center;
  }
}

@media (max-width: 1180px) {
  .level-subject-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .mascot-hero {
    padding: 42px 32px;
  }

  .level-subject-heading {
    display: block;
  }

  .level-subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .level-subject-grid {
    grid-template-columns: 1fr;
  }

  .level-subject-card {
    min-height: 145px;
  }

  .mascot-hero {
    padding: 34px 24px;
  }
}

/* ===== v14 dropdown placeholders + deployment polish ===== */
.coming-soon-menu {
  min-width: 210px;
}

.coming-soon-link {
  color: #8a6f80 !important;
  cursor: default;
}

.coming-soon-link::after {
  content: '';
}

.main-menu .has-menu > a {
  cursor: pointer;
}

@media (max-width: 1180px) {
  .main-menu {
    gap: 14px;
  }

  .main-menu a {
    font-size: 15px;
  }
}

/* ===== v24 homepage polish, hero slider, catalog and mobile nav ===== */
.site-header-home {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(255, 251, 247, 0.92);
  border-bottom: 1px solid rgba(123, 24, 75, 0.08);
}

.home-main {
  display: grid;
  gap: 26px;
  padding-block: 24px 56px;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(123, 24, 75, 0.14);
  background: #fff;
  border-radius: 18px;
  padding: 11px 14px;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--brand);
  box-shadow: 0 14px 24px rgba(123, 24, 75, 0.08);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  margin: 3px 0;
}

.hero-slider-section,
.catalog-section,
.products-section,
.faq-section {
  display: grid;
  gap: 18px;
}

.hero-slider-card {
  background: rgba(255,255,255,0.9);
  border-radius: 32px;
  padding: 18px;
  box-shadow: 0 26px 60px rgba(122, 73, 48, 0.12);
  border: 1px solid rgba(123, 24, 75, 0.08);
  display: grid;
  gap: 16px;
}

.hero-slider-stage {
  position: relative;
  min-height: 360px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 243, 235, 0.98), rgba(255,255,255,0.98));
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.01);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 24px rgba(80, 45, 61, 0.18);
  font-size: 28px;
  line-height: 1;
  color: var(--brand);
  cursor: pointer;
  z-index: 3;
}

.hero-arrow-prev { left: 18px; }
.hero-arrow-next { right: 18px; }

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.78);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(80, 45, 61, 0.12);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(123, 24, 75, 0.22);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 28px;
  background: var(--brand);
}

.hero-slider-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 4px 6px 4px 8px;
}

.hero-slider-caption h1 {
  margin: 4px 0 10px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  color: var(--brand);
}

.hero-slider-caption p:not(.eyebrow) {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 16px;
}

.hero-caption-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  min-width: 240px;
}

.hero-secondary-btn {
  background: rgba(255,255,255,0.92);
  color: var(--brand);
  border: 1px solid rgba(123, 24, 75, 0.14);
}

.hero-alert-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(255,243,236,0.95), rgba(255,255,255,0.96));
  border: 1px solid rgba(123, 24, 75, 0.08);
  border-radius: 22px;
  padding: 14px 18px;
  box-shadow: 0 20px 40px rgba(122, 73, 48, 0.08);
}

.hero-alert-strip span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  font-weight: 900;
  letter-spacing: .02em;
}

.hero-alert-strip p {
  margin: 0;
  color: var(--muted);
}

.home-catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card.is-soon {
  opacity: 0.95;
  border-style: dashed;
}

.catalog-filter-card {
  cursor: pointer;
}

.catalog-filter-card strong,
.catalog-card.is-soon strong {
  margin-top: auto;
  color: var(--brand);
}

.catalog-badge {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(123, 24, 75, 0.09);
  color: var(--brand);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.section-heading.single {
  align-items: center;
}

.polished-toolbar {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(123,24,75,0.08);
  box-shadow: 0 20px 48px rgba(122, 73, 48, 0.08);
  border-radius: 28px;
  padding: 18px;
  gap: 18px;
}

.toolbar-group {
  display: grid;
  gap: 10px;
}

.toolbar-group-wide {
  width: 100%;
}

.toolbar-label {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 900;
}

.pill-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.collection-btn,
.filter-btn,
.volume-btn {
  border-radius: 999px;
  padding: 10px 16px;
  border: 1px solid rgba(123,24,75,0.1);
  background: rgba(255,248,245,0.95);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}

.collection-btn.active,
.filter-btn.active,
.volume-btn.active {
  background: linear-gradient(135deg, #7a0046, #b34f79);
  color: #ffffff;
  border-color: #7a0046;
  box-shadow: 0 12px 24px rgba(123, 24, 75, 0.18);
}

.collection-btn:hover:not(.active),
.filter-btn:hover:not(.active),
.volume-btn:hover:not(.active) {
  background: #fff0f6;
  color: #7a0046;
  border-color: rgba(123, 24, 75, 0.22);
}

.toolbar-search {
  display: grid;
  gap: 10px;
  width: min(100%, 380px);
  background: transparent;
  border: none;
  padding: 0;
}

.toolbar-search input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(123,24,75,.1);
  padding: 14px 16px;
  font-size: 15px;
  background: rgba(255,252,250,0.96);
}

.product-grid {
  gap: 18px;
}

.product-card {
  border-radius: 24px;
  border: 1px solid rgba(123,24,75,0.08);
  box-shadow: 0 24px 48px rgba(122, 73, 48, 0.08);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 52px rgba(122, 73, 48, 0.12);
}

.product-image-wrap {
  background: linear-gradient(135deg, rgba(255,248,244,1), rgba(255,255,255,1));
  aspect-ratio: 1 / 0.86;
}

.product-image-wrap img {
  object-fit: contain;
  padding: 14px;
}

.product-body {
  gap: 12px;
}

.product-card-topline {
  align-items: center;
  gap: 8px;
}

.product-topline-volume {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.product-collection-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-collection-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(123, 24, 75, 0.08);
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.product-summary-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(123,24,75,0.08);
}

.quick-grade-wrap {
  padding-top: 0;
}

.quick-grade-bar {
  background: linear-gradient(135deg, rgba(123,24,75,0.96), rgba(194,105,142,0.92));
  box-shadow: 0 20px 44px rgba(123, 24, 75, 0.16);
}

.level-subject-chooser {
  background: rgba(255,255,255,.88);
  border-radius: 28px;
  border: 1px solid rgba(123,24,75,0.08);
  box-shadow: 0 20px 44px rgba(122,73,48,0.08);
  padding: 24px;
}

.level-subject-grid {
  gap: 18px;
}

.faq-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.faq-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(123,24,75,0.08);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 44px rgba(122,73,48,0.08);
}

.faq-card h3 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 20px;
}

.faq-card p {
  margin: 0;
  color: var(--muted);
}

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

  .hero-slider-caption {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-caption-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .site-header-home {
    gap: 12px;
    padding: 14px 16px;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-header-home .nav {
    width: 100%;
    order: 4;
    display: none;
  }

  .site-header-home .nav.is-open {
    display: block;
  }

  .site-header-home .main-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(123,24,75,0.08);
    border-radius: 22px;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 18px 42px rgba(122, 73, 48, 0.12);
  }

  .site-header-home .main-menu > li > a {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,248,245,0.95);
  }

  .site-header-home .dropdown,
  .site-header-home .submenu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: none;
    padding: 8px 0 4px;
    background: transparent;
  }

  .site-header-home .has-menu.menu-open > .dropdown,
  .site-header-home .has-submenu.menu-open > .submenu {
    display: grid;
  }

  .site-header-home .dropdown > a,
  .site-header-home .submenu > a,
  .site-header-home .has-submenu > a {
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(123,24,75,0.08);
    border-radius: 12px;
    margin-top: 6px;
  }

  .header-search {
    order: 3;
    width: 100%;
  }

  .header-search input {
    min-width: 0;
  }

  .hero-slider-stage {
    min-height: 260px;
  }

  .hero-slider-caption h1 {
    font-size: 28px;
  }

  .faq-card-grid,
  .home-catalog-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .hero-slider-card,
  .polished-toolbar,
  .level-subject-chooser,
  .faq-card {
    border-radius: 22px;
  }

  .hero-alert-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-slider-stage {
    min-height: 220px;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .quick-grade-bar {
    gap: 10px;
  }
}

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

  .product-card {
    border-radius: 20px;
  }

  .product-body {
    padding: 14px;
  }

  .product-body h3 {
    font-size: 16px;
  }

  .product-description,
  .product-summary-row,
  .details-btn,
  .product-unavailable-note {
    font-size: 12px;
  }

  .hero-slider-caption h1 {
    font-size: 24px;
  }
}

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

  .hero-slider-stage {
    min-height: 190px;
  }

  .hero-dots {
    bottom: 12px;
  }
}

/* ===== v26 first slider slide uses the real 桃梨课堂 logo ===== */
.hero-brand-slide {
  display: grid;
  grid-template-columns: minmax(150px, .72fr) minmax(320px, 1.55fr) minmax(150px, .72fr);
  align-items: end;
  gap: 8px;
  padding: 28px 42px 0;
  background:
    radial-gradient(circle at 50% 16%, rgba(255,255,255,.98), rgba(255,255,255,.62) 31%, transparent 58%),
    linear-gradient(135deg, #fff2df 0%, #ffe6d7 48%, #f6f3c9 100%);
  overflow: hidden;
}

.hero-brand-slide::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,250,239,.88));
  pointer-events: none;
}

.brand-slide-center {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  width: min(100%, 680px);
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 18px 24px 34px;
}

.brand-slide-logo {
  display: block;
  width: min(100%, 500px);
  max-height: 185px;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(95, 45, 50, .08));
}

.brand-slide-kicker {
  margin: 4px 0 8px;
  color: var(--brand);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .06em;
}

.brand-slide-center h2 {
  margin: 0;
  color: #493028;
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.12;
}

.brand-slide-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
}

.brand-slide-pills span {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: var(--brand);
  border: 1px solid rgba(123,24,75,.10);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(95,45,50,.06);
}

.brand-slide-mascot {
  position: relative;
  z-index: 2;
  width: 100%;
  max-height: 315px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 20px 18px rgba(76, 35, 20, .14));
}

.brand-slide-peach {
  transform: rotate(-2deg) translateY(10px);
}

.brand-slide-pineapple {
  transform: rotate(2deg) translateY(10px);
}

.brand-slide-decor {
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  opacity: .72;
}

.brand-slide-decor-one {
  width: 250px;
  height: 250px;
  left: -80px;
  top: -90px;
  background: rgba(255, 188, 152, .42);
}

.brand-slide-decor-two {
  width: 290px;
  height: 290px;
  right: -100px;
  top: -110px;
  background: rgba(215, 229, 143, .46);
}

@media (max-width: 900px) {
  .hero-brand-slide {
    grid-template-columns: 120px 1fr 120px;
    padding: 18px 18px 0;
  }

  .brand-slide-logo {
    max-height: 126px;
  }

  .brand-slide-center {
    padding: 10px 10px 22px;
  }

  .brand-slide-center h2 {
    font-size: 24px;
  }

  .brand-slide-mascot {
    max-height: 210px;
  }
}

@media (max-width: 640px) {
  .hero-brand-slide {
    grid-template-columns: 82px 1fr 82px;
    padding: 14px 8px 0;
  }

  .brand-slide-logo {
    max-height: 92px;
  }

  .brand-slide-kicker {
    font-size: 11px;
    margin-top: 2px;
  }

  .brand-slide-center h2 {
    font-size: 18px;
  }

  .brand-slide-pills {
    display: none;
  }

  .brand-slide-mascot {
    max-height: 150px;
  }
}

/* ===== v27 homepage refactor: compact header, auto collage slider, fixed cart, fixed policy link ===== */
.site-header-home {
  gap: 12px;
  padding-inline: 28px;
  min-height: 88px;
  height: auto;
  flex-wrap: wrap;
}

.site-header-home .brand-with-logo img {
  height: 54px;
  width: auto;
  display: block;
}

.header-cart-pill {
  margin-left: 0;
  box-shadow: 0 12px 24px rgba(122, 0, 70, 0.14);
}

.hero-collage-only-card {
  padding: 14px;
  gap: 0;
}

.hero-collage-only-card .hero-slider-stage {
  min-height: 440px;
  border-radius: 28px;
  background: linear-gradient(145deg, #fff7f1, #fffefc);
}

.hero-slide {
  display: grid;
}

.hero-collage-slide {
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 26px;
  align-items: center;
  padding: 32px 34px;
}

.hero-slide-brand {
  background:
    radial-gradient(circle at 8% 10%, rgba(253, 220, 194, 0.9), transparent 22%),
    radial-gradient(circle at 94% 8%, rgba(228, 229, 179, 0.85), transparent 22%),
    linear-gradient(135deg, #fff6ef, #fff9f5 55%, #fffef8);
}

.hero-slide-language {
  background: linear-gradient(135deg, #fff5f6 0%, #fffaf4 52%, #fffdf9 100%);
}

.hero-slide-stem {
  background: linear-gradient(135deg, #fef8f2 0%, #fffdf8 55%, #f8fcfb 100%);
}

.hero-slide-exam {
  background: linear-gradient(135deg, #fff7f4 0%, #fff9fb 50%, #fffef8 100%);
}

.hero-collage-copyblock {
  display: grid;
  align-content: center;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.hero-collage-kicker {
  margin: 0;
  color: #d8652c;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 900;
}

.hero-collage-logo {
  width: min(100%, 430px);
  height: auto;
  display: block;
}

.hero-collage-slide h1,
.hero-collage-slide h2 {
  margin: 0;
  color: var(--brand);
  line-height: 1.12;
  font-size: clamp(32px, 3.2vw, 50px);
}

.hero-collage-slide h2 {
  font-size: clamp(30px, 3vw, 44px);
}

.hero-collage-copy {
  margin: 0;
  color: #5b5360;
  font-size: 17px;
  line-height: 1.8;
  max-width: 560px;
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-chip-row span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(122, 0, 70, 0.08);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(122, 73, 48, 0.06);
}

.hero-brand-visuals {
  position: relative;
  min-height: 360px;
}

.hero-brand-mascot {
  position: absolute;
  bottom: -12px;
  width: min(29%, 168px);
  height: auto;
  filter: drop-shadow(0 16px 20px rgba(100, 60, 30, 0.12));
}

.hero-brand-mascot-peach { left: -6px; }
.hero-brand-mascot-pine { right: -6px; }

.hero-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hero-thumb-grid-large {
  align-self: center;
}

.hero-thumb-grid-brand {
  width: min(100%, 390px);
  margin: 8px auto 0;
}

.hero-thumb-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(122, 0, 70, 0.08);
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 16px 28px rgba(122, 73, 48, 0.10);
  min-height: 0;
}

.hero-thumb-card.tall {
  grid-row: span 1;
}

.hero-thumb-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.policy-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

@media (min-width: 901px) {
  .site-header-home .nav {
    flex: 1 1 auto;
  }

  .site-header-home .header-search {
    width: min(350px, 100%);
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .site-header-home {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    padding: 14px 16px;
  }

  .site-header-home .brand-with-logo {
    min-width: 0;
  }

  .site-header-home .brand-with-logo img {
    height: 42px;
  }

  .header-cart-pill {
    order: 2;
    padding: 10px 14px;
    min-width: auto;
  }

  .nav-toggle {
    order: 3;
    margin-left: 0;
  }

  .header-search {
    order: 4;
    grid-column: 1 / -1;
    width: 100%;
  }

  .site-header-home .nav {
    order: 5;
    grid-column: 1 / -1;
  }

  .site-header-home .main-menu {
    max-height: 70vh;
    overflow: auto;
  }

  .hero-collage-only-card .hero-slider-stage {
    min-height: 520px;
  }

  .hero-collage-slide {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 18px 20px;
  }

  .hero-brand-visuals {
    min-height: 280px;
    padding-inline: 54px;
  }

  .hero-brand-mascot {
    width: 92px;
    bottom: -4px;
  }

  .hero-thumb-grid-brand {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .hero-collage-only-card .hero-slider-stage {
    min-height: 500px;
  }

  .hero-collage-slide h1,
  .hero-collage-slide h2 {
    font-size: 28px;
  }

  .hero-collage-copy {
    font-size: 15px;
    line-height: 1.7;
  }

  .hero-chip-row span {
    font-size: 12px;
    padding: 8px 12px;
  }
}

@media (max-width: 520px) {
  .hero-collage-only-card {
    padding: 10px;
  }

  .hero-collage-only-card .hero-slider-stage {
    min-height: 460px;
    border-radius: 22px;
  }

  .hero-collage-slide {
    padding: 20px 14px 16px;
  }

  .hero-brand-visuals {
    padding-inline: 40px;
    min-height: 240px;
  }

  .hero-brand-mascot {
    width: 78px;
  }

  .hero-thumb-grid,
  .hero-thumb-grid-brand {
    gap: 10px;
  }

  .hero-thumb-card {
    padding: 8px;
    border-radius: 16px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .hero-collage-only-card .hero-slider-stage {
    min-height: 430px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== v28 reliable auto slider: image-only, no manual controls ===== */
.hero-image-slider-card {
  padding: 12px;
  overflow: hidden;
}

.auto-banner-slider {
  position: relative;
  width: 100%;
  height: clamp(300px, 37.5vw, 570px);
  max-height: 570px;
  min-height: 300px;
  overflow: hidden;
  border-radius: 26px;
  background: #fff7f2;
}

.auto-banner-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  animation: peachyAutoFade 20s infinite;
  pointer-events: none;
}

.auto-banner-slide:nth-child(1) { animation-delay: 0s; }
.auto-banner-slide:nth-child(2) { animation-delay: 5s; }
.auto-banner-slide:nth-child(3) { animation-delay: 10s; }
.auto-banner-slide:nth-child(4) { animation-delay: 15s; }

.auto-banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@keyframes peachyAutoFade {
  0% { opacity: 0; }
  3% { opacity: 1; }
  22% { opacity: 1; }
  25% { opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 900px) {
  .hero-image-slider-card {
    padding: 10px;
  }

  .auto-banner-slider {
    height: 300px;
    min-height: 300px;
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .auto-banner-slider {
    height: 245px;
    min-height: 245px;
  }

  .auto-banner-slide img {
    object-fit: cover;
  }
}

@media (max-width: 420px) {
  .auto-banner-slider {
    height: 220px;
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auto-banner-slide {
    animation: none;
    opacity: 0;
  }

  .auto-banner-slide:first-child {
    opacity: 1;
  }
}

/* v28 timing correction: first banner is visible immediately and transitions overlap */
@keyframes peachyAutoFade {
  0%, 23% { opacity: 1; }
  26%, 97% { opacity: 0; }
  100% { opacity: 1; }
}

/* ===== v29: clean homepage, native-quality auto slider, latest section, separate shop ===== */
.home-v29-main {
  display: grid;
  gap: 34px;
  padding-top: 26px;
  padding-bottom: 40px;
}

.home-v29-slider-section {
  margin: 0;
}

.home-v29-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  border-radius: 30px;
  background: #fff8f1;
  box-shadow: 0 24px 60px rgba(95, 45, 35, 0.12);
  border: 1px solid rgba(122, 0, 70, 0.06);
}

.home-v29-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

.home-v29-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.home-v29-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.home-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.home-section-heading h1,
.home-section-heading h2 {
  margin: 0;
  color: var(--brand);
  font-size: clamp(28px, 3vw, 38px);
}

.home-section-heading > p {
  margin: 0;
  max-width: 580px;
  color: var(--muted);
}

.home-text-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}

.home-text-link:hover {
  text-decoration: underline;
}

.home-latest-section,
.home-entry-section {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(122,0,70,0.07);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 20px 48px rgba(122,73,48,0.07);
}

.latest-banner-link {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: #fff7ed;
  box-shadow: 0 16px 36px rgba(122,73,48,0.09);
  transition: transform .2s ease, box-shadow .2s ease;
}

.latest-banner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(122,73,48,0.13);
}

.latest-banner-link img {
  width: 100%;
  height: auto;
  display: block;
}

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

.home-entry-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff9f5, #ffffff);
  border: 1px solid rgba(122,0,70,0.08);
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(122,73,48,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(122,73,48,0.1);
}

.home-entry-card > span {
  color: #d96938;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
}

.home-entry-card h3 {
  margin: 18px 0 10px;
  color: var(--brand);
  font-size: 24px;
}

.home-entry-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-entry-card strong {
  margin-top: auto;
  padding-top: 20px;
  color: var(--brand);
}

.home-entry-soon {
  background: #fbfaf9;
  border-style: dashed;
  opacity: .76;
}

.home-contact-section {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 160px;
  align-items: end;
  gap: 18px;
  overflow: hidden;
  border-radius: 30px;
  padding: 30px 28px 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(255,214,190,.45), transparent 28%),
    radial-gradient(circle at 90% 14%, rgba(222,231,170,.42), transparent 28%),
    linear-gradient(135deg, #fff8ef, #fffdf9);
  border: 1px solid rgba(122,0,70,0.07);
  box-shadow: 0 20px 48px rgba(122,73,48,0.08);
}

.home-contact-content {
  padding-bottom: 30px;
  text-align: center;
}

.home-contact-content h2 {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: clamp(30px, 3vw, 42px);
}

.home-contact-intro {
  margin: 0 auto 22px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.7;
}

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

.contact-action-card {
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 18px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(122,0,70,0.08);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(122,73,48,0.06);
}

.contact-action-card:hover {
  border-color: rgba(122,0,70,.2);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
}

.contact-action-card strong {
  color: var(--brand);
}

.contact-action-card small {
  color: var(--muted);
  text-align: center;
  overflow-wrap: anywhere;
}

.contact-mascot img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 20px rgba(80,45,30,.1));
}

.shop-v29-main {
  display: grid;
  gap: 26px;
  padding-block: 28px 48px;
}

.shop-intro-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  border-radius: 26px;
  background: linear-gradient(135deg, #fff7ef, #fffdfb);
  border: 1px solid rgba(122,0,70,0.07);
  box-shadow: 0 18px 40px rgba(122,73,48,.07);
}

.shop-intro-card h1 {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: clamp(30px, 4vw, 44px);
}

.shop-intro-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.shop-quick-grade {
  padding: 0;
}

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

  .home-contact-section {
    grid-template-columns: 110px minmax(0,1fr) 110px;
  }

  .home-contact-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 900px) {
  .home-v29-main {
    gap: 24px;
    padding-top: 18px;
  }

  .home-v29-slider {
    border-radius: 22px;
  }

  .home-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .home-latest-section,
  .home-entry-section {
    padding: 18px;
    border-radius: 22px;
  }

  .home-contact-section {
    grid-template-columns: 84px minmax(0,1fr) 84px;
    padding-inline: 14px;
  }

  .shop-intro-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .home-v29-main {
    width: min(96%, 1180px);
  }

  .home-v29-slider {
    border-radius: 18px;
  }

  .home-entry-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .home-entry-card {
    min-height: 205px;
    padding: 18px 14px;
  }

  .home-entry-card h3 {
    font-size: 20px;
  }

  .home-entry-card p {
    font-size: 13px;
  }

  .home-contact-section {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }

  .contact-mascot {
    display: none;
  }

  .home-contact-content {
    padding-bottom: 0;
  }

  .home-contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-action-card {
    padding: 16px 8px;
  }

  .latest-banner-link {
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  .home-entry-grid,
  .home-contact-grid {
    grid-template-columns: 1fr;
  }

  .home-entry-card {
    min-height: 170px;
  }
}

/* ===== v31 product-page desktop navigation ===== */
.product-site-header {
  gap: 14px;
}

.product-site-header .product-desktop-nav {
  flex: 1 1 auto;
}

.product-site-header .product-desktop-search {
  width: min(330px, 30vw);
  min-width: 240px;
}

@media (max-width: 900px) {
  .product-site-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    min-height: 68px;
    padding: 10px 16px;
  }

  .product-site-header .product-desktop-nav,
  .product-site-header .product-desktop-search {
    display: none !important;
  }

  .product-site-header .brand-with-logo img {
    height: 42px;
    width: auto;
  }

  .product-site-header .header-cart-pill {
    margin-left: auto;
    order: initial;
    min-width: auto;
    padding: 10px 14px;
  }
}
