/* ===== Base Styles ===== */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    color: #f3f4f6;
    min-height: 100vh;
}

header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #f43f5e, #fbbf24, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

input, select, button {
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease-in-out;
}

input.search, select {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
}

input.search::placeholder { color: #d1d5db; }

input.search:focus, select:focus {
    outline: none;
    border-color: #ef4444;
    background-color: rgba(255,255,255,0.2);
}

button {
    font-weight: 600;
    cursor: pointer;
    border: none;
}

button:hover { opacity: 0.9; }

/* ===== Background Video ===== */
#bg-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -100;
    filter: blur(6px);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    z-index: -99;
}

/* ===== Product Card ===== */
.product {
    position: relative;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    padding: 1rem;
    transition: transform 0.2s;
}

.product:hover { transform: translateY(-5px); }

/* ===== Image & View Button ===== */
.img-wrapper {
    position: relative;
}

.img-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s;
}

.img-wrapper:hover img { transform: scale(1.05); }

.view-product-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.7);
    color: #000;
    border: 1px solid #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s, color 0.3s;
    cursor: pointer;
}

.img-wrapper:hover .view-product-btn {
    opacity: 1;
    background: rgba(255,255,255,0.8);
    color: #000;
}

/* ===== Discount Sticker ===== */
.sticker {
    position: absolute;
    top: 10px;
    left: -10px;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: #fff;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 50px;
    transform: rotate(-15deg);
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 2; /* ensures it's above the image */
}


/* ===== Price Styling ===== */
.price {
    font-size: 16px;
    margin: 10px 0;
    position: relative;
}

.original-price {
    text-decoration: line-through;
    color: red;
    margin-right: 5px;
}

.discount-price {
    color: green;
    font-weight: bold;
}

.cart-panel.open { right: 0; }

#cart-items { list-style: none; padding: 0; flex-grow: 1; }
#cart-items li { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dashed rgba(255,255,255,0.1); }

#close-cart { background-color: #4b5563; }
#close-cart:hover { background-color: #374151; }

#cart-overlay {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 15;
    display: none;
}

/* ===== Promotional Section ===== */
.split-section {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
}

/* Left: Slider */
.promo-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background-color: rgba(0,0,0,0.3);
}

.promo-slider .slides img { width: 100%; display: none; opacity: 0.9; transition: opacity 0.5s ease-in-out; }
.promo-slider .slides img.active { display: block; opacity: 1; }

.promo-slider button.prev, .promo-slider button.next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5); border:none; color:white;
    padding:10px; font-size:24px; border-radius:50%; cursor:pointer;
}

.promo-slider button.prev { left:10px; }
.promo-slider button.next { right:10px; }

/* Right: Video */
.promo-video { flex:1; border-radius:10px; overflow:hidden; }
.promo-video video { width:100%; height:100%; object-fit:cover; border-radius:10px; }

/* ===== Footer ===== */
footer {
    background: transparent;
    color: #fff;
    padding: 40px 20px 20px;
    position: relative;
    z-index: 10;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-left {
    text-align: left;
    min-width: 200px;
    margin: 10px 0;
}

/* Center section */
.footer-center {
    text-align: center;
    margin: 10px 0;
}

/* Social icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #1e90ff;
    border-color: #1e90ff;
}

/* review */
body {
  background: #0a0a0a;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}
.review-section {
  padding: 20px;
  display: flex;
  justify-content: center;
}
.review-container {
  display: flex;
  gap: 15px;
  width: 100%;
  max-width: 800px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.rating-input, .comments-display {
  flex: 1;
  background: rgba(255,255,255,0.03);
  padding: 12px;
  border-radius: 15px;
}
.rating-row {
  display: flex;
  align-items: center;
  margin: 4px 0;
  font-size: 12px;
}
.rating-row span:first-child {
  width: 30px;
}
.bar {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.2);
  margin-left: 6px;
  border-radius: 3px;
  overflow: hidden;
}
.fill {
  height: 100%;
  width: 0%;
  background: yellow;
  border-radius: 3px;
  transition: width 0.5s ease;
}
.average-line {
  height: 2px;
  background: yellow;
  margin-top: 8px;
  border-radius: 2px;
  transition: width 0.5s ease;
}
.average-display {
  margin: 8px 0;
  font-weight: bold;
  color: #ffcc00;
  font-size: 13px;
}
.star {
  font-size: 18px;
  cursor: pointer;
  color: rgba(255, 255, 0, 0.3);
  margin-right: 2px;
  transition: color 0.2s ease;
}
.star:hover, .star.hovered, .star.selected {
  color: yellow;
}
.comment-box {
  margin-top: 8px;
}
.comment-box textarea {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 12px;
  resize: none;
  outline: none;
  height: 50px;
}
button {
  margin-top: 8px;
  padding: 8px 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(45deg, #ffcc00, #ff6600, #ff3300);
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  font-size: 13px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 10px rgba(255, 153, 0, 0.6);
}
.comment-item {
  background: rgba(255,255,255,0.08);
  padding: 8px;
  margin-bottom: 6px;
  border-radius: 10px;
  font-size: 12px;
  border-left: 2px solid yellow;
}
#comments-list {
  max-height: none; /* will change on expand */
  overflow: hidden;
}
#comments-list.expanded {
  max-height: 250px;  /* instead of 200px */
  overflow-y: auto;
}

@media (max-width: 768px) {
  .review-container {
    flex-direction: column;
  }
}