:root {
  --bg: #140f10;
  --bg-elevated: #1c1517;
  --text: #f3ebe4;
  --muted: #b7a69a;
  --accent: #9e3d4a;
  --accent-soft: #c9a27a;
  --line: rgba(243, 235, 228, 0.12);
  --font-display: "Cormorant Garamond", "Songti SC", "SimSun", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(158, 61, 74, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(201, 162, 122, 0.12), transparent 50%),
    linear-gradient(180deg, #1a1214 0%, var(--bg) 40%, #0f0c0d 100%);
  background-attachment: fixed;
  line-height: 1.6;
}

body.has-contact-bar {
  padding-bottom: 5.5rem;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(20, 15, 16, 0.72);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 1.25rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.site-main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid var(--line);
}

.home-intro {
  text-align: center;
  margin: 0.5rem 0 2rem;
}

.home-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0;
  animation: fadeRise 0.7s ease both;
}

.home-tagline {
  margin: 0.6rem 0 0;
  color: var(--muted);
  letter-spacing: 0.12em;
  font-size: 0.95rem;
  animation: fadeRise 0.7s ease 0.12s both;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 0.9rem;
}

@media (min-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1.2rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  display: block;
  color: inherit;
  transition: transform 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  min-height: 180px;
}

.product-placeholder.tall {
  min-height: 50vh;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.75rem 0 0;
  letter-spacing: 0.04em;
  text-align: center;
}

.empty-state,
.back-link {
  text-align: center;
  color: var(--muted);
}

.back-link a,
.back-link-inline {
  color: var(--accent-soft);
  border-bottom: 1px solid transparent;
}

.back-link a:hover,
.back-link-inline:hover {
  border-bottom-color: var(--accent-soft);
}

.detail {
  width: min(820px, 100%);
  margin: 0 auto;
}

.carousel {
  position: relative;
  background: #0a0809;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.carousel-track {
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: 78vh;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: rgba(20, 15, 16, 0.55);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.carousel-btn.prev {
  left: 0.7rem;
}

.carousel-btn.next {
  right: 0.7rem;
}

.carousel-btn:hover {
  background: rgba(158, 61, 74, 0.65);
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.carousel-dots button {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(243, 235, 228, 0.35);
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: var(--accent-soft);
}

.detail-body {
  padding: 1.5rem 0.25rem 2rem;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  margin: 0 0 1rem;
  letter-spacing: 0.04em;
  animation: fadeRise 0.55s ease both;
}

.detail-intro {
  color: var(--text);
  margin-bottom: 1.75rem;
  font-size: 0.98rem;
}

.detail-intro p {
  margin: 0 0 0.85rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.85rem 1.6rem;
  background: linear-gradient(135deg, var(--accent), #7a2d38);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.15s ease, filter 0.2s ease;
}

.contact-btn:hover {
  filter: brightness(1.08);
}

.contact-btn:active {
  transform: scale(0.97);
}

.contact-btn-inline {
  margin-bottom: 1rem;
}

.contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(14, 10, 11, 0.92) 35%);
  display: flex;
  justify-content: center;
}

.contact-bar .contact-btn {
  width: min(420px, 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

@media (min-width: 768px) {
  .contact-bar {
    display: none;
  }

  body.has-contact-bar {
    padding-bottom: 0;
  }
}

@keyframes fadeRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
