:root {
  --bg: #f2ece4;
  --paper: #fbf7f1;
  --card: #fffdf9;
  --ink: #211710;
  --muted: #6d5d50;
  --line: rgba(33, 23, 16, 0.11);
  --accent: #9b4d23;
  --accent-strong: #7d3512;
  --accent-soft: #e8bb8a;
  --shadow: 0 18px 40px rgba(54, 34, 19, 0.10);
  --radius: 26px;
  --text-base: clamp(15px, 1.1vw, 17px);
  --text-small: clamp(13px, 0.95vw, 14px);
  --text-title: clamp(24px, 2.2vw, 34px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(155, 77, 35, 0.16), transparent 26%),
    linear-gradient(180deg, #f5efe8 0%, #f2ece4 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.site-header,
.site-footer,
.store-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0 14px;
  position: relative;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #fff7ef;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-logo-frame {
  width: 60px;
  padding: 4px 5px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(91, 36, 16, 0.96), rgba(125, 53, 18, 0.96));
  border: 1px solid rgba(255, 248, 241, 0.12);
  box-shadow: 0 10px 24px rgba(58, 28, 14, 0.18);
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.05;
}

.brand-copy small {
  color: var(--muted);
  font-size: var(--text-small);
}

.menu-toggle {
  display: none;
  appearance: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.84);
  box-shadow: 0 14px 28px rgba(54, 34, 19, 0.12);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.backtop-button {
  display: none;
  appearance: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.84);
  box-shadow: 0 14px 28px rgba(54, 34, 19, 0.12);
  cursor: pointer;
}

.backtop-button span {
  width: 14px;
  height: 14px;
  display: block;
  border-top: 2px solid var(--ink);
  border-left: 2px solid var(--ink);
  transform: rotate(45deg) translate(2px, 2px);
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.96);
  border-color: rgba(33, 23, 16, 0.18);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-switcher button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.78);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.lang-switcher button.is-active {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  color: #fff8f1;
  border-color: transparent;
}

.site-header.is-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(33, 23, 16, 0.08);
  background: rgba(255,255,255,0.62);
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-nav a {
  white-space: nowrap;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: #fff8f1;
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  transform: translateY(-1px);
}

.store-shell {
  flex: 1 0 auto;
  padding-bottom: 56px;
}

.site-footer {
  margin-top: auto;
}

.home-hero,
.page-hero,
.content-section,
.info-card,
.request-card,
.toolbar-card,
.detail-card,
.empty-panel {
  border-radius: var(--radius);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  padding: 42px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.page-hero {
  margin-top: 14px;
  padding: 32px 34px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.hero-kicker,
.section-kicker,
.panel-label {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.04;
}
h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 1.15;
}
h3 {
  font-size: var(--text-title);
  line-height: 1.2;
}

p,
li,
input,
textarea,
select,
button {
  font-size: inherit;
}

.hero-note,
.muted,
.panel-list,
.panel-list li,
.product-note,
.detail-meta,
.contact-phone {
  color: var(--muted);
}

.hero-note,
.muted,
.product-note,
.faq-answer p,
.contact-phone {
  font-size: clamp(15px, 1.05vw, 17px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button,
button.button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.button.primary,
button.button.primary {
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: #fff8f1;
}

.button.is-loading,
button.button.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.86;
}

.button.is-loading::before,
button.button.is-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  vertical-align: -2px;
  animation: iva-spin 0.75s linear infinite;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 700;
}

.hero-panel,
.info-card,
.request-card,
.toolbar-card,
.detail-card,
.empty-panel {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 22px;
}

.panel-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.content-section {
  margin-top: 24px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: block;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.category-card strong,
.category-card span {
  display: block;
}

.category-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--text-small);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.product-card-link {
  display: block;
}

.product-card-wide .product-image {
  aspect-ratio: 1.18 / 1;
}

.product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #efe7dc;
}

.product-body {
  padding: 18px;
}

.product-category {
  margin-bottom: 6px;
  color: var(--accent-strong);
  font-weight: 700;
}

.product-body h3 {
  margin-bottom: 8px;
  font-size: clamp(21px, 1.8vw, 26px);
}

.product-note {
  min-height: 42px;
}

.product-price-row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-top: 12px;
}

.product-price-row strong {
  color: var(--accent-strong);
  font-size: 28px;
}

.product-price-row span {
  color: var(--muted);
  text-decoration: line-through;
  font-size: var(--text-small);
}

.product-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.product-meta span,
.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
}

.grid-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card,
.request-card,
.detail-card {
  padding: 26px;
}

.toolbar-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.toolbar-input,
.toolbar-select,
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  font: inherit;
  color: var(--ink);
}

.toolbar-input {
  flex: 1 1 280px;
}

.toolbar-select {
  width: auto;
  min-width: 220px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field span {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 15px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.empty-panel {
  padding: 26px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: clamp(16px, 1.15vw, 18px);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}

.faq-icon {
  flex: 0 0 auto;
  color: var(--accent-strong);
  font-size: 24px;
  line-height: 1;
}

.faq-answer {
  padding: 0 20px 20px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.skeleton-grid {
  display: grid;
  gap: 16px;
}

.skeleton-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skeleton-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skeleton-card,
.skeleton-line,
.skeleton-media {
  display: block;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(223, 213, 201, 0.9) 25%, rgba(246, 240, 232, 1) 50%, rgba(223, 213, 201, 0.9) 75%);
  background-size: 220% 100%;
  animation: iva-skeleton 1.15s ease-in-out infinite;
}

.skeleton-card {
  min-height: 110px;
}

.skeleton-card-product {
  min-height: 320px;
}

.skeleton-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.skeleton-media {
  min-height: 320px;
}

.skeleton-stack {
  display: grid;
  gap: 14px;
}

.skeleton-line {
  height: 18px;
  border-radius: 999px;
}

.skeleton-line.wide {
  height: 26px;
  width: 78%;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: var(--text-small);
}

.site-footer nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer > p a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

@keyframes iva-spin {
  to { transform: rotate(360deg); }
}

@keyframes iva-skeleton {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

@media (max-width: 980px) {
  .home-hero,
  .grid-split,
  .detail-grid,
  .skeleton-detail,
  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .store-shell,
  .site-header,
  .site-footer {
    width: min(100% - 20px, 100%);
  }

  .home-hero,
  .page-hero,
  .info-card,
  .request-card,
  .detail-card {
    padding: 22px;
  }

  .site-header {
    gap: 14px;
    padding-top: 16px;
    align-items: center;
    flex-wrap: wrap;
    padding-right: 64px;
  }

  .brand {
    flex: 1 1 auto;
    width: auto;
  }

  .brand-logo-frame {
    width: 50px;
    padding: 4px 4px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    font-size: 12px;
  }

  .menu-toggle {
    display: inline-flex;
    position: fixed;
    top: 12px;
    right: 10px;
    z-index: 60;
    background: rgba(255, 252, 247, 0.96);
    backdrop-filter: blur(12px);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.18s ease, border-color 0.18s ease;
  }

  .lang-switcher {
    width: 100%;
    justify-content: flex-start;
  }

  .backtop-button {
    display: inline-flex;
    position: fixed;
    right: 10px;
    bottom: 16px;
    z-index: 59;
    background: rgba(255, 252, 247, 0.96);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  body.is-mobile-float-visible .backtop-button {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav {
    display: none;
    position: fixed;
    top: 66px;
    right: 10px;
    left: 10px;
    z-index: 55;
    width: auto;
    max-height: calc(100vh - 88px);
    overflow: auto;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,249,241,0.98);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 48px rgba(54, 34, 19, 0.16);
  }

  .site-header.is-menu-open .site-nav {
    display: grid;
  }

  .site-nav a {
    text-align: left;
    padding: 12px 14px;
    background: rgba(255,255,255,0.82);
  }

  h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  h2 {
    font-size: clamp(22px, 6vw, 30px);
  }

  body {
    font-size: 15px;
    line-height: 1.6;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-body h3 {
    font-size: 20px;
  }

  .product-price-row strong {
    font-size: 24px;
  }

  .hero-note,
  .muted,
  .product-note,
  .faq-answer p,
  .contact-phone {
    font-size: 15px;
  }

  .hero-actions .button,
  .hero-actions button.button {
    width: 100%;
  }

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

  .toolbar-select {
    width: 100%;
    min-width: 0;
  }

  .toolbar-card {
    align-items: stretch;
  }

  .skeleton-grid-4,
  .skeleton-grid-3 {
    grid-template-columns: 1fr;
  }

  .toolbar-input,
  .toolbar-select {
    flex: 1 1 auto;
    width: 100%;
  }

  .detail-meta span,
  .product-meta span {
    width: 100%;
  }

  .site-footer {
    padding-top: 8px;
  }
}
