* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #c9a96e;
  --accent-light: #e8d5a3;
  --bg: #f8f5f0;
  --bg-dark: #1a1a2e;
  --text: #2c2c2c;
  --text-light: #666;
  --white: #fff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
}
.logo span { color: var(--accent); }
.nav { display: flex; gap: 30px; }
.nav a {
  font-size: 15px;
  color: var(--text);
  transition: color 0.3s;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}
.nav a:hover::after,
.nav a.active::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Carousel */
.hero {
  position: relative;
  overflow: hidden;
  height: 500px;
}
.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.4) 60%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
}
.hero-content {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: 60px 40px;
  max-width: 620px;
}
.hero-content h1 {
  font-size: 38px;
  margin-bottom: 14px;
  letter-spacing: 2px;
  color: var(--white);
  line-height: 1.2;
}
.hero-content p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  line-height: 1.6;
}
.hero-content .btn {
  font-size: 14px;
  padding: 12px 28px;
}
.hero-dots {
  position: absolute;
  bottom: 28px;
  right: 40px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-dot {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active {
  background: var(--accent);
  width: 48px;
}
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}
.btn:hover { background: #b89450; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: 10px 24px; font-size: 13px; }

/* Categories */
.categories { padding: 60px 0; }
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 30px;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-title p {
  color: var(--text-light);
  font-size: 15px;
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 260px;
  cursor: pointer;
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.cat-card:hover img { transform: scale(1.05); }
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  color: var(--white);
}
.cat-overlay h3 { font-size: 22px; margin-bottom: 4px; }
.cat-overlay p { font-size: 13px; opacity: 0.8; }

/* Products Grid */
.products-section { padding: 60px 0; }
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}
.product-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid #ddd;
  border-radius: 50px;
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.product-info { padding: 16px 20px 20px; }
.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.product-desc {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}
.product-price span { font-size: 13px; font-weight: 400; color: var(--text-light); }

/* Detail Page */
.detail-page { padding: 40px 0; }
.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 30px;
}
.breadcrumb a { color: var(--accent); }
.detail-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.gallery-main {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
}
.gallery-main .main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,0.7);
  color: var(--primary);
  font-size: 22px;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-nav:hover { background: var(--accent); color: var(--white); }
.gallery-nav.prev { left: 0; border-radius: 0 4px 4px 0; }
.gallery-nav.next { right: 0; border-radius: 4px 0 0 4px; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.gallery-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s;
  flex-shrink: 0;
  border: 2px solid transparent;
}
.gallery-thumbs img:hover { opacity: 0.8; }
.gallery-thumbs img.active { opacity: 1; border-color: var(--accent); }
.detail-info h1 { font-size: 26px; margin-bottom: 12px; }
.detail-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}
.detail-meta { margin: 20px 0; }
.meta-item {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.meta-label {
  width: 80px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-light);
}
.meta-value { font-size: 14px; }
.detail-desc {
  line-height: 1.8;
  color: var(--text-light);
  font-size: 14px;
  margin: 20px 0;
}
.detail-actions { display: flex; gap: 12px; margin-top: 20px; }

/* Payment Page */
.payment-page { padding: 40px 0; }
.payment-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.order-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.order-summary h3 {
  font-size: 18px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}
.order-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}
.order-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}
.order-item-info h4 { font-size: 14px; }
.order-item-info p { font-size: 13px; color: var(--accent); font-weight: 600; }
.order-total {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  font-size: 18px;
  font-weight: 700;
}
.order-total span { color: var(--accent); }

.payment-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.payment-form h3 {
  font-size: 18px;
  margin-bottom: 20px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { height: 80px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Contact Page */
.contact-page { padding: 60px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-info h2 { font-size: 28px; margin-bottom: 16px; }
.contact-info p { color: var(--text-light); margin-bottom: 24px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.contact-item .icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  flex-shrink: 0;
}
.contact-form { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* Footer */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 15px;
}
.footer-col p { font-size: 13px; line-height: 1.8; }
.footer-col a {
  display: block;
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .hero { height: 340px; }
  .hero-content { padding: 30px 20px; max-width: 100%; }
  .hero-content h1 { font-size: 24px; }
  .hero-content p { font-size: 14px; margin-bottom: 16px; }
  .hero-dots { right: 20px; bottom: 16px; }
  .hero-dot { width: 24px; }
  .hero-dot.active { width: 32px; }
  .cat-grid { grid-template-columns: 1fr; }
  .detail-wrap { grid-template-columns: 1fr; }
  .payment-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery-main { height: 280px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
  .form-row { grid-template-columns: 1fr; }
}
