/* ===== GENERAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fff, #f9f9f9, #f1f1f1);
  color: #222;
  overflow-x: hidden;
}

/* Header styling */
header {
  position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: #fff;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
      z-index: 1000;
      padding: 15px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: all 0.3s ease;
      flex-wrap: nowrap; 
      box-sizing: border-box;
}

/* Logo styling with shining effect */
.logo {
  font-size: 26px;
  font-weight: 400;
  color: #000;
  letter-spacing: 4.5px;
  font-family: 'Montserrat', sans-serif;
  padding: 5px 10px;
  position: relative;
  overflow: hidden;
  margin-right: 20px;
}

.logo .tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  color: #000;
  margin-top: -2px;
  font-family: 'Montserrat', sans-serif;
  opacity: 0.8;
}

/* Shining animation */
.logo::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { left: -75%; }
  50% { left: 125%; }
  100% { left: 125%; }
}

/* Navbar styling */
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.nav-links a,
.nav-links a:visited,
.nav-links a:active {
  color: #000 !important;
  text-decoration: none;
  font-size: 20px;
  transition: 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #000 !important;
  transform: scale(1.2);
}

/* Responsive tweaks */
@media (max-width: 600px) {
  header {
    padding: 0 15px;
  }

  .logo {

        font-size: 20px !important;
        color: #000 !important;
        margin: 0 !important;
        /* Reset stack styling from old code */
        flex-direction: row !important;
        display: block !important;
    }
    
    .logo .tagline {
        display: block !important;
    }

  .nav-links {
    gap: 27px;
  }

  .nav-links a {
    font-size: 17px;
  }
}

/* ===== TAGLINE BELOW HEADER ===== */
#bannerText {
  position: fixed;
  top:70px; /* adjust based on your header height */
  width: 100%;
  text-align: center;
  background-color: white;
  color:#000;
  font-size:0.7rem;
  letter-spacing:10px;
  font-weight: 500;
  padding: 12px 0;
  transition: all 0.6s ease;
  z-index: 998;
}

#bannerText.hide {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

body {
  padding-top: 120px; /* Adjust this to match your header height */
}
/* Cart Section */
.cart-section {
  max-width: 800px;
  margin: 60px auto;
  background: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.cart-section h2 {
  text-align: center;
  margin-bottom: 25px;
  letter-spacing: 4px;
}

/* Cart Items */
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  
  background: linear-gradient(to bottom, #f5f5f5, #e0e0e0);
  padding:15px ;
  
  border:0px solid darkblue;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.cart-item img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border:2px solid black;
  border-radius: 8px;
}

.item-details {
  flex: 1;
  margin:3px;
  margin-left:10px;
  margin-top:15px;
}

.item-details h3 {
  margin: 0;
  font-size: 16px;
  font-weight:500;
  letter-spacing:1;
}

.item-details .price {
  margin-top: 5px;
  font-weight: 500;
  font-size:25px;
  color: #000;
}

/* Make the cart item a relative container */
/*.cart-item { */
  /* needed for absolute positioning of buttons 
}*/

/* Move quantity buttons to top-right of the card */
.item-controls {
  
  top: 180px;       /* distance from top of card */
  right: 10px;     /* distance from right of card */
  display: flex;
  flex-direction:row; /* stack buttons vertically */
  gap: 8px;        /* spacing between buttons */
  align-items: center;
  justify-content: flex-start;
}

.qty-btn {
  background: black;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 28px;
  border-radius: 50%; /* circular */
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.qty-btn:hover {
  background: #333;
  transform: scale(1.1);
}

.quantity {
  font-size: 20px;
  width: 30px;
  text-align: center;
}

.delete-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.delete-btn:hover {
  color: red;
}

/* Cart Summary */
.cart-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding-top: 15px;
  border-top: 2px solid #ddd;
  width: 100%;
}

/* Container for both buttons to keep them side by side */
.button-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  margin-top: 15px;
  flex-wrap: nowrap;
}

.cart-summary p {
  font-size: 28px; /* bigger */
  font-weight: 700;
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
}

/* Coupon Code Section */
.coupon-section {
  margin: 10px auto 25px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
}

.coupon-section input {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
  padding: 12px 16px;
  border: 2px solid #ff69b4;
  border-radius: 30px;
  outline: none;
  font-size: 15px;
  transition: 0.3s ease;
}

.coupon-section button {
  background: linear-gradient(135deg, #ff69b4, #ff85c1);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 120px;
}

.coupon-section input:focus {
  border-color: #e75480;
  box-shadow: 0 0 10px rgba(255, 105, 180, 0.4);
}

.coupon-section button:hover {
  background: linear-gradient(135deg, #ff85c1, #ff69b4);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 105, 180, 0.5);
}

.coupon-section button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 3px 10px rgba(255, 105, 180, 0.3);
}

/* Pay Now and Shop More Buttons */
.pay-btn,
.btn.shop-more {
  background: linear-gradient(135deg, #ff69b4, #ff85c1);
  color: white;
  border: none;
  padding: 14px 25px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  width: 180px;
  box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pay-btn:hover,
.btn.shop-more:hover {
  background: linear-gradient(135deg, #ff85c1, #ff69b4);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 105, 180, 0.5);
}

.pay-btn:active,
.btn.shop-more:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 3px 10px rgba(255, 105, 180, 0.3);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
  .cart-section {
    margin: 30px 10px;
    padding: 20px;
  }

  .cart-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .item-controls {
    justify-content: flex-end;
    width: 100%;
    margin-top: 10px;
  }

  .cart-summary {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px 10px;
  }

  .coupon-section {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin: 15px 0;
  }

  .coupon-section input {
    width: 100%;
    max-width: none;
    font-size: 14px;
    padding: 12px 16px;
  }

  .coupon-section button {
    width: auto !important;
    min-width: 100px;
    padding: 12px 20px !important;
    font-size: 14px;
    height: auto !important;
    margin-top: 0 !important;
  }

  .button-container {
    flex-direction: row;
    gap: 10px;
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    margin-top: 20px;
  }

  .pay-btn,
  .btn.shop-more {
    width: 40% !important;
    max-width: 180px;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 26px !important;
    border-radius: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 1;
  }
  
}

/* ===== Address Section Styling ===== */
.address-section {
  width: 100%;
  margin: 20px 0;
  padding: 25px;
  background: #ffffff; /* Clean White Background */
  border-radius: 16px;
  border: 1px solid #e0e0e0; /* Grey Border */
  border-top: 4px solid #ff69b4; /* Pink Top Accent */
  box-shadow: 0 5px 15px rgba(0,0,0,0.03);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  box-sizing: border-box;
}

.address-section h3 {
  width: 100%; text-align: center;
  font-size: 18px; font-weight: 600; color: #333;
  margin-bottom: 10px; text-transform: uppercase;
  letter-spacing: 1px;
}

/* INPUTS: Side-by-Side Logic */
.address-section input {
  flex: 1 1 calc(50% - 10px); /* 50% width minus gap */
  min-width: 130px;
  padding: 12px 10px 12px 42px !important; /* Left padding for icon */
  border: 1.5px solid #e2e8f0; /* Light Grey Border */
  border-radius: 10px;
  outline: none;
  font-size: 14px;
  background-color: #fcfcfc;
  color: #333;
  box-sizing: border-box;
  
  /* Icon Configuration */
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 20px 20px;
  transition: all 0.3s ease;
}

/* 🔥 PINK ICONS (Using Icons8 Colored URL) */
#name { background-image: url('https://img.icons8.com/ios-filled/50/ff69b4/user.png'); }
#phone { background-image: url('https://img.icons8.com/ios-filled/50/ff69b4/phone.png'); }
#house { background-image: url('https://img.icons8.com/ios-filled/50/ff69b4/home.png'); }
#locality { background-image: url('https://img.icons8.com/ios-filled/50/ff69b4/map-pin.png'); }
#city { background-image: url('https://img.icons8.com/ios-filled/50/ff69b4/city-buildings.png'); }
#pincode { background-image: url('https://img.icons8.com/ios-filled/50/ff69b4/marker.png'); }
#state { background-image: url('https://img.icons8.com/ios-filled/50/ff69b4/map.png'); }
#landmark { background-image: url('https://img.icons8.com/ios-filled/50/ff69b4/flag-2.png'); }

/* Focus State: Pink Glow */
.address-section input:focus {
  border-color: #ff69b4;
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.15);
}

/* Make House Address Full Width on Desktop for better look */
#house, #landmark { flex: 1 1 100%; }

.address-section input::placeholder {
  color: #888;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  /* Header & Cart */
  header { padding: 15px; }
  .nav-links { display: none; }
  .cart-section { margin: 20px 10px; padding: 15px; }
  .cart-item { flex-direction: column; align-items: flex-start; }
  .item-controls { justify-content: flex-end; width: 100%; margin-top: 10px; }
  .cart-summary { width: 100%; padding: 10px; }

  /* 🔥 ADDRESS FIX: Name/Phone side-by-side, others full width */
  .address-section { padding: 15px; gap: 10px; justify-content: space-between; }
  
  .address-section input {
    width: auto;
    flex: 1 1 calc(50% - 8px); /* Strictly 50% width */
    font-size: 13px; padding-left: 35px !important;
    background-size: 16px 16px; background-position: 10px center;
  }
  
  /* Full Width Fields on Mobile */
  #house, #landmark, #state { flex: 1 1 100%; }
}

/* For very small screens */
@media (max-width: 480px) {
  .button-container {
    gap: 8px;
  }
  
  .pay-btn,
  .btn.shop-more {
    width: 48% !important;
    font-size: 14px !important;
    padding: 12px 10px !important;
  }
  
  .coupon-section {
    flex-direction: column;
    gap: 8px;
  }
  
  .coupon-section button {
    width: 100% !important;
    padding: 12px !important;
  }
}
