:root{

  --primary:#ff4fa3;
  --secondary:#7b5cff;

  --dark:#111827;

  --light:#ffffff;

  --bg:#fff5fa;

}

/* =========================
        GLOBAL
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'Poppins',sans-serif;
  background:var(--bg);
  color:var(--dark);
}

/* =========================
       CONTAINER
========================= */

.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

/* =========================
         HEADER
========================= */

header{
  position:sticky;
  top:0;
  z-index:1000;
  background:white;
  box-shadow:0 2px 12px rgba(255,0,128,0.08);
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 0;
}

/* =========================
          BRAND
========================= */

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.logo img{
  width:58px;
  border-radius:14px;
}

.brand h1{
  font-size:28px;
  font-weight:700;
}

.tagline{
  font-size:12px;
  color:#666;
}

/* =========================
           MENU
========================= */

.menu{
  display:flex;
  align-items:center;
  gap:28px;
}

.menu a{
  text-decoration:none;
  color:var(--dark);
  font-weight:500;
  transition:0.3s;
}

.menu a:hover{
  color:var(--primary);
}

/* =========================
         BUTTONS
========================= */

.btn,
.signin-btn{

  background:linear-gradient(
    135deg,
    var(--primary),
    var(--secondary)
  );

  color:white;
  padding:12px 24px;
  border:none;
  border-radius:12px;
  text-decoration:none;
  display:inline-block;
  font-weight:600;
  cursor:pointer;
  transition:0.3s;
}

.btn:hover,
.signin-btn:hover{

  transform:translateY(-3px);

  box-shadow:0 8px 18px rgba(255,0,140,0.3);
}

/* =========================
        DROPDOWN
========================= */

.signin{
  position:relative;
}

.dropdown-menu{

  display:none;

  position:absolute;

  top:58px;

  right:0;

  width:280px;

  background:white;

  border-radius:18px;

  overflow:hidden;

  box-shadow:0 12px 28px rgba(0,0,0,0.15);

  z-index:999;

}

.dropdown-title{

  padding:12px 18px;

  font-size:13px;

  font-weight:700;

  background:#fff0f7;

  color:#ff1493;

  letter-spacing:1px;

}

.dropdown-title.premium{

  background:#f3e8ff;

  color:#7b2cff;

}

.dropdown-menu a{

  display:block;

  padding:14px 18px;

  text-decoration:none;

  color:#333;

  font-weight:500;

  transition:0.3s;

  border-bottom:1px solid #f3f3f3;

  font-size:15px;

}

.dropdown-menu a:hover{

  background:#fff5fa;

  color:#ff1493;

  padding-left:24px;

}

/* =========================
          HERO
========================= */

.hero{

  width:90%;

  max-width:1200px;

  margin:25px auto;

  position:relative;

  height:470px;

}

.slide{

  position:absolute;

  inset:0;

  opacity:0;

  transition:opacity 1s ease-in-out;

  border-radius:28px;

  overflow:hidden;

  background-size:cover;

  background-position:center;

  display:flex;

  align-items:center;

}

.slide.active{

  opacity:1;

  z-index:1;

}
.overlay{

  position:absolute;

  inset:0;

  background:rgba(0,0,0,0.45);
}

.hero-content{

  position:relative;

  z-index:2;

  color:white;

  padding:60px;
}

.hero-content h2{

  font-size:58px;

  line-height:1.1;

  margin-bottom:20px;
}

.hero-content p{

  font-size:22px;

  margin-bottom:30px;
}

/* =========================
         FEATURES
========================= */

.features{

  width:90%;

  max-width:1200px;

  margin:40px auto;

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(280px,1fr));

  gap:30px;
}

/* =========================
           CARD
========================= */

.card{

  background:linear-gradient(
    135deg,
    #ffffff,
    #ffe6f2
  );

  padding:32px;

  border-radius:24px;

  border:1px solid #ffd6ea;

  box-shadow:0 8px 20px rgba(255,0,128,0.10);

  transition:0.3s;

  min-height:270px;

  display:flex;

  flex-direction:column;

  justify-content:space-between;

}

.card:hover{

  transform:translateY(-8px);

  box-shadow:0 15px 30px rgba(255,0,128,0.18);

}

.card h3{

  font-size:22px;

  margin-bottom:16px;

  line-height:1.3;
}

.card p{

  color:#555;

  line-height:1.7;

  margin-bottom:24px;
}

/* =========================
          FOOTER
========================= */

footer{

  margin-top:60px;

  padding:35px;

  background:white;

  text-align:center;

  color:#555;

  box-shadow:0 -2px 10px rgba(0,0,0,0.05);
}

/* =========================
        RESPONSIVE
========================= */

@media(max-width:768px){

  .nav{
    flex-direction:column;
    gap:15px;
  }

  .menu{
    flex-wrap:wrap;
    justify-content:center;
    gap:18px;
  }

  .hero-content{
    padding:30px;
  }

  .hero-content h2{
    font-size:38px;
  }

  .hero-content p{
    font-size:17px;
  }

  .slide{
    height:360px;
  }

  .features{
    grid-template-columns:1fr;
  }

  .card{
    text-align:center;
  }

  .dropdown-menu{
    width:100%;
    right:auto;
    left:0;
  }

}
/* ===============================
      MARKETPLACE HERO
================================ */

.market-hero{

  height:320px;

  margin:25px auto;

  width:90%;

  max-width:1250px;

  border-radius:28px;

  overflow:hidden;

  position:relative;

  background-image:url(
  'https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?q=80&w=1600&auto=format&fit=crop'
  );

  background-size:cover;

  background-position:center;

}

.hero-overlay{

  width:100%;

  height:100%;

  background:rgba(0,0,0,0.50);

  display:flex;

  flex-direction:column;

  justify-content:center;

  padding:60px;

  color:white;

}

.hero-overlay h2{

  font-size:52px;

  margin-bottom:15px;

}

.hero-overlay p{

  font-size:20px;

  max-width:700px;

  line-height:1.6;

}

/* ===============================
      SEARCH SECTION
================================ */

.market-search{

  display:flex;

  gap:15px;

  margin-top:35px;

  margin-bottom:25px;

}

.market-search input{

  flex:1;

  padding:16px;

  border-radius:16px;

  border:2px solid #ffd6ea;

  background:white;

  font-size:16px;

}

.market-search input:focus{

  outline:none;

  border-color:#ff4fa3;

}

/* ===============================
      SELL BANNER
================================ */

.sell-banner{

  background:linear-gradient(
    135deg,
    #ff4fa3,
    #7b5cff
  );

  padding:35px;

  border-radius:24px;

  color:white;

  margin-bottom:35px;

  display:flex;

  justify-content:space-between;

  align-items:center;

  box-shadow:0 10px 30px rgba(255,0,140,0.18);

}

.sell-banner h3{

  font-size:30px;

}

.sell-banner .btn{

  background:white;

  color:#ff1493;

}

/* ===============================
      BOOK GRID
================================ */

.book-grid{

  display:grid;

  grid-template-columns:
  repeat(auto-fit,minmax(260px,1fr));

  gap:28px;

  margin-bottom:50px;

}

/* ===============================
      BOOK CARD
================================ */

.book-card{

  background:white;

  border-radius:24px;

  overflow:hidden;

  padding:18px;

  border:1px solid #ffd6ea;

  box-shadow:0 8px 22px rgba(255,0,140,0.08);

  transition:0.3s;

}

.book-card:hover{

  transform:translateY(-6px);

  box-shadow:0 14px 28px rgba(255,0,140,0.16);

}

/* BOOK IMAGE */

.book-card img{

  width:100%;

  height:220px;

  object-fit:cover;

  border-radius:18px;

}

/* TITLE */

.book-card h3{

  margin-top:15px;

  font-size:24px;

  color:#111827;

}

/* PRICE */

.book-price{

  color:#ff1493;

  font-size:24px;

  font-weight:700;

  margin-top:10px;

}

/* CITY */

.book-city{

  color:#666;

  margin-top:8px;

}

/* BUTTONS */

.book-card .btn{

  width:100%;

  margin-top:15px;

  text-align:center;

}

/* ===============================
      MOBILE
================================ */

@media(max-width:768px){

  .hero-overlay{

    padding:30px;

  }

  .hero-overlay h2{

    font-size:34px;

  }

  .hero-overlay p{

    font-size:16px;

  }

  .market-search{

    flex-direction:column;

  }

  .sell-banner{

    flex-direction:column;

    gap:20px;

    text-align:center;

  }

}
/* BOOK BUTTON AREA */

.book-buttons{

  display:flex;

  gap:12px;

  margin-top:18px;

}

/* BUY BUTTON */

.buy-btn{

  background:linear-gradient(
    135deg,
    #7b5cff,
    #5b3df5
  ) !important;

}

/* ADD TO CART */

.add-cart-btn{

  background:linear-gradient(
    135deg,
    #ff4fa3,
    #ff1493
  ) !important;

}

/* BUTTON FLEX */

.book-buttons .btn{

  flex:1;

  text-align:center;

  font-size:14px;

  padding:12px;

}
.book-card img{

  width:100%;

  height:240px;

  object-fit:cover;

  border-radius:18px;

}
.book-card{

  transition:0.35s;

}

.book-card:hover{

  transform:
  translateY(-10px);

  box-shadow:
  0 15px 35px rgba(255,0,140,0.18);

}
.book-card h3{

  font-size:20px;

  margin-top:18px;

  color:#111827;

}

.book-price{

  font-size:32px;

  font-weight:700;

  color:#ff1493;

  margin-top:12px;

}

.book-city{

  color:#666;

  margin-top:8px;

}