*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1A2A30;
  background: #FAF8F5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.navbar { position: sticky; top: 0; z-index: 100; background: #1A2A30; padding: 0 24px; box-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; color: #D4A843; }
.nav-logo img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(212,168,67,0.4); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7); transition: color 0.2s; position: relative; padding: 4px 0; }
.nav-links a:hover, .nav-links a.active { color: #D4A843; }
.nav-links a.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: #D4A843; border-radius: 1px; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-action-btn, .mobile-menu-btn, .mobile-nav-close {
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nav-action-btn:hover, .mobile-menu-btn:hover, .mobile-nav-close:hover { color: #D4A843; }
.nav-action-btn svg { width: 20px; height: 20px; }
.mobile-menu-btn { display: none; }
.mobile-menu-btn svg, .mobile-nav-close svg { width: 24px; height: 24px; }
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  background: #1A2A30;
  z-index: 200;
  padding: 80px 32px 32px;
  box-shadow: -4px 0 24px rgba(0,0,0,0.3);
  transition: right 0.3s ease;
}
.mobile-nav.open { right: 0; }
.mobile-nav-close { position: absolute; top: 20px; right: 20px; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { margin-bottom: 8px; }
.mobile-nav a {
  display: block;
  min-height: 44px;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: #D4A843; }
.mobile-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 199; }
.mobile-backdrop.open { display: block; }

.page-hero {
  background: linear-gradient(135deg, #4A6E78 0%, #5B7F8C 40%, #6B909D 100%);
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.75); max-width: 640px; margin: 0 auto; position: relative; z-index: 1; }

.static-page, .detail-page { padding: 48px 24px 80px; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.content-card, .policy-section {
  background: #fff;
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  padding: 28px;
}
.content-card h2, .policy-section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 12px;
}
.content-card p, .policy-section p, .policy-section li { color: #6B7F87; font-size: 15px; }
.content-card ul, .policy-section ul { padding-left: 20px; margin-top: 10px; }
.content-card li, .policy-section li { margin-bottom: 8px; }
.placeholder-list { list-style: none; padding-left: 0; margin-top: 12px; }
.placeholder-list li {
  padding: 10px 0;
  border-bottom: 1px solid #F0ECE6;
  color: #6B7F87;
}
.placeholder-list strong { color: #1A2A30; }
.notice {
  margin-bottom: 24px;
  padding: 16px 18px;
  border: 1px solid #D9D2CA;
  border-left: 4px solid #D4A843;
  border-radius: 8px;
  background: #FFFBF2;
  color: #5D5144;
  font-size: 14px;
}
.policy-stack { display: grid; gap: 18px; max-width: 880px; margin: 0 auto; }

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #6B7F87;
}
.breadcrumb a { color: #5B7F8C; font-weight: 700; }
.breadcrumb span:last-child { color: #1A2A30; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr); gap: 40px; align-items: start; }
.gallery-main {
  aspect-ratio: 4 / 3;
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  background: linear-gradient(135deg, #F5F2EE, #E8E4DE);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery-main img[hidden], .gallery-fallback[hidden] { display: none; }
.gallery-fallback { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #A09890; font-weight: 700; }
.gallery-fallback svg { width: 64px; height: 64px; color: #C8C0B8; }
.thumbnail-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumb-btn {
  width: 78px;
  height: 64px;
  padding: 3px;
  border: 2px solid #E8E4DE;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.thumb-btn.active { border-color: #D4A843; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.detail-card {
  background: #fff;
  border: 1px solid #E8E4DE;
  border-radius: 8px;
  padding: 30px;
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 4px;
  background: #5B7F8C;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.detail-card h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.detail-description { color: #6B7F87; margin-bottom: 20px; }
.detail-meta { display: grid; gap: 10px; margin: 20px 0; }
.detail-meta div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid #F0ECE6; color: #6B7F87; }
.detail-meta strong { color: #1A2A30; }
.detail-meta code { font-family: inherit; color: #1A2A30; }
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #EEF2E8;
  color: #426142;
  font-size: 12px;
  font-weight: 800;
}
.status-badge.out { background: #F8E5E3; color: #9B3430; }
.detail-price { margin: 18px 0 22px; font-size: 18px; color: #6B7F87; font-style: italic; }
.detail-price.has-price { color: #D4A843; font-style: normal; font-size: 30px; font-weight: 800; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-gold, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}
.btn-gold { background: linear-gradient(135deg, #D4A843, #E0BC60); color: #1A2A30; box-shadow: 0 4px 16px rgba(212,168,67,0.3); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,67,0.4); }
.btn-secondary { border: 1px solid #D9D2CA; color: #5B7F8C; background: #fff; }
.product-error, .not-found { grid-column: 1 / -1; text-align: center; padding: 80px 24px; }
.product-error h2, .not-found h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 28px; margin-bottom: 12px; }
.product-error p, .not-found p { color: #6B7F87; margin-bottom: 24px; }
.loading-panel { grid-column: 1 / -1; text-align: center; padding: 80px 24px; color: #6B7F87; }

.not-found-page { min-height: 56vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 96px 24px 120px; }
.not-found h1 { font-family: 'Playfair Display', Georgia, serif; font-size: 72px; font-weight: 700; color: #E8E4DE; line-height: 1; margin-bottom: 8px; }
.secondary-link { display: block; margin-top: 16px; font-size: 14px; font-weight: 800; color: #5B7F8C; }
.secondary-link:hover { color: #D4A843; }

.footer { background: #1A2A30; color: #fff; padding: 64px 24px 32px; position: relative; }
.footer-wave { position: absolute; top: -1px; left: 0; right: 0; height: 40px; overflow: hidden; }
.footer-wave svg { width: 100%; height: 40px; display: block; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-heading { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #D4A843; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: #8A9DA5; transition: color 0.2s; }
.footer-col a:hover { color: #D4A843; }
.footer-bottom { border-top: 1px solid #2A3E46; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 13px; color: #4A5B62; }

@media (max-width: 900px) {
  .product-detail, .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .mobile-nav { display: block; }
  .page-hero h1 { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .navbar { padding: 0 14px; }
  .navbar .container { padding: 0; }
  .nav-logo { font-size: 16px; white-space: nowrap; }
  .nav-logo img { width: 40px; height: 40px; }
  .nav-actions { gap: 6px; }
  .nav-actions .nav-action-btn:not(.mobile-menu-btn) { display: none; }
  .static-page, .detail-page { padding: 32px 16px 56px; }
  .page-hero { padding: 42px 16px; }
  .detail-card, .content-card, .policy-section { padding: 22px; }
  .detail-card h1 { font-size: 28px; }
  .detail-meta div { flex-direction: column; gap: 4px; }
  .detail-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
