/* The full catalogue has its own introduction; category routes keep their compact heading. */
body[data-storefront-page="products"] > section.pn-products-hero {
  width: min(calc(100% - 40px), 1480px);
  min-height: 0;
  margin: 0 auto 34px;
  padding: 28px 0 0 !important;
  overflow: visible;
  background: #fff !important;
}

body[data-storefront-page="products"] #listing-product {
  scroll-margin-top: 148px;
}

body[data-storefront-page="products"] .pn-products-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 47%) minmax(0, 53%);
  min-height: clamp(390px, 34vw, 490px);
  overflow: hidden;
  border-radius: 16px;
  background: #f3f5ef;
}

body[data-storefront-page="products"] .pn-products-hero-copy {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 52px clamp(38px, 5.4vw, 86px);
  text-align: left;
  background: radial-gradient(circle at 0 0, #fcfdf8 0, #f4f6ef 52%, #ecf1e9 100%);
}

body[data-storefront-page="products"] .pn-products-eyebrow {
  margin: 0 0 20px;
  color: #5b7951;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
}

body[data-storefront-page="products"] .pn-products-hero-copy [data-category-title] {
  max-width: 12ch;
  margin: 0;
  color: #1d3325 !important;
  font-size: clamp(42px, 4.7vw, 72px) !important;
  font-weight: 600 !important;
  line-height: 1.06 !important;
  letter-spacing: -.055em !important;
  text-align: left !important;
  overflow-wrap: anywhere;
}

body[data-storefront-page="products"] .pn-products-lead {
  max-width: 42ch;
  margin: 22px 0 26px;
  color: #4d6052;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 400;
  line-height: 1.7;
}

body[data-storefront-page="products"] .pn-products-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 49px;
  padding: 11px 18px 11px 22px;
  border: 1px solid #2e5b24;
  border-radius: 4px;
  background: #2e5b24;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

body[data-storefront-page="products"] .pn-products-hero-link:hover,
body[data-storefront-page="products"] .pn-products-hero-link:focus-visible {
  background: #22461c;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

body[data-storefront-page="products"] .pn-products-hero-link:focus-visible {
  outline: 3px solid #9dbf8b;
  outline-offset: 3px;
}

body[data-storefront-page="products"] .pn-products-hero-link > [aria-hidden] {
  font-size: 20px;
  font-weight: 400;
  line-height: .8;
}

body[data-storefront-page="products"] .pn-products-hero-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  color: #6e806d;
  font-size: 12px;
  line-height: 1.5;
}

body[data-storefront-page="products"] .pn-products-hero-note > [aria-hidden] {
  width: 24px;
  height: 1px;
  background: #82a075;
}

body[data-storefront-page="products"] .pn-products-hero-media {
  display: grid;
  grid-template-columns: minmax(0, 61%) minmax(0, 39%);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
  min-height: clamp(390px, 34vw, 490px);
  padding: 7px;
  background: #ecede8;
}

body[data-storefront-page="products"] .pn-products-photo {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #e4e6da;
}

body[data-storefront-page="products"] .pn-products-photo-main {
  grid-row: 1 / 3;
}

body[data-storefront-page="products"] .pn-products-photo img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
  transition: transform .7s ease;
}

body[data-storefront-page="products"] .pn-products-photo-main img {
  object-position: center 62%;
}

body[data-storefront-page="products"] .pn-products-photo-secondary img,
body[data-storefront-page="products"] .pn-products-photo-tertiary img {
  object-position: center 58%;
}

body[data-storefront-page="products"] .pn-products-photo:hover img {
  transform: scale(1.035);
}

html[lang="sq"] .pn-products-copy-en,
html[lang="en"] .pn-products-copy-sq {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  body[data-storefront-page="products"] .pn-products-hero-copy > * {
    animation: pn-products-enter .65s both;
  }
  body[data-storefront-page="products"] .pn-products-hero-copy > :nth-child(2) { animation-delay: .06s; }
  body[data-storefront-page="products"] .pn-products-hero-copy > :nth-child(3) { animation-delay: .12s; }
  body[data-storefront-page="products"] .pn-products-hero-copy > :nth-child(4) { animation-delay: .18s; }
  body[data-storefront-page="products"] .pn-products-hero-copy > :nth-child(5) { animation-delay: .24s; }
  body[data-storefront-page="products"] .pn-products-hero-media { animation: pn-products-reveal .85s both; }
}

@keyframes pn-products-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pn-products-reveal {
  from { opacity: .65; clip-path: inset(0 0 0 12%); }
  to { opacity: 1; clip-path: inset(0); }
}

@media (max-width: 1100px) {
  body[data-storefront-page="products"] .pn-products-hero-note { display: none; }
}

/* Product filters remain in the catalog, but their mobile control needs the
   same tap area and visual weight as the adjacent sort field. */
@media (max-width: 991px) {
  body[data-storefront-page="products"] #listing-product .pn-catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-catalog-count {
    line-height: 1.4;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-catalog-toolbar-controls {
    display: grid;
    grid-template-columns: minmax(100px, 34%) minmax(0, 1fr);
    align-items: end;
    gap: 10px;
    width: 100%;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #cadac5;
    border-radius: 7px;
    background: #f2f6ef;
    color: #264d25;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-filter-toggle::before {
    content: "";
    width: 16px;
    height: 14px;
    flex: 0 0 16px;
    background: linear-gradient(#2e5b24, #2e5b24) left 2px / 16px 1.5px no-repeat,
                linear-gradient(#2e5b24, #2e5b24) left 7px / 16px 1.5px no-repeat,
                linear-gradient(#2e5b24, #2e5b24) left 12px / 16px 1.5px no-repeat;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-filter-toggle:hover,
  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-filter-toggle[aria-expanded="true"] {
    background: #e6efe1;
    border-color: #8bad80;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-filter-toggle:focus-visible {
    outline: 2px solid #2e5b24;
    outline-offset: 2px;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-catalog-select-label {
    min-width: 0;
    width: 100%;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-catalog-select-label select {
    width: 100%;
    min-width: 0;
    height: 44px;
    border-radius: 7px;
  }
}

@media (max-width: 767px) {
  body[data-storefront-page="products"] #listing-product { scroll-margin-top: 124px; }

  body[data-storefront-page="products"] > section.pn-products-hero {
    width: min(calc(100% - 24px), 1480px);
    margin-bottom: 22px;
    padding-top: 16px !important;
  }

  body[data-storefront-page="products"] .pn-products-hero-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    border-radius: 11px;
  }

  body[data-storefront-page="products"] .pn-products-hero-copy {
    padding: 30px 24px 26px;
  }

  body[data-storefront-page="products"] .pn-products-eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
  }

  body[data-storefront-page="products"] .pn-products-hero-copy [data-category-title] {
    max-width: 100%;
    font-size: clamp(36px, 10vw, 48px) !important;
  }

  body[data-storefront-page="products"] .pn-products-lead {
    max-width: 38ch;
    margin: 14px 0 19px;
    font-size: 13px;
    line-height: 1.6;
  }

  body[data-storefront-page="products"] .pn-products-hero-link {
    min-height: 43px;
    padding: 9px 15px;
    font-size: 12px;
  }

  body[data-storefront-page="products"] .pn-products-hero-note { display: none; }

  body[data-storefront-page="products"] .pn-products-hero-media {
    height: 240px;
    min-height: 0;
    grid-template-columns: minmax(0, 62%) minmax(0, 38%);
    gap: 5px;
    padding: 5px;
  }

  body[data-storefront-page="products"] .pn-products-photo-main img {
    object-position: center 65%;
  }

  body[data-storefront-page="products"] #listing-product .pn-catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(110px, 34%) minmax(0, 1fr);
    grid-template-rows: auto 44px;
    column-gap: 12px;
    row-gap: 7px;
    align-items: stretch;
    padding: 10px 0 16px;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-catalog-count {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    font-size: 13px;
    line-height: 18px;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-catalog-toolbar-controls {
    display: contents;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-filter-toggle {
    grid-column: 1;
    grid-row: 2;
    height: 44px;
    min-height: 44px;
    gap: 0;
    margin: 0;
    border-color: #cdd8ca;
    border-radius: 4px;
    background: #fff;
    color: #202a20;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-filter-toggle::before {
    content: none;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-filter-toggle:hover,
  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-filter-toggle[aria-expanded="true"] {
    border-color: #9aad94;
    background: #f7faf5;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-catalog-select-label {
    grid-column: 2;
    grid-row: 1 / 3;
    justify-content: end;
    gap: 7px;
    line-height: 18px;
  }

  body[data-storefront-page="products"] .pn-catalog-toolbar .pn-catalog-select-label select {
    height: 44px !important;
    margin: 0 !important;
    border-radius: 4px;
    transition: none;
  }

  body[data-storefront-page="products"] .scroll-top-arrow {
    display: none !important;
  }
}

@media (max-width: 380px) {
  body[data-storefront-page="products"] .pn-products-hero-media { height: 205px; }
  body[data-storefront-page="products"] .pn-products-hero-copy { padding-inline: 20px; }
}

/* When a category is opened from the catalog, its own slide show becomes the
   lead image. Keep the catalog hero as a compact title and breadcrumb. */
body.pn-category-route[data-storefront-page="products"] > section.pn-products-hero {
  margin-bottom: 0;
  padding: 24px 0 12px !important;
}

body.pn-category-route[data-storefront-page="products"] .pn-products-hero-inner {
  display: block;
  min-height: 0;
  border-radius: 0;
  background: #fff;
}

body.pn-category-route[data-storefront-page="products"] .pn-products-hero-copy {
  align-items: center;
  padding: 0 12px;
  background: #fff;
  text-align: center;
}

body.pn-category-route[data-storefront-page="products"] .pn-products-hero-copy [data-category-title] {
  max-width: none;
  font-size: clamp(27px, 3vw, 40px) !important;
  text-align: center !important;
}

body.pn-category-route[data-storefront-page="products"] :is(.pn-products-eyebrow, .pn-products-lead, .pn-products-hero-link, .pn-products-hero-note, .pn-products-hero-media) {
  display: none;
}

/* Search results lead with the query and the catalog itself. The photographic
   introduction remains on the unfiltered catalogue. */
body.pn-catalog-search-route:not(.pn-category-route)[data-storefront-page="products"] > section.pn-products-hero {
  margin-bottom: 18px;
  padding-top: 24px !important;
}

body.pn-catalog-search-route:not(.pn-category-route)[data-storefront-page="products"] .pn-products-hero-inner {
  display: block;
  min-height: 0;
  border-radius: 12px;
  background: #f3f7f0;
}

body.pn-catalog-search-route:not(.pn-category-route)[data-storefront-page="products"] .pn-products-hero-copy {
  display: block;
  padding: 34px clamp(24px, 4vw, 60px);
  background: transparent;
}

body.pn-catalog-search-route:not(.pn-category-route)[data-storefront-page="products"] .pn-products-hero-copy [data-category-title] {
  max-width: none;
  font-size: clamp(28px, 3.2vw, 42px) !important;
  line-height: 1.18 !important;
}

body.pn-catalog-search-route:not(.pn-category-route)[data-storefront-page="products"] :is(.pn-products-eyebrow, .pn-products-lead, .pn-products-hero-link, .pn-products-hero-note, .pn-products-hero-media) {
  display: none;
}

/* A zero-result list has no filter sidebar or sorting choice. Give its status
   the full catalogue width and an obvious way back to all products. */
body[data-storefront-page="products"] #listing-product .pn-catalog-shell.is-empty {
  display: block;
  width: 100%;
}

body[data-storefront-page="products"] #listing-product .pn-catalog-shell.is-empty .pn-catalog-main {
  width: 100%;
}

body[data-storefront-page="products"] #listing-product .pn-catalog-shell.is-empty :is(.pn-catalog-filters, .pn-filter-backdrop, .pn-filter-toggle, .pn-catalog-toolbar-controls, .product-listing, .pn-catalog-footer) {
  display: none !important;
}

body[data-storefront-page="products"] #listing-product .pn-catalog-shell.is-empty .pn-catalog-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 0 15px;
  border: 0;
}

body[data-storefront-page="products"] #listing-product .pn-catalog-shell.is-empty .pn-catalog-count {
  margin: 0;
  color: #6a7867;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-storefront-page="products"] #listing-product .pn-catalog-shell.is-empty .pn-active-filters {
  justify-content: center;
  padding: 0 12px 16px;
}

body[data-storefront-page="products"] #listing-product .pn-catalog-empty-state:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 850px);
  min-height: 320px;
  margin: 0 auto 54px;
  padding: 46px clamp(24px, 5vw, 70px);
  border: 1px solid #e0e9db;
  border-radius: 16px;
  background: #f7f9f5;
  color: #1d3325;
  text-align: center;
}

body[data-storefront-page="products"] .pn-catalog-empty-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e6efe1;
  color: #3d6934;
}

body[data-storefront-page="products"] .pn-catalog-empty-icon svg {
  display: block;
  margin: 0;
  opacity: 1;
}

body[data-storefront-page="products"] .pn-catalog-empty-state [data-catalog-message] {
  max-width: 34ch;
  margin: 0;
  color: #1d3325;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

body[data-storefront-page="products"] .pn-catalog-empty-state [data-catalog-hint] {
  margin: 13px 0 25px;
  color: #657363;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

body[data-storefront-page="products"] .pn-catalog-empty-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 46px;
  padding: 11px 18px 11px 21px;
  border-radius: 5px;
  background: #2e5b24;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

body[data-storefront-page="products"] .pn-catalog-empty-action:hover,
body[data-storefront-page="products"] .pn-catalog-empty-action:focus-visible {
  background: #22461c;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

body[data-storefront-page="products"] .pn-catalog-empty-action:focus-visible {
  outline: 3px solid #9dbf8b;
  outline-offset: 3px;
}

body[data-storefront-page="products"] .pn-catalog-empty-action [aria-hidden] {
  font-size: 19px;
  font-weight: 400;
  line-height: .8;
}

@media (max-width: 767px) {
  body.pn-catalog-search-route:not(.pn-category-route)[data-storefront-page="products"] > section.pn-products-hero {
    margin-bottom: 12px;
    padding-top: 14px !important;
  }

  body.pn-catalog-search-route:not(.pn-category-route)[data-storefront-page="products"] .pn-products-hero-copy {
    padding: 23px 20px;
  }

  body.pn-catalog-search-route:not(.pn-category-route)[data-storefront-page="products"] .pn-products-hero-copy [data-category-title] {
    font-size: clamp(25px, 7.4vw, 33px) !important;
  }

  body[data-storefront-page="products"] #listing-product .pn-catalog-empty-state:not([hidden]) {
    min-height: 290px;
    margin-bottom: 34px;
    padding: 34px 20px;
    border-radius: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-storefront-page="products"] .pn-products-hero-copy > *,
  body[data-storefront-page="products"] .pn-products-hero-media {
    animation: none;
  }
  body[data-storefront-page="products"] .pn-products-photo img,
  body[data-storefront-page="products"] .pn-products-hero-link {
    transition: none;
  }
  body[data-storefront-page="products"] .pn-products-photo:hover img,
  body[data-storefront-page="products"] .pn-products-hero-link:hover,
  body[data-storefront-page="products"] .pn-catalog-empty-action:hover {
    transform: none;
  }
  body[data-storefront-page="products"] .pn-catalog-empty-action { transition: none; }
}
