/* MAISON — editorial e-commerce preview.
   Self-contained: this solution defines its own tokens and does NOT
   depend on the IOTA shell styles, so its identity can diverge freely. */

:root {
  --m-bg: #f6f1ea;
  --m-ink: #2b2520;
  --m-soft: #7a6f63;
  --m-accent: #b45309;
  --m-line: #e2d9cd;
  --m-panel: #eee6da;
  --m-panel-2: #e8dccd;
  --m-serif: "Fraunces", "Noto Serif KR", Georgia, serif;
  --m-sans: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo",
            "Noto Sans KR", -apple-system, sans-serif;
  --m-page: clamp(1rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--m-sans);
  background:
    radial-gradient(circle at 20% 0%, rgb(255 255 255 / 0.48), transparent 28rem),
    var(--m-bg);
  color: var(--m-ink);
  line-height: 1.65;
  word-break: keep-all;
}

img {
  display: block;
  max-width: 100%;
}

a { color: inherit; }

::selection {
  background: var(--m-accent);
  color: var(--m-bg);
}

/* Preview banner */
.preview-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1.5rem;
  background: var(--m-ink);
  color: #f6f1ea;
  font-size: 0.85rem;
}

.preview-banner a { color: #f0c894; text-decoration: none; }
.preview-banner a:hover { text-decoration: underline; }

/* Header */
.shop-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem var(--m-page);
  border-bottom: 1px solid var(--m-line);
  background: rgb(246 241 234 / 0.86);
  backdrop-filter: blur(18px);
}

.shop-logo {
  font-family: var(--m-serif);
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1;
  letter-spacing: 0.23em;
  text-decoration: none;
}

.shop-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.4vw, 2.2rem);
  flex-wrap: wrap;
}

.shop-nav a {
  position: relative;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--m-soft);
}

.shop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -0.35rem;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.shop-nav a:hover {
  color: var(--m-ink);
}

.shop-nav a:hover::after {
  transform: scaleX(1);
}

.shop-nav .shop-cart {
  color: var(--m-accent);
  font-weight: 600;
}

/* Hero */
.shop-hero {
  display: grid;
  grid-template-columns: minmax(21rem, 0.82fr) minmax(0, 1.18fr);
  min-height: clamp(34rem, calc(100svh - 6.8rem), 43rem);
  border-bottom: 1px solid var(--m-line);
}

.shop-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(3rem, 7vw, 7.5rem) var(--m-page);
}

.shop-hero h1 {
  font-family: var(--m-serif);
  font-weight: 400;
  font-size: clamp(2.55rem, 4vw, 5.1rem);
  line-height: 1.05;
  letter-spacing: 0;
  max-width: 8.6em;
}

.shop-hero__copy p {
  max-width: 31rem;
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
  color: var(--m-soft);
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
}

.shop-hero__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: clamp(1.8rem, 3.2vw, 2.7rem);
}

.shop-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.2rem;
  padding: 0.95rem 2.2rem;
  border: 1px solid var(--m-ink);
  background: var(--m-ink);
  color: var(--m-bg);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.shop-cta:hover {
  background: var(--m-accent);
  border-color: var(--m-accent);
  transform: translateY(-1px);
}

.shop-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--m-accent);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.shop-link::after {
  content: "";
  width: 1.65rem;
  height: 1px;
  background: currentColor;
  transition: width 0.2s ease;
}

.shop-link:hover::after {
  width: 2.2rem;
}

.shop-hero__media {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
}

.shop-hero__media::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: min(18vw, 18rem);
  background: linear-gradient(90deg, var(--m-bg), rgb(246 241 234 / 0));
  pointer-events: none;
}

.shop-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}

.shop-hero__media figcaption {
  position: absolute;
  right: var(--m-page);
  bottom: 1.35rem;
  z-index: 2;
  color: rgb(43 37 32 / 0.58);
  font-family: var(--m-serif);
  font-size: clamp(0.78rem, 1vw, 0.94rem);
}

/* Intro */
.shop-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(16rem, 1.15fr);
  gap: clamp(1rem, 6vw, 6rem);
  padding: clamp(2rem, 4.5vw, 4rem) var(--m-page);
  border-bottom: 1px solid var(--m-line);
}

.shop-intro p:first-child {
  font-family: var(--m-serif);
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  line-height: 1.25;
}

.shop-intro p:last-child {
  align-self: end;
  max-width: 45rem;
  color: var(--m-soft);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
}

/* Product grid */
.shop-grid {
  padding: clamp(3rem, 6vw, 5.5rem) var(--m-page);
  border-bottom: 1px solid var(--m-line);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.6rem);
}

.section-heading h2,
.shop-feature__copy h2 {
  font-family: var(--m-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 42rem;
  color: var(--m-soft);
}

.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
}

.product {
  min-width: 0;
}

.product__img {
  position: relative;
  display: block;
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  background:
    linear-gradient(rgb(43 37 32 / 0.02), rgb(43 37 32 / 0.06)),
    var(--m-panel);
  text-decoration: none;
}

.product__img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/maison-still-life.png");
  background-size: 260%;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.product:hover .product__img::before {
  transform: scale(1.045);
}

.product__img--01::before { background-position: 47% 56%; }
.product__img--02::before { background-position: 16% 79%; }
.product__img--03::before { background-position: 84% 34%; }
.product__img--04::before { background-position: 71% 58%; }

.product__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 0.9rem;
  color: var(--m-soft);
  font-family: var(--m-serif);
  font-size: 0.88rem;
}

.product__meta a {
  font-family: var(--m-sans);
  color: var(--m-accent);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.product h3 {
  margin-top: 0.28rem;
  font-size: clamp(0.95rem, 1.4vw, 1.08rem);
  font-weight: 500;
  line-height: 1.35;
}

.product__price {
  color: var(--m-accent);
  font-size: 0.9rem;
}

/* Editorial feature */
.shop-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.9fr);
  min-height: clamp(28rem, 54vw, 42rem);
  border-bottom: 1px solid var(--m-line);
}

.shop-feature__image {
  min-height: 24rem;
  background:
    linear-gradient(90deg, rgb(246 241 234 / 0) 68%, var(--m-bg)),
    url("../assets/maison-still-life.png") center / cover;
}

.shop-feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(3rem, 6vw, 6rem) var(--m-page);
}

.shop-feature__copy span {
  margin-bottom: 1.15rem;
  color: var(--m-accent);
  font-family: var(--m-serif);
  font-size: 0.92rem;
}

.shop-feature__copy p {
  max-width: 31rem;
  margin: 1.3rem 0 1.7rem;
  color: var(--m-soft);
}

/* About */
.shop-about {
  padding: clamp(3rem, 7vw, 6rem) var(--m-page);
}

.shop-about .section-heading {
  align-items: start;
}

.shop-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--m-line);
  border-bottom: 1px solid var(--m-line);
}

.shop-services div {
  min-height: 13rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-right: 1px solid var(--m-line);
}

.shop-services div:last-child {
  border-right: 0;
}

.shop-services dt {
  margin-bottom: 2.8rem;
  color: var(--m-accent);
  font-family: var(--m-serif);
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  font-weight: 400;
}

.shop-services dd {
  color: var(--m-soft);
  font-size: 0.96rem;
}

/* Footer */
.shop-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem var(--m-page);
  color: var(--m-soft);
  border-top: 1px solid var(--m-line);
}

.shop-footer .shop-logo {
  color: var(--m-ink);
  font-size: 1rem;
}

.shop-footer span {
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .shop-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-hero,
  .shop-feature {
    grid-template-columns: 1fr;
  }

  .shop-hero {
    min-height: 0;
  }

  .shop-hero__copy {
    min-height: 32rem;
  }

  .shop-hero__media {
    min-height: 24rem;
    border-top: 1px solid var(--m-line);
  }

  .shop-hero__media::before {
    width: 100%;
    height: 8rem;
    background: linear-gradient(180deg, var(--m-bg), rgb(246 241 234 / 0));
  }

  .shop-intro,
  .products,
  .shop-services {
    grid-template-columns: 1fr 1fr;
  }

  .shop-feature__image {
    min-height: 24rem;
    background:
      linear-gradient(180deg, rgb(246 241 234 / 0) 75%, var(--m-bg)),
      url("../assets/maison-still-life.png") center / cover;
  }

  .shop-services div:nth-child(2) {
    border-right: 0;
  }

  .shop-services div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--m-line);
  }
}

@media (max-width: 620px) {
  .preview-banner,
  .shop-footer,
  .section-heading,
  .shop-hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-banner {
    padding-inline: 1rem;
  }

  .shop-nav {
    gap: 0.75rem 1rem;
  }

  .shop-nav a {
    font-size: 0.78rem;
  }

  .shop-hero__copy {
    min-height: 29rem;
  }

  .shop-hero__media {
    min-height: 19rem;
  }

  .shop-hero__media figcaption {
    right: 1rem;
    bottom: 0.9rem;
  }

  .shop-intro,
  .products,
  .shop-services {
    grid-template-columns: 1fr;
  }

  .product__img {
    aspect-ratio: 1.25 / 1;
  }

  .shop-feature__image {
    min-height: 20rem;
  }

  .shop-services div,
  .shop-services div:nth-child(2) {
    min-height: 11rem;
    border-right: 0;
    border-top: 1px solid var(--m-line);
  }

  .shop-services div:first-child {
    border-top: 0;
  }

  .shop-services dt {
    margin-bottom: 1.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
