/* ==========================================================================
   חנות הספרים - WooCommerce archive
   ========================================================================== */

.post-type-archive-product .petachya-page,
.tax-product_cat .petachya-page,
.tax-product_tag .petachya-page {
  background: var(--book-page-bg);
}

.book-shop {
  color: #1e140b;
  background: var(--book-page-bg);
  overflow: hidden;
}

.post-type-archive-product .footer,
.tax-product_cat .footer,
.tax-product_tag .footer {
  height: 608px;
}

.post-type-archive-product .footer::after,
.tax-product_cat .footer::after,
.tax-product_tag .footer::after,
.post-type-archive-product .footer-upper-row,
.tax-product_cat .footer-upper-row,
.tax-product_tag .footer-upper-row {
  top: 0;
}

.shop-hero {
  position: relative;
  height: 986px;
  background: url("../images/shop/shop-hero-bg.png") center -41px / 1925px 1027px no-repeat;
  overflow: hidden;
}

.shop-hero-video {
  position: absolute;
  inset: -41px 0 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 1027px;
  object-fit: cover;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .shop-hero-video {
    display: none;
  }
}

.shop-hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-align: center;
}

.shop-hero h1 {
  position: absolute;
  top: 224px;
  left: 50%;
  width: 540px;
  margin: 0;
  font-family: var(--font-title);
  font-size: 83.5px;
  font-weight: 400;
  line-height: normal;
  transform: translateX(-50%);
}

.shop-hero p {
  position: absolute;
  top: 390px;
  left: 50%;
  width: 540px;
  margin: 0;
  font-family: var(--font-title);
  font-size: 32px;
  line-height: normal;
  transform: translateX(-50%);
}

.shop-categories {
  position: relative;
  isolation: isolate;
  width: 891px;
  height: 730px;
  margin: -442px auto 0;
}

.shop-categories::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 891px;
  height: 891px;
  border-radius: 50%;
  background: var(--book-page-bg);
  pointer-events: none;
}

.shop-category {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 216px;
  height: 205px;
  color: #19130e;
  font-size: 23px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.shop-category:nth-child(1) {
  top: 57px;
  left: 342px;
}

.shop-category:nth-child(2) {
  top: 212px;
  left: 125px;
}

.shop-category:nth-child(3) {
  top: 239px;
  left: 554px;
}

.shop-category:nth-child(4) {
  top: 375px;
  left: 333px;
}

.shop-category:nth-child(5) {
  top: 518px;
  left: 542px;
}

.shop-category:nth-child(6) {
  top: 487px;
  left: 115px;
}

.shop-category:hover,
.shop-category:focus-visible {
  transform: translateY(-8px);
}

.shop-category-orbit {
  position: relative;
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: var(--book-page-bg);
  background-image: url("../images/shop/category-orbit.svg");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.shop-category:hover .shop-category-orbit,
.shop-category:focus-visible .shop-category-orbit,
.shop-category:active .shop-category-orbit,
.shop-category.is-active .shop-category-orbit {
  background-color: #f5c84c;
  box-shadow:
    inset 0 0 18px rgba(255, 245, 180, 0.72),
    0 0 22px rgba(245, 190, 55, 0.62);
}

.shop-category-orbit img {
  position: absolute;
  display: block;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.shop-category:nth-child(1) .shop-category-orbit {
  margin-top: 29px;
}

.shop-category:nth-child(1) .shop-category-orbit img {
  top: -29px;
  left: -83px;
  width: 310px;
  height: 206px;
}

.shop-category:nth-child(2) .shop-category-orbit {
  margin-top: 22px;
}

.shop-category:nth-child(2) .shop-category-orbit img {
  top: 0;
  left: -44px;
  width: 229px;
  height: 153px;
}

.shop-category:nth-child(3) .shop-category-orbit {
  margin-top: 11px;
}

.shop-category:nth-child(3) .shop-category-orbit img {
  top: -11px;
  left: -55px;
  width: 244px;
  height: 163px;
}

.shop-category:nth-child(4) .shop-category-orbit {
  margin-top: -2px;
}

.shop-category:nth-child(4) .shop-category-orbit img {
  top: 2px;
  left: -38px;
  width: 216px;
  height: 144px;
}

.shop-category:nth-child(5) .shop-category-orbit {
  margin-top: -2px;
}

.shop-category:nth-child(5) .shop-category-orbit img {
  top: 24px;
  left: 19px;
  width: 101px;
  height: 90px;
}

.shop-category:nth-child(6) .shop-category-orbit {
  margin-top: 28px;
}

.shop-category:nth-child(6) .shop-category-orbit img {
  top: -30px;
  left: -89px;
  width: 317px;
  height: 211px;
}

.shop-recommended {
  position: relative;
  z-index: 2;
  padding: 32px 112px 70px;
  background: var(--book-page-bg);
}

.shop-recommended h2,
.shop-catalog-title {
  margin: 0 0 56px;
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 400;
  text-align: center;
}

.book-carousel {
  position: relative;
  width: 1660px;
  height: 520px;
  margin: 0 auto;
  padding: 0 180px;
  overflow: hidden;
}

.book-carousel-track {
  align-items: flex-end;
  height: 100%;
  padding-bottom: 45px;
}

.book-carousel-slide {
  --book-scale: 0.62;
  z-index: 1;
  height: 420px;
  opacity: 1;
}

.book-carousel-slide .book-card {
  transform: scale(var(--book-scale));
  transform-origin: center bottom;
  transition:
    transform 0.6s ease;
}

.book-carousel-slide.swiper-slide-prev,
.book-carousel-slide.swiper-slide-next {
  --book-scale: 0.92;
  z-index: 2;
}

.book-carousel-slide.swiper-slide-prev .book-card {
  transform: translateX(38px) scale(var(--book-scale));
}

.book-carousel-slide.swiper-slide-next .book-card {
  transform: translateX(-38px) scale(var(--book-scale));
}

.book-carousel-slide.swiper-slide-active {
  --book-scale: 1.2;
  z-index: 3;
}

.book-carousel-slide:not(.swiper-slide-active) {
  cursor: pointer;
}

.book-carousel-arrow {
  position: absolute;
  z-index: 10;
  top: 30%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 68px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9c601b;
  font-size: 50px;
  line-height: 1;
  cursor: pointer;
  transform: scaleX(-1);
}

.book-carousel-arrow--next {
  right: 12px;
}

.book-carousel-arrow--prev {
  left: 12px;
}

.shop-recommended .book-card {
  width: 285px;
  height: 410px;
  min-height: 410px;
  margin: 0 auto;
  border: 0;
  background: transparent;
}

.shop-recommended .book-card-image-link {
  height: 255px;
}

.shop-recommended .book-card-content {
  padding: 8px 12px 0;
}

.book-carousel .book-card-subtitle,
.book-carousel .book-card-tagline,
.book-carousel .book-card-description,
.book-carousel .book-card-price,
.book-carousel .book-card-button,
.shop-recommended .book-card-subtitle,
.shop-recommended .book-card-tagline,
.shop-recommended .book-card-description,
.shop-recommended .book-card-price,
.shop-recommended .book-card-button {
  display: none;
}

.shop-recommended .book-card-title,
.book-carousel .book-card-title {
  font-size: 23px;
}

.shop-catalog {
  padding: 28px 160px 130px;
  background: var(--book-page-bg);
}

.shop-filters {
  --shop-filter-accent: #8f581d;
  width: 1609px;
  min-height: 323px;
  margin: 0 auto 110px;
  overflow: hidden;
  border: 1px solid #d5a15b;
  border-radius: 9px;
  background: var(--book-page-bg);
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.28);
}

.shop-filters input,
.shop-filters select {
  accent-color: var(--shop-filter-accent);
}

.shop-filters input:focus-visible,
.shop-filters select:focus-visible,
.shop-filters button:focus-visible {
  outline: 2px solid var(--shop-filter-accent);
  outline-offset: 2px;
}

.shop-filters select option:checked {
  background: linear-gradient(var(--shop-filter-accent), var(--shop-filter-accent));
  color: #fffdf1;
}

.shop-filters ::selection {
  background: var(--shop-filter-accent);
  color: #fffdf1;
}

.shop-filters-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(184, 132, 67, 0.24);
}

.shop-filters-heading strong {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
}

.shop-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 264px;
  height: 48px;
  padding: 0 15px;
  border: 1px solid #d2a066;
  border-radius: 7px;
  background: var(--book-page-bg);
  color: #17110c;
  font-family: var(--font-body);
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
}

.shop-filters-toggle svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: #c7852f;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.shop-filter-chevron {
  margin-inline-start: auto;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s ease;
  padding-top: 10px;
}

.shop-filters-toggle[aria-expanded="false"] .shop-filter-chevron {
  transform: rotate(180deg);
}

.shop-filter-body[hidden] {
  display: none;
}

.shop-filter-search {
  position: relative;
  padding: 12px 20px 10px;
}

.shop-filter-search input {
  width: 100%;
  height: 46px;
  padding: 0 20px 0 54px;
  border: 1px solid #d6c9b9;
  border-radius: 4px;
  background: var(--book-page-bg);
  font-family: var(--font-body);
  font-size: 18px;
}

.shop-filter-search-icon {
  position: absolute;
  z-index: 1;
  top: 25px;
  left: 40px;
  width: 19px;
  height: 19px;
  border: 2px solid #8f581d;
  border-radius: 50%;
  pointer-events: none;
}

.shop-filter-search-icon::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -5px;
  width: 9px;
  height: 2px;
  background: #8f581d;
  transform: rotate(45deg);
  transform-origin: right center;
}

.shop-filter-fields {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1.5fr 0.95fr;
  min-height: 110px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(184, 132, 67, 0.24);
}

.shop-filter-field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 0 32px;
  border-left: 1px solid rgba(190, 134, 69, 0.48);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
}

.shop-filter-field:last-child {
  border-left: 0;
}

.shop-filter-field select {
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #d4c5b3;
  border-radius: 4px;
  background: var(--book-page-bg);
  font-family: var(--font-body);
  font-size: 18px;
}

.shop-filter-field select.shop-native-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.shop-custom-select {
  position: relative;
  width: 100%;
}

.shop-custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #d4c5b3;
  border-radius: 4px;
  background: var(--book-page-bg);
  color: #17110c;
  font-family: var(--font-body);
  font-size: 18px;
  text-align: right;
  cursor: pointer;
}

.shop-custom-select-chevron {
  color: #8f581d;
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.shop-custom-select-trigger[aria-expanded="true"] .shop-custom-select-chevron {
  transform: rotate(180deg);
}

.shop-custom-select-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 3px);
  right: 0;
  left: 0;
  overflow: hidden;
  border: 1px solid #8f581d;
  border-radius: 3px;
  background: var(--book-page-bg);
  box-shadow: 0 7px 18px rgba(64, 42, 21, 0.18);
}

.shop-custom-select-menu[hidden] {
  display: none;
}

.shop-custom-select-option {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 7px 14px;
  border: 0;
  background: transparent;
  color: #17110c;
  font-family: var(--font-body);
  font-size: 18px;
  text-align: right;
  cursor: pointer;
}

.shop-custom-select-option:hover,
.shop-custom-select-option:focus-visible,
.shop-custom-select-option.is-selected {
  outline: 0;
  background: #8f581d;
  color: #fffdf1;
}

.shop-price-filter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 38px;
  border-left: 1px solid rgba(190, 134, 69, 0.48);
  text-align: center;
}

.shop-price-filter > strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.shop-price-range {
  position: relative;
  height: 16px;
  margin: 0 4px 7px;
  background:
    linear-gradient(
      to right,
      #d8c8b4 0 var(--price-min),
      #c88b37 var(--price-min) var(--price-max),
      #d8c8b4 var(--price-max) 100%
    ) center / 100% 4px no-repeat;
}
.shop-filter-submit span[aria-hidden="true"] {
  transform: scaleX(-1);
}
.shop-price-range input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 16px;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
  transform: scaleX(-1);
}

.shop-price-range input[type="range"]::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: #c79747;
  cursor: pointer;
  pointer-events: auto;
}

.shop-price-range input[type="range"]::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 50%;
  background: #c79747;
  cursor: pointer;
  pointer-events: auto;
}

.shop-price-values {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  align-items: center;
  direction: ltr;
}

.shop-price-values > div {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border: 1px solid #d4c5b3;
  border-radius: 4px;
  background: var(--book-page-bg);
}

.shop-price-values input {
  width: 58px;
  height: 32px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 17px;
  text-align: center;
  appearance: textfield;
}

.shop-price-values input::-webkit-inner-spin-button,
.shop-price-values input::-webkit-outer-spin-button {
  appearance: none;
}

.shop-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 20px;
}

.shop-filter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 230px;
  height: 46px;
  border: 0;
  border-radius: 5px;
  background: linear-gradient(90deg, #2e1b0c, #5a3515);
  color: #fffdf1;
  font-family: var(--font-body);
  font-size: 19px;
  cursor: pointer;
}

.shop-filter-clear {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c27f25;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.shop-products-grid {
  display: grid;
  grid-template-columns: repeat(5, 285.163px);
  justify-content: space-between;
  gap: 52px 0;
  width: 1600px;
  margin: 0 auto;
}

.book-card {
  display: flex;
  flex-direction: column;
  width: 285.163px;
  height: 587.844px;
  min-height: 587.844px;
  overflow: hidden;
  border: 0.482px solid #000;
  border-radius: 6.751px;
  background: var(--book-page-bg);
  text-align: center;
}

.book-card-image-link {
  display: grid;
  place-items: center;
  height: 300px;
  flex: 0 0 300px;
  padding: 24px 20px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.book-card-image {
  display: block;
  width: auto;
  max-width: 198.278px;
  height: auto;
  max-height: 244.614px;
  border: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  filter: none;
  mix-blend-mode: multiply;
}

.book-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 20px;
}

.book-card-title {
  display: flex;
  min-height: 68px;
  margin: 0 0 5px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 31.144px;
  font-weight: 400;
  line-height: 1.1;
  color: #a46629;
}

.book-card-title a {
  text-decoration: none;
}

.book-card-subtitle {
  display: -webkit-box;
  width: 100%;
  max-width: 100%;
  margin: 0 0 6px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #000;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

.book-card-tagline,
.book-card-description {
  display: -webkit-box;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin: 0 0 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.35;
  color: #000;
  text-align: center;
  word-break: break-word;
}

.book-card-price {
  margin: auto 0 14px;
  font-size: 31.144px;
  font-weight: 300;
  line-height: 1;
  color: #000;
}

.book-card-price del {
  margin-inline-start: 8px;
  opacity: 0.55;
  font-size: 0.7em;
}

.book-card-price ins {
  text-decoration: none;
}

.book-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 202px;
  height: 47px;
  min-height: 47px;
  padding: 8px 14px;
  border: 0;
  border-radius: 3.376px;
  background: #1e140b;
  color: #fffdf1;
  font-size: 19px;
  text-decoration: none;
}

.book-card-button:hover,
.book-card-button:focus-visible {
  background: #a46629;
}

.shop-pagination {
  margin-top: 60px;
  text-align: center;
}

.shop-pagination ul.page-numbers {
  display: inline-flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.shop-pagination .page-numbers a,
.shop-pagination .page-numbers span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #402a15;
  text-decoration: none;
}

.shop-pagination .page-numbers .current {
  background: #402a15;
  color: #fff;
}

.shop-no-products {
  padding: 50px;
  text-align: center;
  font-size: 24px;
}

.shop-light-cta {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 349px;
  padding: 40px;
  overflow: hidden;
  background: #130a04;
  color: #e7b777;
  text-align: center;
}

.shop-light-cta::before,
.shop-light-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shop-light-cta::before {
  z-index: 0;
  background: url("https://machonpetachya.co.il/wp-content/uploads/2026/11/רקע-להזמנה-לאור-הגנוז.png") center / cover no-repeat;
  transform: scaleX(-1);
}

.shop-light-cta::after {
  z-index: 1;
  background: linear-gradient(90deg, rgba(12, 7, 3, 0.34), rgba(20, 10, 4, 0.34), rgba(12, 7, 3, 0.62));
}

.shop-light-cta div {
  position: relative;
  z-index: 2;
  width: 581px;
  transform: translateX(-274px);
}

.shop-light-cta-ornament {
  position: absolute;
  top: -81px;
  left: 50%;
  display: block;
  width: 391px;
  height: 130px;
  object-fit: contain;
  transform: translateX(-50%);
  pointer-events: none;
}

.shop-light-cta-lead {
  margin: 0 auto 12px;
  font-family: var(--font-title);
  font-size: 32px;
  line-height: 1.2;
}

.shop-light-cta-description {
  margin: 0 auto 18px;
  font-size: 24px;
  line-height: 1.5;
}

.shop-light-cta h2 {
  margin: 0 0 22px;
  font-family: var(--font-title);
  font-size: 48px;
  font-weight: 400;
}

.shop-light-cta h2 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 331px;
  height: 78px;
  border: 1px solid #e7b777;
  border-radius: 3.893px;
  color: inherit;
  text-decoration: none;
}

.shop-light-cta h2 a:hover,
.shop-light-cta h2 a:focus-visible {
  color: inherit;
  text-decoration: none;
}

