/* =========================
   GLOBAL STYLES
========================= */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-bg: #f4e1e1;
  --dark-bg: #1a1a1a;
  --accent: #ffc9e3;
  --light: #ffffff;
  --text-dark: #333;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* =========================
   HEADER & NAV
========================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--dark-bg);
  z-index: 999;
  padding: 15px 0;
  box-shadow: var(--box-shadow);
}

.navbar {
  max-width: 100%;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo a {
  color: var(--light);
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
  position: absolute;
  bottom: -6px;
  left: 0;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Cart in Navbar */
.cart {
  position: relative;
  cursor: pointer;
  margin-left: 20px;
}

.cart img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(0); /* darkens the icon */
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: red;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--dark-bg);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 20px;
    border-radius: 0 0 10px 10px;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: flex;
    margin-left: auto;
  }
}

/* =========================
   PRODUCT LISTINGS PAGE
========================= */
.product-listings {
  padding: 140px 20px 60px;
  background: var(--primary-bg);
}

.product-listings h1 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: #4a2c2c;
  margin-bottom: 50px;
}

.wig-card {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  box-shadow: var(--box-shadow);
  border-radius: 16px;
  margin: 30px auto;
  max-width: 900px;
  overflow: hidden;
}

.wig-card img {
  width: 300px;
  height: 300px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border-radius: 10px;
}

.wig-card img:hover {
  box-shadow: 0 10px 30px rgba(255, 182, 193, 0.4);
  transform: scale(1.03);
  transition: all 0.3s ease;
}

.wig-info {
  flex: 1;
  padding: 30px;
  background: var(--dark-bg);
  color: var(--light);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wig-info h2 {
  color: #ffbde0;
  font-size: 26px;
  margin-bottom: 10px;
}

.wig-info p {
  margin: 6px 0;
  font-size: 16px;
}

.wig-info .final-sale {
  color: #ff6b6b;
  font-weight: bold;
  margin-top: 10px;
}

.view-details-btn {
  display: inline-block;
  background: #ffbde0;
  color: #1a1a1a;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: 0.3s;
  cursor: pointer;
}

.view-details-btn:hover {
  background: #ff9cc9;
  color: #fff;
}

/* =========================
   PRODUCT PAGE
========================= */
.product-page {
  margin: 100px auto 50px;
  display: flex;
  gap: 40px;
  padding: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.product-gallery {
  flex: 1;
  max-width: 500px;
}

.main-display img,
.main-display video {
  width: 100%;
  max-height: 500px;
  border-radius: 10px;
  object-fit: cover;
}

#main-display {
  width: 400px;
  height: 500px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}

.thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  overflow-x: auto;
}

.thumbnails img,
.thumbnails video {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.3s;
}

.thumbnails img:hover,
.thumbnails video:hover {
  border: 2px solid #ff9cc9;
}

.product-info {
  flex: 1;
  min-width: 300px;
}

.product-info h1 {
  font-size: 28px;
  margin-bottom: 15px;
}

.price-box {
  font-size: 24px;
  font-weight: bold;
  color: #ff6b9d;
  margin: 15px 0;
}

.lace-options button.active,
#length-buttons button.active {
  background: #ff9cc9;
  color: #fff;
  border: 2px solid #ff6fae;
}

.length-options {
  margin: 20px 0;
}

.length-options button {
  background: #f4f4f4;
  border: 1px solid #ddd;
  margin: 5px;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.length-options button:hover {
  background: var(--accent);
  border-color: #ff9cc9;
}

.quantity {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity button {
  width: 30px;
  height: 30px;
  border: none;
  background: #ffbde0;
  font-size: 18px;
  cursor: pointer;
  border-radius: 6px;
}

.quantity input {
  width: 50px;
  text-align: center;
  font-size: 16px;
}

/* Actions Section */
.actions {
  margin: 25px 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.add-to-bag,
#clear-cart,
.checkout-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

.add-to-bag {
  background: #ffbde0;
}

#clear-cart {
  background: #ffbde0;
}

.checkout-btn {
  background: var(--accent);
}

.add-to-bag:hover,
#clear-cart:hover,
.checkout-btn:hover {
  background: #ff9cc9;
  color: #fff;
}

.details {
  margin-top: 25px;
}

.details ul {
  margin: 10px 0;
  padding-left: 20px;
}

.details li {
  margin: 6px 0;
  font-size: 15px;
}

.shipping-warning {
  color: #ff0000;
  font-weight: bold;
  margin: 15px 0;
  font-size: 18px;
}

/* =========================
   CHECKOUT PAGE
========================= */
.checkout-container {
  max-width: 600px;
  margin: 140px auto 40px;
  padding: 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.cart-item {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.cart-item img {
  width: 80px;
  border-radius: 5px;
}

.cart-details h4 {
  font-size: 18px;
  margin: 0;
}

.cart-details p {
  margin: 5px 0;
  font-size: 14px;
}

.promo, .note {
  margin: 20px 0;
}

input[type="text"] {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.summary {
  border-top: 1px solid #ccc;
  padding-top: 20px;
  margin-top: 20px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 14px;
}

.total {
  font-weight: 600;
  font-size: 18px;
  margin-top: 10px;
}

.shipping-note {
  font-size: 12px;
  color: #555;
  margin-top: 15px;
  line-height: 1.4;
}
