/* Pooshak 0.8.13: overflow, archive, PDP, and checkout consistency. */

/* Keep circular rail clones and off-canvas content out of document geometry. */
html,
body.pooshak-theme {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.pooshak-theme
  :where(
    .site,
    .site-main,
    .pooshak-reference-home,
    .pooshak-home-rail-shell,
    [data-home-rail]
  ) {
  min-width: 0;
  max-width: 100%;
}

.pooshak-theme .pooshak-home-rail-shell {
  overflow-x: clip !important;
}

.pooshak-theme ul.pooshak-home-product-rail {
  min-width: 0;
  max-width: 100%;
  overscroll-behavior-inline: contain;
}

@supports not (overflow: clip) {
  html,
  body.pooshak-theme,
  .pooshak-theme .pooshak-home-rail-shell {
    overflow-x: hidden !important;
  }
}

/* Active filters remain inside the single toolbar row. */
.pooshak-theme .pooshak-shop-archive .pooshak-filter-bar {
  flex-wrap: nowrap !important;
  justify-content: flex-start;
  overflow: hidden;
}

.pooshak-theme .pooshak-shop-archive .pooshak-desktop-filter-buttons {
  min-width: 0;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.pooshak-theme .pooshak-shop-archive .pooshak-desktop-filter-buttons::-webkit-scrollbar,
.pooshak-theme .pooshak-shop-archive .pooshak-active-filters::-webkit-scrollbar {
  display: none;
}

.pooshak-theme .pooshak-shop-archive .pooshak-filter-button,
.pooshak-theme .pooshak-shop-archive .pooshak-mobile-filter-button,
.pooshak-theme .pooshak-shop-archive .pooshak-filter-chip,
.pooshak-theme .pooshak-shop-archive .pooshak-clear-filters {
  flex: 0 0 auto;
  white-space: nowrap;
}

.pooshak-theme .pooshak-shop-archive .pooshak-active-filters {
  width: auto;
  min-width: 72px;
  max-width: none;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.pooshak-theme .pooshak-shop-archive .pooshak-ordering-form {
  min-width: 126px;
  flex: 0 1 190px;
  margin-inline-start: auto;
}

.pooshak-theme .pooshak-shop-archive .pooshak-ordering-form select {
  width: 100%;
  min-width: 0;
}

/* Badges and wishlist own opposite corners; only the circular heart is visible. */
.pooshak-theme .pooshak-shop-archive .pooshak-product-media > .pooshak-product-badges {
  z-index: 6;
  position: absolute !important;
  inset: 8px 8px auto auto !important;
  max-width: calc(100% - 60px);
}

.pooshak-theme .pooshak-shop-archive .pooshak-product-media > button.wish.pooshak-wishlist-preview,
.pooshak-theme .pooshak-shop-archive .pooshak-product-media > button.wish.pooshak-wishlist-preview:hover,
.pooshak-theme .pooshak-shop-archive .pooshak-product-media > button.wish.pooshak-wishlist-preview:focus,
.pooshak-theme .pooshak-shop-archive .pooshak-product-media > button.wish.pooshak-wishlist-preview:active {
  appearance: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Prices use one baseline and one semantic language: sale or “from”, never a dash range. */
.pooshak-theme .pooshak-shop-archive .pooshak-product-meta .price,
.pooshak-theme .recommend .pooshak-product-meta .price,
.single-product-main .pooshak-product-detail .pdp-price {
  display: flex !important;
  align-items: baseline;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 3px 7px;
  direction: rtl;
  line-height: 1.7;
}

.pooshak-theme .pooshak-shop-archive .pooshak-product-meta .price,
.pooshak-theme .recommend .pooshak-product-meta .price {
  min-height: 22px;
  margin-block: 3px 0 !important;
}

.single-product-main .pooshak-product-detail .pdp-price {
  min-height: 34px;
  margin: 0 !important;
}

.pooshak-theme :where(.pooshak-product-meta .price, .pdp-price) :where(del, ins) {
  display: inline-flex;
  align-items: baseline;
  margin: 0 !important;
  padding: 0 !important;
  line-height: inherit;
}

.pooshak-theme :where(.pooshak-product-meta .price, .pdp-price) ins {
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.pooshak-theme :where(.pooshak-product-meta .price, .pdp-price) del {
  color: #8b8780;
  opacity: 1;
}

.pooshak-theme .pooshak-price-from {
  color: #716c64;
  font-size: 0.9em;
  white-space: nowrap;
}

/* Quantity and CTA stay present and vertically centered on every demo PDP. */
.single-product-main
  .pooshak-product-detail
  form.cart
  :where(.woocommerce-variation-add-to-cart, .quantity) {
  min-width: 0;
}

.single-product-main
  .pooshak-product-detail
  form.variations_form.pooshak-purchase-row-ready
  .woocommerce-variation-add-to-cart
  > .quantity {
  display: block !important;
}

.single-product-main
  .pooshak-product-detail
  form.cart
  .single_add_to_cart_button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-block: 0 !important;
  line-height: 1.5 !important;
  text-align: center;
}

/* Everlane-inspired checkout: restrained shell, form and soft order summary. */
.pooshak-checkout-shell-body,
.pooshak-checkout-shell-body .site {
  background: #fff;
}

.pooshak-checkout-shell-body .pooshak-checkout-header {
  border-color: #dedbd5;
  background: #fff;
}

.pooshak-checkout-shell-body .pooshak-checkout-header__inner {
  min-height: 82px;
}

.pooshak-checkout-shell-body .pooshak-checkout-main {
  min-height: calc(100vh - 83px);
  padding: 0;
  background: #fff;
}

.pooshak-checkout-shell-body .pooshak-checkout-page,
.pooshak-checkout-shell-body .pooshak-checkout-entry,
.pooshak-checkout-shell-body .pooshak-checkout-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.pooshak-checkout-shell-body .pooshak-checkout-title {
  display: none;
}

@media (min-width: 901px) {
  .pooshak-checkout-block
    .wc-block-checkout.wc-block-components-sidebar-layout {
    width: min(100%, 1440px) !important;
    min-height: calc(100vh - 83px);
    display: grid !important;
    grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr) !important;
    grid-template-areas: "summary main";
    gap: 0 !important;
    align-items: stretch;
    margin: 0 auto !important;
    direction: ltr;
  }

  .pooshak-checkout-block .wc-block-checkout__main {
    grid-area: main;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 44px clamp(34px, 5vw, 76px) 72px !important;
    direction: rtl;
  }

  .pooshak-checkout-block .wc-block-checkout__sidebar {
    grid-area: summary;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: calc(100vh - 83px);
    align-self: stretch;
    position: sticky;
    top: 0;
    padding: 44px clamp(28px, 3.5vw, 52px) 64px !important;
    border: 0 !important;
    border-inline-end: 1px solid #e0ddd8 !important;
    background: #f7f7f5;
    direction: rtl;
  }
}

.pooshak-checkout-block .wc-block-components-checkout-step {
  margin: 0 0 28px !important;
  padding: 0 0 28px !important;
  border-bottom: 1px solid #e1ded9;
}

.pooshak-checkout-block .wc-block-components-checkout-step__heading {
  margin: 0 0 16px !important;
}

.pooshak-checkout-block .wc-block-components-checkout-step__title {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  line-height: 1.45;
}

.pooshak-checkout-block .wc-block-components-checkout-step__description {
  color: #6f6b65;
  font-size: 12px;
  line-height: 1.8;
}

.pooshak-checkout-block .wc-block-components-checkout-step__step-number {
  display: none !important;
}

.pooshak-checkout-block
  :where(
    .wc-block-components-text-input input,
    .wc-block-components-combobox .components-combobox-control__input,
    .wc-block-components-address-form__country .components-combobox-control__input
  ) {
  min-height: 50px;
  border: 1px solid #bab6af !important;
  border-radius: 3px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.pooshak-checkout-block
  :where(
    .wc-block-components-text-input input:focus,
    .wc-block-components-combobox .components-combobox-control__input:focus,
    .wc-block-components-address-form__country .components-combobox-control__input:focus
  ) {
  border-color: #171614 !important;
  box-shadow: 0 0 0 1px #171614 !important;
}

.pooshak-checkout-block .wc-block-components-radio-control-accordion-option {
  border: 1px solid #c9c5be;
  border-radius: 3px;
  background: #fff;
}

.pooshak-checkout-block .wc-block-components-radio-control__option {
  min-height: 54px;
  padding-block: 15px;
}

.pooshak-checkout-block .wc-block-components-radio-control-accordion-content {
  border-top: 1px solid #e1ded9;
  background: #faf9f7;
}

.pooshak-checkout-block .wc-block-components-order-summary {
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent;
}

.pooshak-checkout-block .wc-block-components-order-summary-item {
  padding-block: 15px;
}

.pooshak-checkout-block .wc-block-components-order-summary-item__image img {
  border-radius: 0;
  background: #efede9;
}

.pooshak-checkout-block .wc-block-components-totals-wrapper {
  padding-block: 16px;
  border-color: #dedbd5;
}

.pooshak-checkout-block .wc-block-components-checkout-place-order-button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: #11110f;
  font-size: 14px;
  letter-spacing: 0;
}

/* Classic checkout receives the same visual hierarchy. */
.pooshak-classic-checkout form.checkout {
  width: min(100%, 1320px);
  margin-inline: auto;
  gap: 0;
}

.pooshak-classic-checkout #customer_details {
  padding: 44px clamp(34px, 5vw, 76px) 72px;
  background: #fff;
}

.pooshak-classic-checkout :where(#order_review, #order_review_heading) {
  border-color: #e0ddd8;
  background: #f7f7f5;
}

.pooshak-classic-checkout #order_review {
  padding: 36px clamp(26px, 3vw, 46px);
}

.pooshak-classic-checkout #place_order {
  min-height: 56px;
}

@media (max-width: 1100px) {
  .pooshak-theme .pooshak-shop-archive .pooshak-mobile-filter-button {
    flex: 0 0 auto;
  }

  .pooshak-theme .pooshak-shop-archive .pooshak-active-filters {
    min-width: 64px;
  }

  .pooshak-theme .pooshak-shop-archive .pooshak-ordering-form {
    min-width: 112px;
    flex-basis: 158px;
  }
}

@media (max-width: 760px) {
  .pooshak-theme .pooshak-shop-archive .pooshak-filter-bar {
    gap: 7px;
    padding-inline: 10px;
  }

  .pooshak-theme .pooshak-shop-archive .pooshak-mobile-filter-button {
    max-width: 88px;
    padding-inline: 10px;
  }

  .pooshak-theme .pooshak-shop-archive .pooshak-active-filters {
    min-width: 58px;
    gap: 5px;
    padding-block: 0 !important;
  }

  .pooshak-theme .pooshak-shop-archive .pooshak-filter-chip {
    min-height: 36px;
    padding-inline: 8px;
  }

  .pooshak-theme .pooshak-shop-archive .pooshak-ordering-form {
    min-width: 100px;
    flex: 0 1 132px;
  }

  .pooshak-checkout-shell-body .pooshak-checkout-header__inner {
    min-height: 66px;
  }

  .pooshak-checkout-shell-body .pooshak-checkout-main {
    min-height: calc(100vh - 67px);
    padding: 0;
  }

  .pooshak-checkout-block .wc-block-checkout.wc-block-components-sidebar-layout {
    width: 100% !important;
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    margin: 0 !important;
  }

  .pooshak-checkout-block .wc-block-checkout__sidebar {
    order: -1;
    width: 100% !important;
    max-width: none !important;
    position: static !important;
    margin: 0 !important;
    padding: 22px 18px !important;
    border: 0 !important;
    border-bottom: 1px solid #dedbd5 !important;
    background: #f7f7f5;
  }

  .pooshak-checkout-block .wc-block-checkout__main {
    width: 100% !important;
    max-width: none !important;
    padding: 28px 18px 48px !important;
  }

  .pooshak-checkout-block .wc-block-components-checkout-step {
    margin-bottom: 24px !important;
    padding: 0 0 24px !important;
  }

  .pooshak-checkout-block .wc-block-components-checkout-step--with-step-number {
    padding-inline: 0 !important;
  }

  .pooshak-classic-checkout #customer_details,
  .pooshak-classic-checkout #order_review {
    padding: 26px 18px 44px;
  }
}

@media (max-width: 390px) {
  .pooshak-theme .pooshak-shop-archive .pooshak-mobile-filter-button {
    max-width: 74px;
    padding-inline: 7px;
    font-size: 10px;
  }

  .pooshak-theme .pooshak-shop-archive .pooshak-ordering-form {
    min-width: 92px;
    flex-basis: 112px;
  }
}
