/* ===== Design tokens ===== */
:root{
  --cream: #F4F6FB;
  --ink: #101A2C;
  --teal: #14294D;
  --teal-dark: #0B192F;
  --amber: #FF7A1A;
  --coral: #E8503A;
  --mint: #E9EEF9;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(20,41,77,0.10);
  --font-display: 'Fraunces', serif;
  --font-body: 'Hind Siliguri', sans-serif;
  --logo-size: 42px;
  --container-width: 1180px;
  --btn-radius: 999px;
  --hero-extra-pad: 0px;
  --body-font-size: 15px;
  --product-name-size: 13px;
  --price-size: 15px;
  --section-title-size: 28px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  line-height:1.6;
  font-size:var(--body-font-size);
}
h1,h2,h3,h4{font-family:var(--font-display); margin:0 0 .4em; font-weight:700;}
p{margin:0 0 1em;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.container{max-width:var(--container-width); margin:0 auto; padding:0 20px;}
.hidden{display:none !important;}

/* ===== Buttons ===== */
.btn{
  display:inline-block;
  padding:13px 28px;
  border-radius:var(--btn-radius);
  font-family:var(--font-body);
  font-weight:700;
  font-size:15px;
  cursor:pointer;
  border:2px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{transform:translateY(-2px);}
.btn-primary{background:var(--amber); color:var(--teal-dark); box-shadow:0 6px 18px rgba(242,169,59,.35);}
.btn-primary:hover{background:#e69c27;}
.btn-ghost{background:transparent; border-color:var(--ink); color:var(--ink);}
.btn-block{width:100%; text-align:center; border:none;}

/* ===== Trust bar ===== */
.trust-bar{background:var(--teal-dark); color:#fff; font-size:12px; font-weight:600;}
.trust-bar-inner{display:flex; gap:22px; justify-content:center; flex-wrap:wrap; padding:7px 20px;}

/* ===== Header ===== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(250,247,242,0.96);
  backdrop-filter:blur(6px);
  border-bottom:1px solid rgba(15,110,93,0.14);
}
.header-inner{display:flex; align-items:center; gap:18px; padding:12px 20px; flex-wrap:wrap;}
.brand{display:flex; align-items:center; gap:10px;}
.logo-img{width:var(--logo-size); height:var(--logo-size); border-radius:50%; object-fit:cover;}
.brand-text{display:flex; flex-direction:column; line-height:1.1;}
.brand-name{font-family:var(--font-display); font-weight:700; font-size:21px; color:var(--teal);}
.brand-accent{color:var(--coral);}
.brand-sub{font-size:11px; color:#5c6f68; font-weight:600;}
.search-wrap{position:relative; flex:1; min-width:160px; max-width:420px; order:3; width:100%;}
.search-wrap input{
  width:100%; padding:10px 40px 10px 16px; border-radius:999px; border:1.5px solid rgba(15,110,93,.25);
  font-family:var(--font-body); font-size:14px; background:#fff;
}
.search-icon{position:absolute; right:14px; top:50%; transform:translateY(-50%); font-size:14px; opacity:.6;}
.main-nav{display:flex; gap:24px; margin-left:auto;}
.main-nav a{font-weight:600; font-size:14px;}
.main-nav a:hover{color:var(--teal);}
.header-actions{display:flex; align-items:center; gap:10px;}
.icon-btn{position:relative; background:none; border:none; cursor:pointer; color:var(--ink); padding:8px; border-radius:50%;}
.icon-btn:hover{background:var(--mint);}
.cart-count{
  position:absolute; top:-2px; right:-2px; background:var(--coral); color:#fff; font-size:11px; font-weight:700;
  min-width:18px; height:18px; border-radius:999px; display:flex; align-items:center; justify-content:center; padding:0 3px;
}
.menu-toggle{display:none;}

@media (min-width:860px){
  .search-wrap{order:0; width:auto;}
}

/* ===== Hero ===== */
.hero{
  position:relative; padding:calc(28px + var(--hero-extra-pad)) 0 calc(46px + var(--hero-extra-pad)); overflow:hidden;
  background-size:cover; background-position:center; background-color:var(--teal-dark);
}
.hero-overlay{
  position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(100deg, rgba(11,83,71,.90) 0%, rgba(11,83,71,.68) 50%, rgba(11,83,71,.30) 100%);
}
.hero-inner{position:relative; max-width:640px;}
.eyebrow{font-weight:700; color:var(--amber); letter-spacing:.5px; font-size:12.5px; margin-bottom:6px;}
.hero h1{font-size:26px; line-height:1.25; color:#fff; font-weight:600;}
.hero h1 span{color:var(--amber); font-style:italic;}
.hero-desc{font-size:13.5px; max-width:500px; color:#eaf3f0; margin-bottom:0;}
.hero-cta{display:flex; gap:12px; margin-top:16px; flex-wrap:wrap;}
.hero-cta .btn{padding:9px 20px; font-size:13px;}
.hero .btn-ghost{border-color:#fff; color:#fff;}
.hero .btn-ghost:hover{background:#fff; color:var(--teal-dark);}

/* ===== Category pills ===== */
.categories{padding:22px 0 4px; margin-top:-20px; position:relative; z-index:2;}
.cat-pills{display:flex; gap:10px; overflow-x:auto; padding:14px; background:#fff; border-radius:16px; box-shadow:var(--shadow);}
.cat-pill{
  flex:0 0 auto; padding:9px 20px; border-radius:999px; border:1.5px solid rgba(15,110,93,.2);
  font-weight:600; font-size:13px; cursor:pointer; background:var(--mint); color:var(--teal-dark);
  transition:all .15s ease;
}
.cat-pill.active, .cat-pill:hover{background:var(--teal); color:#fff; border-color:var(--teal);}

/* ===== Products ===== */
.products-section{padding:46px 0 70px;}
.section-head{text-align:center; margin-bottom:30px;}
.section-head h2{font-size:var(--section-title-size); color:var(--teal-dark);}
.section-head p{color:#66756f; font-size:14px;}
.empty-state{text-align:center; color:#8a9791; padding:40px;}
.product-grid{display:grid; grid-template-columns:repeat(2, 1fr); gap:14px;}
@media (min-width:640px){ .product-grid{ grid-template-columns:repeat(3, 1fr); gap:20px; } }
@media (min-width:960px){ .product-grid{ grid-template-columns:repeat(4, 1fr); gap:22px; } }
.product-card{
  background:var(--white); border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow); cursor:pointer; transition:transform .18s ease;
  display:flex; flex-direction:column; border:1px solid rgba(15,110,93,.08);
}
.product-card:hover{transform:translateY(-5px);}
.product-thumb{position:relative; aspect-ratio:1/1; overflow:hidden; background:var(--mint);}
.product-thumb img{width:100%; height:100%; object-fit:cover;}
.product-badge{
  position:absolute; top:8px; left:8px; background:var(--coral); color:#fff;
  font-size:10px; font-weight:700; padding:3px 9px; border-radius:999px;
}
/* ছবির উপর একাধিক ছবি (মাল্টি-ফটো) আছে সেটা বোঝানোর ব্যাজ — হোমপেজেই দেখা যাবে */
.photo-count-badge{
  position:absolute; bottom:8px; right:8px; background:rgba(16,26,44,.72); color:#fff;
  font-size:10.5px; font-weight:700; padding:3px 8px; border-radius:999px;
  display:flex; align-items:center; gap:4px; backdrop-filter:blur(2px); z-index:2;
}
.photo-count-badge svg{width:11px; height:11px; flex:0 0 auto;}
/* দ্বিতীয় ছবিটা স্ট্যাক করা থাকে, hover করলে ধীরে ধীরে দেখা যায় (অন্য ই-কমার্স সাইটের মতো প্রিভিউ) */
.product-thumb .thumb-img-alt{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transition:opacity .25s ease;
}
.product-thumb:hover .thumb-img-alt{opacity:1;}
.product-body{padding:10px 12px 14px; display:flex; flex-direction:column; gap:5px; flex:1;}
.product-cat{font-size:10.5px; color:var(--teal); font-weight:700; text-transform:uppercase; letter-spacing:.3px;}
.product-name{font-size:var(--product-name-size); font-weight:600; line-height:1.35; min-height:2.6em; overflow:hidden;}
.product-price{display:flex; align-items:baseline; gap:6px; margin-top:auto; flex-wrap:wrap; font-family:var(--font-display);}
.price-now{font-weight:700; color:var(--coral); font-size:var(--price-size);}
.price-old{font-size:calc(var(--price-size) - 4px); color:#9aa8a2; text-decoration:line-through; font-family:var(--font-body);}
.add-btn{
  margin-top:8px; width:100%; padding:8px; border-radius:999px; border:1.5px solid var(--teal);
  background:transparent; color:var(--teal); font-weight:700; cursor:pointer; font-family:var(--font-body);
  font-size:12px; transition:all .15s ease;
}
.add-btn:hover{background:var(--teal); color:#fff;}

/* ===== About ===== */
.about{padding:60px 0 70px; background:var(--mint); position:relative;}
.about-inner{text-align:center; max-width:920px; margin:0 auto;}
.about h2{font-size:calc(var(--section-title-size) - 2px); color:var(--teal-dark); margin-bottom:34px;}
.about-grid{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:22px;}
.about-card{background:#fff; padding:26px 20px; border-radius:var(--radius); box-shadow:var(--shadow);}
.about-icon{font-size:30px; display:block; margin-bottom:10px;}
.about-card h3{font-size:16px; color:var(--teal-dark); margin-bottom:8px;}
.about-card p{font-size:13.5px; color:#5c6f68; margin:0;}

/* ===== Footer ===== */
.site-footer{background:var(--ink); color:#dfe8e4; padding:50px 0 0; margin-top:20px;}
.footer-inner{display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:30px; padding-bottom:34px;}
.footer-brand .brand-name{color:#fff;}
.footer-brand p{margin-top:10px; color:#a9b8b2; font-size:13px;}
.site-footer h4{font-size:14px; color:var(--amber); margin-bottom:12px; font-family:var(--font-display);}
.site-footer p{font-size:13.5px; color:#cdd9d4; margin-bottom:8px;}
.site-footer a:hover{color:var(--amber);}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1); text-align:center; padding:16px 0; font-size:12.5px; color:#84948e;}

/* ===== Modal ===== */
.modal-overlay{
  position:fixed; inset:0; background:rgba(11,20,17,.6); display:none;
  align-items:center; justify-content:center; z-index:100; padding:20px;
}
.modal-overlay.open{display:flex;}
.modal-box{background:#fff; border-radius:var(--radius); max-width:760px; width:100%; max-height:88vh; overflow:auto; position:relative;}

/* পপ-আপ এর বদলে প্রোডাক্ট মডালটা এখন সম্পূর্ণ ফুল-স্ক্রিন উইন্ডো হিসেবে খোলে —
   কোনো ছোট বক্স/গ্যাপ নেই, তাই কোনো background overlay-ও উঁকি দেয় না। */
#productModal{padding:0;}
#productModal .modal-box{
  max-width:100%; width:100%; height:100%; max-height:100%;
  border-radius:0; display:flex; flex-direction:column;
}
#productModal .modal-content{flex:1; min-height:0;}

/* বড়, স্পষ্ট ক্রস বাটন — সার্কেলটা আঙুল দিয়ে সহজে চাপার মতো বড়, কিন্তু ভেতরের
   × চিহ্নটা পাতলা/মাঝারি রাখা হয়েছে, নাহলে দেখতে ভারী/বেমানান লাগে */
#productModal .modal-close{
  width:42px; height:42px; font-size:22px; font-weight:400; background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.18); top:14px; right:14px; z-index:5;
}
.modal-close{
  position:absolute; top:12px; right:14px; background:var(--mint); border:none;
  width:34px; height:34px; border-radius:50%; font-size:20px; cursor:pointer; z-index:2; color:var(--teal-dark); line-height:1;
}
.modal-content{display:grid; grid-template-columns:1fr 1fr; height:100%;}
.modal-content img{width:100%; height:100%; object-fit:cover;}
.modal-gallery{display:flex; flex-direction:column; background:var(--mint); height:100%; min-height:0;}
/* সব ধরনের ছবির সাথে (চওড়া/লম্বা/স্কয়ার) আরামদায়কভাবে ফিট করার জন্য মূল ছবির
   বক্সটা এখন গ্যালারি কলামের বাকি সবটুকু জায়গা (thumbs বাদে) নেয় এবং
   object-fit:contain দিয়ে পুরো ছবিটা দেখায়। ছবি বড় হলে এমনিতেই ছোট/জুম-আউট
   হয়ে পুরোটা দেখা যাবে, কোনো অংশ ক্রপ হবে না। */
.modal-gallery #modalMainImg{
  flex:1; width:100%; min-height:0;
  object-fit:contain; background:var(--mint);
}
.modal-thumbs{display:flex; gap:8px; padding:10px; overflow-x:auto; background:#fff; flex:none;}
/* থাম্বনেইলগুলোর উপর কোনো fade/dim ইফেক্ট নেই এখন — সব সময় পুরো উজ্জ্বলতায় দেখাবে,
   শুধু সিলেক্ট করা ছবিটার চারপাশে বর্ডার দিয়ে বোঝানো হয়। */
.modal-content .modal-thumbs img{
  width:56px !important; height:56px !important; flex:0 0 auto; border-radius:8px; cursor:pointer;
  object-fit:cover; opacity:1; border:2px solid transparent; transition:border-color .15s;
}
.modal-content .modal-thumbs img.active{border-color:var(--teal);}
.modal-info{padding:28px;}
.order-confirm-box{
  background:#fff; border-radius:var(--radius); max-width:420px; width:100%;
  padding:32px 24px 28px; text-align:center; position:relative;
}
.order-confirm-icon{font-size:44px; margin-bottom:6px;}
.order-confirm-box h3{margin:4px 0 10px; color:var(--teal-dark);}
.order-confirm-box p{color:#6b5d50; font-size:14px; line-height:1.6; margin-bottom:18px;}
.order-confirm-box label{display:block; text-align:left; font-size:13px; font-weight:700; color:var(--teal-dark); margin-bottom:6px;}
.order-id-row{display:flex; gap:8px;}
.order-id-row input{
  flex:1; padding:12px 14px; border-radius:10px; border:1.5px solid #eee1d4; font-size:15px;
  font-weight:700; letter-spacing:.5px; text-align:center; background:var(--cream); color:var(--ink);
}
.order-id-row .btn{padding:10px 16px; font-size:13px; white-space:nowrap;}
#shareWithImagesBtn:disabled{opacity:.6; cursor:default;}
.modal-info .product-cat{margin-bottom:6px;}
.modal-info h2{font-size:21px; color:var(--ink); margin-bottom:10px;}
.modal-info .product-price{margin:14px 0;}
.size-row{display:flex; gap:8px; flex-wrap:wrap; margin:14px 0;}
.size-chip{
  padding:6px 14px; border:2px solid rgba(15,110,93,.25); border-radius:16px;
  font-size:12px; cursor:pointer; font-weight:600; max-width:100%;
  white-space:normal; word-break:break-word; line-height:1.4; text-align:center;
}
.size-chip.selected{background:var(--teal); color:#fff; border-color:var(--teal);}

/* ===== Cart drawer ===== */
.cart-overlay{position:fixed; inset:0; background:rgba(11,20,17,.55); display:none; z-index:90;}
.cart-overlay.open{display:block;}
.cart-drawer{
  position:fixed; top:0; right:-380px; width:360px; max-width:92vw; height:100%;
  background:var(--cream); z-index:95; transition:right .25s ease; display:flex; flex-direction:column;
  box-shadow:-8px 0 24px rgba(0,0,0,.15);
}
.cart-drawer.open{right:0;}
.cart-drawer-head{display:flex; justify-content:space-between; align-items:center; padding:18px 20px; border-bottom:1px solid rgba(15,110,93,.14);}
.cart-drawer-head h3{margin:0; color:var(--teal-dark);}
.cart-items{flex:1; overflow-y:auto; padding:14px 20px;}
.cart-item{display:flex; gap:12px; padding:12px 0; border-bottom:1px solid rgba(0,0,0,.06);}
.cart-item img{width:60px; height:60px; object-fit:cover; border-radius:8px;}
.cart-item-info{flex:1;}
.cart-item-info h4{font-size:14px; margin:0 0 4px; font-weight:600;}
.cart-item-meta{font-size:12px; color:#66756f; margin-bottom:6px;}
.qty-row{display:flex; align-items:center; gap:8px;}
.qty-btn{width:24px; height:24px; border-radius:50%; border:1px solid var(--teal); background:#fff; color:var(--teal); cursor:pointer; font-weight:700; line-height:1;}
.remove-btn{margin-left:auto; font-size:12px; color:var(--coral); text-decoration:underline; cursor:pointer; background:none; border:none;}
.cart-footer{padding:16px 20px 22px; border-top:1px solid rgba(15,110,93,.14);}
.lead-input{width:100%; padding:9px 12px; margin-bottom:8px; border-radius:8px; border:1.5px solid rgba(15,110,93,.2); font-family:var(--font-body); font-size:13px; background:#fff; color:var(--ink);}
.cart-subtotal{display:flex; justify-content:space-between; font-weight:700; margin-bottom:14px; font-family:var(--font-display); color:var(--ink);}
.cart-note{font-size:12px; color:#7c8b85; text-align:center; margin:10px 0 0;}
.empty-cart{text-align:center; color:#9aa8a2; padding:40px 10px;}

/* ===== Responsive ===== */
@media (max-width:860px){
  .main-nav{
    position:fixed; top:96px; left:0; right:0; background:var(--cream);
    flex-direction:column; padding:16px 20px; gap:16px; display:none;
    border-bottom:1px solid rgba(15,110,93,.14); z-index:60;
  }
  .main-nav.open{display:flex;}
  .menu-toggle{display:inline-flex;}
  .hero h1{font-size:21px;}
  .hero{padding:22px 0 38px;}
  .modal-content{grid-template-columns:1fr; display:block; height:auto;}
  .modal-content img{object-fit:contain; background:var(--mint);}
  .modal-gallery{height:auto;}
  .modal-gallery #modalMainImg{height:58vh; flex:none;}
}

/* ===== Offer banner strip (admin customizable) ===== */
.offer-banner{background:var(--amber); color:#fff; text-align:center; font-weight:700; font-size:13px; padding:9px 14px;}
.offer-banner.hidden{display:none;}

/* ===== WhatsApp floating button ===== */
.wa-float{
  position:fixed; right:18px; bottom:86px; z-index:80; width:52px; height:52px; border-radius:50%;
  background:#25D366; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 20px rgba(0,0,0,.25);
  color:#fff; font-size:26px; text-decoration:none;
}
@media (min-width:860px){ .wa-float{ bottom:26px; } }

/* ===== Bottom mobile nav ===== */
.bottom-nav{
  position:fixed; left:0; right:0; bottom:0; z-index:70; background:#fff;
  border-top:1px solid rgba(20,41,77,.12); display:flex; justify-content:space-around;
  padding:6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow:0 -6px 18px rgba(20,41,77,.08);
}
.bn-item{
  flex:1; display:flex; flex-direction:column; align-items:center; gap:2px; background:none; border:none;
  color:#8792a3; font-family:var(--font-body); font-size:10.5px; font-weight:600; cursor:pointer; padding:4px 2px; position:relative;
}
.bn-item svg{width:21px; height:21px;}
.bn-item.active{color:var(--teal);}
.bn-item .bn-badge{
  position:absolute; top:-2px; right:22%; background:var(--coral); color:#fff; font-size:9px; font-weight:700;
  min-width:15px; height:15px; border-radius:999px; display:flex; align-items:center; justify-content:center; padding:0 3px;
}
@media (min-width:860px){ .bottom-nav{display:none;} }
body{padding-bottom:64px;}
@media (min-width:860px){ body{padding-bottom:0;} }

/* ===== Profile / Track order drawer (reuses cart-drawer visuals) ===== */
.profile-drawer .cart-drawer-head h3{color:var(--teal-dark);}
.profile-body{padding:18px 20px; overflow-y:auto; flex:1;}
.profile-guest{text-align:center; padding:30px 10px;}
.profile-guest .avatar-ph{width:74px; height:74px; border-radius:50%; background:var(--mint); display:flex; align-items:center; justify-content:center; margin:0 auto 14px; font-size:32px;}
.profile-guest p{color:#66756f; font-size:13.5px;}
.track-form{display:flex; flex-direction:column; gap:10px; margin-top:14px;}
.order-card{border:1px solid rgba(20,41,77,.12); border-radius:10px; padding:12px; margin-bottom:12px; font-size:13px;}
.order-card .oid{font-weight:700; font-family:var(--font-display); color:var(--teal-dark);}
.order-status-badge{
  display:inline-block; padding:3px 11px; border-radius:999px; font-size:11px; font-weight:700; margin-top:4px;
}
.status-pending{background:#FFF3E0; color:#B85C00;}
.status-confirmed{background:#E3F2FD; color:#0B5DA6;}
.status-processing{background:#EDE7F6; color:#5E35B1;}
.status-shipped{background:#E1F5FE; color:#0277BD;}
.status-delivered{background:#E6F4EA; color:#1E7B34;}
.status-cancelled{background:#FDECEA; color:#B3261E;}
.order-items-mini{color:#66756f; font-size:12px; margin-top:6px;}
.profile-logout{margin-top:16px; font-size:12.5px; text-align:center; color:var(--coral); text-decoration:underline; cursor:pointer; background:none; border:none;}
