/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #fff;
  color: #222;
}

/* Header */
header {
  background: #000;
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  color: #ff5fa2;
  font-size: 30px;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #ff5fa2;
}

/* Layout */

.container {
  display: flex;
}

/* Sidebar */

.sidebar {
  width: 240px;
  background: #ffe6ef;
  min-height: 100vh;
  padding: 25px;
  position: sticky;
  top: 75px;
}

.sidebar h2 {
  margin-bottom: 20px;
  color: #ff2d7a;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin: 15px 0;
}

.sidebar a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  transition: 0.3s;
}

.sidebar a:hover {
  color: #ff2d7a;
  padding-left: 8px;
}

/* Main */

main {
  flex: 1;
  padding: 30px;
}

.section-title {
  margin-bottom: 25px;
  color: #ff2d7a;
}

/* Products */

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.card-body {
  padding: 20px;
}

.card h3 {
  margin-bottom: 10px;
}

.price {
  color: #ff2d7a;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: #ff2d7a;
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

button:hover {
  background: #000;
}

/* Footer */

footer {
  background: #000;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}

/* Cart Badge */

.cart-count {
  background: #ff2d7a;
  color: white;
  border-radius: 50%;
  padding: 4px 9px;
  font-size: 13px;
  margin-left: 5px;
}

/* Forms */

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.checkout-box {
  max-width: 700px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.payment-box {
  background: #ffe6ef;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
}

.payment-box h3 {
  color: #ff2d7a;
}

.total {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 0;
}

/* Policy Page */

.policy {
  line-height: 1.9;
  font-size: 18px;
}

/* Responsive */

@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    position: relative;
    top: 0;
  }

  .products {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  header {
    flex-direction: column;
    gap: 15px;
  }
}
footer {
  background: #000;
  color: white;
  text-align: center;
  padding: 40px 20px;
}

footer h2 {
  color: #ff5fa2;
  margin-bottom: 10px;
}

footer p {
  margin: 8px 0;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.socials a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: 0.3s;
}

.socials a:hover {
  color: #ff5fa2;
}
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.gallery-image {
  max-width: 80%;
  max-height: 80%;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.close-gallery {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 45px;
  cursor: pointer;
}

.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
}

.prev {
  left: 30px;
}

.next {
  right: 30px;
}
