/* Parts Poa home sections: services bar + deal tabs.
   Change the look from the variables below. */
:root {
    --pp-ink: #1b2430;
    --pp-muted: #5f6b79;
    --pp-line: #e3e8ee;
    --pp-surface: #ffffff;
    --pp-wash: #f4f6f9;
    --pp-accent: #f2b705;        /* active tab, highlights */
    --pp-accent-ink: #1b2430;    /* text on the accent */
    --pp-radius: 14px;
    --pp-gap: clamp(10px, 2vw, 18px);
    --pp-space: clamp(20px, 4vw, 44px);
}

/* ---------- Services bar ---------- */
.pp-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--pp-gap);
    margin: var(--pp-space) 0;
    padding: clamp(12px, 2.4vw, 20px);
    background: var(--pp-wash);
    border-radius: var(--pp-radius);
}
.pp-service {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.pp-service img { flex: none; width: 36px; height: 36px; object-fit: contain; }
.pp-service strong {
    display: block;
    color: var(--pp-ink);
    font-size: clamp(13px, 1.5vw, 15px);
    line-height: 1.25;
}
.pp-service span {
    display: block;
    color: var(--pp-muted);
    font-size: clamp(12px, 1.3vw, 13px);
    line-height: 1.3;
}
@media (min-width: 768px) {
    .pp-services { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Deal tabs ---------- */
.pp-deals { margin: var(--pp-space) 0; }
.pp-deals__head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.pp-deals__title {
    margin: 0;
    color: var(--pp-ink);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.15;
    text-transform: none;
}
@media (min-width: 768px) {
    .pp-deals__head { flex-direction: row; align-items: center; justify-content: space-between; }
}

.pp-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.pp-tabs::-webkit-scrollbar { display: none; }
.pp-tab {
    flex: none;
    min-height: 40px;               /* comfortable tap target */
    padding: 0 16px;
    border: 1px solid var(--pp-line);
    border-radius: 999px;
    background: var(--pp-surface);
    color: var(--pp-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.pp-tab:hover { border-color: var(--pp-ink); }
.pp-tab[aria-selected="true"] {
    background: var(--pp-accent);
    border-color: var(--pp-accent);
    color: var(--pp-accent-ink);
}
.pp-tab:focus-visible,
.pp-rail__btn:focus-visible,
.pp-card:focus-visible { outline: 3px solid var(--pp-ink); outline-offset: 2px; }

.pp-panel[hidden] { display: none; }

/* ---------- Swipeable rail ---------- */
.pp-rail { position: relative; }
.pp-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - var(--pp-gap)) / 2.2);   /* 2 cards + a peek of the next */
    gap: var(--pp-gap);
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.pp-track::-webkit-scrollbar { display: none; }
@media (min-width: 600px)  { .pp-track { grid-auto-columns: calc((100% - 2 * var(--pp-gap)) / 3.2); } }
@media (min-width: 900px)  { .pp-track { grid-auto-columns: calc((100% - 3 * var(--pp-gap)) / 4); } }
@media (min-width: 1200px) { .pp-track { grid-auto-columns: calc((100% - 4 * var(--pp-gap)) / 5); } }

.pp-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    background: var(--pp-surface);
    border: 1px solid var(--pp-line);
    border-radius: var(--pp-radius);
    color: var(--pp-ink);
    text-decoration: none;
    scroll-snap-align: start;
    transition: border-color .15s, box-shadow .15s;
}
.pp-card:hover { border-color: var(--pp-ink); text-decoration: none; color: var(--pp-ink); }

.pp-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--pp-wash);
    border-radius: calc(var(--pp-radius) - 6px);
}
.pp-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.pp-chip {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 9px;
    background: var(--pp-ink);
    border-radius: 999px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}
.pp-card__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    font-size: clamp(13px, 1.4vw, 14px);
    font-weight: 600;
    line-height: 1.3;
}
.pp-card__price {
    font-size: clamp(14px, 1.6vw, 16px);
    font-weight: 700;
}
.pp-card__stock { color: var(--pp-muted); font-size: 12px; }
.pp-card__stock--out { color: #b3261e; }

.pp-card--more {
    align-items: center;
    justify-content: center;
    background: var(--pp-wash);
    border-style: dashed;
    font-weight: 600;
    text-align: center;
}

/* Arrow buttons: desktop only; phones swipe */
.pp-rail__btn {
    display: none;
    position: absolute;
    top: 38%;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: 1px solid var(--pp-line);
    border-radius: 50%;
    background: var(--pp-surface);
    color: var(--pp-ink);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(27, 36, 48, .12);
}
.pp-rail__btn--prev { left: -14px; }
.pp-rail__btn--next { right: -14px; }
.pp-rail__btn[disabled] { opacity: .35; cursor: default; }
@media (hover: hover) and (min-width: 900px) {
    .pp-rail__btn { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .pp-tab, .pp-card { transition: none; }
}

/* ---------- Home slider: no stacked slides before it starts ---------- */
.homeslider > ul.bxslider-background > li.item:not(:first-child) { display: none; }
.homeslider .bx-wrapper ul.bxslider-background > li.item { display: block; }

/* ---------- Testimonials ---------- */
.pp-voices { padding: 32px 0; background: #f7f7f8; }
.pp-voices__title { font-size: 24px; font-weight: 700; margin: 0 0 20px; }

.pp-voices__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pp-voice {
    margin: 0;
    padding: 28px 24px 22px;
    display: flex; flex-direction: column; gap: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    transition: box-shadow .2s, transform .2s;
}
.pp-voice:hover { box-shadow: 0 12px 28px rgba(0,0,0,.1); transform: translateY(-3px); }

.pp-voice__quote { color: var(--pp-primary, #e53935); }

.pp-voice__text {
    flex: 1;
    margin: 0; padding: 0; border: 0;
    font-size: 16px; line-height: 1.6; color: #333;
}

.pp-voice__who {
    display: flex; align-items: center; gap: 12px;
    padding-top: 16px; border-top: 1px solid #eee;
}
.pp-voice__avatar {
    flex: 0 0 48px; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; overflow: hidden;
    background: #eef0f3; color: #9aa1ab;
}
.pp-voice__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pp-voice__meta { display: flex; flex-direction: column; line-height: 1.3; }
.pp-voice__name { font-size: 16px; font-weight: 700; font-style: normal; }
.pp-voice__tag { font-size: 13px; color: #777; }

@media (max-width: 900px) {
    .pp-voices__grid {
        display: flex; overflow-x: auto; gap: 14px;
        scroll-snap-type: x mandatory; padding-bottom: 10px;
    }
    .pp-voice { flex: 0 0 85%; scroll-snap-align: start; }
}

/* ---------- Collaborators slider ---------- */
.pp-collab { margin: var(--pp-space) 0; }
.pp-collab__title {
    margin: 0 0 16px;
    color: var(--pp-ink);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.15;
    text-transform: none;
}
.pp-collab__viewport {
    overflow: hidden;
    padding: 14px 0;
    border-top: 1px solid var(--pp-line);
    border-bottom: 1px solid var(--pp-line);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.pp-collab__track {
    display: flex;
    width: max-content;
    animation: pp-marquee var(--pp-collab-speed, 30s) linear infinite;
}
.pp-collab__group {
    display: flex;
    flex: none;
    align-items: center;
    gap: clamp(28px, 5vw, 56px);
    padding-right: clamp(28px, 5vw, 56px);
}
.pp-collab__logo {
    display: block;
    flex: none;
    width: auto;
    max-width: none;
    height: clamp(30px, 5vw, 46px);
    filter: grayscale(1);
    opacity: .75;
    transition: filter .2s, opacity .2s;
}
.pp-collab__logo:hover { filter: none; opacity: 1; }
.pp-collab__viewport:hover .pp-collab__track { animation-play-state: paused; }
@keyframes pp-marquee { to { transform: translateX(-50%); } }

/* Few logos: a calm centred row instead of a moving strip */
.pp-collab--static .pp-collab__viewport { -webkit-mask-image: none; mask-image: none; }
.pp-collab--static .pp-collab__track { width: auto; justify-content: center; animation: none; }
.pp-collab--static .pp-collab__group { flex-wrap: wrap; justify-content: center; padding-right: 0; }

@media (prefers-reduced-motion: reduce) {
    .pp-collab__viewport { overflow-x: auto; }
    .pp-collab__track { animation: none; }
    .pp-collab__group[aria-hidden="true"] { display: none; }
}

/* Collaborator items and placeholders */
.pp-collab__item { display: block; flex: none; text-decoration: none; }
.pp-collab__ph {
    display: grid;
    place-items: center;
    min-width: 130px;
    height: clamp(30px, 5vw, 46px);
    padding: 0 20px;
    background: var(--pp-wash);
    border: 1px dashed var(--pp-line);
    border-radius: 10px;
    color: var(--pp-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
a.pp-collab__item:focus-visible { outline: 3px solid var(--pp-ink); outline-offset: 3px; }

/*for testimonials sections */

/* ---------- Category rows under Shop deals ---------- */
.pp-row { margin: clamp(16px, 3vw, 32px) 0; }
.pp-row .pp-deals__head { flex-direction: row; align-items: baseline; justify-content: space-between; }
.pp-row__all {
    color: var(--pp-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}
.pp-row__all:hover { color: var(--pp-ink); }
.pp-row__all:focus-visible { outline: 3px solid var(--pp-ink); outline-offset: 2px; }


/* for quick catogoroies section */

.quick-cats { padding: 24px 0; }
.quick-cats__title  { font-size: 24px; font-weight: 700; margin: 0 0 16px; }
.quick-cats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.quick-cats__card {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem; padding: 1rem 1.1rem; min-height: 110px;
/*gap: 12px; padding: 16px 18px; min-height: 120px  */
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  text-decoration: none; color: inherit; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.quick-cats__card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.09); transform: translateY(-2px); }
.quick-cats__text { flex: 1 1 50%; min-width: 0; }
.quick-cats__name { margin: 0 0 6px; font-weight: 700; font-size: 14px; line-height: 1.3; }
.quick-cats__cta { font-size: 12px; color: #e53935; font-weight: 600; }
.quick-cats__img { flex: 0 0 45%; max-width: 45%; height: 80px; object-fit: contain; }

@media (max-width: 480px) {
  .quick-cats__grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .quick-cats__card { flex-direction: column-reverse; text-align: center; padding: .8rem; }
  .quick-cats__img { max-width: 100%; flex-basis: auto; height: 70px; }
}

/* for our collabortors section, */

.pp-collab { padding: 24px 0; }
.pp-collab__title { font-size: 24px; font-weight: 700; margin: 0 0 16px; }

.pp-collab__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.pp-collab__track { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }

.pp-collab__item { flex: 0 0 calc((100% - 16px * 5) / 6); min-width: 150px; scroll-snap-align: start; }
.pp-collab__item a {
    display: flex; align-items: center; justify-content: center;
    height: 90px; padding: 14px 18px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    transition: box-shadow .2s, transform .2s;
}
.pp-collab__item a:hover { box-shadow: 0 8px 20px rgba(0,0,0,.09); transform: translateY(-2px); }
.pp-collab__item img { max-height: 100%; max-width: 100%; object-fit: contain; }

@media (max-width: 768px) {
    .pp-collab__item { flex-basis: 45%; min-width: 130px; }
}
.pp-collab__item img { filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.pp-collab__item a:hover img { filter: none; opacity: 1; }



/* Set these two to your brand colours where we have a featured or join the team banner */
:root {
    --pp-primary: #e53935;
    --pp-dark: #2b2b2b;
}
.pp-promo__title { font-size: 24px; font-weight: 700; margin: 0 0 16px; }

@media (max-width: 768px) {
    .pp-promo__title { font-size: 20px; }
}

.pp-promo { padding: 24px 0; }

.pp-promo__card {
    display: grid;
    grid-template-columns: 5fr 7fr;
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--pp-dark);
    color: #fff;
}

.pp-promo__panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    padding: 40px;
}

.pp-promo__eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--pp-primary);
}
.pp-promo__eyebrow:hover { color: var(--pp-primary); }

.pp-promo__text {
    margin: 0;
    padding-top: 8px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    max-width: 420px;
}

.pp-promo__btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 999px;
    background: var(--pp-primary);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.pp-promo__btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.3);
}

.pp-promo__media {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f4f4;
    padding: 20px;
}
.pp-promo__media img {
    width: 100%;
    height: 100%;
    max-height: 320px;
    object-fit: contain;
}

/* ---------- Hero: fixed-size frame, finder beside the image ---------- */
.pp-hero { position: relative; margin: 0 0 14px; --pp-hero-fit: contain; } /* switch to "cover" once all slides are true 3:2 */

.pp-hero__slider {
    position: relative;
    min-height: 0;
    padding: 12px;
    border: 1px solid var(--pp-line, #e3e8ee);
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #f4f6f9 0%, #ffffff 70%);
    box-shadow: 0 6px 24px rgba(16, 24, 40, .08);
}
.pp-hero__frame {
    position: relative;
    aspect-ratio: 3 / 2;              /* the fixed shape every rotating slide fills */
    max-height: 420px;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.pp-hero__frame picture { display: block; width: 100%; height: 100%; }
.pp-hero__img {
    display: block;
    width: 100%; height: 100%;
    object-fit: var(--pp-hero-fit);
    object-position: center;
}

.pp-hero__cta {
    position: absolute; z-index: 2;
    top: 24px; right: 24px;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--pp-primary, #e53935);
    color: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}
.pp-hero__cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,.25); }
.pp-hero__cta:focus-visible { outline: 3px solid var(--pp-ink, #1b2430); outline-offset: 3px; }

/* Phone and tablet: the finder sits under the image, full width, hiding nothing */
@media (max-width: 991px) {
    .pp-hero .pp-finder { margin: 12px 0 0; }
}

/* Desktop: fixed-height panel, finder left, image frame right */
@media (min-width: 992px) {
    .pp-hero__slider { height: 536px; padding: 0; }
    .pp-hero .pp-finder { left: 24px; right: auto; }
    .pp-hero__frame {
        position: absolute;
        top: 24px; bottom: 24px; left: 408px; right: 24px;   /* 24 gap + 360 card + 24 gap */
        aspect-ratio: auto;
        max-height: none;
    }
    .pp-hero__cta { top: auto; right: 48px; bottom: 48px; padding: 13px 28px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .pp-hero__cta { transition: none; }
}



@media (max-width: 768px) {
    .pp-promo__card { grid-template-columns: 1fr; }
    .pp-promo__panel { padding: 28px 22px; }
    .pp-promo__text { font-size: 22px; }
    .pp-promo__media img { max-height: 240px; }
}
