/* =========================================
   HER LITTLE RITUALS
   SHOP PAGE
========================================= */


/* SHOP HERO */

.shop-hero {
  padding: 75px 20px;
  background: var(--pink-light);
  text-align: center;
}

.shop-hero-content {
  max-width: 760px;
  margin-inline: auto;
}

.shop-hero h1 {
  margin-bottom: 20px;
}

.shop-hero h1 span {
  color: var(--rose);
  font-style: italic;
}

.shop-hero-content>p:not(.eyebrow) {
  max-width: 540px;
  margin: 0 auto 22px;
  font-size: 14px;
}

.shop-breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 25px;
  font-size: 11px;
  color: var(--muted);
}

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


/* SHOP TOOLBAR */

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 35px;
}

.shop-toolbar h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.shop-toolbar p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.shop-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-sort label {
  font-size: 12px;
  white-space: nowrap;
}

.shop-sort select {
  min-width: 180px;
  padding: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 12px;
}


/* SEARCH AND FILTERS */

.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.shop-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  max-width: 350px;
}

.shop-search label {
  font-size: 11px;
  font-weight: 700;
}

.shop-search input {
  width: 100%;
  min-height: 45px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  background: var(--cream);
  outline: none;
  font-family: var(--body-font);
  font-size: 12px;
}

.shop-search input:focus {
  border-color: var(--rose);
}

.shop-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}

.filter-label {
  margin-right: 5px;
  font-size: 11px;
  font-weight: 700;
}

.filter-button {
  padding: 10px 15px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  font-size: 11px;
  transition: all 0.2s;
}

.filter-button:hover,
.filter-button.active {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  color: var(--white);
}


/* SHOP PRODUCT GRID */

.shop-product-grid {
  row-gap: 40px;
}

.shop-product-grid .product-info {
  padding-top: 20px;
}

.shop-product-grid .product-image {
  aspect-ratio: 4 / 4.6;
}

.shop-product-grid .product-info h3 {
  font-size: 20px;
}

.shop-product-grid .product-description {
  min-height: 0;
  line-height: 1.8;
}

.shop-product-grid .product-price {
  font-size: 16px;
}


/* EMPTY SEARCH RESULTS */

.no-results {
  padding: 65px 20px;
  text-align: center;
  background: var(--cream);
}

.no-results[hidden] {
  display: none;
}

.no-results>span {
  color: var(--rose);
  font-size: 42px;
}

.no-results h3 {
  margin: 12px 0;
  font-family: var(--heading-font);
  font-size: 26px;
}

.no-results p {
  font-size: 13px;
  margin-bottom: 25px;
}


/* SHOP NOTE */

.shop-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 70px;
  padding: 28px;
  background: var(--cream);
  text-align: center;
}

.shop-note span {
  color: var(--rose);
  font-size: 28px;
}

.shop-note p {
  margin: 0;
  font-family: var(--heading-font);
  font-size: 17px;
  font-style: italic;
}


/* RESPONSIVE SHOP LAYOUT */

@media (max-width: 900px) {

  .shop-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-search {
    max-width: none;
  }

  .shop-filters {
    align-items: flex-start;
  }
}


@media (max-width: 700px) {

  .shop-hero {
    padding-block: 55px;
  }

  .shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .shop-sort {
    width: 100%;
    justify-content: space-between;
  }

  .shop-sort select {
    flex: 1;
    min-width: 0;
  }

  .shop-filters {
    gap: 8px;
  }

  .filter-label {
    width: 100%;
    margin-bottom: 5px;
  }

  .filter-button {
    padding: 9px 11px;
  }

  .shop-product-grid {
    gap: 30px 14px;
  }

  .shop-product-grid .product-info h3 {
    font-size: 17px;
  }

  .shop-note {
    margin-top: 45px;
    padding: 22px 15px;
  }

  .shop-note p {
    font-size: 15px;
  }

}

/* ============================================
   HER LITTLE RITUALS — SHOP CONTROLS
============================================ */

/* Shop toolbar */
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.shop-toolbar h2 {
  margin-bottom: 8px;
}

.shop-toolbar p {
  margin-bottom: 0;
}

/* Sorting dropdown */
.shop-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-sort label {
  color: var(--brown);
  font-size: 13px;
  font-weight: 600;
}

#sort-products {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--rose-dark);
  border-radius: 0;
  background: var(--white);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
}

#sort-products:focus {
  outline: 2px solid var(--rose-dark);
  outline-offset: 3px;
}

/* Search and filter container */
.shop-controls {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 35px;
}

/* Search field */
.shop-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 480px;
}

.shop-search label {
  color: var(--brown);
  font-size: 13px;
  font-weight: 600;
}

#product-search {
  width: 100%;
  min-height: 46px;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--white);
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.25s ease;
}

#product-search:focus {
  border-color: var(--rose-dark);
  outline: none;
}

#product-search::placeholder {
  color: var(--muted);
}

/* Category filter buttons */
.shop-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-label {
  margin-right: 5px;
  color: var(--brown);
  font-size: 13px;
  font-weight: 600;
}

.shop-filters .filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid var(--rose-dark);
  border-radius: 0;
  background: transparent;
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.shop-filters .filter-button:hover,
.shop-filters .filter-button.active {
  background: var(--rose-dark);
  color: var(--white);
  border-color: var(--rose-dark);
}

.shop-filters .filter-button:focus-visible {
  outline: 2px solid var(--rose-dark);
  outline-offset: 3px;
}

/* Shop product grid */
.shop-product-grid {
  margin-top: 20px;
}

/* Add to Bag buttons on the Shop page */
.shop-product-grid .add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--rose-dark);
  border-radius: 0;
  background: var(--rose-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.shop-product-grid .add-to-cart:hover {
  background: var(--brown);
  border-color: var(--brown);
}

/* Empty search results */
.no-results {
  padding: 55px 20px;
  text-align: center;
}

.no-results[hidden] {
  display: none !important;
}

.no-results>span {
  display: block;
  margin-bottom: 15px;
  color: var(--rose-dark);
  font-size: 35px;
}

.no-results h3 {
  margin-bottom: 10px;
  color: var(--brown);
  font-family: var(--font-heading);
}

.no-results p {
  margin-bottom: 20px;
  color: var(--muted);
}

/* View All Packages button */
#reset-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid var(--rose-dark);
  border-radius: 0;
  background: var(--rose-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

#reset-filters:hover {
  background: var(--brown);
}

/* Mobile layout */
@media (max-width: 700px) {
  .shop-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .shop-sort {
    width: 100%;
    justify-content: space-between;
  }

  #sort-products {
    flex: 1;
    max-width: 220px;
  }

  .shop-search {
    max-width: none;
  }

  .shop-filters {
    gap: 8px;
  }

  .shop-filters .filter-button {
    padding: 9px 14px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .shop-filters .filter-button {
    padding: 8px 11px;
    font-size: 11px;
  }
}


/* Packages and individual items headings */
.shop-group-heading {
  grid-column: 1 / -1;
  margin: 28px 0 0;
  padding-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 500;
  color: var(--brown);
  border-bottom: 1px solid var(--border-light);
}

.shop-group-heading:first-child {
  margin-top: 0;
}
