:root {
  --brand: #66101f;
  --brand-dark: #4d0915;
  --gold: #d4af37;
  --text: #333;
  --light: #f4f4f4;
  --surface: #fff;
  --shadow: 0 15px 40px rgba(0, 0, 0, .15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { padding-top: 76px; overflow-x: hidden; background: var(--surface); color: var(--text); font-family: Poppins, sans-serif; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { text-decoration: none; }

header { position: fixed; top: 0; left: 0; z-index: 999; width: 100%; padding: 18px 0; border-bottom: 1px solid rgba(212,175,55,.2); background: rgba(102,16,31,.95); box-shadow: 0 3px 10px rgba(0,0,0,.2); backdrop-filter: blur(12px); transition: background .25s, border-color .25s, box-shadow .25s; }
header.is-scrolled { border-color: transparent; background: transparent; box-shadow: none; backdrop-filter: none; }
header.is-scrolled .logo, header.is-scrolled .menu-toggle { color: #111; }
.container { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; width: 90%; max-width: 1400px; margin: auto; }
.logo { color: #fff; font-size: 28px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.brand-logo { display: flex; align-items: center; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: #fff; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.menu-toggle { display: flex; z-index: 1002; padding: 4px; border: 0; background: none; color: #fff; cursor: pointer; }
nav { position: fixed; top: 76px; right: 0; left: 0; display: none; max-height: calc(100vh - 76px); padding-bottom: 20px; flex-direction: column; flex-wrap: nowrap; gap: 0; overflow-y: auto; overscroll-behavior: contain; background: #fff; }
nav.active { display: flex; }
nav a { position: relative; color: #111; font-weight: 500; transition: color .3s; }
nav a { width: 100%; padding: 16px 20px; border-bottom: 1px solid #e5e5e5; font-size: 17px; text-align: left; }
nav a::after { position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: var(--gold); content: ""; transition: width .3s; }
nav a:hover { color: var(--gold); }
nav a:hover::after { width: 100%; }

.hero { position: relative; display: flex; height: 100vh; margin-top: -76px; justify-content: center; align-items: center; background: url("https://images.unsplash.com/photo-1441986300917-64674bd600d8?w=1800") center / cover fixed; text-align: center; }
.hero::before, .overlay { position: absolute; inset: 0; content: ""; background: linear-gradient(rgba(20,20,20,.45), rgba(20,20,20,.65)); }
.overlay { background: rgba(0,0,0,.25); }
.hero-content { position: relative; z-index: 1; width: 90%; max-width: 900px; color: #fff; animation: fade-up 1.2s ease; }
.hero h1 { margin-bottom: 20px; font-size: 58px; text-transform: uppercase; text-shadow: 0 10px 30px rgba(0,0,0,.45); }
.hero p { margin-bottom: 35px; font-size: 24px; }
.btn, .view-btn { display: inline-block; padding: 14px 30px; border-radius: 40px; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(102,16,31,.35); transition: transform .3s, background .3s, color .3s; }
.btn:hover { transform: translateY(-3px); background: linear-gradient(135deg, var(--gold), #b89220); color: #111; }
.view-btn { padding: 12px 24px; box-shadow: none; }

.section { padding: 90px 10%; text-align: center; }
.section h1, .section h2 { margin-bottom: 25px; color: var(--brand); }
.section h1 { font-size: 46px; }
.section h2 { position: relative; display: inline-block; font-size: 42px; }
.section h2::after { display: block; width: 70px; height: 4px; margin: 14px auto 0; border-radius: 5px; background: var(--gold); content: ""; }
.section p { max-width: 900px; margin: auto; font-size: 18px; }
.gray { background: var(--light); }
.mission { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 50px; text-align: left; }
#contact p { margin-bottom: 8px; }

.cards, .products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; max-width: 1400px; margin: 50px auto 0; }
.products-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 35px; }
.card, .product-card { overflow: hidden; border: 1px solid #eee; border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); text-align: center; transition: transform .35s, box-shadow .35s; }
.card:hover, .product-card:hover { transform: translateY(-8px); box-shadow: 0 18px 42px rgba(0,0,0,.2); }
.card img, .product-card img { width: 100%; height: 420px; object-fit: cover; transition: transform .5s; }
.product-card img { height: 370px; background: #eee; }
.card:hover img, .product-card:hover img { transform: scale(1.05); }
.product-card img.image-error { min-height: 250px; }
.card-content { padding: 25px; }
.card-content h3 { margin-bottom: 15px; color: var(--brand); font-size: 28px; }
.card-content p { margin-bottom: 20px; line-height: 2; }
.product-sizes { padding: 16px 12px 0 !important; color: #444; font-size: 16px !important; }
.product-sizes strong { color: var(--brand); }
.product-card .btn { margin: 20px; }
.collection-intro { padding-bottom: 35px; }
.gallery-section { padding-top: 25px; }
.search-box { display: block; width: min(350px, 100%); margin: 30px auto 0; padding: 15px 20px; border: 2px solid var(--brand); border-radius: 30px; outline: none; background: #fff; font-size: 17px; }
.search-box:hover, .search-box:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(123,0,0,.12); }
.product-card[hidden] { display: none; }

footer { padding: 40px 20px; background: linear-gradient(135deg, var(--brand), #1b1b1b); color: #fff; text-align: center; }
footer a { color: #fff; }
footer a:hover { color: var(--gold) !important; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--brand); }
::-webkit-scrollbar-track { background: #ececec; }
@keyframes fade-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .hero h1 { font-size: 42px; }
  .hero p { font-size: 20px; }
  .section h1 { font-size: 38px; }
  .section h2 { font-size: 34px; }
  .card img, .product-card img { height: 350px; }
}

@media (max-width: 768px) {
  body { padding-top: 70px; }
  header { padding: 12px 0; }
  .logo { max-width: 170px; font-size: 20px; line-height: 1.15; word-break: break-word; }
  .brand-logo { width: 46px; height: 46px; }
  nav { position: fixed; top: 70px; right: 0; left: 0; display: none; max-height: calc(100vh - 70px); padding-bottom: 20px; flex-direction: column; flex-wrap: nowrap; gap: 0; overflow-y: auto; background: #fff; }
  nav a::after { display: none; }
  .hero { height: 80vh; margin-top: -70px; background-attachment: scroll; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 18px; }
  .section { padding: 70px 8%; }
  .cards, .products-grid { grid-template-columns: 1fr; gap: 22px; }
  .product-card img { height: 320px; }
}

@media (max-width: 500px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .section h1, .section h2 { font-size: 30px; }
  .product-card img { height: auto; aspect-ratio: 4 / 5; }
}
