/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

body{
  background:linear-gradient(180deg,#f6f9ff,#eef2ff);
}
body{
  display:flex;
  justify-content:center;
}

html{
  scroll-behavior:smooth;
}
@keyframes fadeOut{
  to{opacity:0;visibility:hidden;}
}

.app{
  max-width:430px;
  margin:auto;
  padding-bottom:90px;
}

/* Header */
header{
  background:linear-gradient(135deg,#1F3C88,#244bc5);
  color:white;
  padding:16px;
  display:flex;
  justify-content:space-between;
  position:sticky;
  top:0;
  z-index:99;
  border-bottom-left-radius:22px;
  border-bottom-right-radius:22px;
}

header h2{
  font-size:18px;
  font-weight:600;
}
.title-box h2 {
  margin: 0;
  font-size: 22px;
  color: white;
}
.made-by {
  margin: 2px 0 0;
  font-size: 14px;
  color: rgb(255, 255, 255);
  letter-spacing: 1px;
}
.icons span{
  margin-left:12px;
  font-size:18px;
}
.icon-btn{
  background:none;
  border:none;
  font-size:18px;
  margin-left:12px;
  color:white;
  cursor:pointer;
}

.icon-btn:active{
  transform:scale(0.9);
}
/* Titles */
.title{
  padding:18px 16px 8px;
  font-size:17px;
  font-weight:600;
  color:#222;
}
/* Banner */
.banner{
  padding:15px;
}

.banner img{
  width:100%;
  height:160px;
  object-fit:cover;
  border-radius:18px;
  display:block;
}


/* Products */
.products{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px;
  padding:10px 16px;
  width:100%;
}


.card{
  background:rgba(255,255,255,0.85);
  backdrop-filter:blur(10px);
  border-radius:22px;
  padding:14px;
  text-align:center;
  box-shadow:0 10px 20px rgba(0,0,0,.08);
  transition:.3s;
}

.card:hover{
  transform:translateY(-5px);
}

.card img{
  width:90px;
  height:90px;
  object-fit:cover;
  border-radius:14px;
  margin-bottom:10px;
}


.card h4{
  font-size:14px;
  font-weight:500;
}

.card p{
  color:#1a7bbc;
  font-weight:600;
  margin:4px 0;
}

.card button{
  background:linear-gradient(135deg,#1F3C88,#3b6df3);
  color:white;
  border:none;
  padding:8px 16px;
  border-radius:20px;
  font-size:13px;
}

/* Offers */
.offers{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  padding:0 16px;
}

.offer-card{
  background:linear-gradient(135deg,#1F3C88,#3b6df3);
  color:white;
  padding:18px;
  border-radius:22px;
  box-shadow:0 8px 20px rgba(0,0,0,.15);
}

/* Recommended */
.recommended{
  display:flex;
  gap:28px;
  overflow-x:auto;
  padding:10px 16px;
}

.rec-card{
  min-width:150px;
  background:white;
  padding:16px;
  border-radius:22px;
  box-shadow:0 6px 15px rgba(0,0,0,.08);
}

/* Why Us */
.why{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  padding:0 16px;
}

.why-card{
  background:linear-gradient(135deg,#1F3C88,#3b6df3);
  color:white;
  padding:22px;
  border-radius:26px;
  font-weight:600;
  text-align:center;
  box-shadow:
    0 10px 25px rgba(26, 129, 188, 0.35),
    inset 0 0 0 rgba(255,255,255,0);
  transition:all .35s ease;
  position:relative;
  overflow:hidden;
}

/* Glow overlay */
.why-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.25),transparent);
  opacity:0;
  transition:.4s;
}

/* Hover / Tap */
.why-card:hover{
  transform:translateY(-6px) scale(1.03);
  box-shadow:
    0 18px 35px rgba(26, 69, 188, 0.45);
}

.why-card:hover::before{
  opacity:1;
}


/* Reviews */
.reviews{
  padding:10px 16px;
  display:grid;
  gap:12px;
}

.review-card{
  background:white;
  padding:16px;
  border-radius:22px;
  box-shadow:0 6px 15px rgba(0,0,0,.08);
}

/* Bottom Nav */
nav{
  position:fixed;
  bottom:12px;
  left:50%;
  transform:translateX(-50%);
  width:92%;
  max-width:420px;
  background:white;
  display:flex;
  justify-content:space-around;
  padding:14px 0;
  border-radius:30px;
  box-shadow:0 10px 25px rgba(0,0,0,.2);
  z-index:200;
}

nav button{
  background:none;
  border:none;
  font-size:22px;
  color:#777;
  cursor:pointer;
}

nav button:active{
  transform:scale(0.85);
}
/* Brand Slider */

.brand-slider{
  overflow:hidden;
  padding:15px 0;
}

.brand-track{
  display:flex;
  gap:40px;
  width:max-content;
  animation:scrollBrands 14s linear infinite;
}

.brand-track img{
  width:90px;
  height:40px;
  object-fit:contain;
  filter:none;
  opacity:1;
  transition:transform .3s ease;
}

/* Hover animation */
.brand-track img:hover{
  transform:scale(1.15);
}

@keyframes scrollBrands{
  from{
    transform:translateX(0);
  }
  to{
    transform:translateX(-50%);
  }
}
/* Global Section Spacing */

section{
  margin-bottom:48px;
}

.title{
  margin-top:18px;
}
/* Horizontal Category Pills */

.categories{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:8px 16px;
  scrollbar-width:none; 
  -ms-overflow-style:none;
}

.categories::-webkit-scrollbar{
  display:none;
}

.categories{
  display:flex;
  gap:9px;
  padding:10px 16px;
  overflow-x:auto;
}

.categories button{
  border:none;
  background:white;
  padding:10px 14px;
  border-radius:20px;
  font-size:13px;
  box-shadow:0 4px 10px rgba(0,0,0,.1);
  white-space:nowrap;
}

.categories button:active{
  transform:scale(.95);
}

/* Hover */
.categories button:hover{
  background:linear-gradient(135deg,#1F3C88,#244bc5);
  color:white;
  transform:translateY(-2px);
}
.cart-modal{
  position:fixed;
  inset:0;
  background:white;
  padding:20px;
  z-index:200;
  overflow-y:auto;
}

.hidden{
  display:none;
}

#cartItems{
  margin-top:15px;
}

.cart-item{
  display:flex;
  justify-content:space-between;
  margin-bottom:12px;
  padding:10px;
  border-radius:12px;
  background:#f4f4f4;
}

.close-btn{
  width:100%;
  padding:12px;
  background:#0d50b4;
  border:none;
  color:white;
  border-radius:12px;
}
/* Footer */

.footer{
  background:linear-gradient(135deg,#1F3C88,#244bc5);
  color:white;
  padding:40px 20px 120px;
  border-top-left-radius:30px;
  border-top-right-radius:30px;
  text-align:center;
}

.footer h2{
  font-size:20px;
  margin-bottom:5px;
}

.footer p{
  font-size:13px;
  opacity:0.8;
}

.footer-box{
  display:flex;
  justify-content:space-between;
  margin:30px 0;
  gap:20px;
}

.footer-box h4{
  font-size:14px;
  margin-bottom:8px;
}

.footer-box span{
  display:block;
  font-size:13px;
  margin-bottom:6px;
  opacity:0.9;
}

.socials{
  display:flex;
  justify-content:center;
  gap:15px;
  font-size:22px;
  margin-bottom:15px;
}

.copy{
  font-size:12px;
  opacity:0.7;
}
.pritam-link{
color:#f8f8f8;
text-decoration:none;
font-weight:600;
transition:0.3s;
}

.pritam-link:hover{
color:#4facfe;
text-shadow:0 0 10px #00f2fe;
}
footer{
  max-width:430px;
  margin:0 auto;
}
.app{
  max-width:430px;
  width:100%;
  margin:auto;
  padding-bottom:90px;
}
/* Footer */

.footer{
  background:linear-gradient(135deg,#1F3C88,#244bc5);
  color:white;
  padding:40px 20px 120px;
  border-top-left-radius:30px;
  border-top-right-radius:30px;
  text-align:center;
}

.footer h2{
  font-size:20px;
  margin-bottom:5px;
}

.footer p{
  font-size:13px;
  opacity:0.8;
}

.footer-box{
  display:flex;
  justify-content:space-between;
  margin:30px 0;
  gap:20px;
}

.footer-box h4{
  font-size:14px;
  margin-bottom:8px;
}

.footer-box span{
  display:block;
  font-size:13px;
  margin-bottom:6px;
  opacity:0.9;
}

.socials{
  display:flex;
  justify-content:center;
  gap:15px;
  font-size:22px;
  margin-bottom:15px;
}

.copy{
  font-size:12px;
  opacity:0.7;
}
.footer{
  width:100%;
  max-width:430px;
  margin:0 auto;
}
/* SEARCH MODAL */

.search-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.4);
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding-top:80px;
  z-index:300;
}

.search-box{
  background:white;
  width:90%;
  max-width:400px;
  padding:12px;
  border-radius:16px;
  display:flex;
  gap:10px;
  box-shadow:0 10px 25px rgba(0,0,0,.2);
}

.search-box input{
  flex:1;
  border:none;
  outline:none;
  font-size:15px;
}

.search-box button{
  background:none;
  border:none;
  font-size:18px;
  cursor:pointer;
}

.hidden{
  display:none;
}

/* Modern Search Icon */

.search-icon{
  width:18px;
  height:18px;
  border:2px solid white;
  border-radius:50%;
  position:relative;
  display:inline-block;
}

.search-icon::after{
  content:"";
  width:8px;
  height:2px;
  background:white;
  position:absolute;
  right: -3px;
  bottom:-5px;
  transform:rotate(49deg);
  border-radius:2px;
}

/* Health Concerns Section */

.concerns{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  padding:0 16px 10px;
}

.concern-card{
  background:#fff;
  border-radius:14px;
  padding:16px 10px;
  text-align:center;
  font-size:13px;
  font-weight:500;
  box-shadow:0 6px 14px rgba(0,0,0,0.08);
  cursor:pointer;
  transition:0.3s ease;
}

.concern-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 20px rgba(0,0,0,0.12);
}

.concern-card:active{
  transform:scale(0.96);
}
/* PANELS */

.panel{
  position:fixed;
  inset:0;
  background:#f7f9ff;
  padding:70px 16px 120px;
  transform:translateX(100%);
  transition:0.35s ease;
  z-index:150;
}

.active-panel{
  transform:translateX(0);
}

.panel h3{
  margin-bottom:12px;
}
