:root {
  --page-bg: #f7f5f0;
  --page-text: #222222;
  --header-bg: #ffffff;
  --header-text: #111111;
  --header-subtext: #111111;
  --footer-bg: #0d0d0d;
  --footer-text: #ffffff;
  --box-border: #d4af37;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--page-bg);
  color: var(--page-text);
}

#products,
#categories,
#contact {
  scroll-margin-top: 130px;
}

/* ---------- হেডার ---------- */

header {
  position: sticky;
  top: 10px;
  z-index: 100;
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 12px 20px;
  margin: 10px 20px 0;
  border: 2px solid var(--box-border);
  border-radius: 8px;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  height: 70px;
  justify-self: start;
}

.brand {
  text-align: center;
}

.brand p {
  margin-top: 6px;
  color: var(--header-subtext);
}

header h1 {
  background: linear-gradient(90deg, #8a6508, #c99700, #ffd700, #c99700, #8a6508);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.icons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: none;
  border: none;
  border-radius: 8px;
  color: #111111;
  cursor: pointer;
  text-decoration: none;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn svg .dot {
  fill: currentColor;
  stroke: none;
}

.icon-btn:hover {
  color: #8a6508;
  background-color: #f3f3f3;
}

.badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #d4af37;
  color: #0d0d0d;
  font-size: 10px;
  border-radius: 10px;
  padding: 1px 5px;
}

.menu-wrap {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 46px;
  right: 0;
  min-width: 200px;
  background-color: #ffffff;
  border: 1px solid var(--box-border);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dropdown[hidden] {
  display: none;
}

.dropdown a {
  color: #111111;
  text-decoration: none;
  padding: 12px 16px;
  border-bottom: 1px solid #eeeeee;
}

.dropdown a:last-child {
  border-bottom: none;
}

.dropdown a:hover {
  background-color: #d4af37;
  color: #111111;
}

.panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--box-border);
  display: flex;
  justify-content: center;
}

.panel[hidden] {
  display: none;
}

.search {
  display: flex;
  width: 100%;
  max-width: 500px;
  gap: 8px;
}

.search input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font-size: 15px;
  color: #111111;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  border-radius: 6px;
  outline: none;
}

.search input:focus {
  border-color: var(--box-border);
}

.search button {
  padding: 10px 18px;
  background-color: #d4af37;
  color: #111111;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* ---------- ব্যানার ---------- */

.banner {
  margin: 6px 20px 0;
  border: 2px solid var(--box-border);
  border-radius: 8px;
  overflow: hidden;
}

.slide {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: #ffd700;
}

.slide.active {
  display: flex;
}

.slide img {
  width: 100%;
  display: block;
  aspect-ratio: 3 / 1;
  max-height: 420px;
  object-fit: cover;
}

/* ---------- ক্যাটাগরি ---------- */

.categories {
  max-width: 1100px;
  margin: 25px auto 0;
  padding: 0 20px;
}

.categories h2 {
  margin-bottom: 12px;
}

.cat-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.cat {
  flex: 0 0 auto;
  min-width: 110px;
  background-color: #ffffff;
  border: 1px solid #e5e0d3;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  color: #222222;
}

.cat svg {
  width: 34px;
  height: 34px;
  stroke: #8a6508;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat:hover {
  border-color: #d4af37;
}

.cat.active {
  background-color: #0d0d0d;
  color: #ffd700;
  border-color: #d4af37;
}

.cat.active svg {
  stroke: #ffd700;
}

/* ---------- প্রোডাক্টের গ্রিড ও কার্ড ---------- */

main {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

main h2 {
  margin-bottom: 15px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 30px;
  color: #666666;
}

.card {
  background-color: #ffffff;
  border: 1px solid #e5e0d3;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #d4af37;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: #f4f4f4;
  display: block;
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-body h3 {
  font-size: 17px;
}

.desc {
  font-size: 13px;
  color: #555555;
}

.price {
  font-size: 15px;
}

.price2 {
  font-size: 14px;
  color: #8a6508;
}

.price3 {
  font-size: 12px;
  color: #777777;
}

.btn {
  margin-top: auto;
  text-align: center;
  background-color: #0d0d0d;
  color: #ffd700;
  padding: 10px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 14px;
}

/* ---------- প্রোডাক্ট পেজ ---------- */

.product-page {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 20px;
}

.back-link {
  display: inline-block;
  margin-bottom: 14px;
  color: #8a6508;
  text-decoration: none;
  font-weight: bold;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

#mainImg {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background-color: #ffffff;
  border: 1px solid #e5e0d3;
  border-radius: 10px;
  display: block;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.thumbs img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background-color: #ffffff;
  border: 2px solid #e5e0d3;
  border-radius: 8px;
  cursor: pointer;
}

.thumbs img.active {
  border-color: #d4af37;
}

.tag {
  display: inline-block;
  background-color: #0d0d0d;
  color: #ffd700;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.p-title {
  font-size: 26px;
  margin-bottom: 10px;
}

.rating-line {
  margin: 6px 0 10px;
  color: #555555;
  font-size: 14px;
}

.stars {
  color: #d4af37;
  letter-spacing: 2px;
  font-size: 17px;
}

.p-short {
  font-weight: bold;
  margin-bottom: 8px;
}

.p-desc {
  color: #444444;
  line-height: 1.6;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chip {
  background-color: #fff8dc;
  border: 1px solid #d4af37;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
}

.price-box {
  background-color: #ffffff;
  border: 1px solid #e5e0d3;
  border-radius: 10px;
  padding: 14px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.price-row b {
  color: #8a6508;
  white-space: nowrap;
}

.offer-box {
  background-color: #fff8dc;
  border: 1px dashed #d4af37;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
}

.order-btn {
  display: block;
  text-align: center;
  background-color: #0d0d0d;
  color: #ffd700;
  padding: 14px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

button.order-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.act-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.act {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.act svg {
  width: 18px;
  height: 18px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.act.wa { background-color: #1fa855; }
.act.ms { background-color: #0a7cff; }
.act.call { background-color: #444444; }
.act.off { background-color: #bbbbbb; cursor: not-allowed; }

.details {
  margin-top: 30px;
  background-color: #ffffff;
  border: 1px solid #e5e0d3;
  border-radius: 10px;
  padding: 20px;
}

.details h3 {
  margin-bottom: 10px;
}

.details ul,
.steps {
  padding-left: 20px;
  margin-top: 10px;
  line-height: 1.9;
}

.reviews {
  margin-top: 30px;
  background-color: #ffffff;
  border: 1px solid #e5e0d3;
  border-radius: 10px;
  padding: 20px;
}

.reviews h3 {
  margin-bottom: 10px;
}

.review-top {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.avg-big {
  font-size: 42px;
  font-weight: bold;
  color: #8a6508;
  line-height: 1;
}

.bars {
  flex: 1;
  min-width: 200px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 4px;
}

.bar {
  flex: 1;
  height: 8px;
  background-color: #eeeeee;
  border-radius: 4px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background-color: #d4af37;
}

.review-item {
  border-top: 1px solid #eeeeee;
  padding: 12px 0;
}

.review-item .who {
  font-weight: bold;
}

.related {
  margin-top: 30px;
}

.related h3 {
  margin-bottom: 12px;
}

/* ---------- অর্ডার ফর্ম ---------- */

.order-section {
  margin-top: 30px;
  background-color: #ffffff;
  border: 2px solid #d4af37;
  border-radius: 10px;
  padding: 20px;
  scroll-margin-top: 130px;
}

.order-section h3 {
  margin-bottom: 10px;
}

.order-preview {
  display: flex;
  gap: 14px;
  align-items: center;
  background-color: #faf7ee;
  border: 1px solid #e5e0d3;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 16px;
}

.order-preview img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background-color: #ffffff;
  border: 1px solid #e5e0d3;
  border-radius: 8px;
  flex: 0 0 auto;
}

.order-preview span {
  display: block;
  font-size: 12px;
  color: #777777;
}

.order-preview b {
  display: block;
  font-size: 16px;
  margin: 2px 0;
}

.order-preview small {
  color: #8a6508;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.field.full {
  grid-column: 1 / -1;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  background-color: #ffffff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: #d4af37;
}

.type-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.type-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid #e5e0d3;
  border-radius: 8px;
  cursor: pointer;
  background-color: #ffffff;
  font-size: 14px;
}

.field .type-opt input {
  width: auto;
  padding: 0;
  margin: 0;
  border: none;
}

.type-opt.active {
  border-color: #d4af37;
  background-color: #fff8dc;
}

.total-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background-color: #0d0d0d;
  color: #ffd700;
  border-radius: 10px;
  padding: 14px;
}

.total-box b {
  font-size: 26px;
}

.total-box small {
  color: #e8d9a0;
}

.total-box .note {
  color: #ffffff;
  font-size: 14px;
}

.form-error {
  color: #b00020;
  font-size: 13px;
  margin-top: 10px;
}

.form-ok {
  background-color: #e8f7ec;
  border: 1px solid #1fa855;
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  font-size: 14px;
}

.order-section .order-btn {
  margin-top: 14px;
}

/* ---------- ফুটার, হোয়াটসঅ্যাপ বাটন, বার্তা ---------- */

footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: 24px 20px;
  margin-top: 40px;
}

.foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.foot-links a {
  color: #ffd700;
  text-decoration: none;
  border: 1px solid #d4af37;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
}

.foot-links a:hover {
  background-color: #d4af37;
  color: #0d0d0d;
}

.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #25d366;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.wa-float svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  background-color: #0d0d0d;
  color: #ffd700;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- মোবাইল ---------- */

@media (max-width: 800px) {
  header {
    margin: 8px 10px 0;
    padding: 10px 12px;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo icons"
      "brand brand";
    row-gap: 8px;
  }

  .logo {
    grid-area: logo;
    height: 48px;
  }

  .icons {
    grid-area: icons;
    gap: 2px;
  }

  .brand {
    grid-area: brand;
  }

  .brand h1 {
    font-size: 22px;
  }

  .brand p {
    font-size: 13px;
    margin-top: 2px;
  }

  .icon-btn {
    width: 34px;
    height: 34px;
  }

  .icon-btn svg {
    width: 20px;
    height: 20px;
  }

  .banner {
    margin: 6px 10px 0;
  }

  .slide img {
    aspect-ratio: auto;
    max-height: none;
  }

  .cat {
    min-width: 90px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-body {
    padding: 10px;
  }

  .card-body h3 {
    font-size: 15px;
  }

  .desc {
    display: none;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .type-options {
    grid-template-columns: 1fr;
  }

  .wa-float {
    padding: 12px;
    border-radius: 50%;
  }

  .wa-float span {
    display: none;
  }

  .product-body .actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    padding: 10px;
    background-color: #ffffff;
    border-top: 2px solid #d4af37;
    gap: 8px;
    z-index: 90;
  }

  .product-body .act {
    padding: 10px 4px;
    font-size: 12px;
  }

  .product-body .act svg {
    display: none;
  }

  .product-body footer {
    padding-bottom: 130px;
  }

  .product-body .wa-float {
    bottom: 130px;
  }

  .product-body .toast {
    bottom: 200px;
  }
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.total-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.total-lines .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #e8d9a0;
}

.total-lines .grand {
  border-top: 1px solid #d4af37;
  margin-top: 4px;
  padding-top: 8px;
  color: #ffd700;
  font-size: 18px;
  font-weight: bold;
}

button.order-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.thanks {
  max-width: 760px;
  margin: 30px auto;
  padding: 0 20px;
}

.thanks-box {
  background-color: #ffffff;
  border: 2px solid #d4af37;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.check {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background-color: #1fa855;
  color: #ffffff;
  font-size: 36px;
  line-height: 64px;
}

.order-no {
  display: inline-block;
  margin: 10px 0 16px;
  background-color: #0d0d0d;
  color: #ffd700;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: bold;
  letter-spacing: 1px;
}

.summary {
  text-align: left;
  background-color: #faf7ee;
  border: 1px solid #e5e0d3;
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary .srow {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.summary .srow.grand {
  border-top: 1px solid #d4af37;
  padding-top: 8px;
  font-weight: bold;
  font-size: 18px;
  color: #8a6508;
}

.next-note {
  margin: 12px 0;
  color: #444444;
  line-height: 1.7;
}

.thanks-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.thanks-actions .act {
  min-width: 170px;
}

.thanks .related {
  margin-top: 30px;
}

.thanks .related[hidden] {
  display: none;
}
.price-row b {
  white-space: normal;
  text-align: right;
}

.product-layout > *,
.info,
.gallery {
  min-width: 0;
}

@media (max-width: 800px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    border-bottom: 1px solid #f0ece0;
    padding-bottom: 8px;
  }

  .price-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .price-row b {
    text-align: left;
  }
}