/* =========================================================
   PetShop4U – light modernization layer
   Loaded by index.php only (after css/my.min.css).
   ========================================================= */

:root {
  --p4u-green: #8bc34a;       /* brand green (unchanged) */
  --p4u-green-deep: #4f7f23;  /* buttons/active states: readable with white text */
  --p4u-ink: #26302a;         /* main text */
  --p4u-muted: #6b7368;       /* secondary text */
  --p4u-line: #e7eae3;        /* hairlines and card borders */
  --p4u-surface: #f5f7f2;     /* soft section background */
  --p4u-sale: #e04f2f;        /* sale price and discount badge */
  --p4u-radius: 10px;
}

/* ---------- Header: quieter utility links & social ---------- */
.header .element a { color: var(--p4u-muted); }
.header .element a:hover { color: var(--p4u-green-deep); }
.header .element img { opacity: .75; }

.header .social a,
.header .social a i { color: #9aa196 !important; font-size: 17px; } /* overrides inline red */
.header .social a:hover,
.header .social a:hover i { color: var(--p4u-green-deep) !important; }

/* ---------- Product tabs: underline style instead of boxes ---------- */
#js-filters-juicy-projects { margin-bottom: 36px; }

#js-filters-juicy-projects .cbp-filter-item {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0;
  color: var(--p4u-muted) !important;       /* overrides inline #000 */
  font: 500 14px/36px Roboto, sans-serif !important;
  letter-spacing: .02em;
  padding: 0 4px;
  margin: 0 14px 10px !important;
}
#js-filters-juicy-projects .cbp-filter-item:hover { color: var(--p4u-ink) !important; }
#js-filters-juicy-projects .cbp-filter-item.cbp-filter-item-active {
  color: var(--p4u-ink) !important;
  border-bottom-color: var(--p4u-green) !important;
}

/* ---------- Product cards ----------
   Cubeportfolio gives every card a FIXED height of 400px
   (cubeportfolio_min.css). The card is laid out as a grid:
   the image takes ALL the space the text doesn't need, and
   price + button share the bottom row to leave more room
   for the photo. Nothing can be pushed out of the card. */
.proposed_item .cbp-item {
  border: 1px solid var(--p4u-line);
  border-radius: var(--p4u-radius);
  background: #fff;
  transition: border-color .2s ease;
  container-type: inline-size;
}
.proposed_item .cbp-item:hover { border-color: #c9d3bf; }

.proposed_item .cbp-item-wrapper {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: minmax(0, 1fr) auto auto auto auto;
  grid-template-areas:
    "img   img"
    "brand brand"
    "name  name"
    "desc  desc"
    "price btn";
  column-gap: 8px;
  height: 100%;
  padding: 0 14px 12px;
  box-shadow: none;
  border-top: 0;
  background: transparent;
  box-sizing: border-box;
  text-align: left;
}

/* image: fills all remaining height */
.proposed_item .cbp-caption { grid-area: img; min-height: 0; }
.proposed_item .cbp-caption-defaultWrap,
.proposed_item .cbp-caption-defaultWrap a { display: block; height: 100%; }
.proposed_item .cbp-caption-defaultWrap a { padding: 10px 0 4px; box-sizing: border-box; }
.proposed_item .cbp-caption-defaultWrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.proposed_item .cbp-l-grid-projects-title,
.proposed_item .cbp-l-grid-projects-desc {
  font-family: Roboto, sans-serif;
  padding: 0;
  text-align: left;
  overflow: hidden;
}

/* brand: 1 line */
.proposed_item [itemprop="brand"].cbp-l-grid-projects-title {
  grid-area: brand;
  font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .03em;
  color: var(--p4u-muted); margin-top: 6px;
  white-space: nowrap; text-overflow: ellipsis;
}
/* name: always reserves 2 lines, so images line up across a row */
.proposed_item [itemprop="name"].cbp-l-grid-projects-desc {
  grid-area: name;
  font-size: 14px; line-height: 19px; font-weight: 500;
  color: var(--p4u-ink); margin-top: 2px;
  height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  white-space: normal;
}
/* size / weight: 1 line */
.proposed_item [itemprop="description"].cbp-l-grid-projects-desc {
  grid-area: desc;
  font-size: 13px; line-height: 17px; height: 17px;
  color: var(--p4u-muted); margin-top: 2px;
  white-space: nowrap; text-overflow: ellipsis;
}

/* price (left) + button (right) on the bottom row */
.proposed_item [itemprop="offers"].cbp-l-grid-projects-title {
  grid-area: price; align-self: center; margin-top: 8px;
  overflow: visible; white-space: nowrap;
}
.proposed_item [itemprop="offers"] ~ .cbp-l-grid-projects-title {
  grid-area: btn; align-self: center; margin-top: 8px; overflow: visible;
}
.proposed_item .badge-price {
  font-size: 17px; line-height: 22px; font-weight: 700; color: var(--p4u-ink);
}
.proposed_item .badge-price del {
  display: block;                      /* old price sits above the new one */
  font-size: 12px; line-height: 14px; font-weight: 400; color: #9aa196;
}
.proposed_item .badge-price del ~ span { color: var(--p4u-sale); }

/* buy button */
.proposed_item .btn-custom {
  background: var(--p4u-green-deep);
  border-color: var(--p4u-green-deep);
  color: #fff;
  border-radius: 999px !important;
  font-size: 13px; font-weight: 500; line-height: 18px;
  padding: 7px 16px;
  margin: 0;
}
.proposed_item .btn-custom .glyphicon { margin-right: 6px; top: 2px; }
.proposed_item .btn-custom:hover,
.proposed_item .btn-custom:focus {
  background: #3f6a1a; border-color: #3f6a1a; color: #fff;
}

/* very narrow cards (e.g. phones): button under the price, full width */
@container (max-width: 230px) {
  .proposed_item .cbp-item-wrapper {
    grid-template-rows: minmax(0, 1fr) auto auto auto auto auto;
    grid-template-areas: "img img" "brand brand" "name name" "desc desc" "price price" "btn btn";
    padding: 0 10px 10px;
  }
  .proposed_item [itemprop="offers"] ~ .cbp-l-grid-projects-title { margin-top: 6px; }
  .proposed_item .btn-custom { width: 100%; }
}

/* badges */
.proposed_item .badge-sale,
.proposed_item .badge-new {
  top: 10px; height: 24px; line-height: 24px; width: auto;
  padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
.proposed_item .badge-sale { right: 10px; background: var(--p4u-sale); }
.proposed_item .badge-new  { left: 10px;  background: var(--p4u-ink); }

/* ---------- Partner brands strip ---------- */
.cbp-l-clients-title-block {
  border-bottom: 1px solid var(--p4u-line);
  color: var(--p4u-muted);
  font-size: 13px; letter-spacing: .04em;
  padding-bottom: 8px;
}

/* ---------- Newsletter ---------- */
.newsletter { background: var(--p4u-surface); }
.newsletter .subscribe .form-control {
  border-color: #cfd6c8; background: #fff;
  border-radius: 999px 0 0 999px; padding-left: 22px; font-size: 14px;
}
.newsletter .subscribe .btn {
  border-color: var(--p4u-green-deep); background: var(--p4u-green-deep); color: #fff;
  border-radius: 0 999px 999px 0;
}
.newsletter .subscribe .btn:hover { background: #3f6a1a; }
.newsletter .newsletter_text p { color: var(--p4u-muted); }

/* ---------- Footer: same green, one consistent dark text color ---------- */
footer .footer .title,
footer .footer .title:hover {
  color: var(--p4u-ink); font-weight: 500; font-size: 15px;
  border-bottom: 0;
}
footer .footer .element,
footer .footer .element a { color: var(--p4u-ink); font-size: 14px; }
footer .footer .element a:hover { color: #000; font-weight: 400; text-decoration: underline; }
footer .copyright { border-top-color: rgba(0,0,0,.12); color: var(--p4u-ink); }
footer .copyright a, footer .copyright a:hover { color: var(--p4u-ink); }

/* ---------- Floating buttons ---------- */
.to-top, .contact_bottom {
  border-radius: 999px; width: 44px; height: 44px; line-height: 44px;
  bottom: 18px; background-color: var(--p4u-green-deep);
}
.to-top { right: 76px; }
.contact_bottom i, .to-top i { margin-top: 0; }

/* ---------- Accessibility: keep focus visible for keyboard users ---------- */
a:focus-visible, button:focus-visible, .cbp-filter-item:focus-visible {
  outline: 2px solid var(--p4u-green-deep) !important;
  outline-offset: 2px;
}

/* =========================================================
   OPTIONAL – white menu bar instead of the green one.
   Untested against flexmenu.min.css (not shared yet); try it
   on a staging copy first, then uncomment.
   ========================================================= */
/*
#navigation, #flexmenu { background: #fff !important; border-top: 1px solid var(--p4u-line); border-bottom: 1px solid var(--p4u-line); }
#flexmenu > li > a { color: var(--p4u-ink) !important; }
#flexmenu > li > a:hover { color: var(--p4u-green-deep) !important; }
*/

/* =========================================================
   FRONT PAGE SECTIONS (benefits bar, promos, shop by pet)
   ========================================================= */
.p4u-wrap { max-width: 1300px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
.p4u-section-title {
  font: 500 20px/26px Roboto, sans-serif; color: var(--p4u-ink);
  margin: 0 0 16px;
}

/* Benefits bar */
.p4u-benefits { background: var(--p4u-surface); border-bottom: 1px solid var(--p4u-line); }
.p4u-benefits__list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px;
  padding-top: 12px; padding-bottom: 12px;
}
.p4u-benefit, .p4u-pet, .p4u-promo { text-decoration: none !important; }
.p4u-benefit {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font: 400 14px/19px Roboto, sans-serif; color: var(--p4u-ink);
}
.p4u-benefit:hover, .p4u-benefit:focus { color: var(--p4u-ink); text-decoration: none; }
.p4u-benefit:hover strong { text-decoration: underline; }
.p4u-benefit strong { font-weight: 500; display: block; }
.p4u-benefit span { color: var(--p4u-muted); }
.p4u-benefit strong { color: var(--p4u-ink); }
.p4u-benefit .fa { font-size: 22px; color: var(--p4u-green-deep); flex: 0 0 auto; }

/* Promos: 1 large + 2 half */
.p4u-promos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 20px;
}
.p4u-promo { display: block; border-radius: var(--p4u-radius); overflow: hidden; background: var(--p4u-surface); }
.p4u-promo--main { grid-column: 1 / -1; }
.p4u-promo img { display: block; width: 100%; height: auto; aspect-ratio: 1300 / 400; object-fit: cover; }

/* Shop by pet */
.p4u-pets { margin-top: 40px; }
.p4u-pets__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
}
.p4u-pet {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 18px 8px 16px;
  border: 1px solid var(--p4u-line); border-radius: var(--p4u-radius);
  background: #fff; text-align: center;
  transition: border-color .2s ease, background-color .2s ease;
}
.p4u-pet:hover, .p4u-pet:focus { border-color: var(--p4u-green); background: var(--p4u-surface); text-decoration: none; }
.p4u-pet__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--p4u-green);
  display: flex; align-items: center; justify-content: center;
}
.p4u-pet__icon img { width: 36px; height: 36px; object-fit: contain; }
.p4u-pet__name { font: 500 14px/18px Roboto, sans-serif; color: var(--p4u-ink); }

/* Tablets */
@media (max-width: 991px) {
  .p4u-benefits__list { grid-template-columns: 1fr; justify-items: start; }
  .p4u-benefit { justify-content: flex-start; }
  .p4u-benefit strong { display: inline; }
  .p4u-pets__grid { grid-template-columns: repeat(3, 1fr); }
}
/* Phones */
@media (max-width: 600px) {
  .p4u-benefit { font-size: 13px; line-height: 17px; }
  .p4u-promos { grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
  .p4u-pets { margin-top: 28px; }
  .p4u-pet__icon { width: 52px; height: 52px; }
  .p4u-pet__icon img { width: 30px; height: 30px; }
  .p4u-pet__name { font-size: 13px; }
}

/* =========================================================
   FRONT PAGE PRODUCTS (preview): CSS grid, rows always full
   ========================================================= */
.p4u-wrap--wide { max-width: 1640px; }
.p4u-products { margin-top: 44px; }

.p4u-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin-bottom: 24px; }
.p4u-tab {
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 6px 2px; font: 500 15px/22px Roboto, sans-serif; color: var(--p4u-muted);
  cursor: pointer;
}
.p4u-tab:hover { color: var(--p4u-ink); }
.p4u-tab[aria-selected="true"] { color: var(--p4u-ink); border-bottom-color: var(--p4u-green); }

.p4u-grid { display: grid; gap: 20px; grid-template-columns: repeat(5, 1fr); }
.p4u-grid[hidden] { display: none; }

.p4u-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--p4u-line); border-radius: var(--p4u-radius);
  padding: 12px 14px 14px; transition: border-color .2s ease;
  font-family: Roboto, sans-serif;
}
.p4u-card:hover { border-color: #c9d3bf; }
.p4u-card__img { display: block; margin-bottom: 10px; }
.p4u-card__img img { display: block; width: 100%; height: auto; aspect-ratio: 330 / 240; object-fit: contain; }

.p4u-card__brand {
  font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .03em; color: var(--p4u-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p4u-card__name { margin: 2px 0 0; font-size: 14px; line-height: 19px; font-weight: 500; }
.p4u-card__name a {
  color: var(--p4u-ink); text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.p4u-card__name a:hover { color: var(--p4u-green-deep); }
.p4u-card__desc {
  margin-top: 2px; font-size: 13px; line-height: 17px; color: var(--p4u-muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* price + button always at the bottom; cards in a row share the same height */
.p4u-card__buy {
  margin-top: auto; padding-top: 12px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.p4u-price-old { display: block; font-size: 12px; line-height: 14px; color: #9aa196; }
.p4u-price { font-size: 17px; line-height: 22px; font-weight: 700; color: var(--p4u-ink); }
.p4u-price--sale { color: var(--p4u-sale); }
.p4u-buy {
  background: var(--p4u-green-deep); color: #fff; border: 0; border-radius: 999px;
  padding: 7px 16px; font: 500 13px/18px Roboto, sans-serif; cursor: pointer;
}
.p4u-buy:hover, .p4u-buy:focus { background: #3f6a1a; }

.p4u-badge {
  position: absolute; top: 10px; height: 24px; line-height: 24px; padding: 0 9px;
  border-radius: 999px; font: 700 12px/24px Roboto, sans-serif; color: #fff; z-index: 2;
}
.p4u-badge--sale { right: 10px; background: var(--p4u-sale); }
.p4u-badge--new  { left: 10px;  background: var(--p4u-ink); }

/* ---- Full rows only ----
   For C columns: take the first card of the last row (child C*n+1, but not the
   very first card); if fewer than C cards follow it, the row is incomplete, so it
   and all cards after it are hidden. With a single row nothing is hidden.
   Each column count lives in its own screen-width range so the rules never mix. */
@media (min-width: 1400px) {
  .p4u-grid { grid-template-columns: repeat(5, 1fr); }
  .p4u-card:nth-child(5n+1):not(:first-child):nth-last-child(-n+4),
  .p4u-card:nth-child(5n+1):not(:first-child):nth-last-child(-n+4) ~ .p4u-card { display: none; }
}
@media (min-width: 1100px) and (max-width: 1399.98px) {
  .p4u-grid { grid-template-columns: repeat(4, 1fr); }
  .p4u-card:nth-child(4n+1):not(:first-child):nth-last-child(-n+3),
  .p4u-card:nth-child(4n+1):not(:first-child):nth-last-child(-n+3) ~ .p4u-card { display: none; }
}
@media (min-width: 700px) and (max-width: 1099.98px) {
  .p4u-grid { grid-template-columns: repeat(3, 1fr); }
  .p4u-card:nth-child(3n+1):not(:first-child):nth-last-child(-n+2),
  .p4u-card:nth-child(3n+1):not(:first-child):nth-last-child(-n+2) ~ .p4u-card { display: none; }
}
@media (max-width: 699.98px) {
  .p4u-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .p4u-card { padding: 10px; }
  .p4u-buy { width: 100%; }
  .p4u-tabs { gap: 4px 18px; }
  .p4u-card:nth-child(2n+1):not(:first-child):nth-last-child(-n+1),
  .p4u-card:nth-child(2n+1):not(:first-child):nth-last-child(-n+1) ~ .p4u-card { display: none; }
}

/* =========================================================
   INTRO SLIDE-IN (replaces the full-screen intro modal)
   ========================================================= */
.p4u-slidein {
  position: fixed; left: 20px; bottom: 20px; z-index: 1000;
  width: 320px; max-width: calc(100vw - 24px);
  background: #fff; border: 1px solid var(--p4u-line); border-radius: var(--p4u-radius);
  box-shadow: 0 8px 28px rgba(38, 48, 42, .18);
  overflow: hidden; font-family: Roboto, sans-serif;
  transform: translateY(16px); opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.p4u-slidein[hidden] { display: none; }
.p4u-slidein.is-open { transform: none; opacity: 1; }

.p4u-slidein__close {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--p4u-ink);
  font-size: 24px; line-height: 36px; cursor: pointer;
}
.p4u-slidein__close:hover { background: var(--p4u-surface); }

.p4u-slidein__photo { display: block; width: 100%; height: auto; max-height: 160px; object-fit: cover; }
.p4u-slidein__body { display: flex; gap: 12px; padding: 14px 16px 16px; align-items: flex-start; }
.p4u-slidein__thumb { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.p4u-slidein__text p { margin: 0; }
.p4u-slidein__title { font-size: 16px; line-height: 21px; font-weight: 500; color: var(--p4u-ink); padding-right: 24px; }
.p4u-slidein__note { font-size: 13px; line-height: 18px; color: var(--p4u-muted); margin-top: 4px !important; }
.p4u-slidein__code { font-size: 13px; line-height: 18px; color: var(--p4u-muted); margin-top: 6px !important; }
.p4u-slidein__code strong { color: var(--p4u-green-deep); font-weight: 700; letter-spacing: .04em; }
.p4u-slidein__copy {
  margin-left: 6px; padding: 2px 8px; border: 1px solid var(--p4u-line); border-radius: 999px;
  background: #fff; font-size: 12px; color: var(--p4u-ink); cursor: pointer;
}
.p4u-slidein__cta {
  display: inline-block; margin-top: 10px; padding: 7px 16px; border: 0; border-radius: 999px;
  background: var(--p4u-green-deep); color: #fff !important; text-decoration: none !important;
  font: 500 13px/18px Roboto, sans-serif; cursor: pointer;
}
.p4u-slidein__cta:hover { background: #3f6a1a; }

/* Phones: slim strip at the bottom, no big photo; floating buttons move above it */
@media (max-width: 600px) {
  .p4u-slidein { left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; }
  .p4u-slidein__photo { display: none; }
  .p4u-slidein__body { padding: 12px 14px; }
  .p4u-slidein__thumb { width: 48px; height: 48px; }
  .p4u-slidein__title { font-size: 15px; line-height: 20px; }
  .p4u-slidein-open .to-top,
  .p4u-slidein-open .contact_bottom { bottom: calc(var(--p4u-slidein-h, 0px) + 18px); }
}

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

/* Shop by pet: tiles are buttons that open a subcategory panel */
button.p4u-pet { width: 100%; font: inherit; cursor: pointer; }
.p4u-pet[aria-expanded="true"] { border-color: var(--p4u-green); background: var(--p4u-surface); }

/* Each group is as wide as its longest link, so names stay on one line;
   groups flow onto a new row when there is no room. */
.p4u-pet-panel {
  margin-top: 12px; padding: 20px 24px;
  border: 1px solid var(--p4u-line); border-radius: var(--p4u-radius); background: var(--p4u-surface);
  display: flex; flex-wrap: wrap; gap: 18px 40px;
}
.p4u-pet-panel[hidden] { display: none; }
.p4u-pet-panel__group { flex: 0 1 auto; min-width: 160px; max-width: 100%; }
.p4u-pet-panel__title { margin: 0 0 6px; font: 500 15px/20px Roboto, sans-serif; color: var(--p4u-ink); white-space: nowrap; }
.p4u-pet-panel ul { list-style: none; margin: 0; padding: 0; }
.p4u-pet-panel li a {
  display: block; padding: 4px 0; font: 400 14px/19px Roboto, sans-serif;
  color: var(--p4u-muted); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; /* "…" only if wider than the whole panel */
}
.p4u-pet-panel li a:hover { color: var(--p4u-green-deep); text-decoration: underline; }

/* Phones: one full-width column (two columns would force wrapping);
   very long names may wrap here rather than be cut, so nothing is hidden on touch screens */
@media (max-width: 600px) {
  .p4u-pet-panel { padding: 16px; flex-direction: column; gap: 14px; }
  .p4u-pet-panel__group { min-width: 0; }
  .p4u-pet-panel li a { padding: 6px 0; white-space: normal; }
}

/* =========================================================
   HEADER + MENU (preview)
   ========================================================= */
.p4u-header { background: #fff; border-bottom: 1px solid var(--p4u-line); position: relative; z-index: 900; font-family: Roboto, sans-serif; }
.p4u-header__top {
  display: grid; align-items: center; gap: 12px 28px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "logo search actions";
  padding-top: 12px; padding-bottom: 12px;
}
.p4u-header .p4u-burger { display: none; grid-area: burger; }
.p4u-logo { grid-area: logo; display: block; line-height: 0; }
.p4u-logo img { height: 64px; width: auto; }

/* search */
.p4u-search { grid-area: search; position: relative; max-width: 620px; width: 100%; justify-self: center; }
.p4u-search__form {
  display: flex; align-items: center; gap: 10px; margin: 0;
  height: 44px; padding: 0 16px; border: 1px solid #cfd6c8; border-radius: 999px; background: var(--p4u-surface);
  transition: border-color .2s ease, background-color .2s ease;
}
.p4u-search__form:focus-within { border-color: var(--p4u-green-deep); background: #fff; }
.p4u-search__form .fa { color: var(--p4u-muted); font-size: 16px; }
.p4u-search__form input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: 400 15px/20px Roboto, sans-serif; color: var(--p4u-ink);
}
.p4u-search__results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 950;
  max-height: 70vh; overflow-y: auto; background: #fff;
  border: 1px solid var(--p4u-line); border-radius: var(--p4u-radius);
  box-shadow: 0 12px 32px rgba(38, 48, 42, .16); padding: 8px; font-size: 14px;
}

/* icon buttons */
.p4u-actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }
.p4u-iconbtn {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 44px; height: 48px; padding: 0 8px; border: 0; background: none; border-radius: 8px;
  color: var(--p4u-ink); text-decoration: none !important; cursor: pointer;
}
.p4u-iconbtn:hover, .p4u-iconbtn:focus { color: var(--p4u-green-deep); background: var(--p4u-surface); }
.p4u-iconbtn .fa { font-size: 20px; line-height: 22px; }
.p4u-iconbtn__label { font-size: 11px; line-height: 14px; margin-top: 2px; color: var(--p4u-muted); }

/* cart */
.p4u-cart { position: relative; }
.p4u-cart__badge {
  position: absolute; top: 2px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--p4u-sale); color: #fff;
  font: 700 11px/18px Roboto, sans-serif; text-align: center;
}
.p4u-cart__panel {
  display: none; position: absolute; right: 0; top: 100%; z-index: 950;
  width: 380px; max-width: 90vw; padding-top: 8px;
}
.p4u-cart__panel .cart {
  background: #fff; border: 1px solid var(--p4u-line); border-radius: var(--p4u-radius);
  box-shadow: 0 12px 32px rgba(38, 48, 42, .16); padding: 10px; max-height: 60vh;
}
@media (min-width: 992px) {
  .p4u-cart:hover .p4u-cart__panel, .p4u-cart:focus-within .p4u-cart__panel { display: block; }
}

/* category bar */
.p4u-nav { border-top: 1px solid var(--p4u-line); }
.p4u-nav__inner { display: flex; align-items: center; justify-content: space-between; position: relative; }
.p4u-nav__list, .p4u-nav__extra { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.p4u-nav__btn, .p4u-nav__extra a {
  display: inline-flex; align-items: center; gap: 6px;
  height: 48px; padding: 0 16px; border: 0; background: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font: 500 15px/20px Roboto, sans-serif; color: var(--p4u-ink); cursor: pointer;
  text-decoration: none !important; white-space: nowrap;
}
.p4u-nav__list > li:first-child .p4u-nav__btn { padding-left: 0; }
.p4u-nav__btn .fa { color: var(--p4u-muted); transition: transform .2s ease; }
.p4u-nav__btn:hover, .p4u-nav__extra a:hover { color: var(--p4u-green-deep); }
.p4u-nav__item.is-open .p4u-nav__btn { border-bottom-color: var(--p4u-green); color: var(--p4u-green-deep); }
.p4u-nav__item.is-open .p4u-nav__btn .fa { transform: rotate(180deg); }
.p4u-nav__extra a { color: var(--p4u-muted); font-weight: 400; padding: 0 0 0 20px; }

/* mega panel: groups as wide as their content, like the pet panel */
.p4u-mega {
  display: none; position: absolute; left: 16px; right: 16px; top: 100%;
  padding: 22px 28px; background: #fff;
  border: 1px solid var(--p4u-line); border-top: 0; border-radius: 0 0 var(--p4u-radius) var(--p4u-radius);
  box-shadow: 0 16px 32px rgba(38, 48, 42, .12);
  flex-wrap: wrap; gap: 18px 44px; z-index: 940;
}
.p4u-nav__item.is-open .p4u-mega { display: flex; }
html:not(.p4u-js) .p4u-nav__item:hover .p4u-mega,
html:not(.p4u-js) .p4u-nav__item:focus-within .p4u-mega { display: flex; } /* works even if scripts fail */
.p4u-mega__group { flex: 0 1 auto; min-width: 150px; max-width: 100%; }
.p4u-mega__title { font: 500 15px/20px Roboto, sans-serif; color: var(--p4u-ink); margin-bottom: 6px; white-space: nowrap; }
.p4u-mega ul { list-style: none; margin: 0; padding: 0; }
.p4u-mega li a {
  display: block; padding: 4px 0; font: 400 14px/19px Roboto, sans-serif; color: var(--p4u-muted);
  text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p4u-mega li a:hover { color: var(--p4u-green-deep); text-decoration: underline; }

/* drawer */
.p4u-drawer { position: fixed; inset: 0; z-index: 1050; visibility: hidden; }
.p4u-drawer.is-open { visibility: visible; }
.p4u-drawer__backdrop { position: absolute; inset: 0; background: rgba(38, 48, 42, .45); opacity: 0; transition: opacity .25s ease; }
.p4u-drawer.is-open .p4u-drawer__backdrop { opacity: 1; }
.p4u-drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(86vw, 360px);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(-100%); transition: transform .25s ease;
  font-family: Roboto, sans-serif;
}
.p4u-drawer.is-open .p4u-drawer__panel { transform: none; }
.p4u-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--p4u-line);
  font: 500 17px/22px Roboto, sans-serif; color: var(--p4u-ink);
}
.p4u-drawer__body { overflow-y: auto; padding: 8px 0 24px; }
.p4u-acc { border-bottom: 1px solid var(--p4u-line); }
.p4u-acc summary {
  list-style: none; cursor: pointer; padding: 14px 20px;
  font: 500 16px/22px Roboto, sans-serif; color: var(--p4u-ink);
  display: flex; justify-content: space-between; align-items: center;
}
.p4u-acc summary::-webkit-details-marker { display: none; }
.p4u-acc summary::after { content: "+"; font-size: 20px; color: var(--p4u-muted); }
.p4u-acc[open] summary::after { content: "–"; }
.p4u-acc__group { padding: 0 20px 12px; }
.p4u-acc__title { font: 500 14px/20px Roboto, sans-serif; color: var(--p4u-green-deep); margin: 4px 0; }
.p4u-acc ul, .p4u-drawer__links { list-style: none; margin: 0; padding: 0; }
.p4u-acc li a { display: block; padding: 8px 0; font: 400 15px/20px Roboto, sans-serif; color: var(--p4u-ink); text-decoration: none; }
.p4u-drawer__links { padding: 12px 20px 0; }
.p4u-drawer__links a { display: block; padding: 10px 0; font: 400 15px/20px Roboto, sans-serif; color: var(--p4u-muted); text-decoration: none; }
html.p4u-noscroll, html.p4u-noscroll body { overflow: hidden; }

/* tablets & phones: burger + drawer, search on its own row */
@media (max-width: 991.98px) {
  .p4u-nav { display: none; }
  .p4u-header .p4u-burger { display: inline-flex; }
  .p4u-header__top {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "burger logo actions" "search search search";
    padding-top: 6px; padding-bottom: 10px; gap: 6px 8px;
  }
  .p4u-logo img { height: 46px; }
  .p4u-search { max-width: none; }
  .p4u-iconbtn__label { display: none; }
  .p4u-iconbtn { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .p4u-drawer__panel, .p4u-drawer__backdrop, .p4u-nav__btn .fa { transition: none; }
}

/* ---- Menu bar in brand green (eye-catching, dark text for readability) ---- */
.p4u-nav { background: var(--p4u-green); border-top: 0; }
.p4u-nav__btn, .p4u-nav__extra a {
  color: var(--p4u-ink); border-bottom: 0; margin-bottom: 0;
  border-radius: 8px 8px 0 0; transition: background-color .15s ease;
}
.p4u-nav__list > li:first-child .p4u-nav__btn { padding-left: 16px; }
.p4u-nav__btn .fa { color: var(--p4u-ink); opacity: .7; }
.p4u-nav__btn:hover, .p4u-nav__extra a:hover { color: var(--p4u-ink); background: rgba(255, 255, 255, .3); }
/* the open item becomes a white tab joined to the white dropdown */
.p4u-nav__item.is-open .p4u-nav__btn { background: #fff; color: var(--p4u-green-deep); }
.p4u-nav__item.is-open .p4u-nav__btn .fa { color: var(--p4u-green-deep); opacity: 1; }
.p4u-nav__extra a { color: var(--p4u-ink); padding: 0 12px; }
.p4u-mega { border-top: 0; border-color: #dfe5d8; }

/* ---- Mini-cart: its content was written for a dark dropdown (white text) ---- */
.p4u-cart__panel .cart,
.p4u-cart__panel .cart :not(.btn):not(.btn *) { color: var(--p4u-ink) !important; }
.p4u-cart__panel .cart a:not(.btn):hover { color: var(--p4u-green-deep) !important; }
.p4u-cart__panel .cart::-webkit-scrollbar-thumb { background-color: rgba(79, 127, 35, .45); }

/* ---- Category icons (same images as the old menu, decorative) ---- */
.p4u-nav__icon { width: 22px; height: 22px; object-fit: contain; flex: 0 0 auto; }
.p4u-nav__btn { gap: 8px; }
.p4u-acc__label { display: inline-flex; align-items: center; gap: 10px; }
/* narrower desktops: tighter spacing so the bar stays on one line */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .p4u-nav__btn { padding: 0 10px; font-size: 14px; gap: 6px; }
  .p4u-nav__list > li:first-child .p4u-nav__btn { padding-left: 10px; }
  .p4u-nav__extra a { padding: 0 8px; font-size: 14px; }
}

/* Empty cart: tapping the cart icon opens the small panel (all screen sizes) */
.p4u-cart.is-open .p4u-cart__panel { display: block; }
.p4u-cart__empty { margin: 6px 4px; font-size: 14px; }

/* ---- Mini-cart: keep long totals (e.g. 140.00 €) fully visible ----
   The content uses Bootstrap rows, whose negative side margins pushed the
   right edge outside the scrolling box, so it got cropped. */
.p4u-cart__panel { width: 420px; max-width: calc(100vw - 16px); }
.p4u-cart__panel .cart { padding: 10px 14px; overflow-x: hidden; box-sizing: border-box; }
.p4u-cart__panel .cart .row { margin-left: 0; margin-right: 0; }
.p4u-cart__panel .cart [class*="col-"] { padding-left: 6px; padding-right: 6px; }
.p4u-cart__panel .cart img { max-width: 100%; height: auto; }
@media (max-width: 991.98px) {
  .p4u-cart { position: static; }                       /* panel aligns to the header edge on phones */
  .p4u-cart__panel { right: 8px; left: auto; top: 54px; }
}

/* ---- Mini-cart rows: no green background on hover ----
   Calm list with hairline dividers; hover only tints the text. */
.p4u-cart__panel .small_cart_row,
.p4u-cart__panel .small_cart_row:hover { background: transparent !important; }
.p4u-cart__panel .small_cart_row {
  padding-top: 10px; padding-bottom: 10px;
  border-bottom: 1px solid var(--p4u-line);
  transition: color .15s ease;
}
.p4u-cart__panel .small_cart_row:hover,
.p4u-cart__panel .small_cart_row:hover :not(.btn):not(.btn *) { color: var(--p4u-green-deep) !important; }

/* Single random promo */
.p4u-promos--single { grid-template-columns: 1fr; }

/* =========================================================
   FOOTER (preview) – brand green, dark text, left-aligned
   ========================================================= */
footer:has(.p4u-footer) { padding: 0; background: var(--p4u-green); }
.p4u-footer { color: var(--p4u-ink); font-family: Roboto, sans-serif; }
.p4u-footer a { color: var(--p4u-ink); text-decoration: none; }
.p4u-footer a:hover { text-decoration: underline; color: #000; }

.p4u-footer__grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 32px 40px;
  padding-top: 44px; padding-bottom: 36px;
}
.p4u-footer__logo { display: inline-block; line-height: 0; }
.p4u-footer__logo img { height: 56px; width: auto; }
.p4u-footer__tagline { margin: 12px 0 16px; font-size: 14px; line-height: 20px; }

.p4u-footer__social { display: flex; gap: 8px; margin-bottom: 18px; }
.p4u-footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .35); font-size: 17px; text-decoration: none !important;
  transition: background-color .15s ease;
}
.p4u-footer__social a:hover { background: #fff; }
.p4u-footer__partner { display: inline-block; line-height: 0; }

.p4u-footer__title { margin: 6px 0 14px; font: 500 15px/20px Roboto, sans-serif; color: var(--p4u-ink); }
.p4u-footer__col ul { list-style: none; margin: 0; padding: 0; }
.p4u-footer__col li { font-size: 14px; line-height: 20px; padding: 4px 0; }

.p4u-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.p4u-footer__contact .fa { width: 16px; text-align: center; margin-top: 3px; opacity: .75; flex: 0 0 auto; }

.p4u-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-top: 16px; padding-bottom: 18px; border-top: 1px solid rgba(38, 48, 42, .15);
}
.p4u-footer__bottom p { margin: 0; font-size: 13px; line-height: 18px; }
.p4u-footer__pay { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.p4u-footer__pay a { display: block; line-height: 0; background: #fff; border-radius: 5px; padding: 3px; }
.p4u-footer__pay img { width: 40px; height: 25px; object-fit: contain; }

@media (max-width: 991.98px) {
  .p4u-footer__grid { grid-template-columns: 1fr 1fr; }
  .p4u-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .p4u-footer__grid { gap: 28px 20px; padding-top: 32px; }
  .p4u-footer__col:last-child { grid-column: 1 / -1; }
  .p4u-footer__col li { padding: 7px 0; }              /* larger tap targets */
  .p4u-footer__bottom { justify-content: center; text-align: center; }
  .p4u-footer__pay { justify-content: center; }
  footer:has(.p4u-footer) { padding-bottom: 64px; }  /* room for the floating buttons */
}
