/* Updated stylesheet for Dazzle Vastra */

/* Base styles */
:root {
  --primary: #c2185b;
  --primary-700: #a3154b;
  --accent: #d63384;
  --bg: #fff8fc;
}
* { box-sizing: border-box; }
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: #333;
  margin: 0;
  padding: 0;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0;
}

/* Header */
.horizontal-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  position: relative;
  z-index: 999;
}
.sticky { position: sticky; top: 0; }

/* Header layout */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

/* Logo */
.logo {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo img {
  height: 100px;
  max-height: 120px;
  object-fit: contain;
}

/* Hamburger */
.menu-toggle {
  display: none;
  z-index: 1100;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}

/* Header icons (wishlist/cart) */
.header-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}
.nav-icon-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.nav-icon { height: 24px; display: block; }
.icon-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* Navigation (mobile drawer + desktop) */
.main-nav {
  display: none;
  position: fixed;
  top: 64px; /* appear just below header */
  left: -250px;
  width: 250px;
  height: calc(100% - 64px);
  background: #fff;
  box-shadow: 2px 0 14px rgba(0,0,0,0.12);
  flex-direction: column;
  padding: 20px;
  transition: left 0.28s ease;
  z-index: 1050;
}
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-direction: column;
}
.main-nav a {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
}
.main-nav a:hover,
.main-nav a.active {
  background-color: #f8d7e6;
  color: #a3154b;
}
.main-nav.show,
.main-nav.mobile-open {
  left: 0;
  display: block;
}

/* Hero */
.hero-banner { width:100%; overflow:hidden; position:relative; margin-bottom:30px; }
.hero-image-container { position:relative; width:100%; max-height:600px; }
.hero-image { width:100%; height:100%; max-height:600px; object-fit:cover; display:block; }
.hero-btn {
  position:absolute; bottom:40px; left:50%; transform:translateX(-50%);
  background:var(--primary); color:#fff; padding:14px 28px; font-size:18px; font-weight:600;
  text-decoration:none; border-radius:5px; box-shadow:0 4px 8px rgba(0,0,0,0.16);
}
.hero-btn:hover { background:var(--primary-700); }

/* Sections */
.section-title { text-align:center; margin-bottom:30px; font-size:2rem; color:var(--primary); }

/* Products */
.product-flex { display:flex; flex-wrap:wrap; gap:20px; justify-content:center; }
.product-card {
  width:250px; max-width:300px; background:#fff; border-radius:10px;
  box-shadow:0 4px 8px rgba(0,0,0,0.08); overflow:hidden; text-align:center; padding:15px;
  transition:transform .28s; position:relative;
}
.product-card:hover { transform:translateY(-6px); }
.product-card img { height:220px; object-fit:cover; margin-bottom:10px; }
.product-card h3 { color:var(--primary-700); font-size:18px; margin-bottom:5px; }
.price { color:var(--accent); font-weight:bold; margin-bottom:10px; }

.add-to-cart-btn, .buy-now-btn {
  background:var(--primary); color:#fff; padding:10px 20px; border-radius:5px; text-decoration:none;
  display:inline-block; font-weight:600; transition:background .2s;
}
.add-to-cart-btn:hover, .buy-now-btn:hover { background:var(--primary-700); }
.buy-now-btn { margin-left:10px; }

.wishlist-icon { position:absolute; top:10px; right:10px; font-size:20px; color:#d63384; cursor:pointer; }

/* Size selector */
.size-selector { margin:10px 0 12px; text-align:center; font-weight:500; }
.size-options { display:flex; justify-content:center; flex-wrap:wrap; gap:6px; margin:6px 0 12px; }
.size-box {
  display:inline-block; padding:6px 12px; border:2px solid var(--primary); border-radius:25px; cursor:pointer;
  font-size:14px; color:var(--primary); background:#fff; transition:all .2s;
}
.size-box:hover { background:#f8e4ee; transform:scale(1.05); }
.size-box.active { background:var(--primary); color:#fff; font-weight:700; box-shadow:0 2px 6px rgba(0,0,0,0.12); }

/* Remove button */
.remove-btn {
  margin-top:10px; background:#fff0f5; border:1px solid #d63384; color:#d63384; padding:8px 12px; border-radius:5px;
  cursor:pointer; font-weight:600;
}
.remove-btn:hover { background:#fce4ec; }

/* Product grid */
#product-list { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; justify-items:center; }

/* Footer */
footer { background:#f5f5f5; text-align:center; padding:20px 0; font-size:14px; color:#777; }

/* Promo note */
.promo-note {
  max-width:1200px; margin:12px auto; padding:12px 18px;
  background: linear-gradient(90deg, var(--primary) 0%, #e64a7a 100%);
  color:#fff; border-radius:10px; text-align:center; font-weight:700; font-size:1rem;
  box-shadow:0 6px 18px rgba(194,33,91,0.12); display:flex; align-items:center; justify-content:center;
}

/* Responsive */
@media (max-width:1024px) {
  #product-list { grid-template-columns:repeat(2,1fr); }
}

@media (max-width:768px) {
  .menu-toggle { display:flex; }

  .horizontal-header .container.header-flex {
    position: relative;
    min-height: 64px;
  }

  /* Hamburger - left */
  .horizontal-header .menu-toggle {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
  }

  /* Logo - center */
  .horizontal-header .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    pointer-events: none;
  }
  .horizontal-header .logo img {
    height: 64px;
    max-height: 72px;
    width: auto;
  }

  /* Icons - right */
  .horizontal-header .header-icons {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
  }

  /* Mobile nav drawer */
  .main-nav {
    position: fixed;
    top: 64px;
    left: -250px;
    width: 250px;
    height: calc(100% - 64px);
    background: #fff;
    padding: 20px;
    z-index: 1090;
    display: none;
    box-shadow: 2px 0 10px rgba(0,0,0,0.15);
  }
  .main-nav.show, .main-nav.mobile-open { left: 0; display:block; }

  #product-list { grid-template-columns:1fr 1fr; }
  .product-card { width:90%; max-width:100%; }
}

@media (max-width:600px) {
  #product-list { grid-template-columns:1fr; }
  .promo-note { padding:10px 12px; margin:10px; font-size:0.95rem; border-radius:8px; }
  .logo img { height:80px; max-height:80px; }
}

/* Utilities */
.hidden { display:none!important; }
.text-center { text-align:center; }
