.retail-section { padding: 60px 0; }
.retail-section-muted { background: var(--ui-muted); }
.retail-heading { display: flex; margin-bottom: 28px; align-items: end; justify-content: space-between; gap: 24px; }
.retail-heading h1, .retail-heading h2 { margin: 0; color: var(--color-text, #18251f); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.retail-heading h1 { font-size: clamp(32px, 5vw, 52px); }
.retail-heading h2 { font-size: clamp(27px, 4vw, 38px); }
.retail-heading p { max-width: 640px; margin: 8px 0 0; color: var(--color-muted-text, #5d6d64); }
.retail-heading > a { color: var(--color-primary, #176b45); font-weight: 500; }
.retail-heading-centered { justify-content: center; text-align: center; }
.section-view-all { display: flex; margin-top: 32px; justify-content: center; }
.section-view-all .retail-button {
  color: var(--color-text, #18251f);
  background: transparent;
  border-color: #cfd6d2;
}
.section-view-all .retail-button:hover {
  background: #f4f5f4;
  border-color: #aeb8b2;
}
.category-grid, .product-grid, .benefit-grid, .brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.category-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(154px, 1fr); overflow-x: hidden; overscroll-behavior-inline: contain; }
.category-grid.is-static { display: flex; justify-content: center; }
.category-grid.is-static .category-card { width: min(180px, 100%); flex: 0 1 180px; }
.brand-carousel { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 4); overflow-x: hidden; }
.brand-carousel.is-static { display: flex; justify-content: center; }
.brand-carousel.is-static .brand-card { width: min(280px, 100%); flex: 0 1 280px; }
.category-grid,
.retail-category-nav {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-grid::-webkit-scrollbar,
.retail-category-nav::-webkit-scrollbar {
  display: none;
}
.category-card { display: block; min-width: 0; padding: 4px; color: inherit; background: transparent; border: 0; text-align: center; text-decoration: none; scroll-snap-align: start; }
.retail-section .category-card { padding: 4px; border-radius: 0; }
.category-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.category-card strong { display: block; margin-top: 10px; overflow: hidden; color: var(--color-text, #18251f); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.category-card span { color: var(--color-muted-text, #5d6d64); font-size: 15px; line-height: 1.6; }
.retail-product-card { overflow: hidden; background: #fff; border: 1px solid #dbe5df; border-radius: 6px; }
.product-visual { display: flex; min-height: 230px; padding: 16px; align-items: flex-start; background: var(--ui-soft-strong); text-decoration: none; }
.product-visual img { width: 100%; height: 100%; object-fit: contain; }
.product-visual span { padding: 4px 7px; color: #fff; background: var(--color-primary, #176b45); border-radius: 3px; font-size: 11px; font-weight: 600; }
.product-visual .badge-save { background: #c43d32; }
.product-visual .badge-popular { background: #8752a1; }
.product-visual .badge-offer { background: #d06b16; }
.product-visual .badge-new { background: #2675a8; }
.product-visual .badge-best-seller { background: #8a6714; }
.product-visual .badge-stock-out { background: #c62828; }
.product-tone-rice, .product-tone-oil, .product-tone-care,
.product-tone-home, .product-tone-baby, .product-tone-clean { background: var(--ui-soft-strong); }
.product-card-body { padding: 20px; }
.product-card-body > p { margin: 0 0 5px; color: var(--color-muted-text, #5d6d64); font-size: 14px; }
.product-card-body h3 { min-height: 48px; margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.product-card-body h3 a { text-decoration: none; }
.product-price { display: flex; margin-bottom: 16px; align-items: center; gap: 9px; }
.product-price strong { color: var(--color-primary, #176b45); font-size: 20px; font-weight: 600; }
.product-price del { color: #8a958f; }
.product-card-body button, .retail-button { display: inline-flex; min-height: 42px; padding: 9px 15px; align-items: center; justify-content: center; color: #fff; background: var(--color-primary, #176b45); border: 1px solid var(--color-primary, #176b45); border-radius: 4px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.promotion-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.promotion-card { min-height: 220px; padding: 34px; color: #fff; background: #176b45; border-radius: 6px; }
.promotion-card:nth-child(2) { background: #7b5426; }
.promotion-card h2 { max-width: 480px; margin: 8px 0 18px; font-size: clamp(26px, 3.5vw, 36px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.promotion-card a { color: inherit; font-weight: 600; }
.brand-card, .benefit-card { padding: 24px; background: #fff; border: 1px solid #dbe5df; border-radius: 6px; text-align: center; }
.brand-card { display: flex; min-height: 118px; align-items: center; justify-content: center; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.brand-card img { display: block; width: min(100%, 220px); height: 64px; object-fit: contain; }
.benefit-card h3 { margin: 0 0 8px; font-weight: 600; letter-spacing: -0.01em; }
.benefit-card p { margin: 0; color: var(--color-muted-text, #5d6d64); font-size: 15px; line-height: 1.6; }
.store-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 34px; }
.store-filter { align-self: start; padding: 22px; border: 1px solid #dbe5df; border-radius: 6px; }
.store-filter h2 { margin-top: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.store-filter label { display: flex; margin: 10px 0; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.store-toolbar { display: flex; margin-bottom: 22px; align-items: center; justify-content: space-between; gap: 16px; }
.store-toolbar select { min-height: 42px; padding: 8px 12px; background: #fff; border: 1px solid #b8c5bd; border-radius: 4px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.product-gallery { min-height: 520px; background: var(--ui-soft-strong); border-radius: 6px; }
.product-summary h1 { margin: 6px 0 12px; font-size: clamp(34px, 4.5vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.product-summary .product-price { margin: 20px 0; }
.product-summary .product-price strong { font-size: 28px; }
.product-meta { padding: 16px 0; border-top: 1px solid #dbe5df; border-bottom: 1px solid #dbe5df; }
.product-actions { display: flex; margin: 24px 0; gap: 12px; }
.product-actions input { width: 76px; min-height: 46px; padding: 8px; border: 1px solid #b8c5bd; border-radius: 4px; }
.details-box { margin-top: 40px; padding: 28px; background: var(--ui-muted); border-radius: 6px; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; }
.cart-item { display: grid; padding: 20px 0; grid-template-columns: 96px 1fr auto; align-items: center; gap: 18px; border-bottom: 1px solid #dbe5df; }
.cart-thumb { width: 96px; height: 96px; background: var(--ui-soft-strong); border-radius: 5px; }
.cart-item h2 { margin: 0 0 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.order-summary { align-self: start; padding: 24px; background: var(--ui-muted); border: 1px solid var(--ui-border); border-radius: 6px; }
.summary-row { display: flex; padding: 10px 0; justify-content: space-between; gap: 15px; border-bottom: 1px solid #dbe5df; }
.summary-row.total { font-size: 20px; font-weight: 600; border-bottom: 0; }
.checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkout-form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 500; }
.checkout-form input, .checkout-form select, .checkout-form textarea { min-height: 46px; padding: 10px 12px; background: #fff; border: 1px solid #b8c5bd; border-radius: 4px; }
.checkout-form .full-field { grid-column: 1 / -1; }
@media (max-width: 800px) {
  .retail-section { padding: 52px 0; }
  .retail-heading { align-items: flex-start; flex-direction: column; }
  .retail-heading-centered { width: 100%; align-items: center; }
  .category-grid, .product-grid, .benefit-grid, .brand-grid, .promotion-grid, .store-layout, .product-detail, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .store-filter { display: none; }
  .product-gallery { min-height: 360px; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-thumb { width: 72px; height: 72px; }
  .cart-item > strong { grid-column: 2; }
  .checkout-form { grid-template-columns: 1fr; }
  .checkout-form .full-field { grid-column: auto; }
}
.brand-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.brand-directory article { padding: 28px; border: 1px solid #dbe5df; border-radius: 6px; }
.brand-directory article > img { display: block; width: min(100%, 220px); height: 64px; margin-bottom: 18px; object-fit: contain; object-position: left center; }
.brand-directory h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.brand-directory p { color: var(--color-muted-text, #5d6d64); font-size: 15px; line-height: 1.6; }
.brand-directory a { color: var(--color-primary, #176b45); font-weight: 500; }
.tracking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; }
.tracking-form { display: grid; padding: 28px; gap: 18px; border: 1px solid #dbe5df; border-radius: 6px; }
.tracking-form label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 500; }
.tracking-form input { min-height: 46px; padding: 10px 12px; border: 1px solid #b8c5bd; border-radius: 4px; }
.tracking-help { padding: 28px; background: var(--ui-muted); border-radius: 6px; }
.tracking-help h2 { margin-top: 0; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.tracking-steps { margin: 20px 0 0; padding: 0; list-style: none; }
.tracking-steps li { position: relative; padding: 0 0 22px 30px; }
.tracking-steps li::before { position: absolute; top: 5px; left: 0; width: 11px; height: 11px; background: var(--color-primary, #176b45); border-radius: 50%; content: ''; }
@media (max-width: 800px) { .brand-directory, .tracking-layout { grid-template-columns: 1fr; } }
.tracking-order-meta { display: flex; margin: 16px 0; flex-wrap: wrap; gap: 8px; }
.tracking-order-meta span { padding: 5px 8px; background: #fff; border: 1px solid #dbe5df; border-radius: 3px; font-size: 14px; }
.tracking-steps li.is-confirmed::before { background: #176b45; }
.tracking-steps li.is-prepared::before { background: #2878b5; }
.tracking-steps li.is-transit::before { background: #d17a18; }
.tracking-steps li.is-pending::before { background: #8a958f; }
.tracking-result[hidden], .tracking-empty[hidden] { display: none; }
.retail-icon,
.promotion-icon,
.benefit-icon {
  display: block;
  width: 24px;
  height: 24px;
  color: var(--color-primary, #176b45);
}
.category-card .retail-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
}
.promotion-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
}
.benefit-icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 16px;
}

.retail-menu-heading {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}
.retail-menu-heading h1 {
  margin: 8px 0 14px;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.retail-menu-heading > p:last-child {
  margin: 0;
  color: var(--color-muted-text, #5d6d64);
  font-size: 17px;
}
.retail-category-nav {
  display: grid;
  margin-bottom: 64px;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(154px, 1fr);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
}
.retail-category-nav a {
  display: block;
  min-width: 0;
  padding: 4px;
  color: inherit;
  background: transparent;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  scroll-snap-align: start;
}
.retail-category-nav span { display: block; overflow: hidden; white-space: nowrap; }
.retail-category-nav img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 10px;
  object-fit: contain;
}
.retail-menu-section > h2 {
  margin: 0 0 34px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-align: center;
}
.retail-menu-page .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 52px;
}
.retail-section .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.retail-menu-page .retail-product-card,
.retail-section .retail-product-card {
  overflow: visible;
  border: 0;
  background: transparent;
}
.retail-menu-page .product-visual,
.retail-section .product-visual {
  position: relative;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  background: #f7f7f5;
  border-radius: 8px;
}
.retail-menu-page .product-card-body > p,
.retail-section .product-card-body > p {
  display: none;
}
.retail-menu-page .product-price del,
.retail-section .product-price del {
  color: #c62828;
}
.retail-menu-page .product-visual span,
.retail-section .product-visual span {
  position: absolute;
  top: 12px;
  left: 12px;
}
.retail-menu-page .product-card-body,
.retail-section .product-card-body {
  padding: 18px 8px 0;
  text-align: center;
}
.retail-menu-page .product-card-body h3,
.retail-section .product-card-body h3 {
  display: -webkit-box;
  width: 100%;
  min-height: 0;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  font-size: 19px;
  line-height: 1.35;
  text-wrap: balance;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.product-card-body h3.row-two-lines { height: 2.7em; min-height: 2.7em; }
.product-card-body h3.force-two-lines .title-last-word { display: block; }
.retail-menu-page .product-price,
.retail-section .product-price {
  justify-content: center;
}

@media (max-width: 800px) {
  .retail-menu-heading { margin-bottom: 32px; }
  .category-grid { grid-template-columns: none; grid-auto-columns: 132px; }
  .brand-carousel { grid-template-columns: none; grid-auto-columns: calc((100% - 22px) / 2); }
  .retail-category-nav { grid-auto-columns: 132px; margin-bottom: 48px; }
  .retail-menu-page .product-grid,
  .retail-section .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 14px; }
  .retail-menu-page .product-card-body,
  .retail-section .product-card-body { padding: 14px 2px 0; }
  .retail-menu-page .product-card-body h3,
  .retail-section .product-card-body h3 { font-size: 16px; }
  .retail-menu-page .product-card-body button,
  .retail-section .product-card-body button { width: 100%; }
}

@media (min-width: 801px) and (max-width: 1100px) {
  .brand-carousel { grid-template-columns: none; grid-auto-columns: calc((100% - 44px) / 3); }
  .retail-menu-page .product-grid,
  .retail-section .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
