/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
   background-color: #0b0c10;
  color: white;  margin: 0;
  padding: 0;
}

.sideCart {

  height: 230px;

}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== Product Card Layout ===== */
.product-card2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
   background-color: #0b0c10;
  color: white;  padding: 40px;
  border-radius: 24px;
  max-width: 1100px;
  margin:1px 7px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  align-items: center;  

}

.left {
  text-align: center;
}

.product-image {
  width: 100%;
  max-width: 300px;
  object-fit: contain;
  border-radius: 16px;
}

/* ===== Right Content ===== */
.right h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.sub {
  color: #777;
  font-size: 1rem;
  margin-bottom: 16px;
}

.price {
  font-size: 1.7rem;
  font-weight: bold;
   background-color: #0b0c10;
  color: white;}

.original {
  text-decoration: line-through;
  color: #aaa;
  font-size: 1rem;
  margin-left: 10px;
}

.discount {
  background: #4f46e5;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.timer {
  font-weight: bold;
  color: #fff;
}

.views {
  color: #27ae60;
  margin: 10px 0;
  font-size: 14px;
}

.breadcrumb {
  font-size: 14px;
  color: #666;
  margin-bottom: 5px;
}

.tag2 {
  font-size: 13px;
  color: #d63384;
  font-weight: bold;
  margin-bottom: 10px;
  display: inline-block;
}

/* ===== Colors Section ===== */
.colors {
  display: flex;
  gap: 12px;
  margin: 16px 0;
}

.colors img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.3s;
}

.colors img:hover,
.colors img.selected {
  border-color: #000;
}

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

.quantity button {
  padding: 8px 14px;
  font-size: 18px;
   background-color: #0b0c10;
  color: white; 
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.quantity input {
  width: 60px;
  padding: 8px;
  font-size: 16px;
  text-align: center;

  border: 1px solid #ddd;
  border-radius: 8px;   background-color: #0b0c10;
  color: white;
}

/* ===== Buttons ===== */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.buttons button {
  color: rgb(0, 0, 0);
  border: none;
  padding: 12px 24px;
  font-weight: bold;  
    /* white text */
  border-radius: 8px;
  transition: 0.3s;
}
.buttons button:hover {
  color: black;
}

/* Scrollbar width */
::-webkit-scrollbar {
  width: 10px;
}

/* Scrollbar track (background) */
::-webkit-scrollbar-track {
  background: #1a1a1a; /* dark track */
  border-radius: 10px;
}

/* Scrollbar thumb (the draggable part) */
::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ff00cc, #00e5ff);

  border-radius: 10px;
}

/* On hover effect */
::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(45deg, #00e5ff, #ff00cc);

}

.buttons .buy {
  font-weight: bold;
  border-radius: 8px;
  transition: 0.3s;
}
.buttons .buy:hover {

}

.buttons .cart {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}
.buttons .cart:hover {
  background-color: #fff;
  color: #000;

}


/* ===== Corporate Section ===== */
.corporate {
  background-color: #ffe8d0;
  padding: 12px;
  border-radius: 5px;
  font-size: 14px;
  margin-top: 20px;
}

.bulk {
  background: black;
  color: white;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 6px;
}
















/* ===== Side Cart ===== */
.side-cart {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
 background-color: #0b0c10;
  color: white;  margin: 0;  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.4s ease;
  padding: 20px;
  overflow-y: auto;
  z-index: 1000;
}

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

.side-cart h2 {
  margin-top: 0;
  text-align: center;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.cart-item img {
  width: 75px;
  height: 90px;
  margin-right: 10px;
  object-fit: cover;
  border-radius: 8px;
}

.close-btn {
  margin-top: 20px;
  display: block;
  width: 100%;
  padding: 10px;
  background-color: #ff4d4d;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .product-card2 {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .colors img {
    width: 50px;
    height: 50px;
  }

  .buttons {
    flex-direction: column;
  }

  .buttons button {
    width: 100%;
  }
}

.remove-btn {
  margin-top: 10px;
  background: #ff4d4d;
  color: white;
  border: none;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 6px;
}

.remove-btn:hover {
  background: #e60000;
}

/* Cart Open Animation */
.side-cart.slide-in {
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0%);
    opacity: 1;
  }
}

/* Product Add Animation */
.cart-item.fade-in {
  animation: fadeInCartItem 0.3s ease;
}

@keyframes fadeInCartItem {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }

  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* Total Summary Styling */
.cart-total {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  padding-top: 10px;
  margin-top: 10px;

}

.thumb {
  width: 50px;
  height: 50px;
  margin-right: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 6px;
  transition: 0.3s ease;
}

.thumb:hover {
  border-color: #333;
}









/* ===== Responsive ===== */

/* Tablets and small laptops */
@media (max-width: 992px) {
  .product-card2 {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 25px;
  }

  .product-image {
    max-width: 250px;
  }

  .right h1 {
    font-size: 1.7rem;
  }

  .price {
    font-size: 1.5rem;
  }

  .discount {
    padding: 6px 12px;
    font-size: 14px;
  }
}

/* Mobile screens */
@media (max-width: 768px) {
  .product-card2 {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .product-image {
    max-width: 220px;
  }

  .colors img {
    width: 50px;
    height: 50px;
  }

  .buttons {
    flex-direction: column;
  }

  .buttons button {
    width: 100%;
    font-size: 14px;
    padding: 12px;
  }

  .side-cart {
    width: 80%;
    right: -100%;
  }

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

/* Extra small mobiles */
@media (max-width: 480px) {

  .product-card2 {
    padding: 15px;
    gap: 15px;
  }

  .product-image {
    max-width: 180px;
  }

  .right h1 {
    font-size: 1.4rem;
  }

  .sub {
    font-size: 0.9rem;
  }

  .price {
    font-size: 1.3rem;
  }

  .discount {
    font-size: 12px;
    padding: 5px 10px;
  }

  .quantity input {
    width: 45px;
    font-size: 14px;
  }

  .side-cart {
    width: 100%;
  }

  .cart-item img {
    width: 60px;
    height: 70px;
  }

  .remove-btn {
    font-size: 12px;
    padding: 5px 10px;
  }
}


/* ===== Cart Quantity Controls ===== */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.quantity-control button {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  width: 22px;
  height: 22px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}



.quantity-control .quantity {
  min-width: 25px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}





/* ===== Side Cart Header Cross ===== */
.side-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.side-cart-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.close-cross {
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  color: #ff4d4d;
  transition: transform 0.2s ease, color 0.2s ease;
}

.close-cross:hover {
  color: #ff1a1a;
  transform: rotate(90deg);
}

/* ===== Checkout Button ===== */
.checkout-btn-container {
  margin-top: 20px;
  text-align: center;
}

.checkout-btn {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(90deg, #ff00cc, #00e5ff);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.checkout-btn:hover {
  background: linear-gradient(90deg, #00e5ff, #ff00cc);
  transform: translateY(-2px);
}
/* Make side cart a flex container with column layout */
.side-cart {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Keeps header + items on top, checkout at bottom */
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background-color: #0b0c10;
  color: white;
  padding: 20px;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.4s ease;
  z-index: 1000;
}

/* Cart items scrollable */
#sideCartItems {
  overflow-y: auto;
  flex-grow: 1; /* takes all remaining space */
  margin-bottom: 20px;
}

/* Checkout button stays at bottom */
.checkout-btn-container {
  flex-shrink: 0; /* ensures button doesn’t shrink */
  width: 100%;
}
/* Side cart flex column */
.side-cart {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 350px;
  position: fixed;
  top: 0;
  right: -400px;
  background-color: #0b0c10;
  color: white;
  padding: 20px;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.4s ease;
  z-index: 1000;
}

/* Cart items scrollable */
#sideCartItems {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 20px;
}

/* Bottom container: Total + Checkout */
.cart-bottom {
  flex-shrink: 0;  /* Always visible */
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Total Price */
.cart-total {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  padding: 5px 0;
}

/* Checkout Button */
.checkout-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(90deg, #ff00cc, #00e5ff);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.checkout-btn:hover {
  background: linear-gradient(90deg, #00e5ff, #ff00cc);
  transform: translateY(-2px);
}

.side-cart h2 {
    position: relative;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 700;
    background: linear-gradient(to right, #ec4899, #a855f7, #3b82f6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 10px 0;
    line-height: 1.2; /* slightly smaller for better underline placement */
}

.side-cart h2::after {
    content: "";
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, #ec4899, #a855f7, #3b82f6);
    position: absolute;
    left: 50%;
    bottom: -5px; /* push it slightly below the text */
    transform: translateX(-50%);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.side-cart-header .center {
    display: flex;
    justify-content: center; /* horizontal centering */
    align-items: center;     /* vertical centering if needed */
}
