@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*::-webkit-scrollbar {
  display: none;
}

* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
:root {
  --primary-black: #2c2a28;
  --soft-grey: #f4f4f4;
  --border-color: #e0e0e0;
}
header-main {
  position: sticky;
  top: 0;
  z-index: 10000;
}
body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  background-color: #f6f1eb;
  color: #2c2a28;
  letter-spacing: 1px;
  overflow-x: hidden;
  width: 100dvw;
}

.hompage-marquee {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 5vh;
  background-color: #d4c092;
}

.category-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem;
  flex-wrap: wrap;
  button {
    cursor: pointer;
    margin: 0.5rem;
    padding: 0.5rem;
    font-weight: 550;
    color: rgba(39, 41, 42, 0.6);
    background-color: transparent;
    border: none;
  }
  .filter-btn.active {
    color: black;
  }
}

header.ctr h1 {
  text-align: center;
  font-weight: 700;
  letter-spacing: 4px;
  margin-top: 40px;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
}

.product-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 90vw;
  margin: auto;
}

.product-card {
  border: 1px solid var(--border-color);
  flex: 1 1 calc(25% - 16px);
  max-width: 18rem;
  background: #fff;
  text-align: center;
  padding-bottom: 15px;
  transition: transform 0.3s ease;
  position: relative;
}

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

.img-container {
  background-color: var(--soft-grey);
  overflow: hidden;
  position: relative;
  pointer-events: none;
}

.img-container img {
  width: 100%;
  object-fit: cover;
  display: block;
  height: auto;
  aspect-ratio: 1 / 1;
}

/* Wishlist Button */
.wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 10;
  pointer-events: auto;
}

.product-info {
  padding: 15px 10px;
}

.product-info h3 {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.category-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  margin: 5px 0;
}

.price {
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
}

/* Button Grouping */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 10px 10px;
}

.buy-now-btn {
  background-color: var(--primary-black);
  color: aliceblue;
  border: 1px solid #000;
  padding: 8px;
  font-size: 0.7rem;
  font-weight: bold;
  cursor: pointer;
  letter-spacing: 1px;
}

.shop-btn {
  background-color: #d4c092;
  color: #000;
  border: none;
  font-weight: bold;
  padding: 8px;
  font-size: 0.8rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .category-filters {
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
    padding: 0.5rem 1rem;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    button {
      flex-shrink: 0; /* THIS PREVENTS THE TEXT CUT-OFF */
    }
  }

  .category-filters::-webkit-scrollbar {
    display: none;
  }

  .product-card {
    flex: 1 1 calc(50% - 16px);
    max-width: 100%;
    box-sizing: border-box;
  }
}
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

.drawer {
  margin-left: auto;
  margin-right: 0;
  height: 100vh;
  max-height: 100vh;
  min-width: 320px;
  border: none;
  padding: 1rem;
  position: fixed;
  top: 0;
  justify-content: center;

  a {
    text-decoration: none;
    width: 80%;
    background-color: #d4c092;
    color: #2c2a28;
    font-size: 1.5rem;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
  }
}

.drawer::backdrop {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
.drawer[open] {
  display: flex;
  align-items: center;
  justify-content: start;
  flex-direction: column;
}

.cartContainer {
  display: flex;
  align-items: center;
  flex-direction: column;
  border-bottom: 1px solid #eee;
  gap: 0.5rem;
  justify-content: center;
  width: 280px;
}
.cart-header {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 1rem;

  h3 {
    font-family: "Playfair Display", serif;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    svg {
      width: 1.5rem;
      height: 1.5rem;
      margin-right: 0.5rem;
      margin-bottom: -0.4rem;
    }
  }

  button {
    background: none;
    border: none;

    svg {
      width: 2rem;
      height: 2rem;
    }
  }
}
#cartItems {
  display: flex;
  align-items: center;
  width: 20rem;
  gap: 1.5rem;
  padding-left: 2rem;
  img {
    width: 6rem;
    height: 7rem;
    object-fit: cover;
  }

  div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-transform: capitalize;
    font-weight: 500;
  }
}
#summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 2rem;

  p {
    font-size: 0.8rem;
    padding-top: 1.5rem;
    font-weight: 500;
    color: black;
  }
}

/* Size Chips Styling */
.size-container {
  padding: 2rem;
  text-align: center;
  display: flex;
  align-items: center;
}

.size-options {
  gap: 5px;
  margin: 1rem;
}

.size-chip {
  background: #fff;
  border: 1px solid #ddd;
  padding: 5px 10px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: 0.2s;
}

.size-chip.selected {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Rating and Feedback */
.rating-display {
  font-size: 0.75rem;
  margin: 5px 0;
  cursor: pointer;
  color: #f1c40f; /* Gold */
}

.review-count {
  color: #888;
  text-decoration: underline;
  margin-left: 5px;
}

.product-desc {
  font-size: 0.7rem;
  color: #555;
  margin: 10px 0;
  line-height: 1.4;
}

.total-section {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-weight: bold;
  font-size: 1.1rem;
  border-top: 2px solid #000;
  margin-top: 10px;
}

.drawer-footer .buy-now-btn {
  width: 100%;
  padding: 15px;
  letter-spacing: 2px;
}
