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

body {
  font-family: 'Poppins', sans-serif;
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.75)),
    url('../image/background.jpeg') center/cover no-repeat;
  background-attachment: fixed;
  color: #f5f5f5;
  /* lighter text for darker bg */
}

/* ================= HEADER GOLDEN LINE ================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  /* spacing between search bar and cart */
}

/* ================= GOLDEN BOTTOM LINE FOR CONTAINERS ================= */
.hero {
  border-bottom: 3px solid #C6A85C;
}

.products {
  border-top: 3px solid #C6A85C;
  border-bottom: 3px solid #C6A85C;
}

/* ================= SEARCH BAR ================= */
.search-bar {
  padding: 10px 20px;
  border: 2px solid #C6A85C;
  /* golden outline same as buttons */
  border-radius: 50px;
  /* fully rounded */
  outline: none;
  width: 700px;
  transition: 0.3s;
  background: rgba(0, 0, 0, 0.7);
  /* same as navbar background */
  color: #fff;
  /* text color */
}

.search-bar:focus {
  box-shadow: 0 0 0 3px rgba(198, 168, 92, 0.3);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  overflow: hidden;
  background: url('../image/hero_img.jpeg') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(to left,
      rgba(0, 0, 0, 0.65) 0%,
      /* left side normal dark */
      rgba(0, 0, 0, 0.75) 40%,
      rgba(0, 0, 0, 0.85) 70%,
      rgba(0, 0, 0, 0.95) 100%
      /* right side more darker */
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-left {
  max-width: 45%;
}

.hero-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: #fff;
  display: inline-block;
  position: relative;
  margin-bottom: 20px;
}

.hero-left h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 3px;
  background: #C6A85C;
}

.hero-left .sub-line {
  height: 3px;
  width: 60%;
  background: #C6A85C;
  margin: 10px 0;
}

.hero-left p {
  font-size: 18px;
  margin-bottom: 25px;
  color: #C6A85C;
  /* same as button color */
  font-weight: 500;
  /* optional: makes it look richer */
  letter-spacing: 1px;
  /* optional: more premium spacing */
}

.hero-left button {
  padding: 12px 25px;
  border: none;
  background: #C6A85C;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  border-radius: 30px;
  transition: 0.3s;
}

.hero-left button:hover {
  background: #bfa258;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-right img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
}

/* Mobile view */
@media(max-width:768px) {
  .hero-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-right img {
    max-width: 80%;
    margin-top: 20px;
  }

  .hero-left {
    max-width: 100%;
  }
}

/* ================= PREMIUM BUTTON STYLE ================= */
button {
  border-radius: 30px;
  background: transparent;
  border: 2px solid #C6A85C;
  color: #C6A85C;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.35s ease;
}

button:hover {
  background: #b8963f;
  color: #fff;
  border-color: #b8963f;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

/* ================= CATEGORY ================= */
.categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  padding: 5px 0px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.category {
  padding: 5px 25px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: 0.3s;
  font-weight: 500;
  color: #fff;
  margin: 5px;
}

.category:hover {
  background: #C6A85C;
  color: #fff;
  box-shadow: 0 8px 20px rgba(198, 168, 92, 0.4);
}

/* ================= PRODUCTS ================= */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 300px)); /* max width 300px */
  justify-content: center; /* center cards if less than full row */
  gap: 15px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(0.35s);
  border-radius: 30px;
  margin-bottom: 60px;
}

.product-card {
  background: rgba(0, 0, 0, 0.8);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: 0.3s;
  overflow: hidden;
}

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

.product-card img {
  width: 100%;
  border-radius: 10px;
}

.product-card h4 {
  margin: 15px 0 8px;
  font-weight: 600;
  color: #fff;
}

.product-card p {
  color: #C6A85C;
  font-weight: 700;
}

/* product-detail-modal{ */
.product-detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 5000;
}

.detail-content {
  background: #111;
  padding: 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 700px;
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#close-detail-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.detail-images {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#main-detail-img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 15px;
  margin-bottom: 10px;
}

.detail-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.detail-thumbs img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid #555;
  transition: 0.3s;
}

.detail-thumbs img:hover {
  border-color: #C6A85C;
}

.detail-options {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ================= PRODUCT DETAIL SIZE BOXES ================= */
#detail-size {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.size-box {
  padding: 8px 15px;
  border: 2px solid #d4af37;
  /* button color outline */
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
  font-weight: 500;
  text-align: center;
}

.size-box:hover {
  background-color: #d4af37;
  /* hover color */
  color: white;
}

.size-box.selected {
  background-color: #d4af37;
  /* selected color */
  color: white;
}

.detail-buttons {
  display: flex;
  justify-content: space-between;
}

.detail-buttons button {
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  background: #C6A85C;
  color: #fff;
  transition: 0.3s;
}

.detail-buttons button:hover {
  background: #bfa258;
}

@media(max-width:480px) {
  #main-detail-img {
    max-height: 300px;
  }

  .detail-buttons {
    flex-direction: column;
    gap: 10px;
  }
}




/* ================= ORDER SUCCESS MODAL ================= */
.order-success-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 4000;
}

.success-content {
  background: #111;
  padding: 35px 30px;
  border-radius: 25px;
  width: 90%;
  max-width: 350px;
  text-align: center;
  color: #fff;
  border-top: 5px solid #28a745;
  /* green top border */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  animation: popUp 0.3s ease-out;
}

.success-content .tick {
  font-size: 50px;
  color: #28a745;
  /* green tick */
  margin-bottom: 15px;
}

.success-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.success-content p {
  font-size: 16px;
  color: #ddd;
}

/* reuse popUp animation from checkout modal */

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 20px 8%;
  color: #fff;
  /* white text for dark bg */
  background: rgba(0, 0, 0, 0.7);
  /* dark like header */
  backdrop-filter: blur(6px);
  /* soft blur like header */
  font-size: 14px;
  border-top: 2px solid #C6A85C;
  /* optional golden line at top */
}

footer a {
  color: #C6A85C;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}


/* ================================================= */
/* =============== MOBILE OPTIMIZATION ============= */
/* ================================================= */

@media (max-width: 768px) {

  /* ================= HEADER ================= */
  /* ===== MOBILE HEADER SLIM ===== */
  .logo {
    font-size: 16px;
  }

  .search-bar {
    width: 200px;
    padding: 6px 10px;
    font-size: 12px;
  }

  .cart-icon {
    font-size: 14px;
  }


  /* ===== HERO SLIM MOBILE ===== */

  /* ===== MOBILE HERO SLIM (LEFT TEXT / RIGHT IMAGE) ===== */

  /* ===== MOBILE HERO PERFECT FIT ===== */

  .hero {
    height: auto;
    /* remove fixed height */
    border-radius: 0;
  }

  .hero-content {
    flex-direction: row;
    align-items: flex-end;
    /* image bottom align */
    justify-content: space-between;
    padding: 0 4%;
  }

  .hero-left {
    max-width: 55%;
    padding-bottom: 25px;
    /* little breathing space */
  }

  .hero-left h1 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .hero-left p {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .hero-left button {
    padding: 6px 14px;
    font-size: 11px;
  }

  .hero-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
  }

  .hero-right img {
    max-width: 160px;
    height: auto;
    display: block;
  }

  /* ================= CATEGORIES ================= */
  .categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    border-radius: 0;
    scroll-behavior: smooth;
  }

  .categories::-webkit-scrollbar {
    display: none;
  }

  .category {
    flex: 0 0 auto;
    /* padding:6px 18px; */
    font-size: 13px;
    white-space: nowrap;
  }

  /* ================= PRODUCTS ================= */
  /* ===== MOBILE PRODUCTS COMPACT ===== */
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    /* কম gap */
    padding: 10px 2%;
    /* কম side padding */
  }

  .product-card {
    padding: 6px;
    /* আগে 12 ছিল */
    border-radius: 12px;
  }

  .product-card img {
    height: 200px;
    /* একটু বড় feel */
    padding: 4px;
  }

  .product-card h4 {
    font-size: 12px;
    margin: 8px 0 4px;
  }

  .product-card p {
    font-size: 13px;
  }

  /* ===== MOBILE PRODUCT CARD BUTTONS ===== */
  .product-card button {
    font-size: 11px;
    /* choto font */
    padding: 2px 8px;
    /* choto padding */
    white-space: nowrap;
    /* single line */
    display: inline-block;
    width: auto;
    /* auto width */
    min-width: 0;
    /* remove any minimum width */
    text-align: center;
    margin: 0 3px 0 0;
    /* thik thak spacing */
  }



  /* ================= PRODUCT DETAIL ================= */
  .detail-content {
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 20px;
    border-radius: 20px;
  }

  .detail-modal {
    padding: 20px;
  }

  #main-detail-img {
    max-height: 280px;
  }

  /* ================= MOBILE PRODUCT DETAIL IMPROVEMENTS ================= */
  @media(max-width:480px) {
    #detail-size {
      display: flex;
      gap: 6px;
      overflow-x: auto;
      /* horizontal scroll if too many */
      padding-bottom: 5px;
      -webkit-overflow-scrolling: touch;
      /* smooth scroll on iOS */
    }

    #detail-size::-webkit-scrollbar {
      height: 5px;
    }

    #detail-size::-webkit-scrollbar-thumb {
      background: #C6A85C;
      border-radius: 5px;
    }

    .size-box {
      flex: 0 0 auto;
      /* prevent shrinking/wrapping */
      padding: 4px 10px;
      /* smaller padding */
      font-size: 12px;
      /* smaller font */
      border-radius: 5px;
      min-width: 40px;
      /* consistent clickable area */
      text-align: center;
    }

    .size-box.selected,
    .size-box:hover {
      font-size: 12px;
    }


    /* Detail buttons stacked & compact */
    .detail-buttons {
      flex-direction: column;
      gap: 8px;
      width: 100%;
    }

    /* ================= MOBILE DETAIL BUTTONS ONE LINE ================= */
    .detail-buttons {
      flex-direction: row;
      /* side by side */
      gap: 8px;
      /* small spacing */
      justify-content: space-between;
      width: 100%;
    }

    .detail-buttons button {
      flex: 1 1 48%;
      /* almost half width each */
      padding: 8px 0;
      /* smaller padding */
      font-size: 13px;
      /* smaller text */
      border-radius: 25px;
      /* keep rounded */
      text-align: center;
    }


    /* Reduce main image height */
    #main-detail-img {
      max-height: 250px;
    }

    /* Optional: scrollable size box if too many */
    #detail-size {
      overflow-x: auto;
      padding-bottom: 5px;
    }

    #detail-size::-webkit-scrollbar {
      height: 5px;
    }

    #detail-size::-webkit-scrollbar-thumb {
      background: #C6A85C;
      border-radius: 5px;
    }
  }






  /* ===== MOBILE SUCCESS MODAL ===== */
  .success-content {
    width: 80%;
    padding: 25px 18px;
    border-radius: 20px;
  }

  .success-content .tick {
    font-size: 40px;
  }

  .success-content h3 {
    font-size: 18px;
  }

  .success-content p {
    font-size: 14px;
  }

  /* ================= FOOTER ================= */
  footer {
    padding: 15px 5%;
    font-size: 12px;
  }

}