/* === CSS Variables === */
:root {
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent: #e94560;
  --color-background: #f5f5f5;
  --color-text: #333333;
  --color-surface: #ffffff;
  --color-border: rgba(51,51,51,0.15);
  --color-text-muted: #888;
  --color-muted: #f5f5f5;
  --color-star: #f5a623;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --style-border-radius: 8px;
  --style-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* === Base Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-background); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.toast { position: fixed; bottom: 20px; right: 20px; background: #000; color: #fff; padding: 12px 24px; font-size: 0.9rem; opacity: 0; transition: opacity 0.3s; z-index: 1000; pointer-events: none; }
.toast.show { opacity: 1; }

/* === Header 3 === */
header { background: #000; color: #fff; padding: 0; position: sticky; top: 0; z-index: 100; border-bottom: 2px solid #fff; }
.header-inner { display: flex; justify-content: space-between; align-items: stretch; min-height: 56px; }
.logo { font-size: 1.2rem; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: 2px; display: flex; align-items: center; padding: 0 16px; border-right: 1px solid #333; }
nav { display: flex; align-items: stretch; }
.nav-link { color: #999; font-weight: 500; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; padding: 0 20px; border-left: 1px solid #333; transition: background 0.15s, color 0.15s; }
.nav-link:hover { background: #fff; color: #000; }
.cart-link { color: #fff; font-weight: 700; }
@media (max-width: 700px) { .header-inner { flex-wrap: wrap; } .logo { flex: 1; border-right: none; border-bottom: 1px solid #333; } nav { width: 100%; } .nav-link { flex: 1; justify-content: center; padding: 12px 8px; font-size: 0.75rem; } }

/* === Hero 2 === */
.hero { background: #fff; color: #000; padding: 64px 0; border-bottom: 2px solid #000; }
.hero-title { font-size: 3rem; font-weight: 900; text-transform: uppercase; letter-spacing: -1px; line-height: 1; margin-bottom: 12px; }
.hero-subtitle { font-size: 1rem; color: #666; font-weight: 400; max-width: 480px; }
@media (max-width: 700px) { .hero { padding: 40px 0; } .hero-title { font-size: 2rem; } }

/* === Products 3 === */
.page-title { font-size: 1.4rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; padding: 32px 0 0; border-bottom: 2px solid #000; padding-bottom: 12px; }
.products { display: flex; flex-direction: column; padding: 0 0 48px; }
.product-card { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid #ddd; transition: background 0.15s; }
.product-card:hover { background: #f5f5f5; }
.product-image { width: 64px; height: 64px; min-width: 64px; display: flex; align-items: center; justify-content: center; font-size: 2rem; border: 1px solid #000; }
.product-info { flex: 1; min-width: 0; }
.product-name { font-size: 1rem; font-weight: 700; margin-bottom: 2px; }
.product-desc { font-size: 0.8rem; color: #666; }
.product-bottom { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.product-price { font-size: 1rem; font-weight: 700; white-space: nowrap; }
.add-btn { background: #000; color: #fff; border: none; padding: 8px 16px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: background 0.15s; }
.add-btn:hover { background: #333; }
@media (max-width: 700px) { .product-card { flex-wrap: wrap; gap: 12px; } .product-bottom { width: 100%; justify-content: space-between; } }

/* === Product Detail 4 === */
.breadcrumb { padding: 16px 0; font-size: 0.85rem; color: #888; }
.breadcrumb a { color: #888; transition: color 0.15s; }
.breadcrumb a:hover { color: #000; }
.breadcrumb span { margin: 0 8px; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 0 0 48px; }
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery-main { width: 100%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 6rem; font-weight: 700; border: 2px solid #000; background: #f0f0f0; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; border: 1px solid #000; background: #f0f0f0; cursor: pointer; }
.gallery-thumb.active { border-width: 2px; }
.product-info-detail { display: flex; flex-direction: column; gap: 16px; }
.product-info-detail .product-name { font-size: 1.8rem; font-weight: 900; text-transform: uppercase; letter-spacing: -0.5px; }
.product-info-detail .product-price { font-size: 1.4rem; font-weight: 900; }
.product-info-detail .product-price .original-price { text-decoration: line-through; color: #888; font-weight: 400; margin-left: 8px; font-size: 1rem; }
.product-info-detail .product-desc { font-size: 0.95rem; color: #666; line-height: 1.6; }
.qty-picker { display: flex; align-items: center; gap: 0; border: 2px solid #000; width: fit-content; }
.qty-picker button { width: 40px; height: 40px; background: #fff; border: none; font-size: 1.2rem; font-weight: 700; cursor: pointer; transition: background 0.15s; }
.qty-picker button:hover { background: #f0f0f0; }
.qty-picker .qty-value { width: 48px; height: 40px; text-align: center; font-size: 1rem; font-weight: 700; border: none; border-left: 2px solid #000; border-right: 2px solid #000; }
.add-to-cart-btn { background: #000; color: #fff; border: none; padding: 14px 32px; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background 0.15s; width: fit-content; }
.add-to-cart-btn:hover { background: #333; }
.trust { display: flex; gap: 24px; padding: 16px 0; border-top: 1px solid #ddd; margin-top: 8px; }
.trust-item { font-size: 0.8rem; color: #666; }
.description { padding: 32px 0; border-top: 2px solid #000; margin-top: 16px; }
.description h2 { font-size: 1.2rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.description p { font-size: 0.95rem; color: #444; line-height: 1.8; }
@media (max-width: 700px) { .product-detail { grid-template-columns: 1fr; gap: 24px; } .product-info-detail .product-name { font-size: 1.4rem; } .trust { flex-direction: column; gap: 8px; } }

/* === Cart Page 2 === */
.cart-page { padding: 0 0 48px; }
.cart-items { display: flex; flex-direction: column; }
.cart-item { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid #ddd; }
.cart-item-image { width: 64px; height: 64px; min-width: 64px; display: flex; align-items: center; justify-content: center; font-size: 2rem; border: 1px solid #000; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 1rem; font-weight: 700; }
.cart-item-name a { transition: color 0.15s; }
.cart-item-name a:hover { color: #666; }
.cart-item-price { font-size: 0.85rem; color: #666; }
.cart-item-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cart-qty { display: flex; align-items: center; gap: 0; border: 1px solid #000; }
.cart-qty button { width: 32px; height: 32px; background: #fff; border: none; font-size: 1rem; font-weight: 700; cursor: pointer; }
.cart-qty button:hover { background: #f0f0f0; }
.cart-qty .cart-qty-value { width: 36px; height: 32px; text-align: center; font-size: 0.85rem; font-weight: 700; border: none; border-left: 1px solid #000; border-right: 1px solid #000; line-height: 32px; }
.cart-item-total { font-size: 1rem; font-weight: 700; white-space: nowrap; min-width: 80px; text-align: right; }
.cart-remove { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #999; transition: color 0.15s; padding: 4px; }
.cart-remove:hover { color: #000; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-top: 2px solid #000; margin-top: 16px; }
.cart-total { font-size: 1.4rem; font-weight: 900; }
.cart-actions { display: flex; gap: 12px; }
.checkout-btn { background: #000; color: #fff; border: none; padding: 12px 32px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background 0.15s; }
.checkout-btn:hover { background: #333; }
.clear-btn { background: #fff; color: #000; border: 2px solid #000; padding: 12px 24px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: background 0.15s; }
.clear-btn:hover { background: #f0f0f0; }
.cart-empty { text-align: center; padding: 64px 0; color: #888; font-size: 1rem; }
.cart-empty a { color: #000; font-weight: 700; border-bottom: 2px solid #000; }
@media (max-width: 700px) { .cart-item { flex-wrap: wrap; gap: 12px; } .cart-item-actions { width: 100%; justify-content: space-between; } .cart-summary { flex-direction: column; gap: 16px; text-align: center; } .cart-actions { width: 100%; } .checkout-btn, .clear-btn { flex: 1; } }

/* === Footer 1 === */
footer { background: var(--color-primary); color: #888; padding: 20px 0; margin-top: 48px; text-align: center; font-size: 0.85rem; }
