/* Shared stylesheet for department pages: men, women, kids, sale */
* { box-sizing: border-box; }
:root {
  --bg-dark: #0a0a0a; --bg-card: #161616; --bg-card-hover: #1f1f1f;
  --gold: #f0c14b; --gold-dark: #d4a73b;
  --text: #fff; --text-muted: #999; --border: #2a2a2a;
  --error: #ff4d4d; --success: #4ade80; --heart: #ff4d6d;
}
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', -apple-system, sans-serif; background: var(--bg-dark); color: var(--text); line-height: 1.6; }

/* Announcement */
.announcement { background: var(--gold); color: #000; text-align: center; padding: 0.5rem 1rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; }

/* Header */
header { background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); padding: 1rem 2rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 999; border-bottom: 1px solid var(--border); }
.logo a { color: #fff; text-decoration: none; font-size: 1.4rem; font-weight: 800; display: flex; align-items: center; }
.logo img { height: 50px; margin-right: 0.6rem; }
.nav-container { flex: 1; display: flex; justify-content: center; }
nav { display: flex; gap: 2rem; }
nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 0.95rem; position: relative; padding: 0.5rem 0; transition: color 0.3s; }
nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.3s; }
nav a.active { color: var(--gold); }
nav a.active::after { width: 100%; }
nav a:hover { color: var(--gold); }
nav a:hover::after { width: 100%; }
.nav-icons { display: flex; align-items: center; gap: 1rem; }
.nav-icons a { color: #fff; text-decoration: none; font-size: 1.2rem; position: relative; transition: transform 0.2s; }
.nav-icons a:hover { transform: scale(1.15); }
.badge-count { position: absolute; top: -8px; right: -8px; background: var(--gold); color: #000; border-radius: 50%; font-size: 0.7rem; font-weight: 700; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.search-box { position: relative; }
.search-box input { background: var(--bg-card); border: 1px solid var(--border); color: #fff; padding: 0.5rem 0.9rem 0.5rem 2.2rem; border-radius: 25px; font-size: 0.9rem; width: 200px; outline: none; transition: all 0.3s; }
.search-box input:focus { border-color: var(--gold); width: 240px; }
.search-box::before { content: '🔍'; position: absolute; left: 0.7rem; top: 50%; transform: translateY(-50%); font-size: 0.85rem; opacity: 0.6; }
#login-link { color: #fff; text-decoration: none; font-weight: 500; font-size: 0.9rem; padding: 0.45rem 1rem; border: 1px solid var(--gold); border-radius: 20px; transition: all 0.3s; }
#login-link:hover { background: var(--gold); color: #000; }
.user-greeting { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.logout-link { background: none; border: 1px solid #555; color: #fff; cursor: pointer; font-size: 0.85rem; font-weight: 500; padding: 0.4rem 0.9rem; border-radius: 20px; transition: all 0.3s; font-family: inherit; }
.logout-link:hover { border-color: var(--gold); color: var(--gold); }

/* Hero */
.hero { position: relative; height: 65vh; min-height: 480px; overflow: hidden; background-size: cover; background-position: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.4) 50%, rgba(10,10,10,1) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 720px; padding: 0 5%; height: 100%; display: flex; flex-direction: column; justify-content: center; animation: fadeInUp 1s ease-out; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }
.hero-pretitle { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.4em; text-transform: uppercase; font-weight: 600; margin-bottom: 1rem; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1.05; margin: 0 0 1rem; font-weight: 700; }
.hero h1 span { color: var(--gold); font-style: italic; }
.hero p { font-size: 1.1rem; color: #ddd; max-width: 540px; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 1rem; }
.hero-stat strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--gold); }
.hero-stat span { color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.05em; }

/* Breadcrumb */
.breadcrumbs { max-width: 1400px; margin: 0 auto; padding: 1.5rem 5% 0; font-size: 0.85rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs .sep { margin: 0 0.4rem; }

/* Category bar */
.category-bar { max-width: 1400px; margin: 2rem auto 1rem; padding: 0 5%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.category-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pill { background: var(--bg-card); border: 1px solid var(--border); color: #fff; padding: 0.55rem 1.2rem; border-radius: 30px; cursor: pointer; font-size: 0.85rem; font-weight: 500; font-family: inherit; transition: all 0.3s; }
.pill:hover { border-color: var(--gold); color: var(--gold); }
.pill.active { background: var(--gold); color: #000; border-color: var(--gold); font-weight: 700; }
.sort-row { display: flex; align-items: center; gap: 0.8rem; }
.sort-row label { color: var(--text-muted); font-size: 0.85rem; }
.sort-select { background: var(--bg-card); color: #fff; border: 1px solid var(--border); padding: 0.55rem 2rem 0.55rem 1rem; border-radius: 30px; font-size: 0.85rem; font-family: inherit; cursor: pointer; outline: none; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%3E%3Cpath%20fill%3D%22%23999%22%20d%3D%22M0%200l5%206%205-6z%22%2F%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; }
.sort-select:hover { border-color: var(--gold); }

/* Featured banner */
.featured-banner { max-width: 1400px; margin: 2rem auto; padding: 0 5%; }
.feature-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1rem; }
.feature-card { position: relative; border-radius: 16px; overflow: hidden; background-size: cover; background-position: center; cursor: pointer; transition: transform 0.4s ease; border: 1px solid var(--border); aspect-ratio: 1.5 / 1; }
.feature-card:nth-child(1) { aspect-ratio: 2 / 1; }
.feature-card:nth-child(2), .feature-card:nth-child(3) { aspect-ratio: 1 / 1; }
.feature-card:hover { transform: translateY(-5px); }
.feature-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85) 100%); }
.feature-card-content { position: absolute; bottom: 1.5rem; left: 1.5rem; z-index: 1; }
.feature-card-content small { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; }
.feature-card-content h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin: 0.3rem 0 0.5rem; color: #fff; }
.feature-card-content a { color: #fff; text-decoration: none; font-size: 0.85rem; font-weight: 600; border-bottom: 1px solid var(--gold); padding-bottom: 0.2rem; }

/* Products */
.products-section { max-width: 1400px; margin: 0 auto; padding: 1rem 5% 5rem; }
.results-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; color: var(--text-muted); font-size: 0.9rem; }
.results-info strong { color: #fff; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--bg-card); border-radius: 14px; overflow: hidden; transition: all 0.4s ease; border: 1px solid var(--border); cursor: pointer; display: flex; flex-direction: column; animation: fadeInUp 0.5s ease-out backwards; }
.product-card:hover { transform: translateY(-8px); background: var(--bg-card-hover); border-color: var(--gold); box-shadow: 0 15px 40px rgba(240, 193, 75, 0.12); }
.card-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #000; }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover img { transform: scale(1.07); }
.badge { position: absolute; top: 12px; left: 12px; padding: 0.3rem 0.7rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.badge.new { background: #fff; color: #000; }
.badge.hot { background: var(--error); color: #fff; }
.badge.sale { background: var(--gold); color: #000; }
.fav-btn { position: absolute; top: 12px; right: 12px; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem; transition: all 0.3s; color: #fff; z-index: 2; }
.fav-btn:hover { background: var(--heart); transform: scale(1.1); }
.fav-btn.active { background: var(--heart); color: #fff; }
.quick-view { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px); color: #fff; padding: 0.8rem; text-align: center; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; transform: translateY(100%); transition: transform 0.3s ease; }
.product-card:hover .quick-view { transform: translateY(0); }
.card-body { padding: 1rem 1.2rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.card-brand { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; font-weight: 600; margin-bottom: 0.3rem; }
.card-body h4 { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 600; }
.card-rating { display: flex; align-items: center; gap: 0.3rem; margin-bottom: 0.6rem; font-size: 0.8rem; }
.stars { color: var(--gold); }
.review-count { color: var(--text-muted); }
.card-footer-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price-block { display: flex; align-items: center; gap: 0.5rem; }
.price { font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.price-old { font-size: 0.85rem; color: var(--text-muted); text-decoration: line-through; }
.add-cart-btn { background: #fff; color: #000; border: none; padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.3s; }
.add-cart-btn:hover { background: var(--gold); }
.add-cart-btn.added { background: var(--success); color: #fff; }
.empty-filter { grid-column: 1 / -1; text-align: center; padding: 4rem 2rem; color: var(--text-muted); }

/* Sale-specific badge */
.discount-badge { position: absolute; top: 12px; right: 60px; background: var(--error); color: #fff; padding: 0.4rem 0.7rem; border-radius: 20px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; z-index: 2; }

/* Promo */
.promo { max-width: 1300px; margin: 4rem auto; padding: 3rem 2rem; background: linear-gradient(135deg, #1a1a1a 0%, #2b2b2b 100%); border-radius: 20px; text-align: center; border: 1px solid var(--border); }
.promo h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; margin: 0 0 0.8rem; }
.promo h2 span { color: var(--gold); }
.promo p { color: var(--text-muted); max-width: 480px; margin: 0 auto 1.5rem; }
.promo-btn { display: inline-block; background: var(--gold); color: #000; padding: 0.9rem 2rem; border-radius: 30px; text-decoration: none; font-weight: 700; transition: all 0.3s; }
.promo-btn:hover { background: #fff; transform: translateY(-2px); }

/* Toast */
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--bg-card); border: 1px solid var(--gold); color: #fff; padding: 1rem 1.5rem; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 1500; transform: translateX(120%); transition: transform 0.4s ease; font-size: 0.9rem; font-weight: 500; }
.toast.show { transform: translateX(0); }

/* Footer */
footer { background: #050505; padding: 3rem 5% 1.5rem; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; max-width: 1400px; margin: 0 auto 2rem; }
.footer-col h4 { color: var(--gold); font-size: 1rem; margin: 0 0 1rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col p, .footer-col a { color: var(--text-muted); text-decoration: none; display: block; margin-bottom: 0.5rem; font-size: 0.9rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: #fff; margin-bottom: 0.8rem; }
.footer-bottom { max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* Responsive */
@media (max-width: 1100px) { .feature-grid { grid-template-columns: 1fr 1fr; } .feature-card:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 2.5 / 1; } }
@media (max-width: 900px) {
  header { flex-wrap: wrap; gap: 0.8rem; padding: 0.8rem 1rem; }
  .nav-container { order: 3; width: 100%; }
  nav { gap: 1rem; flex-wrap: wrap; justify-content: center; font-size: 0.85rem; }
  .search-box input { width: 140px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 3rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(1) { aspect-ratio: 2 / 1; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .hero-stats { gap: 1.5rem; }
  .category-bar { flex-direction: column; align-items: stretch; }
}