/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100..900&display=swap');

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

/* Header */
#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  background-color: black;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  z-index: 999;
  position: sticky;
  top: 0;
  left: 0;
}

#header .logo {
  height: 60px;
  width: auto;
  margin-right: auto;
}

#navbar {
  display: flex;
  align-items: center;
  justify-content: center;
}

#navbar li {
  list-style: none;
  padding: 0 20px;
  position: relative;
}

#navbar li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: aliceblue;
  transition: color 0.3s ease;
}

#navbar li a:hover,
#navbar li a.active {
  color: lightgray;
}

/* Main Layout */
.main-wrap {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  overflow-x: hidden;
}

.product {
  width: 90%;
  max-width: 750px;
  display: flex;
}

/* Image Gallery */
.image-gallery {
  flex-basis: 43%;
  background: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s ease;
}

.image-gallery:hover {
    transform: scale(1.05);
}

.image-gallery img {
  width: 100%;
  padding-top: 50px;
  object-fit: contain;
  height: 100%;
}

.image-gallery .controls {
  position: absolute;
  bottom: 40px;
  right: 20px;
}

/* Product Details */
.product-details {
  flex-basis: 53%;
  background: linear-gradient(135deg, #ffe5ec, #ffdada);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 40px 30px 40px 40px;
}

.product-details .details {
  margin-bottom: 20px;
}

.product-details h2 {
  font-size: 25px;
  font-weight: 600;
  line-height: 35px;
  margin-bottom: 8px;
  color: #011627;
}

.product-details h4 {
  font-size: 18px;
  font-weight: 700;
  line-height: 25px;
  text-transform: uppercase;
  color: #ff3f3f;
  margin-bottom: 8px;
}

.product-details p {
  font-size: 15px;
  font-weight: 500;
  line-height: 25px;
  color: #011627;
  margin-bottom: 25px;
}

/* Quantity */
.quantity {
  margin-bottom: 50px;
}

.select-quantity {
  display: flex;
  align-items: center;
}

.select-quantity h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 35px;
  margin-right: 10px;
  color: #011627;
}

.select-quantity input {
  background: #e8e8e8;
  border: 0;
  outline: 0;
  padding: 2px 2px 2px 15px;
  border-radius: 12px;
  width: 50px;
}

/* Buy Button */
.sub-btn {
  padding: 0 30px;
}

.submit {
  width: 100%;
  padding: 10px;
  border: 0;
  outline: 0;
  background: #ff3f3f;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 30px;
  box-shadow: 0 10px 10px rgba(85, 63, 240, 0.25);
  cursor: pointer;
  transition: background 0.4s linear;
  position: relative;
}

.submit:hover {
  background: #011627;
}

.sub-btn::before {
  content: '';
  position: absolute;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
  .main-wrap .product {
    flex-direction: column;
    align-items: center;
  }

  .image-gallery, .product-details {
    width: 100%;
    box-shadow: none;
    transform: none;
  }

  .product-details {
    padding: 20px;
    margin-top: 20px;
  }
}
