/* =========================================
   7. PRODUCTS GRID & CARDS
   প্রোডাক্ট গ্রিড এবং কার্ডের স্টাইল
   ========================================= */

/* Section Title Layout / সেকশন টাইটেল বা হেডারের লেআউট */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
  gap: 16px;
}
.section-title h2 {
  font-size: 25px;
  margin: 0;
}

/* Product Category Tabs / প্রোডাক্ট ক্যাটাগরির ট্যাবসমূহ */
.product-tabs {
  display: flex;
  min-width: 0;
  gap: 12px;
  overflow-x: auto;
}
.tab-btn {
  background: #141311;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.tab-btn:hover, 
.tab-btn.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  font-weight: bold;
}

/* View All Button / সব দেখার বাটন */
.view-all-btn {
  flex: 0 0 auto;
  background: none;
  border: 0;
  color: var(--gold);
  font-weight: bold;
  cursor: pointer;
}

/* Products Grid Layout / প্রোডাক্ট দেখানোর মূল গ্রিড */
.products {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding-bottom: 38px;
  min-height: 260px;
}

/* Product Card Styling / প্রতিটি প্রোডাক্ট কার্ডের স্টাইল */
.card {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 10px;
  background: #12110f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  animation: productCardGlow 3.2s ease-in-out infinite alternate;
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 8% 10% 38%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(217, 156, 46, 0.16);
  filter: blur(24px);
  opacity: 0.5;
  animation: productAura 2.8s ease-in-out infinite alternate;
  pointer-events: none;
}
.card:nth-child(2n) { animation-delay: -1.1s; }
.card:nth-child(3n) { animation-delay: -2.1s; }
.card:hover {
  transform: translateY(-7px) scale(1.015);
  border-color: rgba(234, 182, 85, 0.8);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45), 0 0 22px rgba(217, 156, 46, 0.24);
}

/* Card Image / কার্ডের ভেতরের ছবি */
.card img {
  width: 100%;
  height: 164px;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 5px rgba(234, 182, 85, 0.2));
  animation: none;
  transition: filter 0.3s ease;
}

.product-skeleton { min-height: 224px; pointer-events: none; }
.product-skeleton-image,
.product-skeleton .card-body span {
  display: block;
  background: linear-gradient(100deg, #171512 20%, #29241d 45%, #171512 70%);
  background-size: 220% 100%;
  animation: productSkeleton 1.2s ease-in-out infinite;
}
.product-skeleton-image { width: 100%; height: 164px; }
.product-skeleton .card-body span { width: 82%; height: 12px; margin: 3px 0 10px; border-radius: 4px; }
.product-skeleton .card-body span:last-child { width: 45%; }
@keyframes productSkeleton { to { background-position: -220% 0; } }
.card:hover img {
  filter: drop-shadow(0 12px 15px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 12px rgba(234, 182, 85, 0.6));
}

/* Card Content / কার্ডের বিবরণ এবং দাম */
.card-body { padding: 11px; }
.card h3 {
  font-size: 13px;
  margin: 0 0 7px;
}
.price {
  color: var(--gold);
  font-weight: bold;
  font-size: 14px;
}
.add {
  float: right;
  border: 1px solid #74521d;
  background: #1f1a12;
  color: #f3d191;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
}

/* Animations for Product Cards / প্রোডাক্ট কার্ডের অ্যানিমেশনসমূহ */
@keyframes productImageFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes productCardGlow {
  from { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 0 rgba(217, 156, 46, 0); }
  to { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), 0 0 15px rgba(217, 156, 46, 0.16); }
}
@keyframes productAura {
  from { opacity: 0.28; transform: scale(0.9); }
  to { opacity: 0.72; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .card, .card::before, .card img { animation: none; }
}

/* =========================================
   PRODUCT DETAIL PAGE
   প্রোডাক্ট ডিটেইলস পেজ
   ========================================= */

/* Breadcrumb / ব্রেডক্রাম্ব বা নেভিগেশন পাথ */
.product-breadcrumb { 
  display: flex; 
  align-items: center; 
  gap: 9px; 
  padding: 27px 0 17px; 
  color: #766f66; 
  font-size: 11px; 
}
.product-breadcrumb a { color: #9b9184; text-decoration: none; }
.product-breadcrumb strong { 
  overflow: hidden; 
  color: #d4aa5f; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
}

/* Detail Container / ডিটেইলস কন্টেইনার */
.product-detail { 
  margin-bottom: 25px; 
  padding: clamp(20px, 4vw, 45px); 
  border: 1px solid #382f23; 
  border-radius: 19px; 
  background: linear-gradient(145deg, rgba(24,21,16,.96), rgba(12,11,9,.98)); 
  box-shadow: 0 25px 60px #0004; 
}

/* Image Gallery / ছবির গ্যালারি */
.product-gallery { position: relative; min-width: 0; }
.product-badge { 
  position: absolute; 
  z-index: 2; 
  top: 15px; 
  left: 15px; 
  padding: 6px 9px; 
  border: 1px solid #3f6848; 
  border-radius: 20px; 
  background: #102015; 
  color: #7bd08d; 
  font-size: 10px; 
  font-weight: 800; 
  text-transform: uppercase; 
}

.product-main-image { 
  display: grid; 
  min-height: 450px; 
  place-items: center; 
  overflow: hidden; 
  border: 1px solid #332b20; 
  border-radius: 15px; 
  background: radial-gradient(circle, rgba(217,156,46,.16), transparent 55%), #100f0c; 
}
.product-main-image img { 
  width: 83%; 
  max-height: 420px; 
  object-fit: contain; 
  filter: drop-shadow(0 25px 25px #0009) drop-shadow(0 0 18px rgba(217,156,46,.35)); 
  animation: productDetailFloat 4s ease-in-out infinite; 
}

/* Thumbnail Images / ছোট ছবি বা থাম্বনেইল */
.product-thumbnails { display: flex; justify-content: center; gap: 9px; margin-top: 12px; }
.product-thumbnails button { 
  width: 64px; 
  height: 58px; 
  padding: 5px; 
  border: 1px solid #3d3327; 
  border-radius: 8px; 
  background: #12100d; 
}
.product-thumbnails button.active { border-color: var(--gold); }
.product-thumbnails img { width: 100%; height: 100%; object-fit: contain; }

/* Product Details Text / প্রোডাক্টের বিস্তারিত লেখা */
.product-copy { align-self: center; }
.product-copy h1 { margin: 8px 0 12px; font-size: clamp(37px, 5vw, 61px); line-height: 1.02; }

/* Product Rating / প্রোডাক্ট রেটিং */
.product-rating { display: flex; align-items: center; gap: 8px; }
.product-rating span { color: #e8ad3e; letter-spacing: 2px; }
.product-rating b { font-size: 12px; }
.product-rating small { padding-left: 8px; border-left: 1px solid #44392b; color: #817a71; }

.product-description { 
  max-width: 620px; 
  margin: 20px 0; 
  color: #aaa298; 
  line-height: 1.7; 
}

/* Price Row / মূল্যের সারি */
.product-price-row { 
  display: flex; 
  align-items: center; 
  flex-wrap: wrap; 
  gap: 13px; 
  padding: 18px 0; 
  border-block: 1px solid #352d23; 
}
.product-price-row .product-detail-price { margin: 0; }
.product-price-row del { color: #736c64; }
.product-price-row span { 
  padding: 5px 8px; 
  border-radius: 5px; 
  background: #203221; 
  color: #81cc87; 
  font-size: 10px; 
  font-weight: 800; 
}

/* Product Benefits / প্রোডাক্টের সুবিধাসমূহ */
.product-benefits { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px 20px; 
  margin: 18px 0; 
  color: #969087; 
  font-size: 11px; 
}
.product-benefits span::first-letter { color: #d6a44a; }

/* Purchase Section / ক্রয়ের অংশ */
.product-purchase { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.quantity-control { 
  display: grid; 
  grid-template-columns: 36px 1fr 36px; 
  overflow: hidden; 
  border: 1px solid #4b3c27; 
  border-radius: 8px; 
  background: #11100d; 
}
.quantity-control button { border: 0; background: transparent; color: #d8ad60; font-size: 20px; }
.quantity-control input { 
  min-width: 0; 
  width: 100%; 
  border: 0; 
  outline: 0; 
  background: transparent; 
  color: #fff; 
  text-align: center; 
  appearance: textfield; 
}

.product-add-button { 
  padding: 14px 17px; 
  border: 0; 
  border-radius: 8px; 
  background: linear-gradient(135deg, #efb544, #b8731c); 
  color: #171008; 
  font-weight: 850; 
}
.product-wish-button { 
  width: 100%; 
  margin-top: 10px; 
  padding: 11px; 
  border: 1px solid #514027; 
  border-radius: 8px; 
  background: transparent; 
  color: #c8b89d; 
}
.product-wish-button.saved { border-color: #84452e; color: #e47c69; }

/* Delivery Information / ডেলিভারি তথ্য */
.product-delivery { 
  display: flex; 
  gap: 12px; 
  margin-top: 20px; 
  padding: 14px; 
  border: 1px solid #383027; 
  border-radius: 9px; 
  background: #100f0c; 
}
.product-delivery strong { font-size: 12px; }
.product-delivery p { margin: 4px 0 0; color: #777169; font-size: 10px; }

/* Product Information Tabs / প্রোডাক্টের অন্যান্য তথ্যের ট্যাব */
.product-information { 
  margin: 18px 0 45px; 
  overflow: hidden; 
  border: 1px solid #362e23; 
  border-radius: 15px; 
  background: #12100d; 
}
.product-information[hidden], 
.related-section[hidden] { display: none; }
.product-info-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid #342c22; }
.product-info-tabs button { 
  flex: 0 0 auto; 
  padding: 16px 22px; 
  border: 0; 
  border-bottom: 2px solid transparent; 
  background: transparent; 
  color: #8f887f; 
}
.product-info-tabs button.active { border-color: var(--gold); color: #e8b85f; }

.product-info-content { 
  min-height: 180px; 
  padding: clamp(22px, 4vw, 38px); 
  color: #a59e94; 
  line-height: 1.7; 
}
.product-info-content h2 { margin-top: 0; color: #eee8df; }

/* Info Highlights / গুরুত্বপূর্ণ তথ্যের হাইলাইট */
.info-highlights, 
.delivery-points { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px; 
  margin-top: 23px; 
}
.info-highlights span, 
.delivery-points span { 
  min-width: 150px; 
  padding: 13px; 
  border: 1px solid #382f23; 
  border-radius: 8px; 
  background: #17130e; 
  font-size: 11px; 
}
.info-highlights span {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 190px;
  padding: 17px 18px;
  border-color: rgba(215, 169, 81, 0.32);
  background: linear-gradient(145deg, rgba(35, 27, 16, 0.96), rgba(18, 16, 12, 0.98));
  color: #c9c1b6;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 0 12px rgba(215, 169, 81, 0.08);
  animation: infoHighlightGlow 2.8s ease-in-out infinite alternate;
}
.info-highlights span::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -1;
  background: radial-gradient(circle, rgba(232, 184, 95, 0.2), transparent 58%);
  opacity: 0.35;
  animation: infoHighlightAura 3.4s ease-in-out infinite alternate;
}
.info-highlights span:nth-child(2) { animation-delay: -0.9s; }
.info-highlights span:nth-child(3) { animation-delay: -1.8s; }
.info-highlights b { 
  display: block; 
  margin-bottom: 3px; 
  color: #efbd62; 
  font-size: 17px; 
  line-height: 1.3; 
  text-shadow: 0 0 10px rgba(239, 189, 98, 0.38); 
}

/* Info Highlights Animations / হাইলাইটের অ্যানিমেশন */
@keyframes infoHighlightGlow {
  from { transform: translateY(0); box-shadow: 0 0 10px rgba(215, 169, 81, 0.07); }
  to { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 20px rgba(215, 169, 81, 0.24); }
}
@keyframes infoHighlightAura {
  from { opacity: 0.25; transform: translateX(-8%) scale(0.92); }
  to { opacity: 0.7; transform: translateX(8%) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .info-highlights span,
  .info-highlights span::before { animation: none; }
}

/* Specification List / স্পেসিফিকেশন বা বৈশিষ্ট্যের লিস্ট */
.spec-list { display: grid; max-width: 680px; margin: 0; }
.spec-list div { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  padding: 11px 0; 
  border-bottom: 1px solid #30291f; 
}
.spec-list dt { color: #777169; }
.spec-list dd { margin: 0; color: #d0c8bd; }

/* =========================================
   RELATED PRODUCTS SECTION
   সম্পর্কিত প্রোডাক্ট বা রিলেটেড প্রোডাক্ট সেকশন
   ========================================= */
.related-section { margin: 0 0 70px; }
.related-section .section-title a { color: var(--gold); text-decoration: none; font-size: 12px; }
.related-section .eyebrow { margin: 0 0 5px; font-size: 9px; }
.related-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.related-card { 
  padding: 13px; 
  border: 1px solid #382f23; 
  border-radius: 11px; 
  background: #12100d; 
  color: #fff; 
  text-decoration: none; 
  transition: .25s; 
}
.related-card:hover { transform: translateY(-5px); border-color: #9a7031; }
.related-card > div { 
  display: grid; 
  height: 160px; 
  place-items: center; 
  border-radius: 8px; 
  background: #17130f; 
}
.related-card img { width: 90%; height: 145px; object-fit: contain; }
.related-card p { margin: 12px 0 5px; color: #80786e; font-size: 9px; text-transform: uppercase; }
.related-card h3 { margin: 0 0 10px; font-size: 13px; }
.related-card strong { color: var(--gold); font-size: 13px; }

/* =========================================
   RESPONSIVE ADJUSTMENTS
   রেস্পন্সিভ লেআউট (মোবাইল ও ট্যাব)
   ========================================= */
@media (max-width: 850px) { 
  .product-main-image { min-height: 340px; } 
  .related-products { grid-template-columns: repeat(2, 1fr); } 
}

@media (max-width: 540px) { 
  .product-detail { padding: 14px; } 
  .product-main-image { min-height: 290px; } 
  .product-purchase { grid-template-columns: 1fr; } 
  .quantity-control { min-height: 46px; } 
  .related-products { grid-template-columns: 1fr 1fr; gap: 9px; } 
  .related-card > div { height: 125px; } 
  .related-card img { height: 115px; } 
}
