/* ii world — Luxury Fashion Dark Theme */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --bg-hover: #222222;
  --text-primary: #f5f5f0;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --gold: #c9a55a;
  --gold-light: #d4b56a;
  --gold-dark: #b8944a;
  --border: #2a2a2a;
  --error: #e74c3c;
  --success: #27ae60;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

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

/* --- Navigation --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}

.nav-inner {
  width: 100%; max-width: var(--max-width);
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem; letter-spacing: 0.15em;
  color: var(--text-primary); text-transform: lowercase;
}

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-secondary); font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cart {
  position: relative; color: var(--text-secondary);
  cursor: pointer; transition: color 0.2s;
}
.nav-cart:hover { color: var(--text-primary); }
.cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--gold); color: var(--bg-primary);
  font-size: 0.65rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.page { padding-top: calc(var(--nav-height) + 40px); padding-bottom: 80px; min-height: 100vh; }

/* --- Hero --- */
.hero {
  height: 80vh; min-height: 500px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative;
  background-size: cover; background-position: center;
  margin-top: var(--nav-height);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.8) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 700px; padding: 0 24px; }
.hero h1 {
  font-family: var(--font-heading); font-size: 3.5rem;
  font-weight: 400; letter-spacing: 0.08em;
  margin-bottom: 16px; line-height: 1.2;
}
.hero p { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 32px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-size: 0.85rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: none; cursor: pointer; transition: all 0.3s;
  font-family: var(--font-body); font-weight: 500;
}
.btn-primary { background: var(--gold); color: var(--bg-primary); }
.btn-primary:hover { background: var(--gold-light); color: var(--bg-primary); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 8px 20px; font-size: 0.75rem; }
.btn-block { width: 100%; }

/* --- Product Grid --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px; margin-top: 40px;
}

.product-card { position: relative; }
.product-card-image {
  aspect-ratio: 3/4; overflow: hidden; background: var(--bg-card);
  margin-bottom: 16px;
}
.product-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card h3 {
  font-family: var(--font-heading); font-size: 1.1rem;
  font-weight: 400; margin-bottom: 4px;
}
.product-card .price { color: var(--gold); font-size: 0.95rem; }
.product-card .price-compare {
  color: var(--text-muted); text-decoration: line-through;
  font-size: 0.85rem; margin-left: 8px;
}

/* --- Product Detail --- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 40px; }
.product-gallery { display: flex; flex-direction: column; gap: 16px; }
.product-gallery-main { aspect-ratio: 3/4; background: var(--bg-card); overflow: hidden; }
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: flex; gap: 12px; }
.product-gallery-thumb {
  width: 80px; height: 100px; background: var(--bg-card);
  overflow: hidden; cursor: pointer; opacity: 0.6; transition: opacity 0.2s;
}
.product-gallery-thumb.active, .product-gallery-thumb:hover { opacity: 1; }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 {
  font-family: var(--font-heading); font-size: 2rem;
  font-weight: 400; margin-bottom: 16px;
}
.product-price { font-size: 1.5rem; color: var(--gold); margin-bottom: 24px; }
.product-description { color: var(--text-secondary); margin-bottom: 32px; line-height: 1.8; }

/* --- Selectors --- */
.selector { margin-bottom: 24px; }
.selector-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; color: var(--text-secondary); }
.selector-options { display: flex; gap: 8px; flex-wrap: wrap; }
.selector-option {
  padding: 10px 20px; border: 1px solid var(--border);
  background: transparent; color: var(--text-primary);
  cursor: pointer; font-size: 0.85rem; transition: all 0.2s;
}
.selector-option:hover { border-color: var(--gold); }
.selector-option.active { border-color: var(--gold); background: var(--gold); color: var(--bg-primary); }

/* --- Cart --- */
.cart-table { width: 100%; border-collapse: collapse; margin-top: 32px; }
.cart-table th { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); }
.cart-table td { padding: 20px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-image { width: 80px; height: 100px; background: var(--bg-card); object-fit: cover; }
.cart-qty { display: flex; align-items: center; gap: 12px; }
.cart-qty button { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); width: 32px; height: 32px; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.cart-qty span { min-width: 24px; text-align: center; }
.cart-remove { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; }
.cart-remove:hover { color: var(--error); }
.cart-summary { margin-top: 40px; text-align: right; }
.cart-summary-row { display: flex; justify-content: flex-end; gap: 40px; padding: 8px 0; }
.cart-summary-total { font-size: 1.3rem; font-weight: 500; color: var(--gold); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; }
.cart-empty { text-align: center; padding: 80px 0; color: var(--text-secondary); }

/* --- Checkout --- */
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 60px; margin-top: 40px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 12px 16px; background: var(--bg-card);
  border: 1px solid var(--border); color: var(--text-primary);
  font-size: 0.95rem; font-family: var(--font-body); transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--gold); }
.form-input::placeholder { color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error { color: var(--error); font-size: 0.85rem; margin-top: 4px; }

/* --- Section Titles --- */
.section-title {
  font-family: var(--font-heading); font-size: 2rem;
  font-weight: 400; text-align: center;
  letter-spacing: 0.08em; margin-bottom: 8px;
}
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 48px; }

/* --- Footer --- */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 60px 0 40px; margin-top: 80px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { font-family: var(--font-heading); font-size: 1.3rem; letter-spacing: 0.15em; margin-bottom: 16px; }
.footer-text { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; color: var(--text-secondary); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text-primary); }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 0.8rem; }

/* --- Success/Error Pages --- */
.status-page { text-align: center; padding: 120px 0; }
.status-page h1 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 16px; }
.status-page p { color: var(--text-secondary); margin-bottom: 32px; }

/* --- Content Sections --- */
.content-section { margin-bottom: 60px; }
.content-section h2 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 400; margin-bottom: 16px; }
.content-section p { color: var(--text-secondary); line-height: 1.8; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.image-grid img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* --- Loading --- */
.loading { display: flex; justify-content: center; padding: 60px 0; }
.spinner { width: 32px; height: 32px; border: 2px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--bg-primary); padding: 24px; gap: 16px; border-bottom: 1px solid var(--border); }
  .hero h1 { font-size: 2.2rem; }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
}
