/* High-fashion aesthetic */
:root {
  --bg: #0f0f10;
  --bg-alt: #171718;
  --text: #eae6df;
  --muted: #c8c3b7;
  --accent: #d0a66a; /* warm gold */
  --border: #2a2a2b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.site-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; border-bottom: 1px solid var(--border); }
.brand-link { font-family: 'Playfair Display', serif; font-weight: 700; letter-spacing: 3px; font-size: 20px; color: var(--text); text-decoration: none; }
.site-nav a { color: var(--text); text-decoration: none; margin-left: 24px; opacity: 0.85; }
.site-nav a:hover { opacity: 1; }
.badge { display: inline-block; background: var(--accent); color: #100e0a; padding: 2px 8px; border-radius: 999px; font-size: 12px; margin-left: 6px; }

.hero { position: relative; min-height: 60vh; background-size: cover; background-position: center; }
.hero-overlay { background: linear-gradient(180deg, rgba(15,15,16,0.4) 0%, rgba(15,15,16,0.8) 70%, rgba(15,15,16,0.95) 100%); height: 100%; }
.hero-content { padding: 80px 24px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: 56px; margin: 0 0 12px; }
.hero-subtitle { color: var(--muted); max-width: 680px; font-size: 18px; }

.section { padding: 48px 0; }
.section-title { font-family: 'Playfair Display', serif; font-size: 28px; margin-bottom: 18px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.card { display: block; background: var(--bg-alt); border: 1px solid var(--border); text-decoration: none; color: var(--text); border-radius: 12px; overflow: hidden; transition: transform 180ms ease, box-shadow 180ms ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0,0,0,0.35); }
.card img { width: 100%; height: 360px; object-fit: cover; }
.card-body { padding: 16px; }
.card-title { font-family: 'Playfair Display', serif; font-size: 18px; margin-bottom: 6px; }
.card-price { color: var(--muted); }

.btn { display: inline-block; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text); text-decoration: none; cursor: pointer; transition: background 150ms ease, color 150ms ease, border-color 150ms ease; }
.btn:hover { background: var(--bg-alt); }
.btn-primary { background: var(--accent); color: #100e0a; border-color: var(--accent); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-link { background: none; border: none; color: var(--muted); cursor: pointer; }

.flash { margin-top: 12px; }
.flash-item { background: #133015; border: 1px solid #1f4722; color: #c8f3cf; padding: 10px 12px; border-radius: 8px; margin-bottom: 8px; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }
.product-media img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.product-title { font-family: 'Playfair Display', serif; font-size: 34px; margin: 8px 0; }
.product-price { font-size: 20px; color: var(--muted); }
.product-desc { color: var(--muted); line-height: 1.7; }
.add-to-cart { display: flex; gap: 12px; margin-top: 16px; align-items: center; }
.add-to-cart input[type="number"] { width: 80px; padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text); }

/* Cart */
.cart-form { margin-top: 12px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { border-bottom: 1px solid var(--border); padding: 12px; text-align: left; vertical-align: middle; }
.cart-item { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
.cart-item img { width: 120px; height: 120px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.qty-input { width: 70px; padding: 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text); }
.cart-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.cart-buttons { display: flex; gap: 10px; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .checkout-grid { grid-template-columns: 1fr; } }
.order-summary ul { list-style: none; padding: 0; margin: 0; }
.order-summary li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 10px 0; }
.checkout-form input { width: 100%; padding: 12px; margin-bottom: 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-alt); color: var(--text); }

.site-footer { border-top: 1px solid var(--border); padding: 24px 0; margin-top: 40px; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { font-family: 'Playfair Display', serif; letter-spacing: 3px; }
.footer-copy { color: var(--muted); }
