:root {
  --color-white: #ffffff;
  --color-brand-light: #f3e8ff;
  --color-brand-default: #c084fc;
  --color-brand-dark: #6b21a8;
  --color-brand-accent: #a855f7;
  --color-gray-600: #4b5563;
  --color-gray-900: #111827;
  --color-success: #10b981;
  --color-heart: #ff4757;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(
    135deg,
    var(--color-white) 0%,
    var(--color-brand-light) 100%
  );
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, sans-serif;
  color: var(--color-gray-900);
  padding-top: 80px;
}

/* --- Navbar --- */
.fixed-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(192, 132, 252, 0.2);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 45px;
}

/* --- Layout --- */
.container {
  max-width: 1100px;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 1rem;
}

/* --- Image Section & Favorite Icon --- */
.product-gallery {
  position: sticky;
  top: 100px;
}

.main-img {
  width: 100%;
  border-radius: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: white;
  padding: 1rem;
  display: block;
}

.wishlist-btn {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-gray-600);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
  border: none;
}

.wishlist-btn:hover {
  transform: scale(1.15);
}
.wishlist-btn.active {
  color: var(--color-heart);
  background: white;
}

@keyframes heartBeat {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.4);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.wishlist-btn.active i {
  animation: heartBeat 0.4s ease-out;
}

/* --- Details Section --- */
.glass-panel {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(15px);
  border-radius: 2rem;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.brand-tag {
  color: var(--color-brand-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

h1 {
  font-size: 2.5rem;
  margin: 0.5rem 0;
  color: var(--color-brand-dark);
}
.price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin: 0.5rem 0;
}
.mrp {
  text-decoration: line-through;
  color: var(--color-gray-600);
  font-size: 1.1rem;
  margin-left: 10px;
  font-weight: 400;
}

.description {
  line-height: 1.6;
  color: var(--color-gray-600);
  margin: 1.5rem 0;
}

/* --- Selectors --- */
.selector-label {
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: block;
  color: var(--color-brand-dark);
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.size-btn {
  border: 2px solid #e5e7eb;
  background: white;
  padding: 0.8rem;
  border-radius: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}
.size-btn.active {
  background: var(--color-brand-dark);
  color: white;
  border-color: var(--color-brand-dark);
}

.qty-input {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: white;
  width: fit-content;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 2rem;
}
.qty-btn {
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1.2rem;
  color: var(--color-brand-dark);
}

/* --- Buttons --- */
.action-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.btn {
  padding: 1.2rem;
  border-radius: 1.2rem;
  border: none;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: 0.3s;
  font-size: 1rem;
}
.btn-cart {
  background: white;
  border: 2px solid var(--color-brand-dark);
  color: var(--color-brand-dark);
}
.btn-buy {
  background: var(--color-brand-dark);
  color: white;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(107, 33, 168, 0.15);
}

/* Responsive */
@media (max-width: 850px) {
  .container {
    grid-template-columns: 1fr;
    margin: 1rem auto;
  }
  .product-gallery {
    position: relative;
    top: 0;
  }
  h1 {
    font-size: 2rem;
  }
}


/* new added */
.size-btn.active-size {
  background: black;
  color: white;
  border: 2px solid black;
}
.size-btn:hover {
  border: 2px solid black;
}