/* ============================
   Page-Specific Styles
   ============================ */

/* --- Hero (page-load animation) --- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroZoomOut {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--bg);
  margin-top: -60px;
  padding-top: 60px;
  padding-bottom: 120px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28,25,23,0.3), rgba(28,25,23,0.6));
  z-index: 1;
}

/* Hero background image zoom-out effect */
.hero .hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoomOut 1.2s ease-out forwards;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 var(--content-padding);
}

.hero-subtitle-en {
  display: block;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.15s forwards;
}

.hero-catch {
  font-family: var(--font-heading);
  font-size: clamp(28px, 7vw, 56px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
  color: var(--bg);
  opacity: 0;
  animation: heroFadeUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

.hero-sub {
  font-size: var(--text-body-lg);
  color: rgba(255,255,255,0.8);
  margin-bottom: var(--space-xl);
  line-height: 1.8;
  opacity: 0;
  animation: heroFadeUp 0.9s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.9s forwards;
}

.hero-btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.hero-btn-secondary:hover {
  background: #fff;
  color: var(--text);
  opacity: 1;
}

.hero-btn-outline {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
  opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
}

.scroll-indicator span {
  font-family: var(--font-heading-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.scroll-indicator::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.4);
  margin: 12px auto 0;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Featured Products --- */
.featured-section {
  padding: 60px 0;
}

.featured-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

.featured-item:last-child {
  margin-bottom: 0;
}

.featured-item-image {
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-sub);
}

.featured-item-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.featured-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease-out, filter 0.6s ease-out;
}

.featured-item-image:hover img {
  transform: scale(1.05);
  filter: brightness(1.02);
}

.featured-item-text .section-subtitle-en {
  display: block;
  margin-bottom: var(--space-sm);
}

.featured-item-text h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.featured-item-desc {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: var(--space-lg);
}

.featured-item-price {
  font-family: var(--font-accent);
  font-size: var(--text-price);
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.featured-item-price .tax {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 400;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .featured-item {
    grid-template-columns: 1fr 1fr;
  }

  .featured-item:nth-child(even) .featured-item-image {
    order: 2;
  }

  .featured-item:nth-child(even) .featured-item-text {
    order: 1;
  }
}

/* --- Trust Badges Inline (inside About section) --- */
.trust-badges-inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}

.trust-badge-inline-item {
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.trust-badge-inline-divider {
  width: 1px;
  height: 14px;
  background: var(--border-dark);
  flex-shrink: 0;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .hero-subtitle-en,
  .hero-catch,
  .hero-sub,
  .hero-actions,
  .scroll-indicator::after {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .hero .hero-bg-image {
    animation: none;
  }

  .concept-card {
    transform: none !important;
    transition: none !important;
  }

  .product-card-image img,
  .featured-item-image img,
  .ranking-card-image img {
    transition: none;
  }
}

/* Popular Products Grid (used on product detail related products) */
.popular-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.product-card {
  background: transparent;
  text-decoration: none;
  color: var(--text);
  display: block;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.product-card:hover {
  color: var(--text);
}

.product-card:active {
  opacity: 0.9;
}

.product-card-image {
  width: 100%;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: var(--bg-sub);
  margin-bottom: var(--space-md);
}

.product-card-image picture,
.product-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease-out, filter 0.5s ease-out;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
  filter: brightness(1.02);
}

.product-card-body {
  padding: 0;
}

.product-card-category {
  font-size: var(--text-caption);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.product-card-name {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.product-card-price {
  font-family: var(--font-accent);
  font-size: var(--text-body);
  font-weight: 400;
}

.product-card-price .tax {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 400;
  color: var(--text-muted);
}

.product-card-name-en {
  font-family: var(--font-heading-en);
  font-size: var(--text-caption);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.product-card-volume {
  font-size: var(--text-caption);
  color: var(--text-light);
}

/* Hide "詳しく見る" button on product cards */
.product-card-body .btn { display: none; }

/* --- Ranking Section --- */
.ranking-section {
  padding: 60px 0;
  background: var(--bg);
}

.ranking-carousel-wrapper {
  position: relative;
}

.ranking-carousel {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-sm) 0 var(--space-md);
  scrollbar-width: none;
}

.ranking-carousel::-webkit-scrollbar {
  display: none;
}

.ranking-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  display: block;
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(202,138,4,0.15);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.ranking-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: var(--text);
}

.ranking-card-image {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--bg-sub);
  padding: 12px;
  overflow: hidden;
}

.ranking-card-image picture,
.ranking-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease-out, filter 0.5s ease-out;
}

.ranking-card:hover .ranking-card-image img {
  transform: scale(1.05);
  filter: brightness(1.02);
}

.ranking-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: #fff;
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50%;
}

.ranking-card:nth-child(1) .ranking-badge {
  background: var(--accent);
  color: var(--text);
}

.ranking-card-body {
  padding: var(--space-md);
}

.ranking-card-body .product-card-name {
  font-size: var(--text-body);
  transition: color var(--transition-fast);
}

.ranking-card:hover .ranking-card-body .product-card-name {
  color: var(--accent-dark);
}

.ranking-card-body .product-card-price {
  font-size: var(--text-h4);
  margin-bottom: 0;
}

/* Arrow buttons */
.ranking-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.ranking-arrow:hover {
  border-color: var(--accent);
  background: var(--surface);
  transform: translateY(-50%);
}

.ranking-arrow--left {
  left: -22px;
}

.ranking-arrow--right {
  right: -22px;
}

@media (max-width: 767px) {
  .ranking-card {
    flex: 0 0 180px;
  }

  .ranking-arrow {
    display: none;
  }
}

@media (min-width: 768px) {
  .ranking-card {
    flex: 0 0 240px;
  }
}

/* Brand Story Preview */
.brand-preview {
  padding: 60px 0;
}

.brand-preview-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.brand-preview-text .section-subtitle-en {
  display: block;
  margin-bottom: var(--space-sm);
}

.brand-image-placeholder {
  width: 100%;
  min-height: 300px;
  overflow: hidden;
}

.brand-image-placeholder picture,
.brand-image-placeholder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-preview-text h2 {
  margin-bottom: var(--space-lg);
}

.brand-preview-text p {
  font-size: var(--text-body-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.9;
}

@media (min-width: 768px) {
  .brand-preview-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* News Section */
.news-section {
  padding: 60px 0;
  background: var(--bg-sub);
}

.news-list {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.news-date {
  font-family: var(--font-accent);
  font-size: var(--text-body);
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 100px;
}

.news-title {
  font-size: var(--text-body);
}

.news-title a {
  text-decoration: none;
  color: var(--text);
}

.news-title a:hover {
  opacity: 0.7;
}

@media (max-width: 767px) {
  .news-item {
    flex-direction: column;
    gap: 4px;
  }
}

/* --- Products List (products/index.html) --- */
.page-header {
  background: var(--bg-sub);
  color: var(--text);
  padding: 80px 0 60px;
  margin-top: 72px;
  text-align: center;
}

.page-header h1 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 400;
}

.page-header p {
  color: var(--text-muted);
  margin-top: var(--space-sm);
  font-size: var(--text-body-sm);
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
}

.category-filter button {
  padding: var(--space-sm) 0;
  min-height: 48px;
  border: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.category-filter button:hover {
  color: var(--text);
}

.category-filter button.active {
  background: none;
  border-bottom: 1px solid var(--text);
  color: var(--text);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-bottom: var(--space-3xl);
  min-height: 400px;
}

/* --- Product Detail (products/detail.html) --- */
.product-detail {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.product-image-main {
  width: 100%;
  background: var(--bg-sub);
  border-radius: 0;
  overflow: hidden;
}

.product-image-main picture,
.product-image-main img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.product-info .product-card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.product-info h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 400;
  margin-bottom: var(--space-md);
}

.product-price-display {
  font-family: var(--font-accent);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-lg);
}

.product-price-display .tax {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--text-muted);
}

.product-description {
  margin-bottom: var(--space-xl);
  font-size: var(--text-body);
  line-height: 1.8;
}

/* Purchase Options */
.purchase-options {
  background: var(--bg-sub);
  border-radius: 0;
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.purchase-type-selector {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.purchase-type-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: 0;
  cursor: pointer;
  background: #fff;
  transition: border-color var(--transition-fast);
}

.purchase-type-option:hover {
  border-color: var(--text);
}

.purchase-type-option.selected {
  border-color: var(--text);
  background: #fff;
}

.purchase-type-option input[type="radio"] {
  width: 24px;
  height: 24px;
  accent-color: var(--text);
  margin-top: 2px;
}

.purchase-type-label strong {
  display: block;
  font-size: var(--text-body);
  margin-bottom: 4px;
}

.purchase-type-label span {
  font-size: var(--text-body-sm);
  color: var(--medium-gray);
}

.subscription-reassurance {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--success, #2E7D32);
  font-weight: 500;
  line-height: 1.4;
}

.reassurance-badge {
  display: inline-block;
  background: var(--success, #2E7D32);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.discount-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 0;
  margin-left: 8px;
  letter-spacing: 0.04em;
  display: inline-block;
  vertical-align: middle;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.quantity-selector label {
  font-weight: 500;
  font-size: var(--text-body);
  white-space: nowrap;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}

.quantity-controls button {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--bg-sub);
  color: var(--text);
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.quantity-controls button:hover {
  background: var(--border);
}

.quantity-controls input {
  width: 60px;
  height: 48px;
  text-align: center;
  font-size: var(--text-body);
  font-weight: 600;
  border: none;
  font-family: var(--font-body);
}

/* Product Tabs */
.product-tabs {
  margin-top: var(--space-2xl);
}

.product-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 0;
}

.product-tabs-nav button {
  padding: var(--space-md) var(--space-lg);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.product-tabs-nav button:hover {
  color: var(--text);
}

.product-tabs-nav button.active {
  color: var(--text);
  border-bottom-color: var(--text);
}

.product-tab-content {
  padding: var(--space-xl) 0;
}

.product-tab-panel {
  display: none;
}

.product-tab-panel.active {
  display: block;
}

.product-tab-title {
  font-size: var(--text-h3);
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* Ingredients Table */
.ingredients-table {
  width: 100%;
}

.ingredients-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.ingredients-table td:first-child {
  font-weight: 500;
  white-space: nowrap;
  width: 30%;
}

/* Reviews */
.review-item {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-sm);
}

.review-stars {
  color: var(--accent);
  font-size: var(--text-h4);
  letter-spacing: 2px;
}

.review-date {
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}

.review-body {
  font-size: var(--text-body);
  line-height: 1.8;
}

/* Related Products */
.related-products {
  margin-top: var(--space-2xl);
}

/* --- Free Shipping Progress Bar --- */
.free-shipping-bar {
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
}

.free-shipping-bar.reached {
  border-color: var(--success, #2E7D32);
}

.free-shipping-bar-text {
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: 8px;
  text-align: center;
  line-height: 1.5;
}

.free-shipping-bar-track {
  height: 10px;
  background: var(--light-gray);
  border-radius: 5px;
  overflow: hidden;
}

.free-shipping-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-dark, #B8963E) 100%);
  border-radius: 5px;
  transition: width 0.4s ease;
}

.free-shipping-bar.reached .free-shipping-bar-fill {
  background: linear-gradient(90deg, var(--success, #2E7D32) 0%, #43A047 100%);
}

/* --- Cart (cart/index.html) --- */
.cart-page {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--light-gray);
  align-items: start;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--cream);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cart-item-name {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: 500;
}

.cart-item-type {
  font-size: var(--text-body-sm);
  color: var(--medium-gray);
}

.cart-item-price {
  font-family: var(--font-accent);
  font-size: var(--text-h4);
  font-weight: 700;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-sm);
}

.cart-item-remove {
  font-size: var(--text-body-sm);
  color: var(--error);
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 0;
}

/* Cart Summary */
.cart-summary {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.cart-summary h3 {
  font-size: var(--text-h3);
  margin-bottom: var(--space-lg);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  font-size: var(--text-body);
}

.cart-summary-row.total {
  border-top: 2px solid var(--light-gray);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  font-weight: 700;
  font-size: var(--text-h4);
}

.cart-summary-row.discount {
  color: var(--error);
}

.coupon-section {
  margin: var(--space-lg) 0;
  padding: var(--space-md) 0;
  border-top: 1px solid var(--light-gray);
}

.coupon-input-group {
  display: flex;
  gap: var(--space-sm);
}

.coupon-input-group input {
  flex: 1;
  min-height: 48px;
  padding: 12px;
  font-size: var(--text-body);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
}

.coupon-input-group button {
  min-height: 48px;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--warm-white);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-body-sm);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

/* Empty Cart */
.cart-empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg);
}

.cart-empty svg {
  width: 80px;
  height: 80px;
  color: var(--light-gray);
  margin-bottom: var(--space-lg);
}

.cart-empty h2 {
  margin-bottom: var(--space-md);
}

.cart-empty p {
  color: var(--medium-gray);
  margin-bottom: var(--space-xl);
}

/* --- Checkout (checkout/index.html) --- */
.checkout-page {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.checkout-form {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.checkout-step {
  display: none;
}

.checkout-step.active {
  display: block;
}

.checkout-step h2 {
  margin-bottom: var(--space-xl);
}

.address-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.checkout-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--light-gray);
}

.checkout-nav .btn {
  min-width: 160px;
}

/* Payment Placeholder */
.payment-element-container {
  min-height: 200px;
  border: 2px dashed var(--light-gray);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--medium-gray);
  font-size: var(--text-body);
  padding: var(--space-xl);
  text-align: center;
}

/* Order Confirmation */
.order-confirm-section {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.order-confirm-section h4 {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--light-gray);
}

/* Order Complete */
.order-complete {
  text-align: center;
  padding: var(--space-xl) 0;
}

.order-complete .check-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.order-complete .check-icon svg {
  width: 40px;
  height: 40px;
}

.order-complete h2 {
  margin-bottom: var(--space-md);
}

.order-number {
  font-family: var(--font-accent);
  font-size: var(--text-h3);
  font-weight: 600;
  background: var(--cream);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  display: inline-block;
  margin: var(--space-md) 0 var(--space-lg);
}

.order-complete-info {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
}

.order-complete-info li {
  padding: var(--space-sm) 0;
  font-size: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.order-complete-info li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Auth Pages (login/register) --- */
.auth-page {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.auth-container {
  max-width: 480px;
  margin: 0 auto;
}

.auth-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.auth-header h1 {
  font-size: var(--text-h2);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  color: var(--medium-gray);
  font-size: var(--text-body-sm);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--light-gray);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 16px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  font-size: var(--text-body);
  font-weight: 500;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.btn-google:hover {
  border-color: var(--navy);
}

.auth-links {
  text-align: center;
  margin-top: var(--space-xl);
}

.auth-links a {
  font-size: var(--text-body);
}

/* --- MyPage (mypage/index.html) --- */
.mypage {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.mypage-tabs {
  display: flex;
  border-bottom: 2px solid var(--light-gray);
  margin-bottom: var(--space-xl);
  gap: 0;
  overflow-x: auto;
}

.mypage-tabs button {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--medium-gray);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.mypage-tabs button:hover {
  color: var(--navy);
}

.mypage-tabs button.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.mypage-panel {
  display: none;
}

.mypage-panel.active {
  display: block;
}

/* Order History */
.order-card {
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.order-card-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--light-gray);
}

.order-meta {
  font-size: var(--text-body-sm);
  color: var(--medium-gray);
}

.order-meta strong {
  color: var(--navy);
}

.order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: var(--text-body-sm);
  font-weight: 500;
}

.order-status.delivered {
  background: rgba(46,125,50,0.1);
  color: var(--success);
}

.order-status.shipped {
  background: rgba(21,101,192,0.1);
  color: var(--info);
}

.order-status.processing {
  background: rgba(201,168,76,0.1);
  color: var(--gold-dark);
}

/* Subscription Management */
.subscription-card {
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.subscription-card .sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.subscription-card .sub-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(46,125,50,0.1);
  color: var(--success);
  border-radius: 100px;
  font-size: var(--text-body-sm);
  font-weight: 500;
}

.subscription-card .sub-details {
  margin-bottom: var(--space-lg);
}

.subscription-card .sub-details dt {
  font-size: var(--text-body-sm);
  color: var(--medium-gray);
  margin-bottom: 2px;
}

.subscription-card .sub-details dd {
  font-size: var(--text-body);
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.subscription-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Profile */
.profile-section {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.profile-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--light-gray);
  gap: var(--space-lg);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-label {
  font-size: var(--text-body-sm);
  color: var(--medium-gray);
  min-width: 100px;
}

.profile-value {
  font-size: var(--text-body);
  text-align: right;
}

/* --- Brand Story (brand/index.html) --- */
.brand-page {
  padding-top: 72px;
}

.brand-hero {
  background: var(--navy);
  color: var(--warm-white);
  padding: var(--space-3xl) var(--content-padding);
  text-align: center;
}

.brand-hero h1 {
  color: var(--warm-white);
  font-size: var(--text-display);
  margin-bottom: var(--space-lg);
}

.brand-hero p {
  font-size: var(--text-body-lg);
  color: rgba(255,255,255,0.8);
  max-width: 640px;
  margin: 0 auto;
}

.brand-section {
  padding: var(--space-3xl) 0;
}

.brand-section:nth-child(even) {
  background: var(--cream);
}

.brand-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.brand-content-text h2 {
  margin-bottom: var(--space-lg);
}

.brand-content-text p {
  font-size: var(--text-body-lg);
  line-height: 1.9;
  color: var(--navy-light);
}

.brand-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.brand-image img {
  display: block;
  width: 100%;
  height: auto;
}

#nmn-purity .brand-image img,
#nmn-manufacturing .brand-image img {
  max-width: 240px;
  margin: 0 auto;
}

/* NMN Pyramid */
.nmn-pyramid {
  max-width: 720px;
  margin: var(--space-xl) auto 0;
}

.pyramid-level {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.pyramid-level:last-child {
  border-bottom: none;
}

.pyramid-bar {
  flex-shrink: 0;
  height: 8px;
  border-radius: 4px;
  background: var(--border);
}

.pyramid-level-top .pyramid-bar {
  width: 60px;
  background: linear-gradient(90deg, var(--gold), #d4b95e);
}

.pyramid-level:nth-child(2) .pyramid-bar {
  width: 120px;
}

.pyramid-level:nth-child(3) .pyramid-bar {
  width: 180px;
}

.pyramid-level-bottom .pyramid-bar {
  width: 240px;
}

.pyramid-info h4 {
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--navy);
}

.pyramid-level-top .pyramid-info h4 {
  color: var(--gold);
  font-size: var(--text-body-lg);
}

.pyramid-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--gold);
  padding: 2px 10px;
  border-radius: 20px;
  margin-left: 8px;
  vertical-align: middle;
}

.pyramid-info p {
  font-size: var(--text-sm);
  color: var(--navy-light);
  line-height: 1.6;
}

.nmn-pyramid-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--gold);
  font-weight: 500;
  margin-top: var(--space-xl);
  line-height: 1.8;
}

/* Free Formula */
.free-formula-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  max-width: 600px;
  margin: var(--space-xl) auto 0;
}

.free-formula-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--cream);
  border-radius: var(--radius-md);
}

.free-formula-item svg {
  flex-shrink: 0;
  color: var(--gold);
}

.free-formula-item span {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--navy);
}

.free-formula-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--navy-light);
  margin-top: var(--space-lg);
}

/* Patents */
.patents-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.patent-card {
  padding: var(--space-lg);
  background: var(--cream);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--gold);
}

.patent-number {
  font-size: var(--text-sm);
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.patent-card h4 {
  font-size: var(--text-body-lg);
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.patent-card p {
  font-size: var(--text-body);
  color: var(--navy-light);
  line-height: 1.8;
}

/* Clinical Trials */
.clinical-highlight {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-xl);
}

.clinical-stat {
  text-align: center;
  padding: var(--space-lg);
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.clinical-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--navy-light);
  margin-bottom: 4px;
}

.clinical-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-heading);
}

/* Department Store Presence */
.section-subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-sm);
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.store-category-label {
  text-align: center;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--navy);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.store-grid {
  display: grid;
  gap: var(--space-sm);
  max-width: 800px;
  margin: 0 auto;
}

.store-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.store-grid-4 {
  grid-template-columns: repeat(2, 1fr);
}

.store-card {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  font-size: var(--text-body-lg);
  font-weight: 500;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--border);
}

.store-card-gold {
  background: var(--cream);
  border-color: var(--gold);
}

/* Media Coverage */
.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.media-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.media-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 50%;
  color: var(--gold);
}

.media-item h4 {
  font-size: var(--text-body-lg);
  color: var(--navy);
  margin-bottom: 4px;
}

.media-item p {
  font-size: var(--text-body);
  color: var(--navy-light);
  line-height: 1.7;
}

/* --- Contact (contact/index.html) --- */
.contact-page {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

.contact-info {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.contact-info h3 {
  margin-bottom: var(--space-lg);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: var(--space-lg);
}

.contact-info-item svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-info-item a {
  font-size: var(--text-h4);
  font-family: var(--font-accent);
  font-weight: 600;
  text-decoration: none;
}

/* --- FAQ (faq/index.html) --- */
.faq-page {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.faq-category {
  margin-bottom: var(--space-xl);
}

.faq-category h3,
.faq-category .faq-category-heading {
  margin-bottom: var(--space-md);
}

/* --- Legal Pages --- */
.legal-page {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.legal-page h1 {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.legal-content {
  max-width: var(--content-narrow);
  margin: 0 auto;
}

.legal-content h2 {
  font-size: var(--text-h3);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content h3 {
  font-size: var(--text-h4);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  margin-bottom: var(--space-md);
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal-content ul li {
  list-style: disc;
  margin-bottom: var(--space-sm);
}

.legal-table {
  width: 100%;
}

.legal-table th {
  width: 30%;
  text-align: left;
  vertical-align: top;
  background: var(--cream);
}

/* --- Responsive --- */
@media (min-width: 768px) {
  .hero {
    min-height: 100vh;
    margin-top: -60px;
    padding-top: 60px;
  }

  .hero-catch {
    letter-spacing: 0.12em;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .featured-section {
    padding: var(--space-3xl) 0;
  }

  .ranking-section {
    padding: var(--space-3xl) 0;
  }

  .brand-preview {
    padding: var(--space-3xl) 0;
  }

  .news-section {
    padding: var(--space-3xl) 0;
  }

  .products-preview {
    padding: var(--space-3xl) 0;
  }

  .concept-section {
    padding: var(--space-3xl) 0;
  }

  .page-header {
    margin-top: 72px;
    padding: 100px 0 80px;
  }

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

  .popular-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .product-detail-grid {
    grid-template-columns: 55% 45%;
    gap: 80px;
  }

  .cart-item {
    grid-template-columns: 120px 1fr auto auto;
    align-items: center;
  }

  .cart-item-image {
    width: 120px;
    height: 120px;
  }

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

  .address-row {
    grid-template-columns: 1fr 1fr;
  }

  .brand-content {
    grid-template-columns: 1fr 1fr;
  }

  .brand-content.reverse {
    direction: rtl;
  }

  .brand-content.reverse > * {
    direction: ltr;
  }

  .free-formula-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .patents-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .store-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .media-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr 360px;
  }

  .badges-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .brand-preview-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Welcome Coupon Banner --- */
.welcome-coupon-banner {
  background: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, rgba(201,168,76,0.05) 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.welcome-coupon-inner {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.welcome-coupon-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  flex-shrink: 0;
}

.welcome-coupon-text {
  flex: 1;
  min-width: 200px;
}

.welcome-coupon-text strong {
  display: block;
  font-size: var(--text-body);
  margin-bottom: var(--space-xs);
}

.coupon-code-inline {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: var(--text-h4);
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(201,168,76,0.15);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  letter-spacing: 0.1em;
  margin-right: var(--space-sm);
}

/* --- Referral Section --- */
.referral-section {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.referral-code-box {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.referral-code-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.referral-label {
  font-size: var(--text-body-sm);
  color: var(--medium-gray);
  min-width: 80px;
}

.referral-code {
  font-family: var(--font-accent);
  font-size: var(--text-h4);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--navy);
}

/* --- Referral Page (mypage/referral/index.html) --- */
.referral-page {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.referral-benefits {
  margin-bottom: var(--space-2xl);
}

.referral-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 720px;
  margin: 0 auto;
}

.referral-benefit-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.referral-benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.1);
  border-radius: 50%;
  color: var(--gold);
}

.referral-benefit-card h3 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-sm);
}

.referral-benefit-amount {
  font-family: var(--font-accent);
  font-size: var(--text-display);
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: var(--space-md);
}

.referral-benefit-amount span {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  margin-left: 4px;
}

.referral-benefit-card p {
  font-size: var(--text-body);
  color: var(--navy-light);
  line-height: 1.8;
}

/* Referral Share Section */
.referral-share-section {
  margin-bottom: var(--space-2xl);
}

.referral-share-card {
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 640px;
  margin: 0 auto;
}

.referral-share-code-area {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.referral-share-code-label {
  font-size: var(--text-body-sm);
  color: var(--medium-gray);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.referral-share-code-value {
  font-family: var(--font-accent);
  font-size: var(--text-h1);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--navy);
  margin-bottom: var(--space-lg);
  word-break: break-all;
}

.referral-share-divider {
  height: 1px;
  background: var(--light-gray);
  margin: var(--space-lg) 0;
}

.referral-share-link-area {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.referral-share-url-row {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.referral-share-qr {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--light-gray);
}

.referral-qr-image {
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 8px;
  box-shadow: var(--shadow-sm);
}

/* Referral Stats */
.referral-stats-section {
  margin-bottom: var(--space-2xl);
}

.referral-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 480px;
  margin: 0 auto;
}

.referral-stat-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.referral-stat-value {
  font-family: var(--font-accent);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.referral-stat-label {
  font-size: var(--text-body);
  color: var(--medium-gray);
}

/* Referral How-To Steps */
.referral-howto {
  margin-bottom: var(--space-2xl);
}

.referral-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 720px;
  margin: 0 auto;
}

.referral-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--cream);
  border-radius: var(--radius-lg);
}

.referral-step-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-family: var(--font-accent);
  font-size: var(--text-h3);
  font-weight: 700;
  flex-shrink: 0;
}

.referral-step h4 {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.referral-step p {
  font-size: var(--text-body-sm);
  color: var(--medium-gray);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .referral-benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .referral-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .referral-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .referral-share-code-value {
    font-size: 48px;
  }
}

@media (max-width: 767px) {
  .referral-share-url-row {
    flex-direction: column;
  }

  .referral-share-url-row input {
    width: 100%;
  }

  .referral-share-url-row button {
    width: 100%;
  }

  .referral-share-code-value {
    font-size: var(--text-h2);
  }

  .referral-stat-value {
    font-size: var(--text-h3);
  }
}

/* --- Survey Page --- */
.survey-page {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.survey-form {
  max-width: 640px;
  margin: 0 auto;
}

.survey-section {
  margin-bottom: var(--space-xl);
}

.survey-section h3 {
  font-size: var(--text-h4);
  margin-bottom: var(--space-md);
}

.survey-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.survey-options .radio-group {
  padding: var(--space-md);
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  background: #fff;
  transition: border-color var(--transition-fast);
}

.survey-options .radio-group:hover {
  border-color: var(--gold);
}

.survey-options .radio-group:has(input:checked) {
  border-color: var(--gold);
  background: rgba(201,168,76,0.05);
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 8px;
}

.star-rating .star {
  font-size: 40px;
  color: var(--light-gray);
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
  user-select: none;
  line-height: 1;
}

.star-rating .star:hover {
  transform: scale(1.15);
}

.star-rating .star.active {
  color: var(--gold);
}

.survey-submit {
  text-align: center;
  margin-top: var(--space-xl);
}

/* Survey Result */
.survey-result {
  max-width: 640px;
  margin: 0 auto;
}

.survey-thankyou {
  text-align: center;
  padding: var(--space-xl) 0;
}

.survey-thankyou .check-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.survey-thankyou .check-icon svg {
  width: 40px;
  height: 40px;
}

.survey-thankyou h2 {
  margin-bottom: var(--space-md);
}

.survey-coupon-card {
  background: linear-gradient(135deg, rgba(201,168,76,0.1) 0%, rgba(201,168,76,0.05) 100%);
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}

.coupon-label {
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.coupon-code-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.coupon-code {
  font-family: var(--font-accent);
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
}

.coupon-note {
  font-size: var(--text-body-sm);
  color: var(--medium-gray);
}

.survey-error-state {
  text-align: center;
  padding: var(--space-3xl) 0;
  color: var(--medium-gray);
}

/* --- Wishlist / Favorites --- */

/* Heart button on product cards */
.product-card-wrapper {
  position: relative;
}

.product-card-wishlist {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  z-index: 2;
}

.wishlist-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--medium-gray);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.wishlist-btn:hover {
  background: #fff;
  color: var(--error);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.wishlist-btn.active {
  color: var(--error);
  background: #fff;
}

/* Detail page wishlist button */
.wishlist-detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--light-gray);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--medium-gray);
  font-size: var(--text-body-sm);
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  justify-content: center;
}

.wishlist-detail-btn:hover {
  border-color: var(--error);
  color: var(--error);
}

.wishlist-detail-btn.active {
  border-color: var(--error);
  color: var(--error);
  background: rgba(198, 40, 40, 0.05);
}

/* Wishlist page grid */
.wishlist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.wishlist-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: #fff;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.wishlist-item:hover {
  box-shadow: var(--shadow-md);
}

.wishlist-item-link {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
  text-decoration: none;
  color: var(--navy);
  padding: var(--space-md);
}

.wishlist-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

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

.wishlist-item-name {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.wishlist-item-price {
  font-family: var(--font-accent);
  font-size: var(--text-h4);
  font-weight: 700;
}

.wishlist-item-price .tax {
  font-family: var(--font-body);
  font-size: var(--text-body-sm);
  font-weight: 400;
  color: var(--medium-gray);
}

.wishlist-remove-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-md);
  color: var(--error);
  font-size: var(--text-body-sm);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.wishlist-remove-btn:hover {
  opacity: 0.7;
}

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

  .wishlist-item-image {
    width: 100px;
    height: 100px;
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .brand-page {
    padding-top: 72px;
  }

  .welcome-coupon-inner {
    flex-direction: column;
    text-align: center;
  }

  .referral-code-row {
    flex-direction: column;
    align-items: stretch;
  }

  .referral-label {
    min-width: auto;
  }

  .star-rating .star {
    font-size: 32px;
  }

  .coupon-code {
    font-size: var(--text-h3);
  }

  .wishlist-item {
    flex-direction: column;
    align-items: stretch;
  }

  .wishlist-item-link {
    flex-direction: row;
  }

  .wishlist-remove-btn {
    border-top: 1px solid var(--light-gray);
    justify-content: center;
    padding: var(--space-sm);
  }
}

/* --- Products Preview (Category) Section --- */
.products-preview {
  padding: 60px 0;
  background: var(--bg);
}

.products-preview-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.products-preview-category-title {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 400;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.products-preview-category-title .section-subtitle-en {
  display: block;
  margin-bottom: var(--space-xs);
}

.products-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.products-preview-cta {
  text-align: center;
  margin-top: var(--space-xl);
}

@media (min-width: 768px) {
  .products-preview-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* --- NMN Science Section --- */
.nmn-science {
  padding: var(--space-2xl) 0;
  background: var(--bg-sub);
}

.nmn-science-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.nmn-science-card {
  background: var(--surface);
  padding: var(--space-xl);
  text-align: center;
  transition: box-shadow var(--transition-base);
  overflow: visible;
}

.nmn-science-card:hover {
  box-shadow: var(--shadow-md);
}

.nmn-science-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.nmn-science-card-title {
  font-family: var(--font-heading);
  font-size: var(--text-h4);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-xs);
}

.nmn-science-card-subtitle {
  font-size: var(--text-body-sm);
  color: var(--accent-dark);
  font-weight: 500;
  margin-bottom: var(--space-md);
  letter-spacing: 0.1em;
}

.nmn-science-card-text {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.9;
}

.nmn-science-note {
  text-align: center;
  font-size: var(--text-body-sm);
  color: var(--text-muted);
  margin-top: var(--space-xl);
}

.nmn-science-link {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: var(--text-body-sm);
  font-weight: 500;
  color: var(--accent-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nmn-science-link:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .nmn-science {
    padding: var(--space-3xl) 0;
  }

  .nmn-science-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Concept Section (FAS-style) --- */
.concept-section {
  padding: 60px 0;
  background: var(--bg-sub);
}

.concept-lead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
}

.concept-question {
  font-family: var(--font-heading);
  font-size: clamp(20px, 5vw, 28px);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.concept-answer {
  font-family: var(--font-heading);
  font-size: clamp(16px, 4vw, 22px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.concept-body {
  font-size: var(--text-body-lg);
  color: var(--text-muted);
  line-height: 2;
}

.concept-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.concept-card {
  display: block;
  background: var(--surface);
  padding: var(--space-xl);
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.concept-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: var(--text);
}

.concept-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.concept-card-title {
  font-family: var(--font-heading-en);
  font-size: var(--text-h3);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.concept-card-subtitle {
  font-size: var(--text-body-sm);
  color: var(--accent-dark);
  font-weight: 500;
  margin-bottom: var(--space-md);
  letter-spacing: 0.1em;
}

.concept-card-text {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: var(--space-md);
}

.concept-card-link {
  display: inline-block;
  font-family: var(--font-heading-en);
  font-size: var(--text-body-sm);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.concept-card:hover .concept-card-link {
  border-color: var(--accent);
  color: var(--accent-dark);
}

@media (min-width: 768px) {
  .concept-question {
    font-size: 28px;
  }

  .concept-answer {
    font-size: var(--text-display);
    font-size: clamp(32px, 4vw, 48px);
  }

  .concept-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Mobile Sticky CTA for Product Detail --- */
@media (max-width: 767px) {
  .purchase-options {
    position: sticky;
    bottom: 0;
    z-index: 50;
    margin-left: calc(-1 * var(--content-padding));
    margin-right: calc(-1 * var(--content-padding));
    border-radius: 0;
    padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  }
}
