/* ProductsPeruvian native WooCommerce product archives */
/*
 * Shop, product categories, brands and product searches use a dedicated
 * full-width main wrapper. This avoids Hello Elementor / WooCommerce parent
 * containers limiting the archive to the global Elementor content width.
 */
body.productsperuvian-product-archive .productsperuvian-shop-main {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Actual archive content: max 1350px with 16px gutters on smaller screens. */
body.productsperuvian-product-archive .productsperuvian-shop-main > .productsperuvian-archive-inner {
  width: calc(100% - 32px);
  font-family:var(--e-global-typography-text-font-family, inherit);
  max-width: 1350px;
  margin-inline: auto;
  padding-top: 20px;
  padding-bottom: 50px;
  box-sizing: border-box;
}

/* Breadcrumbs: exactly the same visual treatment as single-product pages.
 * Use stronger selectors because WooCommerce/Elementor can inject more specific
 * link styles on taxonomy archives. */
body.productsperuvian-product-archive .productsperuvian-archive-inner nav.woocommerce-breadcrumb,
body.productsperuvian-product-archive .productsperuvian-archive-inner .woocommerce-breadcrumb {
  margin:0 0 28px !important;
  padding:0 !important;
  color:#6b6b6b !important;
  font-size:12px !important;
  font-weight:400 !important;
  line-height:1.5 !important;
  text-decoration:none !important;
}

body.productsperuvian-product-archive .productsperuvian-archive-inner nav.woocommerce-breadcrumb a,
body.productsperuvian-product-archive .productsperuvian-archive-inner .woocommerce-breadcrumb a {
  color:#111 !important;
  font-size:inherit !important;
  font-weight:400 !important;
  line-height:inherit !important;
  text-decoration:none !important;
  text-decoration-line:none !important;
}

body.productsperuvian-product-archive .productsperuvian-archive-inner nav.woocommerce-breadcrumb a:hover,
body.productsperuvian-product-archive .productsperuvian-archive-inner .woocommerce-breadcrumb a:hover {
  color:#111 !important;
  text-decoration:underline !important;
  text-underline-offset:2px;
}

.woocommerce .productsperuvian-product-grid,
.woocommerce-page .productsperuvian-product-grid {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:32px 20px;
  width:100%;
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
.woocommerce .productsperuvian-product-grid::before,
.woocommerce .productsperuvian-product-grid::after,
.woocommerce-page .productsperuvian-product-grid::before,
.woocommerce-page .productsperuvian-product-grid::after{display:none!important;content:none!important}
.woocommerce .productsperuvian-product-grid.columns-1,
.woocommerce-page .productsperuvian-product-grid.columns-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.woocommerce .productsperuvian-product-grid.columns-2,
.woocommerce-page .productsperuvian-product-grid.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.woocommerce .productsperuvian-product-grid.columns-3,
.woocommerce-page .productsperuvian-product-grid.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.woocommerce .productsperuvian-product-grid.columns-4,
.woocommerce-page .productsperuvian-product-grid.columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.woocommerce .productsperuvian-product-grid.columns-5,
.woocommerce-page .productsperuvian-product-grid.columns-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.woocommerce .productsperuvian-product-grid.columns-6,
.woocommerce-page .productsperuvian-product-grid.columns-6{grid-template-columns:repeat(6,minmax(0,1fr))}
.woocommerce .productsperuvian-product-grid .productsperuvian-product-grid__item,
.woocommerce-page .productsperuvian-product-grid .productsperuvian-product-grid__item{
  float:none!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  display:flex;
}
.woocommerce .productsperuvian-product-grid .productsperuvian-product-card,
.woocommerce-page .productsperuvian-product-grid .productsperuvian-product-card{
  width:100%;
  height:100%;
  flex:1 1 auto;
}

/* Load-more pagination */
.productsperuvian-load-more{
  width:min(100%,330px);
  margin:46px auto 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  color:#1d1d1d;
  text-align:center;
}
.productsperuvian-load-more__count{
  width:100%;
  margin:0 0 15px!important;
  color:#1d1d1d;
  font-size:14px!important;
  font-weight:400!important;
  line-height:1.45!important;
}
.productsperuvian-load-more__count strong{font-weight:400}
.productsperuvian-load-more__progress{
  position:relative;
  width:100%;
  height:3px;
  margin:0 0 42px;
  overflow:hidden;
  border-radius:999px;
  background:#d9d9d9;
}
.productsperuvian-load-more__progress span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:#111;
  transition:width .3s ease;
}
.productsperuvian-load-more__button{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-width:220px;
  min-height:46px;
  margin:0!important;
  padding:11px 28px!important;
  border:1px solid #000!important;
  border-radius:25px!important;
  background:#000!important;
  color:#fff!important;
  box-shadow:none!important;
  font-size:14px!important;
  font-weight:600!important;
  line-height:1.2!important;
  text-align:center;
  text-decoration:none!important;
  cursor:pointer;
  transition:opacity .2s ease,transform .2s ease;
}
.productsperuvian-load-more__button:hover,
.productsperuvian-load-more__button:focus{
  background:#000!important;
  color:#fff!important;
  opacity:.86;
  text-decoration:none!important;
}
.productsperuvian-load-more__button:focus-visible{outline:2px solid #000;outline-offset:3px}
.productsperuvian-load-more.is-loading .productsperuvian-load-more__button{opacity:.55;pointer-events:none}
.productsperuvian-load-more.is-complete .productsperuvian-load-more__button{display:none!important}

/* Editorial/SEO content that appears after the product listing. */
.productsperuvian-archive-bottom-content{
  width:100%;
  margin:56px 0 0;
  color:inherit;
  text-transform:none;
}
.productsperuvian-archive-bottom-content *{text-transform:none;}
.productsperuvian-archive-bottom-content > :first-child{margin-top:0}
.productsperuvian-archive-bottom-content > :last-child{margin-bottom:0}

@media(max-width:1100px){
  .woocommerce .productsperuvian-product-grid,
  .woocommerce-page .productsperuvian-product-grid,
  .woocommerce .productsperuvian-product-grid.columns-4,
  .woocommerce-page .productsperuvian-product-grid.columns-4,
  .woocommerce .productsperuvian-product-grid.columns-5,
  .woocommerce-page .productsperuvian-product-grid.columns-5,
  .woocommerce .productsperuvian-product-grid.columns-6,
  .woocommerce-page .productsperuvian-product-grid.columns-6{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767px){
  .woocommerce .productsperuvian-product-grid,
  .woocommerce-page .productsperuvian-product-grid,
  .woocommerce .productsperuvian-product-grid.columns-3,
  .woocommerce-page .productsperuvian-product-grid.columns-3,
  .woocommerce .productsperuvian-product-grid.columns-4,
  .woocommerce-page .productsperuvian-product-grid.columns-4,
  .woocommerce .productsperuvian-product-grid.columns-5,
  .woocommerce-page .productsperuvian-product-grid.columns-5,
  .woocommerce .productsperuvian-product-grid.columns-6,
  .woocommerce-page .productsperuvian-product-grid.columns-6{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
  .productsperuvian-load-more{width:min(100%,300px);margin-top:38px}
  .productsperuvian-load-more__progress{margin-bottom:32px}
  .productsperuvian-load-more__button{min-width:210px}
  .productsperuvian-archive-bottom-content{margin-top:44px}
}
@media(prefers-reduced-motion:reduce){
  .productsperuvian-load-more__progress span,
  .productsperuvian-load-more__button{transition:none!important}
}

/* Product-category intro: compact description + true horizontal subcategory scroll. */
.productsperuvian-category-intro {
  width: 100%;
  margin: 0 0 34px;
  font-family: var(--e-global-typography-text-font-family, inherit);
}

.productsperuvian-category-intro__description-wrap {
  width: min(100%, 860px);
}

.productsperuvian-category-intro__description {
  --productsperuvian-category-lines: 2;
  position: relative;
  max-height: calc(1.65em * var(--productsperuvian-category-lines));
  overflow: hidden;
  color: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  text-transform: none;
}
.productsperuvian-category-intro__description * { text-transform: none; }

.productsperuvian-category-intro__description > :first-child { margin-top: 0; }
.productsperuvian-category-intro__description > :last-child { margin-bottom: 0; }

.productsperuvian-category-intro.is-expanded .productsperuvian-category-intro__description {
  max-height: 88px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #1a1a1a #d9d9d9;
  padding-right: 10px;
}
.productsperuvian-category-intro.is-expanded .productsperuvian-category-intro__description::-webkit-scrollbar {
  width: 4px;
}
.productsperuvian-category-intro.is-expanded .productsperuvian-category-intro__description::-webkit-scrollbar-track {
  background: #d9d9d9;
}
.productsperuvian-category-intro.is-expanded .productsperuvian-category-intro__description::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 999px;
}

.productsperuvian-category-intro__toggle {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.productsperuvian-category-intro__toggle:hover,
.productsperuvian-category-intro__toggle:focus {
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
}
.productsperuvian-category-intro__toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.productsperuvian-subcategories {
  width: 100%;
  margin-top: 38px;
  overflow: hidden;
}
.productsperuvian-subcategories__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 12px;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #000 transparent;
}
.productsperuvian-subcategories__track::-webkit-scrollbar {
  height: 5px;
}
.productsperuvian-subcategories__track::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}
.productsperuvian-subcategories__track::-webkit-scrollbar-thumb {
  background: #000;
  border-radius: 999px;
}
.productsperuvian-subcategories__track::-webkit-scrollbar-thumb:hover {
  background: #222;
}
.productsperuvian-subcategories__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 12px 17px;
  border: 1px solid #111;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}
.productsperuvian-subcategories .productsperuvian-subcategories__chip:hover,
.productsperuvian-subcategories .productsperuvian-subcategories__chip:focus,
.productsperuvian-subcategories .productsperuvian-subcategories__chip:active {
  background: #111;
  color: #fff;
  text-decoration: none;
}
.productsperuvian-subcategories__chip:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .productsperuvian-category-intro { margin-bottom: 28px; }
  .productsperuvian-category-intro__description-wrap { width: 100%; }
  .productsperuvian-category-intro__description {
    --productsperuvian-category-lines: 3;
    font-size: 14px;
    line-height: 1.65;
  }
  .productsperuvian-category-intro.is-expanded .productsperuvian-category-intro__description {
    max-height: 88px;
  }
  .productsperuvian-subcategories { margin-top: 30px; }
  .productsperuvian-subcategories__chip {
    min-height: 0;
    padding: 10px 15px;
    font-size: 14px;
  }
}


/* Native WooCommerce empty-result notice, styled to match ProductsPeruvian. */
body.productsperuvian-product-archive .woocommerce-info {
  width: 100%;
  margin: 0;
  padding: 16px 18px;
  border: 0;
  border-radius: 12px;
  background: #f3ead9;
  color: #111;
  box-shadow: none;
  font-family: var(--e-global-typography-text-font-family, inherit);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
body.productsperuvian-product-archive .woocommerce-info::before,
body.productsperuvian-product-archive .woocommerce-info::after {
  display: none;
  content: none;
}


/* ProductsPeruvian catalog ordering: custom UI over WooCommerce's native select. */
body.productsperuvian-product-archive .woocommerce-ordering {
  position: relative;
  z-index: 30;
  width: max-content;
  max-width: 100%;
  margin: 0 0 28px auto;
  float: none;
  font-family: var(--e-global-typography-text-font-family, inherit);
}
body.productsperuvian-product-archive .woocommerce-ordering select.orderby {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}
.productsperuvian-ordering {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}
.productsperuvian-ordering__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 8px 18px;
  border: 1px solid #111;
  border-radius: 25px;
  background: transparent;
  color: #111;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.productsperuvian-ordering__toggle:hover,
.productsperuvian-ordering__toggle:focus {
  border: 1px solid #111;
  background: #111;
  color: #fff;
  box-shadow: none;
}
.productsperuvian-ordering__toggle:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}
.productsperuvian-ordering__icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.productsperuvian-ordering__label {
  display: block;
  white-space: nowrap;
}
.productsperuvian-ordering__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: max-content;
  min-width: 235px;
  max-width: min(320px, calc(100vw - 32px));
  padding: 12px 0;
  border: 1px solid #111;
  border-radius: 26px;
  background: #f9f6ee;
  box-shadow: none;
  overflow: hidden;
}
.productsperuvian-ordering__menu[hidden] {
  display: none;
}
.productsperuvian-ordering__option {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0,1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 35px;
  margin: 0;
  padding: 7px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111;
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
.productsperuvian-ordering__option:hover,
.productsperuvian-ordering__option:focus {
  border: 0;
  background: rgba(0,0,0,.045);
  color: #111;
  box-shadow: none;
}
.productsperuvian-ordering__option:focus-visible {
  outline: 2px solid #111;
  outline-offset: -4px;
}
.productsperuvian-ordering__dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}
.productsperuvian-ordering__option[aria-selected="true"] .productsperuvian-ordering__dot {
  background: #111;
}
body.productsperuvian-ordering-mobile-open {
  overflow: hidden;
  overscroll-behavior: none;
}
.productsperuvian-ordering-mobile[hidden] {
  display: none;
}
.productsperuvian-ordering-mobile {
  display: none;
}

@media (max-width: 767px) {
  body.productsperuvian-product-archive .woocommerce-ordering {
    margin-bottom: 22px;
  }
  .productsperuvian-ordering {
    min-width: 0;
  }
  .productsperuvian-ordering__toggle {
    min-height: 40px;
    padding: 7px 16px;
    font-size: 14px;
  }
  .productsperuvian-ordering__menu {
    display: none;
  }

  .productsperuvian-ordering-mobile {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: block;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    color: #111;
    font-family: var(--e-global-typography-text-font-family, inherit);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
  }
  .productsperuvian-ordering-mobile.is-open {
    opacity: 1;
    visibility: visible;
  }
  .productsperuvian-ordering-mobile__panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #fff;
  }
  .productsperuvian-ordering-mobile__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 0 16px;
    border-bottom: 1px solid #d8d8d8;
  }
  .productsperuvian-ordering-mobile__title {
    margin: 0;
    color: #111;
    font: inherit;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
  }
  .productsperuvian-ordering-mobile__close {
    position: relative;
    width: 42px;
    height: 42px;
    margin: 0 -8px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111;
    box-shadow: none;
    cursor: pointer;
  }
  .productsperuvian-ordering-mobile__close:hover,
  .productsperuvian-ordering-mobile__close:focus {
    border: 0;
    background: transparent;
    color: #111;
    box-shadow: none;
  }
  .productsperuvian-ordering-mobile__close span::before,
  .productsperuvian-ordering-mobile__close span::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 27px;
    height: 2px;
    background: currentColor;
    transform-origin: center;
  }
  .productsperuvian-ordering-mobile__close span::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }
  .productsperuvian-ordering-mobile__close span::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
  .productsperuvian-ordering-mobile__options {
    min-height: 0;
    padding: 20px 16px 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .productsperuvian-ordering-mobile__option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 36px;
    margin: 0;
    cursor: pointer;
  }
  .productsperuvian-ordering-mobile__radio {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 16px;
    border: 1px solid #111;
    border-radius: 50%;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
  }
  .productsperuvian-ordering-mobile__radio:checked {
    border: 4px solid #111;
  }
  .productsperuvian-ordering-mobile__radio:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
  }
  .productsperuvian-ordering-mobile__label {
    color: #111;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
  }
  .productsperuvian-ordering-mobile__option:has(.productsperuvian-ordering-mobile__radio:checked) .productsperuvian-ordering-mobile__label {
    font-weight: 600;
  }
  .productsperuvian-ordering-mobile__actions {
    display: grid;
    gap: 12px;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    background: #fff;
  }
  .productsperuvian-ordering-mobile__apply,
  .productsperuvian-ordering-mobile__cancel {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 18px;
    border-radius: 25px;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
  }
  .productsperuvian-ordering-mobile__apply,
  .productsperuvian-ordering-mobile__apply:hover,
  .productsperuvian-ordering-mobile__apply:focus {
    border: 1px solid #000;
    background: #000;
    color: #fff;
  }
  .productsperuvian-ordering-mobile__cancel,
  .productsperuvian-ordering-mobile__cancel:hover,
  .productsperuvian-ordering-mobile__cancel:focus {
    border: 1px solid #111;
    background: #fff;
    color: #111;
  }
  .productsperuvian-ordering-mobile__apply:focus-visible,
  .productsperuvian-ordering-mobile__cancel:focus-visible,
  .productsperuvian-ordering-mobile__close:focus-visible {
    outline: 2px solid #111;
    outline-offset: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .productsperuvian-ordering-mobile {
    transition: none;
  }
}


@media (max-width:900px) {
  body.productsperuvian-product-archive .productsperuvian-archive-inner nav.woocommerce-breadcrumb,
  body.productsperuvian-product-archive .productsperuvian-archive-inner .woocommerce-breadcrumb {
    margin-bottom:18px !important;
    font-size:11px !important;
    overflow-wrap:anywhere;
  }
}
