@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;
}
:root {
  --primary-black: #2c2a28;
  --soft-grey: #f4f4f4;
  --border-color: #e0e0e0;
}

body {
  overflow-x: hidden;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  background-color: #f6f1eb;
  color: #2c2a28;
  letter-spacing: 1px;
}

header-main {
  position: sticky;
  top: 0;
  z-index: 10000;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 1px;
  font-weight: bold;
  color: #2c2a28;
}

.hompage-marquee {
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 5vh;
  background-color: #d4c092;
}
main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 1rem;
  overflow-x: hidden;
  min-height: 50dvh;

  .empty-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5rem;
    text-align: center;
    h1 {
      font-size: 3rem;
    }
    button {
      border: none;
      padding: 1rem;
      background-color: #d4c092;
      cursor: pointer;
      font-size: 2rem;
      a {
        text-decoration: none;
        color: #2c2a28;
        font-weight: 600;
      }
    }
  }
}
#wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 2rem;
  gap: 2rem;
}
#cartWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}
#cartItem {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 18rem;
  margin: 2rem;

  img {
    height: 6rem;
    width: 6rem;
    object-fit: cover;
  }
  .itemInfo {
    button {
      border: none;
      padding: 0.5rem;
      cursor: pointer;
      font-size: 1.5rem;
    }

    .qty-controls {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 5px;

      label {
        font-size: 14px;
      }

      /* Styled Select Dropdown */
      select[data-qty-select] {
        padding: 4px 8px;
        border: 1px solid #ccc;
        border-radius: 2px;
        background-color: #faf8f6;
        font-size: 14px;
        cursor: pointer;
        outline: none;
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M0%200l5%206%205-6z%22%2F%3E%3C%2Fsvg%3E");
        background-repeat: no-repeat;
        background-position: right 8px center;
        padding-right: 25px;
      }

      select[data-qty-select]:focus {
        border-color: #888;
      }
    }
    .remove-btn:hover {
      background: #e0e0e0;
      border-color: #bbb;
    }
  }
}
.summary {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 500;
  gap: 0.7rem;

  .toHide {
    display: none;
  }
}

.cartFooter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70%;
  gap: 2rem;
  flex-wrap: wrap;
  button {
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: 600;
    border: none;
    background-color: #d4c092;
    color: #2c2a28;
    padding: 1rem;
    a {
      text-decoration: none;
      color: #2c2a28;
    }
  }
  button:hover {
    background-color: #eed8a5;
  }
  button:active {
    background-color: #796e54;
  }
}
