:root {
  --bg: #fff;
  --ink: #535353;
  --muted: #A7B6CC;
  --max: 1200px;
  --gutter: 24px;
  /* Accent color used for buttons and borders */
  --accent: #535353;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--ink);
}
body {
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: none;
}
a:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Header & Footer */
/* === Header === */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px;
  max-width: 100%;
  width: 100%;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.site-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-family: var(--body-font, Inter), sans-serif;
  font-size: 14px;
}

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

  .product-detail-content {
    flex-direction: column;
    gap: 12px;
  }

  .gallery,
  .sticky-panel {
    flex: 1 1 100%;
    width: 100%;
  }
}

.icon-btn {
  all: unset; /* resets all UA styles safely */
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  line-height: 0; /* kill img vertical spacing */
  vertical-align: middle;
}
.icon-btn img {
  width: 24px;
  height: 24px;
  display: block; /* kills baseline shift */
}
.icon-btn:hover { background:#f7f7f7; }
.icon-btn:focus { outline:2px solid var(--muted); outline-offset:2px; }

button.icon-btn::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/* Badge on cart */
.badge {
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:16px;
  height:16px;
  padding:0 4px;
  border-radius:999px;
  background:var(--ink);
  color:#fff;
  font-size:11px;
  line-height:16px;
  text-align:center;
}
/* === Footer === */
.site-footer {
  padding: 40px 48px;
  font-family: var(--body-font, Inter), sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #ffffff;
}

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

.footer-left {
  flex: 1;
}

.footer-right a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--ink);
}

.footer-right a:first-child {
  margin-left: 0;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 24px 16px;
  }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-right a {
    margin: 0 16px 8px 0;
  }
}


/* === Hero (Video Background) === */
.hero {
  position: relative;
  width: 100%;
  height: 30vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* Optional: add a subtle overlay for better text contrast */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2); /* light overlay */
  z-index: 2;
}

/* Hero text on top of video */
.hero-text {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 20px var(--gutter);
  color: var(--ink);
}

.hero-text h1 {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-text p {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  font-size: 16px;
  margin: 0;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 28px;
  }
  .hero-text p {
    font-size: 14px;
  }
}

/* Product Grid – tight, full width */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}


/* Note: duplicate .product-grid definitions removed to avoid conflicting rules */

/* Product Card flush style */
.product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  text-align: center;
  cursor: pointer;
  border: none;
}

/* === Product Card Image Hover Swap === */
.card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  /* Ensure a consistent background behind images. Without a background color,
     the underlying page may peek through when the primary image is fading out,
     creating dark edges during scroll or hover transitions. */
  background: var(--bg);
}
.badge-soldout {
  position: absolute; top: 8px; left: 8px;
  background: #111; color: #fff;
  font-size: 12px; line-height: 1;
  padding: 6px 8px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: .04em;
  opacity: .95; pointer-events: none;
  z-index: 2;
}
.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;

  /* Prevent flickering/dark edges on image transitions by hiding the
     backface of the element. This is especially helpful on some
     browsers when opacity transitions occur while scrolling. */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-img.secondary {
  opacity: 0;
  z-index: 2;
}

.product-card:hover .card-img.secondary {
  opacity: 1;
}

.product-card:hover .card-img.primary {
  opacity: 0;
}


.card-info {
  padding: 12px 8px;
}
.card-title {
  font-family: var(--body-font, Inter), sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.card-price {
  font-size: 0.8rem;
  color: var(--ink);
  margin-top: 4px;
}
.card-brand {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--muted, #777);
  font-family: 'Inter', sans-serif;
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}
/* === Product Detail Page Styles === */
.product-detail-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0px var(--gutter);
}
.product-detail-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 32px;
}
.product-breadcrumb a {
  color: var(--muted);
}
.back-btn {
  margin-left: auto;
  background: none;
  border: none;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
}
.product-detail-content {
  display: flex;
  gap: var(--gutter);
  flex-wrap: wrap;
}
.gallery {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
}
.main-image-wrapper {
  overflow: hidden;
}
.sticky-panel {
  flex: 1 1 35%;
  position: sticky;
  top: 1rem; /* Adjust based on your header height */
  align-self: flex-start;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  z-index: 10;
}

/* Responsive fallback */
@media (max-width: 768px) {
  .product-detail-layout {
    flex-direction: column;
  }

  .sticky-panel {
    position: static;
  }
}
.main-image-wrapper img {
  width: 100%;
  object-fit: cover;
  object-position: center;
  transition: object-position 3s ease;
}
.thumb-list {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.thumb-list button {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  width: 60px;
  height: 60px;
  overflow: hidden;
}
.thumb-list button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb-list button[aria-pressed="true"] {
  outline: 2px solid var(--ink);
}
.info-panel {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
}
.price-line {
  font-size: 2rem;
  color: var(--ink);
}
.price-label {
  font-size: 0.875rem;
  color: var(--muted);
}
.size-info {
  margin-top: 12px;
  font-size: 0.9rem;
}
.measurements {
  margin-top: 16px;
  font-size: 0.875rem;
}
.description {
  margin-top: 20px;
  font-size: .9rem;
}
.materials-care {
  margin-top: 24px;
}
.materials-care h3 {
  margin-bottom: 8px;
  font-size: .9rem;
}

.size-text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--brand, #535353);
}
.size-text strong {
  font-weight: 500;
}


.button-group {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 24px;
  margin-bottom: 24px;
}

.button-primary,
.button-secondary {
  flex: 1;
  padding: 12px 20px;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  height: 48px;
}

.button-primary {
  background-color: var(--ink);
  color: white;
  border: 1px solid var(--accent);
}

.button-primary:hover,
.button-primary:focus {
  background-color: #000000;
  border-color: #94a6bf;
  outline: none;
}

.button-secondary {
  background-color: transparent;
  color: var(--accent);
  /* Use defined ink color for border instead of the undefined "--in" */
  border: 1px solid var(--ink);
}

.button-secondary:hover,
.button-secondary:focus {
  background-color: rgba(167, 182, 204, 0.1);
  outline: none;
}

/* Focus outline for accessibility */
.button-primary:focus,
.button-secondary:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Responsive: Stack buttons on smaller screens */
@media (max-width: 600px) {
  .button-group {
    flex-direction: column;
  }
}

.secondary-links {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--muted);
}
.secondary-links a {
  color: var(--muted);
}
.product-section {
  margin-top: 2rem;
}

.product-section h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.product-info-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  padding-left: 1rem;
}

/* Sticky CTA (for mobile) */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg);
  padding: 12px var(--gutter);
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
  display: none;
  justify-content: center;
}
@media (max-width: 768px) {
  .product-detail-content {
    flex-direction: column;
  }
  .sticky-cta {
    display: flex;
  }
}
/* === Filter Tabs (Minimal, Underlined) === */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 24px 0;
  font-family: var(--body-font, Inter), sans-serif;
  font-size: 14px;
}

.filter-tab {
  background: none;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
  color: var(--ink);
  border-bottom: 2px solid transparent;
  transition: border 0.2s ease;
  letter-spacing: 0.5px;
}

.filter-tab:focus {
  outline: 2px var(--muted);
  outline-offset: 4px;
}

.filter-tab.active,
.filter-tab[aria-pressed="true"] {
  border-color: var(--ink);
  font-weight: 600;
}
/* === Banner === */
.site-banner {
  background: #e5e5e5;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--body-font, Inter), sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 48px 6px 12px;
  position: relative;
  overflow: hidden;
  height: 32px;
  line-height: 1.3;
}

.banner-text {
  flex: 1;
  text-align: center;
  transition: opacity 0.5s ease;
  white-space: nowrap;
}

.banner-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  color: var(--ink);
  cursor: pointer;
}

/* Brand Name above product title */
.brand-name {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
#product-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.4rem;
  margin: 0 0 8px 0;
  line-height: 1.2;
  text-transform: uppercase;
}
/* Info panel spacing tweaks */
.info-panel .description {
  margin-top: 16px;
  line-height: 1.5;
}

.info-panel .size-section,
.info-panel .materials-care {
  margin-top: 24px;
}

.info-panel .size-section h3,
.info-panel .materials-care h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Price line tweaks */
.price-line {
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.2;
}
.price-label {
  font-size: 1rem;
  color: var(--ink);
  margin-right: 6px;
}
/* Accordion styles */
.accordion {
  border-top: 1px solid #ccc;
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 0;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-trigger span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.accordion-icon {
  font-size: 1.25rem;
}

.accordion-panel {
  padding: 0.5rem 0 1rem;
  font-size: 0.875rem;
  color: var(--brand, #535353);
}

.accordion + .accordion {
  border-top: none;
  border-bottom: 1px solid #ccc;
}




.cart-button { position: relative; display:inline-flex; gap:.5rem; align-items:center; border:0; }
.cart-badge { background: var(--muted); color:#fff; min-width:1.5rem; height:1.5rem; border-radius:999px; display:inline-grid; place-items:center; font: 600 12px/1 Inter, system-ui; padding:0 .4rem; }

.cart-overlay { position:fixed; inset:0; background:rgba(0,0,0,.35); backdrop-filter:saturate(120%) blur(1px); z-index:999; }
.cart-drawer { position:fixed; top:0; right:0; width:min(90vw,420px); height:100vh; background:var(--bg); color:var(--text); box-shadow:-8px 0 24px rgba(0,0,0,.15); transform:translateX(100%); transition:transform .25s ease; z-index:1000; display:flex; flex-direction:column; }
.cart-drawer[aria-hidden="false"] { transform:translateX(0); }

.cart-drawer__header { display: flex; justify-content: space-between; padding:16px; border-bottom:1px solid #eee; }
.cart-drawer__footer { border-top:1px solid #eee; margin-top:auto; display:grid; gap:12px;padding:16px }
.cart-drawer__list { padding:12px 16px; overflow:auto; }

.cart-line { display:grid; grid-template-columns:64px 1fr auto; gap:12px; padding:10px 0; border-bottom:1px dotted #eee; }
.cart-line img { width:64px; height:80px; object-fit:cover; border-radius:8px; }
.cart-line__title { font: 500 14px/1.3 Inter, system-ui; }
.cart-line__meta { font: 12px/1.3 Inter, system-ui; opacity:.7; }
.cart-line__controls { display:flex; align-items:center; gap:6px; }
.qty { display:inline-flex; align-items:center; border:1px solid #ddd; border-radius:8px; }
.qty button { width:28px; height:28px; border:0; background:#f7f7f7; }
.qty input { width:36px; text-align:center; border:0; outline:none; }
.line-total { font-weight:600; }

.btn-primary { background: var(--text); color:#fff; border:0; padding:12px 14px; border-radius:10px; }
.btn-primary:focus, .btn-ghost:focus, .cart-close:focus { outline:2px solid var(--muted); outline-offset:2px; }
.btn-ghost { background:transparent; border:1px solid #ddd; padding:10px 14px; border-radius:10px; }
.btn-disabled { opacity: .5; cursor: not-allowed; }
.cart-close { background:transparent; border:0; font-size:24px; line-height:1; }
.cart-subtotal { display:flex; justify-content:space-between; }
.empty { padding:28px 16px; text-align:center; opacity:.7; }

/* optional cleanup */
.qty-input { width: 38px; text-align: center; }
[data-qty-inc][disabled] { opacity: .4; cursor: not-allowed; }

.cart-line__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.remove-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: #535353;          /* body text */
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
}
.remove-link:hover { text-decoration: underline; opacity: .85; }
.remove-link:focus-visible {
  outline: 2px solid #A7B6CC;
  outline-offset: 2px;
  border-radius: 6px;
}
/* === AI summary + FAQ: sensible side padding, centered text, and max-width === */
.ai-summary,
.homepage-faq {
  padding-left: 1rem;           /* small side padding */
  padding-right: 1rem;
  padding-top: 1.5rem;         /* separation from hero */
  padding-bottom: 0.6rem;
  box-sizing: border-box;
  max-width: 1100px;           /* keep content readable on large screens */
  margin-left: auto;
  margin-right: auto;
}

/* keep TL;DR text centered and readable */
.ai-summary .ai-tldr {
  display: inline-block;
  max-width: 780px;
  margin: 0 auto;
}

/* give the accordion panel inner padding (so content doesn't touch edges) */
.homepage-faq .accordion-panel,
.homepage-faq .accordion-panel .accordion-content {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* smaller devices: slightly reduce padding */
@media (max-width: 480px) {
  .ai-summary,
  .homepage-faq {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 1rem;
  }
}


/* Status (success / cancel) pages */
.status-page{min-height:calc(100vh - 160px);display:grid;place-items:center;padding:24px var(--gutter);}
.status-wrap{width:min(720px,100%);text-align:center;}
.status-eyebrow{font:600 12px/1 Inter,system-ui;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:8px;}
.status-title{font:700 clamp(22px,3vw,32px)/1.15 Inter,system-ui;color:var(--ink);margin:0 0 8px;letter-spacing:-.2px;}
.status-desc{margin:0 0 20px;color:var(--ink);opacity:.9;}
.status-actions{display:inline-flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:8px;}
.status-actions a.button-primary,.status-actions a.button-secondary{min-width:220px;text-decoration:none;}
.status-card{text-align:left;border:1px solid #eee;border-radius:12px;padding:16px;margin-top:20px;background:#fff;}
.status-card h3{font:600 14px/1 Inter,system-ui;text-transform:uppercase;letter-spacing:.06em;margin:0 0 10px;}
.status-list{display:grid;gap:6px;font-size:14px;}
.status-list strong{font-weight:600;}

/* ---- iOS Safari blue tint fix (buttons, dropdown/accordion) ---- */
button,
.accordion-trigger,
summary,
select {
  -webkit-appearance: none; /* strip native iOS styling */
  appearance: none;
  background: transparent;  /* keep your minimalist look */
  color: var(--ink);         /* match your theme text color */
  border: none;              /* your buttons already use custom styles */
}

/* remove blue tap flash */
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

/* keep clear, brand-consistent focus states for accessibility */
button:focus-visible,
.accordion-trigger:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--muted);
  outline-offset: 2px;
  border-radius: 6px;
}

/* keep your accordion +/– icon tidy when state changes (optional) */
.accordion-trigger .accordion-icon {
  display: inline-block;
  transition: transform .25s ease;
}
.accordion[open] .accordion-icon,
.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg); /* + becomes × */
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.remove-link { background:none; border:none; padding:0; text-decoration:underline; cursor:pointer; }

:root { --ink: #535353; --control-h: 48px; } /* 필요시 조정 */

.cart-promo {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap; /* 작을 때 줄바꿈 */
}

.promo-input {
  flex: 1;
  height: var(--control-h);
  padding: 0 12px;
  border: 1px solid #E5E7EB;      /* 은은한 그레이 보더 */
  border-radius: 10px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.promo-input:focus { outline: 2px solid var(--ink); outline-offset: 2px; }

.promo-apply-link {
  line-height: var(--control-h);
  height: var(--control-h);
  font-weight: 600;
  color: var(--ink);               /* 파랑 X, 브랜드 블랙톤 */
  cursor: pointer;
  padding: 0 6px;                  /* 클릭 영역 확보 */
  border-radius: 6px;
}
.promo-apply-link:hover { opacity: .85; }
.promo-apply-link:focus { outline: 2px solid var(--ink); outline-offset: 2px; }

.promo-note {
  width: 100%;
  font-size: 14px;
  color: var(--ink);
}
.promo-remove {
  background: none; border: 0; padding: 0;
  text-decoration: underline; color: var(--ink); cursor: pointer;
  margin-left: 8px;
}

/* 접근성용 */
.visually-hidden {
  position: absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
/* ===== 모바일 전용 스타일 ===== */
@media (max-width: 768px) {
  /* 1) Breadcrumb: 한 줄/가로스크롤/말줄임 */
  .breadcrumb, nav[aria-label="Breadcrumb"] {
    position: sticky; top: 0; z-index: 15;
    background: #fff; border-bottom: 1px solid #eee;
    padding: 8px 12px;
  }
  .breadcrumb .trail, nav[aria-label="Breadcrumb"] > * {
    display: flex; align-items: center; gap: 6px;
    overflow-x: auto; white-space: nowrap;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .breadcrumb .trail::-webkit-scrollbar { display: none; }
  .breadcrumb .current, .breadcrumb [data-bc-current] {
    max-width: 52vw; overflow: hidden; text-overflow: ellipsis; display: inline-block;
  }

  /* 2) 갤러리: 화면 가득 가로 슬라이드 */
  body.pdp-mobile .pdp-gallery {
    position: relative;
    height: calc(100svh - 48px); /* 상단 breadcrumb 높이에 맞춰 조정 */
    background: #fff;
  }
  body.pdp-mobile .pdp-track {
    height: 100%;
    display: flex;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  body.pdp-mobile .pdp-slide {
    flex: 0 0 100vw; height: 100%;
    scroll-snap-align: center;
    display: grid; place-items: center;
    background: #fff;
  }
  body.pdp-mobile .pdp-slide img {
    width: 100%; height: 100%; object-fit: contain;
  }

  /* 스크롤 힌트(양쪽 그라데이션) */
  body.pdp-mobile .pdp-hint {
    position: absolute; top: 0; bottom: 0; width: 44px; z-index: 5; pointer-events: none;
    background: linear-gradient(to right, rgba(255,255,255,.9), rgba(255,255,255,0));
  }
  body.pdp-mobile .pdp-hint--left { left: 0; transform: scaleX(-1); display: none; }
  body.pdp-mobile .pdp-hint--right { right: 0; }

  /* 인디케이터 점 */
  body.pdp-mobile .pdp-dots {
    position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
    display: inline-flex; gap: 6px; z-index: 6;
  }
  body.pdp-mobile .pdp-dots button {
    width: 6px; height: 6px; border-radius: 999px; border: 0;
    background: #C9D1E4;
  }
  body.pdp-mobile .pdp-dots button[aria-current="true"] { background: #535353; }

  /* 정보 섹션은 갤러리 아래로 자연스럽게 등장 */
  body.pdp-mobile .pdp-info { padding: 16px 16px 96px; background:#fff; }

  /* 기존 sticky buy 버튼과 충돌 방지 */
  :root { --sticky-buy-h: 64px; } /* 실제 높이에 맞춰 조정 */
  body.pdp-mobile .pdp-info { padding-bottom: calc(24px + var(--sticky-buy-h)); }
  .buy-now-sticky, .sticky-atc { z-index: 40; }

  /* 기존 이미지 리스트는 모바일에선 숨김 (JS로 갤러리 생성 후) */
  body.pdp-mobile .product-images--original { display: none !important; }
}
/* ===== 모바일 PDP 보정 ===== */
@media (max-width: 768px) {
  /* ① 브레드크럼을 상단 고정 + 말줄임 */
  .product-breadcrumb {
    position: sticky;
    top: 0;                 /* 배너/헤더 위에는 이미 포함되어 있으니 0 */
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 8px 12px;
    margin: 0 0 8px 0;
  }
  .product-breadcrumb #breadcrumb-title {
    display: inline-block;
    max-width: 55vw;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }

  /* ② 갤러리: 실제 상단 높이만큼 뺀 만큼만 세로 높이 확보 + 풀블리드 */
  body.eh-pdp-mobile .eh-gallery {
    height: calc(100svh - var(--eh-top, 0px));
    width: 100vw;
    /* product-detail-main의 좌우 padding을 제거해 ‘풀블리드’ */
    margin-left: calc(-1 * var(--gutter));
    margin-right: calc(-1 * var(--gutter));
  }

  /* ③ 하단 점(인디케이터)을 이미지 위에 겹치게 조금 위로 */
  body.eh-pdp-mobile .eh-dots {
    bottom: 16px; /* 기존 12px → 조금 올림 */
  }
}
/* === einHaru mobile PDP fixes (full-bleed + uniform image height) === */
@media (max-width: 768px) {
  /* 0) product-detail 컨테이너의 좌우 패딩 제거: 내부 섹션이 직접 패딩을 가짐 */
  body.eh-pdp-mobile .product-detail-main {
    padding-left: 0;
    padding-right: 0;
  }

  /* 1) Breadcrumb: 상단 고정 + 풀블리드(좌우 여백 제거) */
  body.eh-pdp-mobile .product-breadcrumb {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid #eee;

    /* full-bleed trick */
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);

    /* 내부 여백만 얇게 */
    padding: 8px 12px;
    margin-bottom: 0;
  }
  body.eh-pdp-mobile .product-breadcrumb #breadcrumb-title {
    display: inline-block;
    max-width: 56vw;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }

  /* 2) 갤러리: 브레드크럼 높이만큼 뺀 화면높이 사용 + 풀블리드 */
  body.eh-pdp-mobile .eh-gallery {
    height: calc(100svh - var(--eh-top, 0px));
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    background: #fff;
  }

  /* 3) 스크롤 인디케이터는 이미지 위에 겹치게 */
  body.eh-pdp-mobile .eh-dots { bottom: 14px; }

  /* 4) 정보 섹션: 풀블리드 + 내부 패딩, sticky CTA 높이만큼 하단 여백 */
  body.eh-pdp-mobile [data-product-info] {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 16px;
    padding-bottom: calc(24px + var(--eh-sticky-h, 64px));
    background: #fff;
  }

  /* 5) 모바일 이미지 높이 통일 (자동 크롭) */
  body.eh-pdp-mobile .eh-slide { background: #efefef; }
  body.eh-pdp-mobile .eh-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;   /* ← contain → cover 로 변경하여 높이 통일 */
    object-position: center;
    display: block;
  }
}
/* === einHaru mobile PDP micro-fixes === */
@media (max-width: 768px) {
  /* 1) kill default figure margins so no extra gaps appear */
  body.eh-pdp-mobile .eh-slide { margin: 0; }

  /* 2) make sure the gallery is tight to the breadcrumb */
  body.eh-pdp-mobile .product-breadcrumb { margin-bottom: 0; }
  body.eh-pdp-mobile .eh-gallery { margin-top: 0; padding-top: 0; }

  /* 3) breadcrumb: single-line with ellipsis */
  body.eh-pdp-mobile .product-breadcrumb #breadcrumb-title {
    display: inline-block;
    max-width: 56vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }

  /* 4) keep image fully visible (no cropping) and dots overlayed */
  body.eh-pdp-mobile .eh-slide img { object-fit: contain; }
  body.eh-pdp-mobile .eh-dots { bottom: 14px; }
}

/* === PDP: Size box (compact, consistent) === */
.size-box { margin-top: 14px; }
.size-box-title { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.size-chip-row { display: grid; grid-template-columns: repeat(4, minmax(44px, 1fr)); gap: 8px; }
.size-chip {
  display: grid; place-items: center;
  height: 40px; border: 1px solid #E5E7EB; border-radius: 6px;
  font: 600 13px/1 Inter, system-ui; color: var(--ink, #111);
  user-select: none; background: #fff;
}
.size-chip[aria-pressed="true"] { border-color: var(--ink, #111); }
.size-chip[aria-disabled="true"] {
  color: #9AA2AE; border-style: dashed; background: #F7F7F7; pointer-events: none;
}
.size-note { margin-top: 6px; font-size: 12px; color: var(--muted, #6b7280); }

