/* ===========================================
   Celebrity Room Co., Ltd.
   Design: Warm, Feminine, Korean Fashion
   Font: DM Sans + Noto Sans Thai
   =========================================== */

/* === Design Tokens === */
:root {
  --ink: #2a211b;
  --muted: #786c61;
  --paper: #fffaf3;
  --cream: #f3eadf;
  --blush: #fff0f6;
  --pink-line: #f0cddd;
  --berry: #a82f6f;
  --rose: #cb6f9b;
  --sand: #d9c2a5;
  --caramel: #a7774f;
  --coffee: #4d3328;
  --line: #e6d9cc;
  --white: #ffffff;

  --shadow-sm: rgba(42,33,27,0.04) 0px 1px 3px;
  --shadow-md: rgba(42,33,27,0.06) 0px 4px 12px;
  --shadow-lg: rgba(42,33,27,0.08) 0px 8px 28px, rgba(42,33,27,0.04) 0px 1px 2px;
  --shadow-xl: rgba(42,33,27,0.12) 0px 20px 60px, rgba(42,33,27,0.06) 0px 4px 12px;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font: 'DM Sans', 'Noto Sans Thai', Arial, Tahoma, sans-serif;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin-top: 0; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 64px);
  background: rgba(255, 250, 243, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: padding 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  padding: 6px clamp(18px, 4vw, 64px);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  transition: width 0.3s, height 0.3s;
}
.scrolled .brand-logo {
  width: 52px;
  height: 52px;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 32px);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}
nav a { transition: color 0.2s; }
nav a:hover { color: var(--coffee); }

/* === Hero === */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  padding: clamp(40px, 7vw, 90px) clamp(18px, 5vw, 84px);
  min-height: 650px;
  background:
    radial-gradient(circle at 18% 24%, rgba(217, 194, 165, 0.34), transparent 26%),
    linear-gradient(120deg, #fffaf3 0%, #f7eee4 54%, #efe0d2 100%);
}

.hero-copy { max-width: 620px; }

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--caramel);
  background: rgba(167,119,79,0.1);
  border: 1px solid rgba(167,119,79,0.2);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lead {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.5rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-trust span {
  font-size: 0.85rem;
  color: var(--caramel);
  font-weight: 600;
}

/* === Buttons === */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}
.button:hover { transform: translateY(-2px); }
.button.small { min-height: 40px; padding: 8px 16px; font-size: 13px; }

.button.primary {
  color: var(--white);
  background: var(--coffee);
}
.button.primary:hover { background: #3d2820; box-shadow: 0 4px 16px rgba(77,51,40,0.3); }

.button.secondary {
  color: var(--coffee);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--sand);
}
.button.secondary:hover { background: var(--white); }

.messenger-btn {
  color: var(--white);
  background: #006AFF;
}
.messenger-btn:hover { background: #0055CC; box-shadow: 0 4px 16px rgba(0,106,255,0.3); }

.line-btn {
  color: var(--white);
  background: #06C755;
}
.line-btn:hover { background: #05a848; box-shadow: 0 4px 16px rgba(6,199,85,0.3); }

/* === Hero Gallery === */
.hero-gallery {
  position: relative;
  min-height: 560px;
}
.hero-img {
  position: absolute;
  object-fit: cover;
  border: 10px solid rgba(255,255,255,0.74);
  box-shadow: var(--shadow-xl);
  transition: transform 0.4s ease;
}
.hero-img:hover { transform: scale(1.02); }
.hero-img.large {
  right: 14%;
  top: 0;
  width: min(58%, 410px);
  height: 560px;
  border-radius: 120px 120px 8px 8px;
}
.hero-img.small {
  width: min(38%, 250px);
  height: 310px;
  border-radius: var(--radius-md);
}
.hero-img.top { left: 0; top: 54px; }
.hero-img.bottom { right: 0; bottom: 20px; }

/* === Trust Strip === */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff7ef;
}
.trust-strip div {
  padding: 22px clamp(18px, 4vw, 44px);
  border-right: 1px solid var(--line);
}
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong { display: block; }
.trust-strip span { display: block; color: var(--muted); }

/* === Shop Section === */
.shop-section {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 84px);
  background: linear-gradient(180deg, #fff8fb 0%, #fff 100%);
}

.shop-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--caramel);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.eyebrow.light { color: rgba(255,255,255,0.6); }

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h2.light { color: var(--white); }
h2 + p { color: var(--muted); margin-bottom: 0; }
h2.light + p.light { color: rgba(255,255,255,0.7); }

/* === Shop Toolbar === */
.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}
.search-box input,
.sort-box select {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--pink-line);
  border-radius: 18px;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input:focus,
.sort-box select:focus {
  outline: none;
  border-color: var(--berry);
  box-shadow: 0 0 0 3px rgba(168,47,111,0.1);
}
.product-count {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #7f1451;
  background: var(--white);
  border: 1px solid var(--pink-line);
  border-radius: 18px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.tab {
  min-height: 48px;
  padding: 0 20px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--pink-line);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab:hover { border-color: var(--berry); color: var(--berry); }
.tab.active {
  color: var(--white);
  background: var(--berry);
  border-color: var(--berry);
}

/* === Product Grid === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  overflow: hidden;
  border: 1px solid var(--pink-line);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-image-wrap {
  position: relative;
  background: var(--blush);
}
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card:hover .product-image-wrap img { transform: scale(1.03); }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  color: var(--white);
  background: var(--berry);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(168,47,111,0.25);
}

.product-info { padding: 18px; }
.sku {
  display: block;
  margin-bottom: 6px;
  color: #9a7889;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.product-info h3 { font-size: 18px; margin-bottom: 4px; }
.product-info p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.english-name { margin-bottom: 10px !important; color: #6c5561 !important; font-size: 13px !important; }

.price-row { margin-top: 18px; }
.price-row strong { display: block; color: var(--berry); font-size: 24px; line-height: 1; }
.price-row span { color: #7e596b; font-size: 12px; letter-spacing: 0.1em; }

.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.source-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: #7f1451;
  background: var(--white);
  border: 1px solid var(--pink-line);
}
.source-button:hover { background: var(--blush); }
.no-results {
  grid-column: 1 / -1;
  padding: 42px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--pink-line);
  border-radius: var(--radius-lg);
  text-align: center;
}

/* === About Section === */
.about-section {
  padding: clamp(48px, 8vw, 100px) clamp(18px, 5vw, 84px);
  background: var(--cream);
}
.about-intro { max-width: 680px; margin-bottom: 3rem; }
.about-lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 580px;
}

.about-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sand);
}
.about-card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.about-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--coffee); }
.about-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; margin: 0; }

.detail-panel {
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 34px);
}
.detail-panel h3 { font-size: 1.1rem; margin-bottom: 1rem; color: var(--coffee); }
dl { margin: 0; }
dt { font-weight: 700; color: var(--caramel); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; }
dd { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }
.address-label { padding-top: 0.75rem; border-top: 1px solid var(--line); margin-top: 0.5rem; }
.address-dd { font-size: 0.88rem !important; line-height: 1.5; }
.map-link { color: var(--berry); font-weight: 600; font-size: 0.85rem; display: inline-block; margin-top: 0.3rem; transition: color 0.2s; }
.map-link:hover { color: var(--coffee); }

.inquiry-panel p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.inquiry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* === Reviews Section === */
.reviews-section {
  padding: clamp(48px, 8vw, 100px) clamp(18px, 5vw, 84px);
  background: linear-gradient(135deg, var(--coffee) 0%, #3d2820 100%);
  text-align: center;
}
.reviews-header { max-width: 600px; margin: 0 auto 3rem; }
.reviews-header p { margin-bottom: 0; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.review-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: left;
  transition: all 0.3s;
}
.review-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}
.review-stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.review-card p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--caramel);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.review-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.15);
}
.review-author strong {
  display: block;
  color: var(--white);
  font-size: 0.88rem;
}
.review-author span {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
}

/* === Contact Section === */
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 1.5rem;
  align-items: start;
  padding: clamp(48px, 8vw, 90px) clamp(18px, 5vw, 84px);
  background: var(--cream);
}
.contact-content { max-width: 620px; }
.contact-content h2 { color: var(--ink); margin-bottom: 0.75rem; }
.contact-content > p { color: var(--muted); margin-bottom: 1.5rem; }

.contact-panels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-panels .detail-panel {
  background: var(--white);
}

.contact-image-wrap {
  width: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  max-height: 480px;
  position: sticky;
  top: 6rem;
}
.contact-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Footer === */
.site-footer {
  background: var(--coffee);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 84px);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid rgba(255,255,255,0.15);
  margin-bottom: 1rem;
}
.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.25s;
}
.footer-social a:hover {
  background: var(--berry);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a,
.footer-links span {
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
  transition: color 0.2s;
  cursor: pointer;
}
.footer-links a:hover { color: var(--rose); }

.footer-bottom {
  margin-top: 2rem;
  padding: 1.5rem clamp(18px, 5vw, 84px);
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom p { margin: 0; }
.footer-reg { margin-top: 0.3rem !important; font-size: 0.75rem; }

/* === Floating Messenger Button === */
.float-msg {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #006AFF;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,106,255,0.35);
  transition: all 0.25s;
  animation: floatPulse 3s ease-in-out infinite;
}
.float-msg:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(0,106,255,0.45);
  animation: none;
}
@keyframes floatPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* === Back to Top === */
.float-top {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 998;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--coffee);
  color: var(--white);
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(77,51,40,0.25);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.float-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.float-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(77,51,40,0.35);
}

/* === Utility === */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* === Responsive === */
@media (max-width: 1100px) {
  .about-cards { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 980px) {
  .hero, .contact-section {
    grid-template-columns: 1fr;
  }
  .hero-gallery { min-height: 480px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-toolbar { grid-template-columns: 1fr 180px; }
  .product-count { grid-column: 1 / -1; justify-content: flex-start; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .brand-logo { width: 56px; height: 56px; }
  .scrolled .brand-logo { width: 56px; height: 56px; }

  .cart-pill {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 50;
    box-shadow: 0 8px 24px rgba(168,47,111,0.3);
  }

  .hero { min-height: 0; }
  .hero-gallery { min-height: 380px; }
  .hero-img.large { right: 8%; width: 62%; height: 380px; }
  .hero-img.small { width: 42%; height: 210px; }

  .trust-strip, .product-grid, .shop-toolbar { grid-template-columns: 1fr; }
  .shop-heading { display: block; }
  .product-actions { grid-template-columns: 1fr; }

  .about-cards { grid-template-columns: 1fr; }

  .contact-image-wrap { width: 100%; min-height: 250px; }
  .contact-section { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .float-msg { bottom: 5rem; width: 50px; height: 50px; }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .trust-strip div:last-child { border-bottom: 0; }
}
