/* =========================================================
   SAWA FOOD — 04. Sticky header & product details
   ========================================================= */
/* =========================================================
   SAWA FOOD — 02 - Additional responsive/base fixes
   ========================================================= */
/* ===== Sticky header + premium product details ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: .25s box-shadow, .25s border-color;
}
.nav.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 43, 27, .08);
  border-color: var(--line);
}
.product-clickable {
  cursor: pointer;
  position: relative;
}
.product-clickable .photo {
  overflow: hidden;
}
.product-clickable .photo img {
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.product-clickable:hover .photo img {
  transform: scale(1.045);
}
.card-view {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
  color: #173d2a;
  opacity: 0;
  transform: translateY(5px);
  transition: .25s;
}
.product-clickable:hover .card-view {
  opacity: 1;
  transform: none;
}
.product-detail-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 28px 0 90px;
}
.product-detail-shell {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
}
.detail-back {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 800;
  padding: 8px 0 24px;
  cursor: pointer;
  font-size: 14px;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 54px;
  align-items: start;
}
.detail-main-image {
  height: 540px;
  border-radius: 24px;
  overflow: hidden;
  background: #eef3e9;
  box-shadow: 0 18px 50px rgba(17, 43, 29, .09);
}
.detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow: auto;
}
.detail-thumb {
  width: 84px;
  height: 72px;
  flex: 0 0 84px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}
.detail-thumb.active {
  border-color: var(--brand);
}
.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-copy {
  padding-top: 25px;
}
.detail-copy h1 {
  font: 800 clamp(36px, 4vw, 58px)/1.04 Manrope;
  letter-spacing: -2px;
  margin: 10px 0 18px;
  color: var(--ink);
}
.detail-lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 580px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.detail-meta span {
  padding: 8px 11px;
  border-radius: 999px;
  background: #eef5e8;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
}
.detail-block {
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-block small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 11px;
}
.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.size-list span {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-weight: 800;
  font-size: 13px;
}
.detail-origin {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}
.detail-origin b {
  color: var(--ink);
}
.detail-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  padding: 15px 18px;
  border-radius: 10px;
  font-weight: 900;
  margin-top: 10px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .2);
}
.detail-wa-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 9px;
}
.factory-story {
  margin-top: 75px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #173d2a;
  color: #fff;
}
.factory-story>div {
  padding: 50px;
}
.factory-story h2 {
  font: 800 34px/1.12 Manrope;
  margin: 10px 0 14px;
}
.factory-story p {
  color: #c7d8cb;
  line-height: 1.7;
}
.factory-story img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.product-detail-open main,.product-detail-open footer,.product-detail-open .top,.product-detail-open>.nav {
  display: none;
}
.product-detail-open .product-detail-page {
  display: block;
}
.theme-dark .nav {
  background: rgba(15, 28, 20, .88);
}
.theme-dark .card-view {
  background: rgba(20, 35, 25, .9);
  color: #fff;
}
.theme-dark .size-list {
  background: var(--surface);
}
@media(max-width:900px) {
  .nav {
    position: sticky;
    top: 0;
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .detail-main-image {
    height: 400px;
  }
  .detail-copy {
    padding-top: 0;
  }
  .factory-story {
    grid-template-columns: 1fr;
  }
  .factory-story img {
    height: 280px;
    order: -1;
  }
  .factory-story>div {
    padding: 30px;
  }
}
@media(max-width:560px) {
  .product-detail-shell {
    width: min(100% - 24px, 1180px);
  }
  .product-detail-page {
    padding-top: 15px;
  }
  .detail-main-image {
    height: 330px;
    border-radius: 17px;
  }
  .detail-copy h1 {
    font-size: 37px;
  }
  .detail-lead {
    font-size: 15px;
  }
  .detail-origin {
    display: block;
  }
  .detail-origin span {
    display: block;
    margin-top: 5px;
  }
  .factory-story {
    margin-top: 45px;
    border-radius: 17px;
  }
  .factory-story h2 {
    font-size: 28px;
  }
}
/* =========================================================
   SAWA FOOD — 03 - Clean organization layer
   ========================================================= */
/* =========================================================
   SAWA FOOD — CLEAN ORGANIZATION LAYER
   Additive only: keeps the original structure, content and
   functionality while making spacing, hierarchy and controls
   cleaner and easier to scan.
   ========================================================= */
:root {
  --clean-max: 1240px;
  --clean-gap: clamp(18px, 2vw, 28px);
  --clean-radius: 16px;
}
