/* -- TEA CATALOGUE HERO -- */

.tea-hero {
  background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('/img/tea-header.png');
  background-size: cover;
  background-position: center;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  color: var(--color-white);
  padding: 3rem 4rem;
  position: relative;
}

.tea-hero h1 {
  color: var(--color-white);
  font-size: 7.0rem;
  margin-bottom: 0.5rem;
}

.tea-hero p {
  font-size: 1.8rem;
  opacity: 0.9;
}

.hero::after,
.contact-hero::after,
.tea-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(0deg, var(--color-cream) 0%, rgba(248,242,231,0) 100%);
  pointer-events: none;
}

.catalogue-search-wrap {
  position: relative;
  display: flex;
  gap: 1rem;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 2rem;
  top: 40%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  z-index: 2;
  pointer-events: none;
}

.catalogue-search {
  display: flex;
  gap: 1rem;
  margin: 0;
  width: 100%;
}

.catalogue-search .input {
  flex: 1;
}

.catalogue-search input {
  width: 100%;
  padding: 1rem 1.8rem 1rem 5rem;
  border-radius: 40px;
  border: 1px solid var(--color-dark);
  font-family: var(--font-display);
  font-size: 1.3rem;
  background-color: var(--color-white);
  color: var(--color-text-dark);
  box-sizing: border-box;
}

.catalogue-search input::placeholder {
  font-family: var(--font-display);
  color: var(--color-text-muted);
  opacity: 1;
}

.catalogue-search button {
  background-color: var(--color-dark);
  color: var(--color-cream);
  border: none;
  border-radius: 40px;
  padding: 1rem 2.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.filters-and-sort {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}

.tea-type-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
}

.filter-pill {
  border: 1px solid rgba(35,35,35,1);
  border-radius: 40px;
  padding: 1rem 3rem;
  font-size: 1.3rem;
  font-family: var(--font-display);
  color: var(--color-text-dark);
}

.filter-pill.active {
  background-color: var(--color-dark);
  color: var(--color-cream);
  border-color: var(--color-dark);
}

.sort-row {
  display: flex;
  margin: 0;
  flex-shrink: 0;
}

.sort-row form {
  margin: 0;
  display: flex;
  align-items: center;
}

.sort-row .input {
  margin: 0;
}

.sort-select {
  border: 1px solid rgba(35,35,35,1);
  border-radius: 40px;
  padding: 1rem 3rem 1rem 1.8rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  background-color: var(--color-cream);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231c1c1a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.4rem center;
  background-size: 12px 8px;
}

.sort-select:focus {
  outline: none;
  border-color: var(--color-dark);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background-color: #ebe3d5;
  border-radius: 4px;
  overflow: hidden;
  padding: 0.6rem;
  box-sizing: border-box;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 2px;
}

.product-card .card-body {
  padding: 1rem 0.6rem 1.2rem;
}

.product-card .tea-type {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-dark);
}

.product-card .product-name {
  font-family: var(--font-display);
  font-size: 2.3rem;
  margin: 0.3rem 0;
}

.product-card .price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text-muted);
}

.product-image-wrap {
  position: relative;
}

.wishlist-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 32px;
  height: 26px;
  z-index: 2;
}

.wishlist-btn img {
  width: 24px;
  height: 20px;
  display: block;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-title-row .product-name {
  margin: 0;
}

.add-btn {
  background: none;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-text-dark);
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.15);
  margin: 0 0 2.5rem;
}

.product-grid-wrapper {
  padding: 2rem 4rem 4rem;
}

/* -- PRODUCT DETAIL -- */

.product-page-hero {
  background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('/img/homepage-header.png');
  background-size: cover;
  background-position: center;
  min-height: 150px;
  position: relative;
}

.product-page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(0deg, var(--color-cream) 0%, rgba(248,242,231,0) 100%);
  pointer-events: none;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 550px 1fr;
  gap: 10rem;
  align-items: start;
}

.product-gallery {
  display: flex;
  gap: 1rem;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 90px;
  flex-shrink: 0;
}

.gallery-main {
  flex: 1;
  background-color: #ebe3d5;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.product-detail {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.breadcrumb {
  display: flex;
  gap: 0.6rem;
  font-size: 1.3rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--color-dark);
}

.thumb-btn {
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  background: none;
  width: 90px;
  height: 90px;
  flex-shrink: 0;
}


.thumb-btn.active {
  border-color: var(--color-dark);
  border-width: 2px;
}

.thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-info {
  padding-top: 0.5rem;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.product-title-row h1 {
  font-size: 3.5rem;
  margin: 0;
  line-height: 1.1;
}

.product-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 12rem;
}

.flavour-notes {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-dark);
  margin: 0;
}

.wishlist-btn-detail {
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.wishlist-btn-detail img {
  width: 24px;
  height: 20px;
}

.best-seller-badge {
  display: inline-block;
  background-color: var(--color-dark);
  color: var(--color-cream);
  font-size: 1rem;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin: 0 0 0.3rem;
}

.detail-price {
  font-family: var(--font-display);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.quantity-and-cart {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: stretch;
}

.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,0,0);
  border-radius: 40px;
  overflow: hidden;
  height: 40px;
  box-sizing: border-box;
}

.qty-btn {
  background: none;
  border: none;
  padding: 0 1.3rem;
  font-size: 1.4rem;
  font-weight: 600;
  height: 100%;
  color: var(--color-dark);
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#qty-input {
  width: 40px;
  height: 100%;
  border: none;
  text-align: center;
  font-size: 1.1rem;
  -moz-appearance: textfield;
}

#qty-input::-webkit-outer-spin-button,
#qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add-to-cart-btn {
  flex: 1;
  background-color: var(--color-dark);
  color: var(--color-cream);
  border: none;
  border-radius: 40px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.accordion {
  margin-top: 2.5rem;
}

.accordion-item {
  border-top: 1px solid rgba(0,0,0,0.15);
}

.accordion-item:last-child {
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.accordion-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-text);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text-dark);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-panel p {
  padding-bottom: 1.2rem;
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

@media (max-width: 900px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    flex-direction: row;
    order: 2;
  }
}