/* Pooshak 0.7.1 production product detail page. Loaded only on products. */

.single-product-main {
  overflow: clip;
}

.pooshak-product-detail {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(390px, 1fr);
  align-items: start;
  direction: ltr;
}

.pooshak-product-detail .pdp-gallery {
  position: relative;
  min-width: 0;
  display: block;
  background: #f3efee;
}

.pooshak-product-detail .woocommerce-product-gallery {
  position: relative;
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  opacity: 1 !important;
}

.pooshak-product-detail .woocommerce-product-gallery .flex-viewport {
  height: auto !important;
  overflow: visible !important;
}

.pooshak-product-detail .woocommerce-product-gallery__wrapper {
  width: auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  margin: 0 !important;
  transform: none !important;
}

.pooshak-product-detail .pooshak-gallery-item,
.pooshak-product-detail .woocommerce-product-gallery__image {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  background: #f3efee;
}

.pooshak-product-detail .pooshak-gallery-item > a,
.pooshak-product-detail .woocommerce-product-gallery__image--placeholder {
  min-height: 0;
  display: block;
}

.pooshak-product-detail .pooshak-gallery-image,
.pooshak-product-detail .woocommerce-product-gallery img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 5;
  display: block;
  object-fit: cover;
  background: #f3efee;
}

.pooshak-pdp-sale-badge {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.94);
  color: #9a312b;
  font-size: 10px;
  line-height: 1.4;
}

.pooshak-product-detail .woocommerce-product-gallery__trigger {
  z-index: 4;
  top: 16px;
  right: 16px;
}

.pooshak-product-detail .flex-control-thumbs {
  display: none !important;
}

.pooshak-gallery-position {
  display: none;
}

.pooshak-product-detail .pdp-info {
  position: sticky;
  top: 0;
  min-width: 0;
  min-height: 100vh;
  padding: 42px 34px 64px;
  border-right: 1px solid var(--line);
  background: var(--white);
  direction: rtl;
}

.pooshak-product-breadcrumb {
  line-height: 1.9;
}

.pooshak-product-breadcrumb a {
  border-bottom: 1px solid transparent;
}

.pooshak-product-breadcrumb a:hover,
.pooshak-product-breadcrumb a:focus-visible {
  border-color: currentColor;
}

.pooshak-product-detail .pdp-title-row {
  gap: 24px;
}

.pooshak-product-detail .woocommerce-product-rating {
  margin: 2px 0 18px;
}

.pooshak-product-detail .woocommerce-product-details__short-description {
  margin: 17px 0 0;
  color: #5f5c57;
  font-size: 12px;
  line-height: 2;
}

.pooshak-product-availability {
  min-height: 20px;
  margin-top: 8px;
  color: #52684a;
  font-size: 11px;
}

.pooshak-product-availability .out-of-stock,
.pooshak-product-availability.is-unavailable {
  color: var(--danger);
}

.pooshak-size-guide-entry {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-top: 4px;
  font-size: 11px;
}

.pooshak-size-guide-entry > span {
  color: var(--muted);
}

.pooshak-size-guide-entry .text-link {
  border-bottom: 1px solid currentColor;
}

.pooshak-canonical-purchase form.cart {
  width: 100%;
}

.pooshak-product-detail form.cart .variations {
  width: 100%;
}

.pooshak-product-detail form.cart .variations tr {
  position: relative;
  display: block;
  margin-bottom: 17px;
}

.pooshak-product-detail form.cart .variations th,
.pooshak-product-detail form.cart .variations td {
  width: 100%;
  display: block;
  padding: 0;
}

.pooshak-product-detail form.cart .variations th label {
  margin: 0 0 8px;
}

.pooshak-variation-swatches {
  display: none;
}

.pooshak-pdp-enhanced .pooshak-variation-swatches {
  display: block;
}

.pooshak-pdp-enhanced .pooshak-native-variation-select {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.pooshak-pdp-enhanced .variations tr:has(.pooshak-variation-swatches) > th.label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.pooshak-swatch-heading {
  min-height: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 10px;
  font-size: 11px;
}

.pooshak-swatch-heading strong {
  color: var(--muted);
  font-weight: 400;
}

.pooshak-swatch-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pooshak-swatches--size .pooshak-swatch-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}

.pooshak-swatches--size .pooshak-variation-swatch {
  width: 100%;
  min-height: 46px;
}

.pooshak-variation-swatch {
  min-width: 46px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  color: #111;
  font-size: 11px;
  line-height: 1.25;
}

.pooshak-variation-swatch.has-color {
  min-width: 44px;
  width: 44px;
  padding: 6px;
  border-radius: 50%;
}

.pooshak-swatch-color {
  width: 26px;
  height: 26px;
  display: block;
  border: 4px solid #fff;
  border-radius: 50%;
  outline: 1px solid var(--line);
  background: var(--pooshak-swatch);
}

.pooshak-variation-swatch:hover:not(:disabled),
.pooshak-variation-swatch:focus-visible,
.pooshak-variation-swatch[aria-pressed="true"] {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

.pooshak-variation-swatch.has-color[aria-pressed="true"] .pooshak-swatch-color {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.pooshak-variation-swatch:disabled,
.pooshak-variation-swatch[aria-disabled="true"] {
  cursor: not-allowed;
  color: #8a8781;
  background: linear-gradient(to top left, transparent 48%, #b9b5ae 49%, #b9b5ae 51%, transparent 52%);
  opacity: 0.55;
}

.pooshak-variation-swatch.has-color:disabled .pooshak-swatch-color {
  opacity: 0.5;
}

.pooshak-product-detail form.cart .single_variation {
  min-height: 28px;
  margin-bottom: 10px;
}

.pooshak-product-detail form.cart .woocommerce-variation-price {
  margin-bottom: 7px;
}

.pooshak-product-detail form.cart .woocommerce-variation-availability {
  font-size: 11px;
}

.pooshak-product-detail form.cart .woocommerce-variation-add-to-cart {
  align-items: stretch;
}

.pooshak-product-detail form.cart.grouped_form {
  display: block;
}

.pooshak-product-detail form.grouped_form table {
  width: 100%;
  margin-bottom: 18px;
  border-collapse: collapse;
}

.pooshak-product-detail form.grouped_form td {
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

.pooshak-product-detail form.cart .button.disabled,
.pooshak-product-detail form.cart .button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.pooshak-product-sku.is-empty {
  display: none;
}

.pooshak-product-detail .product-accordions {
  margin-top: 22px;
}

.pooshak-product-detail .accordion-trigger {
  min-height: 48px;
}

.pooshak-product-detail .accordion-content {
  display: block;
  line-height: 1.95;
}

.pooshak-pdp-js .pooshak-product-detail .accordion-content[hidden] {
  display: none !important;
}

.pooshak-product-detail .accordion-content table {
  width: 100%;
  border-collapse: collapse;
}

.pooshak-product-detail .accordion-content th,
.pooshak-product-detail .accordion-content td {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

.pooshak-model-note {
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--line);
}

.pooshak-summary-extensions:empty {
  display: none;
}

.pooshak-size-guide-dialog {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.pooshak-size-guide-dialog[aria-hidden="true"] {
  display: none;
}

.pooshak-size-guide-backdrop {
  display: none;
}

.pooshak-size-guide-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pooshak-size-guide-panel h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 400;
}

.pooshak-size-guide-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 24px;
}

.pooshak-size-guide-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.pooshak-size-guide-table-wrap table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.pooshak-size-guide-table-wrap th,
.pooshak-size-guide-table-wrap td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.pooshak-size-guide-placeholder {
  padding: 10px 12px;
  border-inline-start: 3px solid #a06d30;
  background: #fff7e9;
  color: #5f431d;
}

.pooshak-pdp-js .pooshak-size-guide-dialog {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  margin: 0;
  border: 0;
  background: transparent;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
}

.pooshak-pdp-js .pooshak-size-guide-dialog[aria-hidden="true"] {
  display: grid;
}

.pooshak-pdp-js .pooshak-size-guide-dialog[aria-hidden="false"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.pooshak-pdp-js .pooshak-size-guide-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: rgba(17, 17, 15, 0.54);
}

.pooshak-pdp-js .pooshak-size-guide-panel {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 28px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
}

body.pooshak-size-guide-open {
  overflow: hidden;
}

.pooshak-complete-look {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.pooshak-complete-look .products {
  width: 100%;
  margin: 0;
}

.pooshak-product-reviews .woocommerce-Reviews {
  width: 100%;
}

.pooshak-product-reviews .woocommerce-Reviews-title,
.pooshak-product-reviews .comment-reply-title {
  font-size: 21px;
  font-weight: 400;
}

.pooshak-product-reviews .commentlist {
  margin-bottom: 38px !important;
}

.pooshak-product-reviews .comment_container .verified {
  color: #52684a;
}

.pooshak-product-reviews .woocommerce-pagination {
  padding: 20px 0 35px;
}

.pooshak-product-reviews #review_form_wrapper {
  max-width: 760px;
}

.pooshak-product-reviews .comment-form-rating {
  grid-column: 1 / -1;
}

.pooshak-product-reviews .comment-form-rating label {
  display: block;
}

.pooshak-mobile-purchase,
.pooshak-mobile-purchase[hidden] {
  display: none;
}

@media (max-width: 1100px) and (min-width: 761px) {
  .pooshak-product-detail {
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.85fr);
  }

  .pooshak-product-detail .pdp-info {
    padding: 34px 24px 55px;
  }
}

@media (max-width: 760px) {
  .pooshak-product-detail {
    display: block;
  }

  .pooshak-product-detail .pdp-gallery {
    position: relative;
    display: block;
    overflow: visible;
  }

  .pooshak-product-detail .woocommerce-product-gallery,
  .pooshak-product-detail .woocommerce-product-gallery .flex-viewport {
    overflow: visible !important;
  }

  .pooshak-product-detail .woocommerce-product-gallery__wrapper {
    width: 100% !important;
    display: flex !important;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .pooshak-product-detail .woocommerce-product-gallery__wrapper::-webkit-scrollbar {
    display: none;
  }

  .pooshak-product-detail .pooshak-gallery-item,
  .pooshak-product-detail .woocommerce-product-gallery__image {
    flex: 0 0 100% !important;
    width: 100% !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .pooshak-product-detail .pooshak-gallery-image,
  .pooshak-product-detail .woocommerce-product-gallery img {
    min-width: 0;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .pooshak-gallery-position {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 4;
    min-width: 58px;
    display: block;
    padding: 6px 10px;
    margin: 0;
    border: 1px solid rgba(17, 17, 15, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    text-align: center;
  }

  .pooshak-product-detail .pdp-info {
    position: relative;
    min-height: 0;
    padding: 29px 18px 50px;
    border: 0;
  }

  .pooshak-product-detail .pdp-title-row {
    display: block;
  }

  .pooshak-product-detail .pdp-price {
    margin-bottom: 5px;
  }

  .pooshak-size-guide-entry {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .pooshak-pdp-js .pooshak-size-guide-dialog {
    align-items: end;
    padding: 0;
  }

  .pooshak-pdp-js .pooshak-size-guide-panel {
    width: 100%;
    max-height: min(88vh, 780px);
    padding: 22px 17px calc(22px + env(safe-area-inset-bottom));
    box-shadow: 0 -12px 45px rgba(0, 0, 0, 0.18);
  }

  .pooshak-complete-look {
    width: min(calc(100% - 28px), var(--max));
    padding: 62px 0;
  }

  .pooshak-product-reviews {
    padding: 62px 0;
  }

  .pooshak-mobile-purchase:not([hidden]) {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.08);
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .pooshak-mobile-purchase.is-visible:not([hidden]) {
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .pooshak-mobile-purchase__state {
    min-width: 0;
    display: grid;
    gap: 2px;
    font-size: 11px;
  }

  .pooshak-mobile-purchase__state strong {
    overflow: hidden;
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pooshak-mobile-purchase__state span {
    color: var(--muted);
  }

  .pooshak-mobile-purchase .btn {
    min-width: 148px;
    flex: 0 0 auto;
  }

  body.pooshak-mobile-purchase-visible {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .pooshak-pdp-js .pooshak-size-guide-dialog,
  .pooshak-mobile-purchase:not([hidden]) {
    transition: none;
  }

  .pooshak-product-detail .woocommerce-product-gallery__wrapper {
    scroll-behavior: auto;
  }
}
