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

:root {
  --primary: #1a2744;
  --secondary: #f5f5f5;
  --accent: #c9a96e;
  --text: #333;
  --text-light: #666;
  --border: #e0e0e0;
  --white: #fff;
  --danger: #e74c3c;
  --success: #27ae60;
  --shadow: 0 2px 10px rgba(0,0,0,0.08);
  --radius: 0px;
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --primary: #e8e8e8;
  --secondary: #1e1e1e;
  --accent: #c9a96e;
  --text: #e0e0e0;
  --text-light: #aaa;
  --border: #333;
  --white: #141414;
  --shadow: 0 2px 10px rgba(0,0,0,0.3);
}

[data-theme="dark"] .header {
  background: #141414;
  border-bottom-color: #333;
}

[data-theme="dark"] .logo {
  color: #e8e8e8;
}

[data-theme="dark"] .nav a {
  color: #e0e0e0;
}

[data-theme="dark"] .search-bar {
  background: #2a2a2a;
}

[data-theme="dark"] .search-bar input {
  color: #e0e0e0;
}

[data-theme="dark"] .product-card {
  background: #1e1e1e;
}

[data-theme="dark"] .product-image {
  background: #2a2a2a;
}

[data-theme="dark"] .add-to-cart-btn {
  background: #c9a96e;
  color: #141414;
}

[data-theme="dark"] .add-to-cart-btn:hover {
  background: #b8944f;
}

[data-theme="dark"] .footer {
  background: #0a0a0a;
}

[data-theme="dark"] .promo {
  background: #1a1a1a;
}

[data-theme="dark"] .promo-card {
  background: #1e1e1e;
}

[data-theme="dark"] .filter-btn {
  background: #1e1e1e;
  border-color: #333;
  color: #e0e0e0;
}

[data-theme="dark"] .filter-btn.active,
[data-theme="dark"] .filter-btn:hover {
  background: #c9a96e;
  border-color: #c9a96e;
  color: #141414;
}

[data-theme="dark"] .sort-select {
  background: #1e1e1e;
  border-color: #333;
  color: #e0e0e0;
}

[data-theme="dark"] .detail-add-btn {
  background: #c9a96e;
  color: #141414;
}

[data-theme="dark"] .cart-summary,
[data-theme="dark"] .order-summary {
  background: #1e1e1e;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select {
  background: #1e1e1e;
  border-color: #333;
  color: #e0e0e0;
}

[data-theme="dark"] .payment-placeholder {
  background: #1e1e1e;
  border-color: #333;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: var(--transition);
}

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

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

/* Header */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
}

.logo span {
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
}

.nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: var(--secondary);
  border-radius: 0;
  padding: 8px 15px;
  width: 220px;
}

.search-bar input {
  border: none;
  background: none;
  outline: none;
  font-size: 0.85rem;
  width: 100%;
  color: var(--text);
}

.search-bar svg {
  width: 16px;
  height: 16px;
  color: var(--text-light);
  margin-right: 8px;
  flex-shrink: 0;
}

.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
  font-weight: 500;
}

.cart-icon svg {
  width: 22px;
  height: 22px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle {
  background: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--text);
}

.theme-toggle .icon-moon {
  display: block;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

.mobile-menu-btn {
  display: none;
  background: none;
  font-size: 1.5rem;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(26,39,68,0.8) 0%, rgba(26,39,68,0.6) 100%),
              url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=1600&h=800&fit=crop') center/cover no-repeat;
  color: var(--white);
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  opacity: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 35px;
}

.btn {
  display: inline-block;
  padding: 14px 35px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #b8944f;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
}

.btn-dark:hover {
  background: #333;
  transform: translateY(-2px);
}

/* Section */
.section {
  padding: 80px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-image {
  width: 100%;
  height: 320px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-image .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-info .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.product-info .price .old-price {
  text-decoration: line-through;
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.9rem;
  margin-left: 8px;
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 0;
}

.add-to-cart-btn:hover {
  background: var(--accent);
}

/* Promo Section */
.promo {
  background: var(--secondary);
  padding: 80px 20px;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.promo-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

.promo-card svg {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}

.promo-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.promo-card p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Shop Page */
.shop-header {
  background: var(--secondary);
  padding: 40px 20px;
  text-align: center;
}

.shop-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.filter-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.sort-select {
  padding: 10px 15px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
  background: var(--white);
  cursor: pointer;
}

/* Product Detail */
.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gallery-main {
  width: 100%;
  height: 500px;
  background: var(--secondary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  background: var(--secondary);
  border-radius: 0;
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-light);
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--accent);
}

.product-details h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.product-details .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}

.product-details .description {
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
}

.size-selector {
  margin-bottom: 25px;
}

.size-selector label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.size-options {
  display: flex;
  gap: 10px;
}

.size-option {
  width: 45px;
  height: 45px;
  border: 2px solid var(--border);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--white);
}

.size-option.active,
.size-option:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.quantity-selector label {
  font-weight: 600;
  font-size: 0.9rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--border);
}

.qty-value {
  width: 50px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}

.detail-add-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  margin-bottom: 30px;
}

.detail-add-btn:hover {
  background: var(--accent);
}

/* Tabs */
.product-tabs {
  margin-top: 20px;
}

.tab-headers {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

.tab-header {
  padding: 12px 25px;
  font-size: 0.9rem;
  font-weight: 600;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: var(--text-light);
}

.tab-header.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
  color: var(--text-light);
  line-height: 1.8;
  font-size: 0.95rem;
}

.tab-content.active {
  display: block;
}

/* Cart Page */
.cart-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cart-page h1 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.cart-empty svg {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  color: var(--border);
}

.cart-items {
  border-top: 1px solid var(--border);
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-image {
  width: 100px;
  height: 100px;
  background: var(--secondary);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-light);
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.cart-item-info p {
  color: var(--text-light);
  font-size: 0.85rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
}

.cart-item-qty button {
  width: 32px;
  height: 32px;
  background: var(--secondary);
  font-size: 1rem;
}

.cart-item-qty span {
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-item-price {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 80px;
  text-align: right;
}

.cart-item-remove {
  background: none;
  color: var(--text-light);
  font-size: 1.2rem;
  padding: 5px;
}

.cart-item-remove:hover {
  color: var(--danger);
}

.cart-summary {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 30px;
  margin-top: 30px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.cart-summary-row.total {
  border-top: 2px solid var(--border);
  padding-top: 15px;
  font-size: 1.2rem;
  font-weight: 700;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  margin-top: 20px;
}

.checkout-btn:hover {
  background: #b8944f;
}

/* Checkout Page */
.checkout-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.checkout-page h1 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}

.checkout-form h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border);
  border-radius: 0;
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.payment-placeholder {
  background: var(--secondary);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--text-light);
  margin-top: 20px;
}

.payment-placeholder svg {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  color: var(--border);
}

.order-summary {
  background: var(--secondary);
  border-radius: var(--radius);
  padding: 30px;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.order-summary h2 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.order-item .item-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-item .item-qty {
  color: var(--text-light);
  font-size: 0.8rem;
}

.place-order-btn {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius);
  margin-top: 20px;
}

.place-order-btn:hover {
  background: #b8944f;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 20px 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 15px;
    z-index: 999;
  }

  .search-bar {
    width: 140px;
  }

  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 50px 15px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .promo {
    padding: 50px 15px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 15px;
  }

  .gallery-main {
    height: 300px;
  }

  .gallery-thumbs {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 15px;
  }

  .cart-item-qty,
  .cart-item-price {
    grid-column: 2;
  }

  .cart-page {
    padding: 30px 15px;
  }

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

  .checkout-page {
    padding: 30px 15px;
  }

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

  .order-summary {
    position: static;
  }

  .shop-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .shop-header h1 {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer {
    padding: 40px 15px 20px;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 12px 15px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .search-bar {
    display: none;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero {
    padding: 50px 15px;
  }

  .product-image {
    height: 260px;
  }

  .filter-btns {
    width: 100%;
  }

  .filter-btn {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
  }
}
