/* Ridaloft — public product site, operated by ZNT Holdings Group Company Limited */
:root {
  --bg: #f3eee7;
  --bg-alt: #fffdf9;
  --ink: #1a1714;
  --muted: #5c564e;
  --line: #ddd4c8;
  --accent: #c24e1d;
  --accent-dark: #9a3c14;
  --dark: #151210;
  --dark-2: #211d19;
  --cream: #faf6f0;
  --white: #fffcf8;
  --max: 1120px;
  --serif: "Cormorant Garamond", "Noto Serif SC", "Noto Serif JP", serif;
  --sans: "Source Sans 3", "Noto Sans SC", "Noto Sans JP", "Noto Sans KR", "PingFang SC", "Hiragino Sans", sans-serif;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(26, 23, 20, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.zh { font-family: var(--sans); }
.muted { color: var(--muted); }
.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 0.5rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
.subhead { margin: 0 0 1.1rem; color: var(--muted); font-size: 1.05rem; }
.zh-line { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.95em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 238, 231, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 0.85rem; min-height: 72px;
}
.logo { text-decoration: none; color: var(--ink); display: flex; align-items: center; line-height: 0; flex: 0 0 auto; }
.logo-img { height: 34px; width: auto; display: block; }
.header-tools {
  display: flex; align-items: center; gap: 0.65rem;
  margin-left: auto; flex: 1 1 auto; justify-content: flex-end;
}

.nav { display: flex; align-items: center; gap: 1.15rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent-dark); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; padding: 0.7rem 1.15rem; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 0.95rem; border: 1px solid transparent;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 42px; height: 42px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 9px; }


/* Language switcher */
.lang-switch { position: relative; flex: 0 0 auto; z-index: 45; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  height: 42px; padding: 0 0.8rem; border-radius: 8px;
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink); font: inherit; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; white-space: nowrap; max-width: 11.5rem;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: #cbbfb0; background: var(--cream); }
.lang-btn .lang-label {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 8.2rem;
}
.lang-btn svg { width: 12px; height: 12px; flex: 0 0 auto; }
.lang-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 15.5rem; max-height: min(70vh, 26rem); overflow: auto;
  margin: 0; padding: 0.35rem 0; list-style: none;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
  display: block; padding: 0.55rem 1rem; text-decoration: none;
  color: var(--ink); font-size: 0.95rem; font-weight: 500;
}
.lang-menu a:hover { background: var(--cream); color: var(--ink); }
.lang-menu a[aria-current="true"] { font-weight: 700; color: var(--accent-dark); }
.lang-suggest {
  display: none; background: #fff7ef; border-bottom: 1px solid #ead3be;
  padding: 0.7rem 0;
}
.lang-suggest.visible { display: block; }
.lang-suggest .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem 1rem;
  font-size: 0.95rem;
}
.lang-suggest a { font-weight: 600; }
.lang-suggest .suggest-dismiss {
  margin-left: auto; background: none; border: 0; color: var(--muted);
  cursor: pointer; font: inherit; text-decoration: underline;
}

/* Hero */
.hero {
  padding: 3.2rem 0 3.6rem;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center;
}
.hero-photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: #2a2420;
}
.hero-photo img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.price-box {
  display: flex; flex-wrap: wrap; gap: 1.2rem 2rem;
  margin: 1.4rem 0 0; padding: 1rem 1.15rem;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
}
.price-box strong { display: block; font-size: 1.55rem; font-family: var(--serif); }
.price-box span { color: var(--muted); font-size: 0.92rem; }

/* Sections */
section { padding: 3.2rem 0; }
.section-dark { background: var(--dark); color: #efe8df; }
.section-dark h2, .section-dark h3 { color: #f6f0e8; }
.section-dark .subhead, .section-dark .zh-line, .section-dark .muted { color: #c9bfb3; }
.section-alt { background: var(--bg-alt); }

.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.feature {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem 1.15rem;
}
.section-dark .feature { background: var(--dark-2); border-color: #3a332d; }
.feature h3 { margin-bottom: 0.35rem; }
.feature p { margin: 0; color: var(--muted); }
.section-dark .feature p { color: #c9bfb3; }
.icon { width: 32px; height: 32px; margin-bottom: 0.7rem; color: var(--accent); }

.color-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem;
}
.color-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit;
}
.color-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.color-card figcaption { padding: 0.7rem 0.75rem 0.9rem; }
.color-card strong { display: block; font-size: 0.95rem; }
.swatch {
  display: inline-block; width: 12px; height: 12px; border-radius: 50%;
  margin-right: 0.35rem; vertical-align: middle; border: 1px solid rgba(0,0,0,.15);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
}
.panel ol, .panel ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.panel li { margin: 0.4rem 0; }
.box-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.box-list li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.75rem 0; border-top: 1px solid var(--line);
}
.num {
  flex: 0 0 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--ink); color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700;
}

/* Pages */
.page-hero { padding: 2.4rem 0 1.2rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.prose p { margin: 0.7rem 0; }
.prose ul, .prose ol { margin: 0.4rem 0 1rem; padding-left: 1.25rem; }
.notice {
  background: #fff7ef; border: 1px solid #ead3be; border-radius: 12px;
  padding: 1rem 1.15rem; margin: 1.2rem 0;
}

/* Footer */
.site-footer {
  background: var(--dark); color: #d9d0c6; padding: 2.6rem 0 1.6rem;
  margin-top: 0;
}
.site-footer a { color: #efe8df; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem;
  padding-bottom: 1.8rem; border-bottom: 1px solid #3a332d;
}
.footer-brand { font-family: var(--serif); font-size: 1.4rem; color: #f6f0e8; margin-bottom: 0.4rem; }
.footer-col h3 { color: #f6f0e8; font-size: 0.95rem; font-family: var(--sans); letter-spacing: 0.08em; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.footer-col li { margin: 0.35rem 0; }
.legal { padding-top: 1.1rem; font-size: 0.88rem; color: #b6ada3; }

@media (max-width: 900px) {
  .hero-grid, .two-col, .footer-grid, .materials-visual { grid-template-columns: 1fr; }
  .features, .mat-grid { grid-template-columns: 1fr 1fr; }
  .color-grid { grid-template-columns: repeat(2, 1fr); }
  .color-grid .span-wide { grid-column: 1 / -1; }
  .header-tools { flex: 0 0 auto; }
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    padding: 0.5rem 20px 1rem;
  }
  .nav.open { display: flex; }
  .nav a, .nav .btn { padding: 0.7rem 0; }
  .lang-btn .lang-label { max-width: 6.5rem; }
  .hero { padding-top: 1.8rem; }
}
@media (max-width: 520px) {
  .logo-img { height: 30px; }
  body { font-size: 16px; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .features, .mat-grid, .lifestyle-grid { grid-template-columns: 1fr; }
  .lifestyle-grid .life-wide { grid-column: auto; }
}

/* Product showcase video */
.video-section { padding: 0 0 3.2rem; }
.section-alt + .video-section, .hero + .video-section { padding-top: 0.4rem; }
.page-hero + .video-section { padding-top: 0; }
.video-section h2 { margin-bottom: 1rem; }
.video-frame {
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: #151210;
  box-shadow: var(--shadow);
}
.video-frame video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  vertical-align: middle;
  background: #151210;
}
.video-credit {
  max-width: 640px;
  margin: 0.7rem auto 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

/* Product materials and specifications */
.mat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.1rem;
}
.mat-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
}
.mat-block h3 { margin-bottom: 0.4rem; }
.mat-block p { margin: 0; }
.specs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.specs-table th, .specs-table td {
  text-align: left;
  padding: 0.8rem 1rem;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.specs-table tr:first-child th,
.specs-table tr:first-child td { border-top: 0; }
.specs-table th {
  width: 32%;
  font-weight: 600;
  color: var(--ink);
  background: #f4eee6;
}
.specs-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* Product lifestyle gallery */
.lifestyle h2 { margin-bottom: 1.1rem; }
.lifestyle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.lifestyle-grid .life-wide { grid-column: 1 / -1; }
.lifestyle-grid figure,
.life-texture,
.life-colours {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #2a2420;
}
.lifestyle-grid img,
.life-texture img,
.life-colours img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}
.life-portrait img { aspect-ratio: 3 / 4; object-fit: cover; }
.life-wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.life-texture { background: #2a2420; }
.life-texture img { aspect-ratio: 4 / 3; object-fit: cover; }
.life-colours {
  margin: 0 0 1.4rem;
  background: #f3eee7;
  box-shadow: var(--shadow);
}
.life-colours img { aspect-ratio: 4 / 3; object-fit: cover; }

.materials-visual {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.1rem;
}
.materials-visual .mat-grid { margin-top: 0; }

/* Mobile product layout — wins cascade over earlier desktop grids */
@media (max-width: 900px) {
  .materials-visual {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }

  .materials-visual {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .life-texture img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .mat-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .mat-block {
    padding: 1.15rem 1.2rem 1.2rem;
  }
  .mat-block p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* In use: two portraits side by side remain readable; wide shot stays full width */
  .lifestyle-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .lifestyle-grid .life-wide { grid-column: 1 / -1; }

  .features { grid-template-columns: 1fr; }

  .color-grid { grid-template-columns: repeat(2, 1fr); }
  .color-grid .span-wide { grid-column: 1 / -1; }

  .specs-table th,
  .specs-table td {
    padding: 0.75rem 0.85rem;
  }

  section { padding: 2.4rem 0; }
  .page-hero { padding: 1.8rem 0 0.9rem; }
}

@media (max-width: 520px) {
  .features,
  .mat-grid { grid-template-columns: 1fr; }
  .lifestyle-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }
  .lifestyle-grid .life-wide { grid-column: 1 / -1; }
}

/* Homepage landing — product-page heroes unchanged */
.home-hero { padding-bottom: 3.6rem; }
.home-intro { max-width: 40rem; }
.home-intro p { font-size: 1.08rem; line-height: 1.6; }
.home-photo {
  margin: 1.75rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #2a2420;
}
.home-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: middle;
}
@media (max-width: 700px) {
  .home-intro { max-width: none; }
  .home-intro p { font-size: 1rem; }
  .home-photo { margin-top: 1.4rem; }
}

/* Order page payment panel */
.pay-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.35rem 1.25rem;
  margin: 1.3rem 0 2rem;
}
.pay-panel h2 { margin-top: 0; margin-bottom: 0.7rem; }
.pay-panel .btn-row { margin: 1rem 0 0.7rem; }
.pay-panel .muted { margin-bottom: 0; }
.prose h3 { margin-top: 1.2rem; font-size: 1.15rem; }

.price-box .price-ship-note {
  display: flex;
  align-items: center;
  max-width: 16rem;
}

/* Order quantity selector */
.qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  margin: 1rem 0 0.35rem;
}
.qty-row label {
  font-weight: 600;
}
.qty-row select {
  font: inherit;
  color: inherit;
  min-height: 44px;
  min-width: 12.5rem;
  max-width: 100%;
  padding: 0.45rem 2rem 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  appearance: auto;
}
.pay-total {
  margin: 0.55rem 0 0;
  font-size: 1.02rem;
}
.pay-total strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}
.qty-noscript {
  margin: 0.4rem 0 0.8rem 1.1rem;
}
.qty-noscript li { margin: 0.25rem 0; }
@media (max-width: 700px) {
  .qty-row select { width: 100%; min-width: 0; }
}

/* Homepage two-product cards */
.home-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}
.home-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.home-card-photo {
  display: block;
  background: #2a2420;
}
.home-card-photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  vertical-align: middle;
}
.home-card-body {
  padding: 1.1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.home-card-body h2 {
  font-size: 1.28rem;
  margin: 0 0 0.45rem;
}
.home-card-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}
.home-card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Floor-mat product page */
.fm-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.fm-gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #2a2420;
}
.fm-gallery img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  vertical-align: middle;
}
.fm-order-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.fm-color-list {
  margin: 0.4rem 0 0 1.1rem;
}
.fm-color-list li { margin: 0.2rem 0; }

@media (min-width: 800px) {
  .fm-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .home-products { grid-template-columns: 1fr; margin-top: 1.5rem; }
}

/* Product selector on the order page shares qty-row styling */
#order-product { min-width: 16rem; }
@media (max-width: 700px) {
  #order-product { width: 100%; min-width: 0; }
}
