
/* =====================================================
   PRODUCTS PAGE
===================================================== */
.catalog {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 56px;
  align-items: start;
}
.side {
  position: sticky;
  top: calc(var(--hh) + 24px);
}
.search {
  position: relative;
  margin-bottom: 18px;
}
.search input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.25s;
}
.search input:focus {
  outline: none;
  border-color: var(--blue);
}
.search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
}
.side nav {
  border-left: 3px solid var(--line);
  max-height: calc(100vh - 230px);
  overflow-y: auto;
}
.side nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  margin-left: -3px;
  border-left: 3px solid transparent;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text);
  transition: all 0.2s;
}
.side nav a:hover {
  color: var(--blue);
}
.side nav a.on {
  color: var(--ink);
  border-left-color: var(--magenta);
  background: var(--paper);
}

.cat {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 2px dashed var(--line);
}
.cat:last-of-type {
  border-bottom: 0;
}
.cat-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.cat-ico {
  flex: none;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #fff;
  background: var(--c, var(--blue));
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.cat-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}
.cat-head p {
  margin-top: 6px;
}
.items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border-left: 3px solid var(--c, var(--blue));
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s;
}
.item i {
  color: var(--c, var(--blue));
}
.item:hover {
  transform: translateX(4px);
  background: var(--ink);
  color: #fff;
}
.cat-foot {
  margin-top: 24px;
}
.empty {
  display: none;
  padding: 50px 0;
  text-align: center;
  font-weight: 600;
}

  /* ===== PRODUCTS PAGE: base safety ===== */
.catalog { grid-template-columns: 290px minmax(0, 1fr); }
.items   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cat-head > div { min-width: 0; }
.item { min-width: 0; overflow-wrap: anywhere; }
@media (hover: none) {
  .item:hover { transform: none; background: var(--paper); color: var(--ink); }
}

/* ===== LAPTOP ===== */
@media (max-width: 1199px) {
  .catalog { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; }
  .items   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== TABLET: sidebar becomes a sticky, swipeable category bar ===== */
@media (max-width: 991px) {
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .side {
    position: sticky;
    top: var(--hh);
    z-index: 5;
    padding: 12px 0 10px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .search { margin-bottom: 12px; }
  .side nav {
    display: flex;
    gap: 8px;
    max-height: none;
    border-left: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .side nav a {
    flex: none;
    margin-left: 0;
    padding: 8px 14px;
    white-space: nowrap;
    font-size: 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .side nav a.on { border-color: var(--magenta); }
  .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat   { padding-bottom: 44px; margin-bottom: 44px; scroll-margin-top: calc(var(--hh) + 110px); }
}

/* ===== LARGE PHONES ===== */
@media (max-width: 767px) {
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== PHONES ===== */
@media (max-width: 575px) {
  .cat-head { gap: 14px; margin-bottom: 20px; }
  .cat-ico  { width: 52px; height: 52px; font-size: 24px; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%); }
  .item     { padding: 11px 14px; font-size: 14.5px; }
}
@media (max-width: 480px) {
  .items { grid-template-columns: minmax(0, 1fr); }
}


/* =====================================================
   PRODUCTS PAGE - CARD + SIDEBAR STYLE
   Paste AFTER your existing products CSS and
   after products-responsive.css
===================================================== */
.catalog {
  --pp-blue: #0b84e6;
  --pp-blue-soft: #e6f1ff;
  --pp-ink: #101a46;
  --pp-text: #1c2f63;
  --pp-muted: #5f6b8a;
  --pp-line: #e4ecf7;
}

/* ---------- search ---------- */
.search input {
  padding: 17px 16px 17px 52px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid #dbe5f3;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(20, 60, 120, 0.06);
}
.search input::placeholder { color: #8391ad; }
.search input:focus { border-color: var(--pp-blue); }
.search i { left: 20px; color: var(--pp-blue); }

/* ---------- category header ---------- */
.cat-head { align-items: center; gap: 22px; margin-bottom: 22px; }
.cat-ico {
  background: var(--c, #0b9de0);
  border-radius: 6px;
  clip-path: none;
}
.cat-head h2 {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--pp-ink);
}
.cat-head p {
  margin-top: 6px;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 500;
  color: var(--pp-muted);
}
@media (min-width: 576px) {
  .cat-ico { width: 70px; height: 70px; font-size: 32px; }
}

/* ---------- product cards (image on top, name below) ---------- */
/* 4 cards per row on desktop */
.items {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (min-width: 1200px) {
  /* slightly slimmer sidebar so 4 cards get enough width */
  .catalog { grid-template-columns: 270px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 1199px) { .items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px)  { .items { grid-template-columns: minmax(0, 1fr); } }
.item {
  position: relative;
  display: flex;
  flex-direction: column;     /* fixes the letter-by-letter stacked text */
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: 0 16px 16px;
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pp-ink);
  background: #fff;
  border: 1px solid var(--pp-line);
  border-radius: 8px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.item img {
  display: block;
  width: calc(100% + 32px);
  max-width: none;
  height: auto;               /* natural height: no fixed box, no cropping */
  margin: 0 -16px auto;       /* auto pushes the name to the bottom of the card */
  padding: 12px 16px 0;
  box-sizing: border-box;
  background: #fff;
  font-size: 12px;
  color: #8a97b3;
}
.item i { display: none; }
.item > span,
.item > b,
.item > strong { display: block; padding-right: 40px; }

/* round arrow button at the bottom-right of each card */
.item::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--pp-blue-soft)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b84e6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m9 6 6 6-6 6'/></svg>")
    center / 14px no-repeat;
}
.item:hover {
  transform: translateY(-4px);
  color: var(--pp-ink);
  background: #fff;
  border-color: #bcd7f7;
  box-shadow: 0 14px 28px -12px rgba(20, 70, 140, 0.25);
}
@media (hover: none) {
  .item:hover { transform: none; box-shadow: none; border-color: var(--pp-line); }
}

/* ---------- bottom quote button ---------- */
.cat-foot { margin-top: 30px; text-align: center; }
.cat-foot a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  font-weight: 700;
  color: var(--pp-ink);
  background: #fff;
  border: 2px solid #0b5fb0;
  border-radius: 6px;
  transition: background 0.25s, color 0.25s;
}
.cat-foot a:hover { background: #0b5fb0; color: #fff; }

/* ---------- desktop sidebar list (chips are kept on tablet/mobile) ---------- */
@media (min-width: 992px) {
  .side nav {
    border-left: 0;
    max-height: calc(100vh - var(--hh, 80px) - 150px);
    overflow-y: auto;
    scrollbar-width: none;
    background: #f7faff;
    border-radius: 10px;
    padding: 8px 0;
  }
  .side nav::-webkit-scrollbar { display: none; }
  .side nav a {
    margin-left: 0;
    padding: 8px 22px;
    font-size: 16px;
    font-weight: 500;
    color: var(--pp-text);
    border-left: 4px solid transparent;
  }
  .side nav a::after {
    content: "";
    margin-left: auto;
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.65;
  }
  .side nav a.on {
    font-weight: 700;
    color: var(--pp-ink);
    background: var(--pp-blue-soft);
    border-left-color: var(--pp-blue);
  }
  .side nav a.on::after { color: var(--pp-blue); opacity: 1; }
}



/* remove the small arrow circle on product cards */
.item::after,
.item-text::after {
  content: none !important;
  display: none !important;
}
.item-text { padding-right: 0; }






/* Hero-only override: keep the existing page design and copy intact. */
      .page-hero { overflow: hidden; }
      .page-hero > .container { position: relative; z-index: 2; }
      .page-hero .ph-art-product {
        position: absolute;
        top: 50%;
        right: 2.5%;
        transform: translateY(-50%);
        width: min(47%, 610px);
        height: 330px;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
      }
      .page-hero .ph-banner-image {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        mix-blend-mode: screen;
        filter: saturate(1.05) contrast(1.02);
      }
      .page-hero .ph-art-product .ph-chip { z-index: 3; }
      .page-hero .ph-art-product .ph-c1 { top: 2%; left: 3%; }
      .page-hero .ph-art-product .ph-c2 { right: 0; bottom: 12%; }
      .page-hero .ph-art-product .ph-c3 { left: 0; bottom: 3%; }
      @media (max-width: 991px) {
        .page-hero .ph-art-product { right: 1%; width: 44%; height: 270px; }
        .page-hero .ph-art-product .ph-chip { transform: scale(.9); }
      }
      @media (max-width: 767px) {
        .page-hero { padding-bottom: 28px; }
        .page-hero .ph-art-product {
          position: relative;
          top: auto;
          right: auto;
          transform: none;
          width: 100%;
          max-width: 480px;
          height: 245px;
          margin: 12px auto 0;
        }
        .page-hero .ph-banner-image { height: 100%; }
        .page-hero .ph-art-product .ph-chip { transform: scale(.82); }
        .page-hero .ph-art-product .ph-c1 { top: 0; left: 0; }
        .page-hero .ph-art-product .ph-c2 { right: 0; bottom: 2%; }
        .page-hero .ph-art-product .ph-c3 { left: 0; bottom: 0; }
      }
@media (max-width: 767px) {
  .page-hero .ph-art-product .ph-chip {
    display: none !important;
  }

  .page-hero .ph-art-product {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 16px auto 0;
  }

  .page-hero .ph-art-product .ph-banner-image {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
  }
}