/* ==========================================================================
   Tailody International — design system
   Ported from tailody.com (Cafe24 KR store) visual identity:
   olive #666844 wordmark · white base · serif English display headings ·
   coral sale accent #EF7964 · blue price #3567D6 · left vertical logo rail
   ========================================================================== */

:root {
  --olive: #666844;
  --olive-ink: #43452e;
  --olive-soft: #8b8d6a;
  --coral: #ef7964;
  --price: #3567d6;
  --star: #f5a94b;
  --ink: #22221e;
  --gray: #73736a;
  --faint: #a6a69c;
  --paper: #ffffff;
  --cream: #f7f6f1;
  --sage: #eaede3;
  --line: #e5e3db;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --rail: 0px;
  --max: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }

/* ---------- header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px);
}
.site-header.solid { position: static; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-logo img { width: 200px; height: auto; }
.on-hero .header-logo img { filter: brightness(0) invert(1) drop-shadow(0 1px 6px rgba(0, 0, 0, 0.25)); }
.main-nav { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); margin-left: auto; }
.main-nav a {
  font-size: 12.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink);
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.main-nav a:hover { border-bottom-color: var(--ink); }
.main-nav a.nav-cta {
  border: 1px solid var(--olive); color: var(--olive); padding: 9px 18px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a.nav-cta:hover { background: var(--olive); color: #fff; }
.hero + * { position: relative; }
.on-hero .main-nav a { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.25); }
.on-hero .main-nav a.nav-cta { border-color: #fff; color: #fff; }
.on-hero .main-nav a.nav-cta:hover { background: #fff; color: var(--ink); text-shadow: none; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: min(86vh, 900px); min-height: 520px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-caption {
  position: absolute; left: 4vw; bottom: 64px; z-index: 5; color: #fff;
  max-width: 720px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero-caption .eyebrow { color: #fff; opacity: 0.92; }
.hero-caption h1 {
  font-family: var(--serif); font-size: clamp(24px, 2.9vw, 38px); font-weight: 700;
  line-height: 1.3; margin-top: 10px; letter-spacing: 0.01em;
}
.hero-dots {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; gap: 10px;
}
.hero-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(255, 255, 255, 0.55);
}
.hero-dots button.active { background: #fff; }
.hero-pause {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.25); color: #fff; font-size: 9px; line-height: 1; padding: 0;
}

/* ---------- shared section bits ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.eyebrow {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--olive-soft);
}
.sec-head { text-align: center; margin-bottom: clamp(34px, 5vw, 56px); }
.sec-head h2 {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 700;
  letter-spacing: 0.01em; margin-top: 8px;
}
.sec-head .sub { color: var(--gray); margin-top: 10px; font-size: 14.5px; }
.text-link {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 3px;
}
.text-link:hover { color: var(--olive); border-color: var(--olive); }
.btn {
  display: inline-block; background: var(--olive); color: #fff; border: 1px solid var(--olive);
  padding: 15px 34px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.2s;
}
.btn:hover { background: var(--olive-ink); border-color: var(--olive-ink); }
.btn.ghost { background: transparent; color: var(--olive); }
.btn.ghost:hover { background: var(--olive); color: #fff; }

/* ---------- brand statement ---------- */
.brand-note { text-align: center; }
.brand-note .eyebrow { color: var(--olive-soft); }
.brand-note h2 {
  font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); font-weight: 700;
  color: var(--olive-ink); margin: 14px 0 22px;
}
.brand-note p { max-width: 620px; margin: 0 auto; color: var(--gray); }
.brand-note .text-link { display: inline-block; margin-top: 26px; }

.brand-band { height: clamp(320px, 48vw, 560px); overflow: hidden; }
.brand-band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- product cards ---------- */
.prd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 20px; }
.prd-card .thumb {
  aspect-ratio: 1; overflow: hidden; background: var(--cream); border: 1px solid var(--line);
}
.prd-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.prd-card:hover .thumb img { transform: scale(1.04); }
.prd-card .p-name { font-size: 13.5px; margin-top: 12px; text-align: center; color: var(--ink); }
.prd-card .p-price { text-align: center; margin-top: 5px; font-size: 13.5px; }
.price-was { color: var(--faint); text-decoration: line-through; margin-right: 7px; font-size: 12.5px; }
.price-now { color: var(--price); font-weight: 700; }
.price-off { color: var(--coral); font-weight: 600; margin-left: 6px; font-size: 12px; }

/* ---------- clip (video) ---------- */
.clip { background: var(--cream); }
.clip-cols { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.clip-copy h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 700; margin: 10px 0 18px; }
.clip-copy p { color: var(--gray); max-width: 46ch; }
.clip-copy .text-link { display: inline-block; margin-top: 24px; }
.clip-video { position: relative; aspect-ratio: 16 / 9; background: #000; }
.clip-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- reviews ---------- */
.rev-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 340px);
  gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory;
}
.rev-row::-webkit-scrollbar { height: 6px; }
.rev-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.rev-card {
  scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line);
  padding: 26px 24px 22px; display: flex; flex-direction: column; gap: 12px;
}
.rev-stars { color: var(--star); font-size: 14px; letter-spacing: 2px; }
.rev-card blockquote { font-size: 13.8px; color: var(--ink); line-height: 1.75; flex: 1; }
.rev-meta { font-size: 12px; color: var(--faint); border-top: 1px solid var(--line); padding-top: 12px; }
.rev-meta .rev-prd { color: var(--olive); }

/* ---------- hot keyword ---------- */
.keyword { background: var(--sage); }
.kw-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.kw-tabs button {
  border: 1px solid var(--line); background: var(--paper); color: var(--gray);
  border-radius: 999px; padding: 10px 22px; font-size: 13.5px; transition: all 0.2s;
}
.kw-tabs button.active { background: var(--olive); border-color: var(--olive); color: #fff; }
.kw-panel { display: none; }
.kw-panel.active { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.kw-card { text-align: center; }
.kw-card .round {
  width: min(100%, 300px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  overflow: hidden; background: radial-gradient(circle at 30% 25%, #fdfdfb, #dfe4d2);
}
.kw-card .round img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.kw-card:hover .round img { transform: scale(1.05); }
.kw-card .p-name { margin-top: 16px; font-size: 13.5px; }

/* ---------- instagram ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.insta-grid a { aspect-ratio: 1; overflow: hidden; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.insta-grid a:hover img { transform: scale(1.05); }
.insta-cta { text-align: center; margin-top: 30px; }

/* ---------- footer ---------- */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); margin-top: clamp(60px, 8vw, 100px); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; }
.foot-cols { display: grid; grid-template-columns: 2fr 1.2fr 1fr; gap: 40px; }
.foot-logo img { width: 160px; }
.foot-cols h3 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--olive); margin-bottom: 14px; }
.foot-cols p, .foot-cols li { font-size: 13px; color: var(--gray); line-height: 1.9; }
.foot-cols ul { list-style: none; }
.foot-cols a:hover { color: var(--olive); }
.foot-tel { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.foot-legal {
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px;
  font-size: 11.5px; color: var(--faint); line-height: 1.9;
}

/* ---------- shop page ---------- */
.page-head { text-align: center; padding: clamp(48px, 7vw, 84px) 0 0; }
.page-head h1 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; }
.page-head .sub { color: var(--gray); margin-top: 10px; }
.filter-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 30px 0 44px; }
.filter-chips button {
  border: 1px solid var(--line); background: var(--paper); color: var(--gray);
  border-radius: 999px; padding: 9px 20px; font-size: 13px;
}
.filter-chips button.active { background: var(--olive); border-color: var(--olive); color: #fff; }
.prd-card[hidden] { display: none; }

/* ---------- product detail ---------- */
.crumbs { font-size: 12px; color: var(--faint); padding-top: 26px; }
.crumbs a:hover { color: var(--olive); }
.pd-top { display: grid; grid-template-columns: 6.4fr 5fr; gap: clamp(30px, 5vw, 70px); padding: 30px 0 0; }
.pd-gallery .main-img { border: 1px solid var(--line); background: var(--cream); aspect-ratio: 1; }
.pd-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-top: 10px; }
.pd-thumbs button { border: 1px solid var(--line); background: none; padding: 0; aspect-ratio: 1; overflow: hidden; }
.pd-thumbs button.active { border-color: var(--olive); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info .eyebrow { display: block; margin-bottom: 8px; }
.pd-info h1 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.3; }
.pd-tagline { color: var(--gray); margin-top: 12px; font-size: 14.5px; }
.pd-price { margin: 22px 0 4px; font-size: 21px; }
.pd-price .price-was { font-size: 15px; }
.pd-price-note { font-size: 12px; color: var(--faint); margin-bottom: 22px; }
.pd-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.pd-cta-note { font-size: 12.5px; color: var(--gray); margin-top: 8px; }
.pd-kr-link { font-size: 12.5px; color: var(--faint); text-decoration: underline; }
.pd-kr-link:hover { color: var(--olive); }
.pd-options { margin-top: 28px; border-top: 1px solid var(--line); }
.pd-options h2, .pd-options h3, .pd-block h2 { font-family: var(--serif); font-weight: 700; }
.pd-options h2, .pd-options h3 { font-size: 16px; padding: 16px 0 8px; }
.pd-options li { font-size: 13.5px; color: var(--gray); list-style: none; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.pd-block { padding-top: clamp(44px, 6vw, 72px); }
.pd-block h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 20px; }
.pd-desc p { max-width: 76ch; color: var(--ink); margin-bottom: 16px; }
.pd-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 34px; }
.pd-features li { padding-left: 26px; position: relative; color: var(--ink); font-size: 14px; }
.pd-features li::before { content: ""; position: absolute; left: 0; top: 8px; width: 12px; height: 2px; background: var(--olive); }
.spec-table { width: 100%; border-collapse: collapse; max-width: 760px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 14px; font-size: 13.5px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { color: var(--olive-ink); width: 220px; font-weight: 600; background: var(--cream); }
.spec-table td { color: var(--gray); }
.pd-photos { display: grid; gap: 14px; max-width: 900px; }
.pd-photos img { border: 1px solid var(--line); }
.notice-box { background: var(--cream); border: 1px solid var(--line); padding: 22px 26px; max-width: 760px; font-size: 13px; color: var(--gray); }
.notice-box strong { color: var(--ink); }
.cta-band { background: var(--sage); text-align: center; padding: clamp(48px, 7vw, 80px) 20px; margin-top: clamp(48px, 7vw, 80px); }
.cta-band h2 { font-family: var(--serif); font-size: clamp(24px, 2.8vw, 34px); font-weight: 700; margin-bottom: 12px; }
.cta-band p { color: var(--gray); margin-bottom: 26px; }

/* ---------- about ---------- */
.about-hero { height: clamp(340px, 52vw, 600px); overflow: hidden; position: relative; }
.about-hero img { width: 100%; height: 100%; object-fit: cover; }
.about-hero .cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.35); text-align: center; padding: 0 20px;
}
.about-hero .cap h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 60px); font-weight: 700; }
.about-hero .cap p { margin-top: 10px; letter-spacing: 0.08em; }
.about-sec { max-width: 700px; margin: 0 auto; text-align: center; }
.about-sec h2 { font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: var(--olive-ink); margin: 12px 0 18px; }
.about-sec p { color: var(--gray); }
.mv-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 40px auto 0; text-align: left; }
.mv-cards .mv { background: var(--cream); border: 1px solid var(--line); padding: 32px 30px; }
.mv h3 { font-family: var(--serif); font-size: 18px; color: var(--olive); margin-bottom: 10px; }
.mv p { font-size: 14px; }
.ceo-quote { background: var(--sage); }
.ceo-quote blockquote {
  max-width: 760px; margin: 0 auto; text-align: center;
  font-family: var(--serif); font-size: clamp(18px, 2.2vw, 24px); line-height: 1.75; color: var(--olive-ink);
}
.ceo-quote figcaption { text-align: center; margin-top: 20px; font-size: 13px; color: var(--gray); }

/* ---------- support / faq ---------- */
.faq-wrap { max-width: 800px; margin: 0 auto; }
.faq-group h2 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin: 44px 0 8px; color: var(--olive-ink); }
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary {
  cursor: pointer; padding: 16px 30px 16px 2px; font-size: 14.5px; font-weight: 600; color: var(--ink);
  list-style: none; position: relative;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 6px; color: var(--olive); font-size: 18px; }
details.faq[open] summary::after { content: "–"; }
details.faq .a { padding: 0 2px 18px; color: var(--gray); font-size: 14px; max-width: 72ch; }

/* ---------- contact ---------- */
.contact-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.quote-box { background: var(--cream); border: 1px solid var(--line); padding: 34px 32px; }
.quote-box h2 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.quote-box .hint { font-size: 13px; color: var(--gray); margin-bottom: 22px; }
.qb-field { margin-bottom: 16px; }
.qb-field label { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--olive); margin-bottom: 6px; }
.qb-field input, .qb-field select, .qb-field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 12px 14px;
  font-family: inherit; font-size: 14px; color: var(--ink);
}
.qb-field textarea { min-height: 110px; resize: vertical; }
.contact-info h2 { font-family: var(--serif); font-size: 22px; margin-bottom: 16px; }
.contact-info dl { display: grid; grid-template-columns: 130px 1fr; row-gap: 12px; font-size: 14px; }
.contact-info dt { color: var(--olive); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.contact-info dd { color: var(--gray); }

/* ---------- quote modal ---------- */
.qm-overlay {
  position: fixed; inset: 0; background: rgba(24, 24, 20, 0.55); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.qm {
  background: var(--paper); width: min(520px, 100%); max-height: 92vh; overflow-y: auto;
  padding: 34px 32px 30px; position: relative; border-top: 3px solid var(--olive);
}
.qm h2 { font-family: var(--serif); font-size: 22px; margin-bottom: 6px; }
.qm .qm-hint { font-size: 12.5px; color: var(--gray); margin-bottom: 20px; }
.qm-close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0;
  font-size: 22px; line-height: 1; color: var(--gray); padding: 6px;
}
.qm-close:hover { color: var(--ink); }
.qm .qb-field { margin-bottom: 14px; }
.qm-status { font-size: 13.5px; margin-top: 12px; }
.qm-status.ok { color: var(--olive); }
.qm-status.err { color: var(--coral); }
body.qm-open { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .prd-grid { grid-template-columns: repeat(3, 1fr); }
  .pd-top { grid-template-columns: 1fr; }
  .clip-cols { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .site-header { position: sticky; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 18px; }
  .header-logo img { width: 150px; }
  .on-hero .header-logo img { filter: none; }
  .on-hero .main-nav a { color: var(--ink); text-shadow: none; }
  .on-hero .main-nav a.nav-cta { border-color: var(--olive); color: var(--olive); }
  .nav-toggle {
    display: block; margin-left: auto; background: none; border: 0; width: 40px; height: 40px; position: relative;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink); transition: transform 0.2s;
  }
  .nav-toggle span { top: 19px; }
  .nav-toggle span::before { top: -7px; left: 0; right: 0; }
  .nav-toggle span::after { top: 7px; left: 0; right: 0; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: flex-start; gap: 0; border-bottom: 1px solid var(--line);
    padding: 10px 18px 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 13px; }
  .hero { height: 72vh; }
  .hero-caption { left: 20px; right: 20px; bottom: 48px; }
  .prd-grid, .kw-panel.active { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .foot-cols { grid-template-columns: 1fr; gap: 28px; }
  .mv-cards, .contact-cols { grid-template-columns: 1fr; }
  .pd-features { grid-template-columns: 1fr; }
  .pd-thumbs { grid-template-columns: repeat(6, 1fr); }
  .insta-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .spec-table th { width: 130px; }
}
@media (max-width: 480px) {
  .prd-grid { grid-template-columns: repeat(2, 1fr); }
  .kw-panel.active { grid-template-columns: 1fr; }
}
