/**
 * EDLV Shop Page Styles
 *
 * Upload to:
 * /wp-content/themes/oceanwp-child/edlv-shop-styles.css
 */

:root {
  --edlv-plum: #662958;
  --edlv-deep-plum: #662958;
  --edlv-raspberry: #d42b62;
  --edlv-violet: #4e3f6a;
  --edlv-cream: #fff0a5;
  --edlv-blush: #ffeaf6;
  --edlv-dusty-rose: #e386bb;
  --edlv-ink: #4e3f6a;
  --edlv-muted: #4e3f6a;
  --edlv-line: rgba(78, 63, 106, 0.12);
  --edlv-white: #ffffff;
  --edlv-radius: 8px;
  --edlv-shadow: 0 16px 36px rgba(78, 63, 106, 0.08);
  --edlv-shadow-hover: 0 18px 40px rgba(78, 63, 106, 0.12);
}

.edlv-shop-main,
.edlv-shop-main button,
.edlv-shop-main input,
.edlv-shop-main select {
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.edlv-shop-main {
  color: var(--edlv-ink);
  background: var(--edlv-white);
}

.edlv-shop-container {
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 28px;
}

.edlv-shop-hero {
  padding: 38px 0 24px;
  background: var(--edlv-white);
}

.edlv-shop-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 1.1fr) minmax(560px, 0.9fr);
  min-height: 360px;
  overflow: hidden;
  padding: 76px 70px 58px;
  background: rgba(255, 247, 250, 0.88);
  border: 1px solid rgba(227, 134, 187, 0.18);
  border-radius: 18px;
}

.edlv-shop-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 8px;
  color: #121212;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 300;
}

.edlv-shop-breadcrumb a {
  color: #121212;
  font-weight: 300;
  text-decoration: none;
}

.edlv-shop-breadcrumb a:hover,
.edlv-shop-breadcrumb a:focus-visible {
  color: var(--edlv-raspberry);
}

.edlv-shop-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.edlv-shop-eyebrow {
  margin: 0 0 14px;
  color: var(--edlv-raspberry);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.edlv-shop-products-header h2 {
  font-family: 'Catchy Mager', Georgia, serif;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0;
  color: var(--edlv-deep-plum);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.edlv-shop-hero h1 {
  max-width: 760px;
  margin: 0 0 28px;
  color: #d42b62;
  font-family: 'Catchy Mager', Georgia, serif;
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0;
  font-size: clamp(34px, 2.8vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.edlv-shop-hero-lede {
  max-width: 860px;
  margin: 0 0 18px;
  color: #121212;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 800;
  line-height: 1.25;
}

.edlv-shop-hero-lede span {
  color: inherit;
}

.edlv-shop-hero-content > p:not(.edlv-shop-eyebrow):not(.edlv-shop-hero-lede) {
  max-width: 820px;
  margin: 0 0 14px;
  color: #121212;
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.45;
}

.edlv-shop-hero-media {
  position: absolute;
  inset: 0 0 0 auto;
  width: 49%;
  min-width: 560px;
  pointer-events: none;
}

.edlv-shop-hero-media:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -1px;
  width: 210px;
  background: linear-gradient(90deg, rgba(255, 247, 250, 1) 0%, rgba(255, 247, 250, 0) 100%);
  z-index: 2;
}

.edlv-shop-hero-media:after {
  content: "";
  position: absolute;
  border: 14px solid rgba(227, 134, 187, 0.16);
  opacity: 0.7;
}

.edlv-shop-hero-media:after {
  right: -34px;
  bottom: -46px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  z-index: 3;
}

.edlv-shop-hero-media img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
}

.edlv-shop-hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #121212;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: none;
  box-shadow: none;
  transition: color 180ms ease, transform 180ms ease;
}

.edlv-shop-hero-button:after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin-left: 10px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.edlv-shop-hero-button:hover,
.edlv-shop-hero-button:focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--edlv-raspberry);
  transform: translateY(-1px);
  box-shadow: none;
}

.edlv-shop-products-section {
  padding: 28px 0 88px;
  background: var(--edlv-white);
}

.edlv-shop-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.edlv-shop-sidebar {
  position: sticky;
  top: 110px;
}

.edlv-shop-filter-block {
  padding: 24px;
  background: var(--edlv-white);
  border: 1px solid var(--edlv-line);
  border-radius: var(--edlv-radius);
  box-shadow: 0 10px 30px rgba(78, 63, 106, 0.06);
}

.edlv-shop-filter-block h2 {
  margin: 0 0 18px;
  color: var(--edlv-deep-plum);
  font-size: 16px;
  font-weight: 800;
}

.edlv-age-filter-list {
  display: grid;
  gap: 8px;
}

.edlv-age-filter-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--edlv-radius);
  color: var(--edlv-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.edlv-age-filter-list a:hover,
.edlv-age-filter-list a:focus-visible {
  background: var(--edlv-blush);
  color: var(--edlv-raspberry);
}

.edlv-age-filter-list a.active {
  background: var(--edlv-deep-plum);
  border-color: var(--edlv-deep-plum);
  color: var(--edlv-white);
}

.edlv-shop-filter-empty {
  margin: 0;
  color: rgba(78, 63, 106, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

.edlv-shop-products-header {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 24px;
  margin: 0 0 22px;
}

.edlv-shop-products-header h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 46px);
}

.edlv-shop-result-tools {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  color: rgba(78, 63, 106, 0.75);
  font-size: 15px;
}

.edlv-shop-result-tools .woocommerce-result-count {
  margin: 0;
}

.woocommerce .edlv-shop-main ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 32px;
  margin: 0;
  padding: 0;
}

.edlv-shop-sort {
  position: relative;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--edlv-deep-plum);
  font-size: 16px;
  font-weight: 700;
}

.edlv-shop-sort-label {
  white-space: nowrap;
}

.edlv-shop-sort-menu {
  position: relative;
}

.edlv-shop-sort-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 150px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(102, 41, 88, 0.22);
  border-radius: 8px;
  background: var(--edlv-white);
  color: var(--edlv-deep-plum);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
}

.edlv-shop-sort-menu summary::-webkit-details-marker {
  display: none;
}

.edlv-shop-sort-menu summary:after {
  content: "";
  width: 9px;
  height: 9px;
  margin-left: 18px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

.edlv-shop-sort-menu[open] summary:after {
  transform: rotate(225deg) translateY(-1px);
}

.edlv-shop-sort-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 260px;
  padding: 10px 0;
  background: var(--edlv-white);
  border: 1px solid rgba(102, 41, 88, 0.14);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(78, 63, 106, 0.12);
}

.edlv-shop-sort-list a {
  display: block;
  padding: 8px 20px;
  color: var(--edlv-ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.edlv-shop-sort-list a:hover,
.edlv-shop-sort-list a:focus-visible {
  background: rgba(255, 234, 246, 0.62);
  color: var(--edlv-raspberry);
}

.edlv-shop-sort-list a.active {
  color: var(--edlv-raspberry);
  font-weight: 700;
}

.woocommerce .edlv-shop-main ul.products li.product.edlv-shop-card {
  float: none;
  clear: none;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.edlv-shop-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--edlv-white);
  border: 1px solid rgba(78, 63, 106, 0.22);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(78, 63, 106, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.edlv-shop-card:hover .edlv-shop-card-inner {
  transform: translateY(-3px);
  border-color: rgba(212, 43, 98, 0.26);
  box-shadow: 0 18px 42px rgba(78, 63, 106, 0.08);
}

.edlv-shop-card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--edlv-blush);
  border-bottom: 1px solid rgba(78, 63, 106, 0.1);
}

.edlv-shop-card-image-link,
.edlv-shop-card-details {
  display: block;
  color: inherit;
  text-decoration: none;
}

.edlv-shop-card-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.edlv-shop-card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  background: var(--edlv-raspberry);
  border-radius: var(--edlv-radius);
  color: var(--edlv-white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.edlv-shop-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 24px 28px;
  text-align: left;
}

.edlv-shop-card-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  margin-bottom: 14px;
  color: var(--edlv-raspberry);
  font-size: 14px;
  font-weight: 800;
}

.edlv-shop-card-rating .star-rating {
  color: var(--edlv-raspberry);
  margin: 0;
}

.edlv-shop-card-rating span {
  color: var(--edlv-ink);
}

.edlv-shop-card-category {
  display: block;
  margin: 0 0 8px;
  color: var(--edlv-raspberry);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.woocommerce .edlv-shop-main ul.products li.product .woocommerce-loop-product__title {
  padding: 0;
  margin: 0 0 18px;
  color: var(--edlv-deep-plum);
  font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.22;
}

.woocommerce .edlv-shop-main ul.products li.product .price {
  display: block;
  color: var(--edlv-ink);
  margin: auto 0 20px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
}

.woocommerce .edlv-shop-main ul.products li.product .price,
.woocommerce .edlv-shop-main ul.products li.product .price .amount,
.woocommerce .edlv-shop-main ul.products li.product .price ins,
.woocommerce .edlv-shop-main ul.products li.product .price ins .amount {
  color: var(--edlv-raspberry);
  font-weight: 800;
}

.woocommerce .edlv-shop-main ul.products li.product .price ins {
  background: transparent;
  text-decoration: none;
}

.woocommerce .edlv-shop-main ul.products li.product .price del,
.woocommerce .edlv-shop-main ul.products li.product .price del .amount {
  color: rgba(78, 63, 106, 0.42);
}

.woocommerce .edlv-shop-main ul.products li.product .price del {
  opacity: 1;
}

.woocommerce .edlv-shop-main ul.products li.product .price bdi {
  color: inherit;
}

.edlv-shop-card-learn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 162px;
  min-height: 46px;
  padding: 0 22px;
  background: var(--edlv-raspberry);
  border-radius: var(--edlv-radius);
  color: var(--edlv-white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.edlv-shop-card-learn-more:hover,
.edlv-shop-card-learn-more:focus-visible {
  background: var(--edlv-deep-plum);
  color: var(--edlv-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(102, 41, 88, 0.16);
}

.woocommerce .edlv-shop-main nav.woocommerce-pagination {
  margin-top: 46px;
}

.woocommerce .edlv-shop-main nav.woocommerce-pagination ul {
  border: none;
}

.woocommerce .edlv-shop-main nav.woocommerce-pagination ul li {
  border: none;
  margin: 0 4px;
}

.woocommerce .edlv-shop-main nav.woocommerce-pagination ul li a,
.woocommerce .edlv-shop-main nav.woocommerce-pagination ul li span {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--edlv-deep-plum);
  font-weight: 800;
}

.woocommerce .edlv-shop-main nav.woocommerce-pagination ul li span.current,
.woocommerce .edlv-shop-main nav.woocommerce-pagination ul li a:hover {
  background: var(--edlv-deep-plum);
  color: var(--edlv-white);
}

.edlv-shop-empty {
  padding: 28px;
  background: var(--edlv-white);
  border: 1px solid var(--edlv-line);
  border-radius: var(--edlv-radius);
}

@media (max-width: 1180px) {
  .edlv-shop-hero-card {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.86fr);
    padding: 58px 44px 48px;
  }

  .edlv-shop-hero-media {
    min-width: 430px;
  }
}

@media (max-width: 1024px) {
  .edlv-shop-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 32px;
  }

  .woocommerce .edlv-shop-main ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .edlv-shop-container {
    padding: 0 18px;
  }

  .edlv-shop-hero {
    padding: 28px 0 44px;
  }

  .edlv-shop-hero-card {
    display: block;
    min-height: 0;
    padding: 34px 24px;
    border-radius: 14px;
  }

  .edlv-shop-breadcrumb {
    margin-bottom: 18px;
  }

  .edlv-shop-hero h1 {
    margin-bottom: 20px;
    font-size: clamp(34px, 9vw, 44px);
  }

  .edlv-shop-hero-lede {
    font-size: clamp(23px, 7vw, 31px);
  }

  .edlv-shop-hero-content > p:not(.edlv-shop-eyebrow):not(.edlv-shop-hero-lede) {
    font-size: 16px;
  }

  .edlv-shop-hero-media {
    display: none;
  }

  .edlv-shop-products-section {
    padding: 44px 0 64px;
  }

  .edlv-shop-layout {
    display: block;
  }

  .edlv-shop-sidebar {
    position: static;
    margin-bottom: 30px;
  }

  .edlv-shop-filter-block {
    padding: 18px;
  }

  .edlv-age-filter-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .edlv-age-filter-list::-webkit-scrollbar {
    display: none;
  }

  .edlv-age-filter-list a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .edlv-shop-products-header {
    display: block;
  }

  .edlv-shop-result-tools {
    display: block;
    margin-top: 18px;
  }

  .edlv-shop-result-tools .woocommerce-result-count {
    margin-bottom: 10px;
  }

  .edlv-shop-sort {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    font-size: 18px;
  }

  .edlv-shop-sort-menu,
  .edlv-shop-sort-menu summary {
    width: 100%;
  }

  .edlv-shop-sort-menu summary {
    min-width: 0;
    font-size: 18px;
  }

  .edlv-shop-sort-list {
    left: 0;
    right: auto;
    min-width: min(340px, calc(100vw - 36px));
  }

  .edlv-shop-sort-list a {
    font-size: 18px;
  }

  .woocommerce .edlv-shop-main ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }

  .edlv-shop-card-image-wrap {
    box-shadow: none;
  }

  .woocommerce .edlv-shop-main ul.products li.product .woocommerce-loop-product__title {
    font-size: 17px;
  }

  .woocommerce .edlv-shop-main ul.products li.product .price {
    font-size: 20px;
  }

  .edlv-shop-card-body {
    padding: 18px 16px 20px;
  }

  .edlv-shop-card-learn-more {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .woocommerce .edlv-shop-main ul.products {
    gap: 24px 12px;
  }

  .edlv-shop-card-body {
    padding: 16px 14px 18px;
  }

  .edlv-shop-card-learn-more {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .edlv-shop-hero-button,
  .edlv-shop-card-image-wrap,
  .edlv-shop-card-image-wrap img,
  .edlv-shop-card-learn-more,
  .edlv-age-filter-list a {
    animation: none;
    transition: none;
  }
}
