/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #fafafa;
  color: #333;
}

/* ================= HEADER ================= */
header {
  width: 100%;
  background: #fff;
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 28px;
  font-weight: bold;
  color: #ff0066;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  font-weight: bold;
  color: #333;
}

nav a:hover {
  color: #ff0066;
}

/* ================= HERO SECTION ================= */
.hero {
  width: 100%;
  height: 70vh;
  background-image: url("images/hero.jpg"); /* IMAGE REQUIRED */
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Dark overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

/* Hero text container */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 40px;
  margin-left: 6%;
  margin-top: 12%;
  text-align: left;
}

/* 🔴 RED HEADING */
.hero-title {
  color: #e6005c;
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 14px;
}

/* 🟡 TRANSPARENT LABEL WITH YELLOW TEXT */
.hero-label {
  display: inline-block;
  background: rgba(0, 0, 0, 0.55);
  color: #ffeb3b;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 18px;
}

/* Button */
.cta-btn {
  background: #ff0066;
  border: none;
  padding: 12px 25px;
  font-size: 18px;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

.cta-btn:hover {
  background: #cc0052;
}

/* ================= CATEGORIES ================= */
.categories {
  padding: 50px 10%;
}

.categories h2 {
  margin-bottom: 25px;
  font-size: 26px;
}

.cat-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 20px;
}

.cat-item {
  background: #fff;
  padding: 25px;
  text-align: center;
  font-size: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
}

.cat-item:hover {
  background: #ff0066;
  color: #fff;
}

/* ================= RECENT PRODUCTS ================= */
.recent {
  padding: 16px 10px;
}

.products {
  margin-top: 10px;
  padding: 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 👉 2 items per row */
  gap: 14px;
}
@media (max-width: 600px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
  }
}



.empty {
  color: grey;
  font-size: 18px;
}

.product-card {
  width: 100%;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
  cursor: pointer;
  transition: 0.2s;
  overflow: hidden;
}

.product-card:hover {
  transform: scale(1.03);
}

.product-card img {
  width: 100%;
  height: 180;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.product-card h3 {
  margin: 8px 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #111;
  letter-spacing: .2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


.product-card p {
  margin: 0;
  font-weight: bold;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 25px;
  background: #fff;
  margin-top: 40px;
}

/* ================= FORMS ================= */
.form-section {
  width: 70%;
  margin: 30px auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.form-section h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 15px;
  font-weight: bold;
}

input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #bbb;
  border-radius: 8px;
}

.dim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px,1fr));
  gap: 15px;
}

.submit-btn {
  margin-top: 25px;
  padding: 15px;
  background: #ff0066;
  color: #fff;
  border: none;
  font-size: 18px;
  border-radius: 10px;
  cursor: pointer;
}

.submit-btn:hover {
  background: #cc0052;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }

  .hero-content {
    margin: 0;
    padding: 20px;
    max-width: 100%;
  }

  .hero-title {
    font-size: 26px;
  }

  .form-section {
    width: 90%;
  }
}
/* ===== HERO TEXT POSITION & COLOR FIX ===== */

.hero-content {
  position: absolute;
  top: 45%;
  left: 6%;
  transform: translateY(-50%);
  max-width: 520px;
  text-align: left;
}

/* 🔴 GREEN-MARKED TEXT → RED */
.hero-title {
  color: #e6005c;
  font-size: 36px;
  line-height: 1.3;
  margin-bottom: 16px;
}

/* 🟡 RED-MARKED TEXT → TRANSPARENT LABEL + YELLOW */
.hero-label {
  display: inline-block;
  background: rgba(0, 0, 0, 0.55);
  color: #ffeb3b;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 15px;
  margin-bottom: 20px;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.modal-box {
  background: #fff;
  width: 90%;
  max-width: 350px;
  margin: 100px auto;
  padding: 20px;
  border-radius: 8px;
}

#closeModal {
  float: right;
  cursor: pointer;
  font-size: 22px;
}
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.modal-box {
  background: #fff;
  width: 90%;
  max-width: 350px;
  margin: 100px auto;
  padding: 20px;
  border-radius: 8px;
}
/* ================= LOGIN POPUP FIX ================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 999999 !important;   /* POPUP ALWAYS ON TOP */
    justify-content: center;
    align-items: center;
}

.modal-box {
  background: #fff;
  width: 90%;
  max-width: 380px;
  padding: 20px;
  border-radius: 14px;
  position: relative;
  z-index: 1000000 !important;
  min-height: 340px;
}

}
.topbar{
  display:flex;
  align-items:center;
  padding:10px 14px;
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.menu-btn{
  font-size:22px;
  background:none;
  border:none;
  margin-right:12px;
}

.side-menu{
  position:fixed;
  left:-260px;
  top:0;
  width:240px;
  height:100%;
  background:#fff;
  box-shadow:2px 0 10px rgba(0,0,0,.12);
  padding:20px;
  transition:.3s;
  z-index:9999;
}

.side-menu a, .side-menu button{
  display:block;
  margin:12px 0;
}

.search-box{
  padding:10px;
}

.search-box input{
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #ccc;
}

.categories-strip{
  display:flex;
  overflow-x:auto;
  gap:10px;
  padding:10px;
}

.categories-strip div{
  background:#eee;
  padding:10px 14px;
  border-radius:30px;
  white-space:nowrap;
}

.sell-btn{
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  padding:12px 25px;
  border-radius:40px;
  border:none;
  background:#ff1f6a;
  color:white;
  font-weight:700;
  box-shadow:0 6px 15px rgba(0,0,0,.15);
}

/* --- MOBILE SIDE MENU FIX --- */
.side-menu {
    padding: 18px 20px;
}

/* ALL LINKS — EVEN WITHOUT <ul> */
.side-menu a {
    display: block;
    width: 100%;
    padding: 12px 10px;
    margin-bottom: 14px;
    text-decoration: none;
    font-size: 16px;
    line-height: 22px;
    border-radius: 10px;
}

.side-menu a:hover {
    background: #f5f5f5;
}

/* LOGIN / SIGNUP / LOGOUT BUTTONS */
.side-menu button {
    display: block;
    width: 100%;
    padding: 12px 10px;
    margin-bottom: 14px;
    border-radius: 12px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0f1111;
  color: #fff;
}

.topbar .left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-btn {
  font-size: 20px;
  background: none;
  border: none;
  color: #fff;
}

.logo {
  font-size: 18px;
  font-weight: 700;
}

.topbar .right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.login-icon,
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  cursor: pointer;
}

#cartCount {
  background: #ff9900;
  color: #000;
  border-radius: 20px;
  padding: 0 6px;
  font-size: 12px;
}
.logo {
  margin-left: 6px;
}
#continueBtn {
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  border-radius: 10px;
  border: none;
  background: #ff0066;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 14px;
}

#continueBtn:active {
  transform: scale(.98);
}
#loginModal p,
#loginModal b {
  line-height: 1.6;
}
#forgotBtn,
#createAccBtn {
  display: inline-block;
  background: #f3f4f6;
  padding: 10px 14px;
  border-radius: 10px;
  margin-top: 6px;
}

#forgotBtn:hover,
#createAccBtn:hover {
  background: #ffe6f0;
  color: #ff0066;
}
.signup-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.signup-btn {
  background: #ffe6f0;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.signup-btn:hover {
  background: #ff0066;
  color: #fff;
}
.primary-btn {
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  background: #ff0066;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}

.primary-btn:active {
  transform: scale(.98);
}

.primary-btn:disabled {
  opacity: .6;
}
/* SIGNUP POPUP — SEND OTP BUTTON */
#signupModal #su_sendOtpBtn {
  width: 100%;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  background: #ff0066;
  color: #fff;
  margin-top: 10px;
  margin-bottom: 12px;
}

#signupModal #su_sendOtpBtn:active {
  transform: scale(.98);
}
#menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  z-index: 999;
}
/* SIDE MENU PRO LOOK */
.side-menu a {
  display: block;
  padding: 14px 14px;
  margin-bottom: 10px;
  font-size: 16px;
  border-radius: 14px;
  text-decoration: none;
  color: #222;
  background: #f8f9fb;
  border: 1px solid #eee;
  transition: .2s;
}

.side-menu a:hover {
  background: #ffe6f1;
  border-color: #ff4d8c;
  color: #ff0066;
  transform: translateX(4px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}
.menu-label {
  margin-top: 8px;
  margin-bottom: 6px;
  font-size: 20px;
  color: #777;
  letter-spacing: .4px;
}
.search-box {
  display: flex;
  gap: 6px;
  padding: 10px;
}

.search-box input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

#searchBtn {
  padding: 0 14px;
  border-radius: 10px;
  border: none;
  background: #ff0066;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

#searchBtn:active {
  transform: scale(.96);
}
.categories-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.cat-chip {
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #f7f7f7;
  font-size: 14px;
  white-space: nowrap;
}

.cat-chip.active {
  background: #ff007f;
  color: #fff;
  border-color: #ff007f;
  font-weight: 600;
}
.fancy-btn{
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg,#ff0066,#ff3c8c);
  color: white;
  font-weight: 600;
  font-size: 15px;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(255,0,102,.25);
  transition: all .25s ease;
}

.fancy-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(255,0,102,.35);
}

/* Outline style for OTP */
.fancy-btn.outline{
  background: white;
  color: #ff0066;
  border: 2px solid #ff0066;
  box-shadow: none;
}

.fancy-btn.outline:hover{
  background: #ff0066;
  color: white;
}
.logo {
  text-decoration: none;   /* underline remove */
  color: #ff007a;          /* same pink color */
  font-weight: 700;
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 24px;
  font-weight: bold;
  color: #ff2a78;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: 0.2s;
}

.close-btn:hover {
  background: #ff2a78;
  color: #fff;
  transform: scale(1.15);
}
#forgotModal .modal-box {
  position: relative;
  margin: 100px auto;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  min-height: 340px;
}

#forgotModal h2 {
  margin-top: 0;
  margin-bottom: 5px;
}

#forgotModal p {
  margin-top: 0;
  margin-bottom: 15px;
  color: #444;
}
#forgotModal input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  margin-top: 5px;
  margin-bottom: 12px;
  outline: none;
}

#forgotModal input:focus {
  border-color: #ff2a78;
  box-shadow: 0 0 0 1px #ff2a78;
}
#fp_send_btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #ff2a78;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

#fp_send_btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(255,42,120,.35);
}
#doPasswordLoginBtn {
  width: 100%;
  padding: 12px 0;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg,#ff0066,#ff3c8c);
  color: #fff;
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(255,0,102,.25);
}

#doPasswordLoginBtn:active {
  transform: scale(.98);
}
.ad-placeholder{
  width:100%;
  height:120px;
  background:#f3f3f3;
  border:1px dashed #ccc;
  color:#777;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  margin:14px 0;
}
#sendOtpBtn {
  display: none;
}
.slider{
    display:flex;
    overflow-x:auto;
    gap:8px;
    scroll-snap-type:x mandatory;
}

.slider::-webkit-scrollbar{
    display:none;
}

.slider img{
    width:100%;
    height:100%;
    border-radius:10px;
    object-fit:cover;
    scroll-snap-align:center;
}
.img-viewer {
  width: 100%;
  height: 320px;
  overflow: hidden;
  position: relative;
  border-radius: 14px;
  background: #f5f5f5;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform .3s ease;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  touch-action: none; /* zoom enable */
}

.dots {
  position: absolute;
  bottom: 8px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.dots span {
  width: 8px;
  height: 8px;
  background: #ddd;
  border-radius: 50%;
}

.dots span.active {
  background: #ff0066;
}
#dotsWrap span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#ccc;
}

#dotsWrap .active{
  background:#ff0066;
}
.recent .products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 14px;
}
/* === FORCE PRODUCT CARD SIZE FIX === */

.products .product-card {
  padding: 8px !important;
  border-radius: 14px !important;
}

.products .product-card img {
  width: 100% !important;
  height: 170px !important;      /* 👈 HEIGHT FIXED */
  object-fit: cover !important;  /* crop — no stretching */
  border-radius: 10px !important;
}
#sliderInner {
  display: flex;
  transition: .3s ease;
}
.dash-boxes{
  width: 100%;
  max-width: 1100px;
  margin: 15px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* cards */
.dash-card{
  padding: 14px;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.dash-card h3{
  margin-bottom: 6px;
  font-size: 17px;
}

.dash-card p{
  font-size: 13px;
  opacity: .9;
}

/* DIFFERENT COLORS */
.seller-box{
  background: linear-gradient(135deg,#5e17eb,#8f5bff);
}

.buyer-box{
  background: linear-gradient(135deg,#ff6b6b,#ff9f43);
}

.dash-btn{
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.dash-btn:hover{
  background: rgba(255,255,255,.25);
}

.dash-boxes{
  width: 95%;
  max-width: 1100px;
  margin: 12px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 600px){
  .dash-boxes{
    grid-template-columns: 1fr 1fr;  /* still left–right */
  }
}


.dash-card{
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}


.dash-card h3{
  margin-bottom: 6px;
  font-size: 16px;
}

.dash-card p{
  font-size: 12px;
}

/* DIFFERENT COLORS */
.seller-box{
  background: linear-gradient(135deg,#5e17eb,#8f5bff);
}

.buyer-box{
  background: linear-gradient(135deg,#ff6b6b,#ff9f43);
}

.dash-btn{
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

.dash-btn:hover{
  background: rgba(255,255,255,.25);
}
.dash-card{
  position: relative;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}

.dash-card:active{
  transform: scale(.97);
}

.dash-card:hover{
  box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

/* RED NUMBER BADGE */
.dash-card{
  position: relative;
}

/* badge outside corner */
.badge{
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff2d2d;
  color: #fff;
  padding: 3px 5px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  display: none;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

.seller-box{
  background: linear-gradient(135deg,#0066ff,#4da6ff);
}

.buyer-box{
  background: linear-gradient(135deg,#00b894,#55efc4);
}
