html, body {
  overflow-x: hidden;  /* horizontal scroll বন্ধ */
  overflow-y: auto;    /* vertical scroll সবসময় চালু */
  height: auto;        /* height fix না, auto */
}

:root { --woven-top-offset: 140px; }
@media (max-width: 768px){
  :root { --woven-top-offset: 160px; }
}

.woven-page {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #FFA500;
}

/* Hero */
.woven-page .hero {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  margin-bottom: 5px;
}
.woven-page .hero img {
  max-width: calc(100% - 120px);
  height: auto;
  object-fit: contain;
}
@media (max-width: 992px) {
  .woven-page .hero img { max-width: calc(100% - 60px); }
}
@media (max-width: 600px) {
  .woven-page .hero img { max-width: 100%; }
}

/* Main section */
.woven-page .main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}
.woven-page .main-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 14px 50px rgba(255,165,0,0.9);
}

/* Text */
.section-title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin: 16px 0 20px;
  color: #FFA500;
}
.section-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #FFA500;
}

/* Grid */
.woven-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}
/* ✅ Mobile fix: এক কলামে দেখাবে */
@media (max-width: 768px) {
  .woven-grid {
    grid-template-columns: 1fr;
  }
}

.woven-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(255,165,0,0.6);
  color: #FFA500;
  transition: 0.25s;
}
.woven-box:hover { transform: scale(1.03); }

/* ✅ Last box fix: text-align left */
.woven-box.center { 
  grid-column: 1 / span 2; 
  text-align: left; 
}

/* Tray button */
.tray-toggle-vertical {
  position: fixed;
  left: 0;
  top: 40%;
  transform: translateY(-50%) rotate(180deg);
  background: #FFA500;
  color: #ffffff;
  padding: 10px 5px;
  min-height: 140px;
  border-radius: 12px 0 0 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  z-index: 1100;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border: 3px solid #FFA500;
  box-shadow: 0 0 22px 8px rgba(255,165,0,0.45);
}


/* Product Gallery Overlay */
#productGallery {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #ffffff;
  z-index: 9999;
  display: none;
  overflow-y: auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

/* Close button */
#closeGallery {
  position: absolute;
  top: 20px; right: 30px;
  background: #FFA500;
  border: none;
  font-size: 32px;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  border-radius: 50%;
  width: 40px; height: 40px;
  line-height: 40px;
  text-align: center;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 22px;
  max-width: 1200px;
  margin: 0 auto;
}
.product-box {
  background: #ffffff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(255,165,0,0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-box img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
}
.details-btn {
  background: #FFA500;
  color: #ffffff;
  border: none;
  padding: 8px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 10000;
}
.modal-content {
  background: #fff;
  color: #333;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
}
.close-modal {
  float: right;
  font-size: 22px;
  cursor: pointer;
}
/* ✅ Mobile fix for center box */
@media (max-width: 768px) {
  .woven-box.center {
    grid-column: 1 / -1;   /* পুরো ১ কলাম নেবে */
    text-align: left;      /* আপনার চাহিদা অনুযায়ী টেক্সট left aligned */
  }
}
