@media (max-width: 767px) {
  /* G1 root-cause fix: quiz.css enqueues a global `body { min-width: 1440px }`
     that leaks to every page and forces 1440px horizontal overflow on mobile.
     `html body` outranks quiz.css's bare `body` selector regardless of load order. */
  html body {
    min-width: 0;
  }

  .desktop-announcement,
  .header-desktop,
  .hero-desktop,
  .hero-services-desktop,
  .benefits-strip-desktop,
  .categories-desktop,
  .promo-banners-desktop,
  .featured-products-desktop,
  .promo-cta-desktop,
  .solutions-desktop,
  .hotspot-discovery-desktop,
  .doctors-strip-desktop,
  .prebuy-content-desktop,
  .trust-proof-desktop,
  .faq-desktop,
  .site-footer-desktop {
    display: none !important;
  }

  .header-mobile,
  .hero-mobile,
  .hero-services-mobile,
  .benefits-strip-mobile,
  .categories-mobile,
  .promo-banners-mobile,
  .featured-products-mobile,
  .promo-cta-mobile,
  .solutions-mobile,
  .hotspot-discovery-mobile,
  .doctors-strip-mobile,
  .prebuy-content-mobile,
  .trust-proof-mobile,
  .faq-mobile,
  .site-footer-mobile {
    display: block;
  }

  /* The mobile announcement inner is a flex row (arrows + message). A plain
     display:block stacks its children vertically and pushes the text below the
     40px clipped bar, so it looked empty. Keep it flex on mobile. */
  .mobile-announcement {
    display: flex;
  }

  .categories-page__hero {
    height: 100px;
  }

  .categories-page__hero h1 {
    font-size: 24px;
    line-height: 32px;
  }

  .categories-page__body {
    padding: 30px 12px 24px;
  }

  .categories-page__grid {
    width: 342px;
    max-width: 100%;
    grid-template-columns: repeat(2, 161px);
    gap: 20px;
  }

  .categories-page__card {
    width: 161px;
    min-height: 259px;
  }

  .categories-page__card img {
    width: 161px;
    height: 203px;
  }

  .categories-page__name {
    width: 161px;
    margin-top: 12px;
    font-size: 16px;
    line-height: 24px;
  }

  .categories-page__count {
    width: 161px;
    margin-top: 0;
    font-size: 14px;
    line-height: 20px;
  }

  .categories-page__card--scale {
    order: 1;
  }

  .categories-page__card--mother-baby {
    order: 2;
  }

  .categories-page__card--glucose {
    order: 3;
  }

  .categories-page__card--blood-pressure {
    order: 4;
  }

  .categories-page__card--thermometers {
    order: 5;
  }

  .categories-page__card--air-pressure {
    order: 6;
  }

  .categories-page__card--breathing {
    order: 7;
  }

  .categories-page__card--nebulizer {
    order: 8;
  }

  .categories-page__card--sleep-disorders {
    order: 9;
  }

  .categories-page__card--massage {
    order: 10;
  }

  .categories-page__card--heating-pads {
    order: 11;
  }

  .categories-page__card--medical-mattresses {
    order: 12;
  }

  .categories-page__card--stethoscopes {
    order: 13;
  }

  .categories-page__card--surgical-suction {
    grid-column: auto;
    order: 14;
  }

  .plp-hero {
    height: 94px;
  }

  .plp-hero h1 {
    width: 100%;
    padding-inline: 16px;
    font-size: 0;
    line-height: 28px;
  }

  .plp-hero h1::before {
    content: attr(data-mobile-title);
    font-size: 20px;
  }

  .plp-breadcrumb {
    display: none;
  }

  .plp-content {
    padding: 20px 16px 0;
    overflow: hidden;
  }

  .plp-category-strip {
    width: calc(100% + 32px);
    margin-inline: -16px;
    padding: 0 16px 18px;
    border-bottom: 0;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    direction: rtl;
  }

  .plp-category-strip::-webkit-scrollbar {
    display: none;
  }

  .plp-category {
    width: 106px;
    min-width: 106px;
    min-height: 152px;
  }

  .plp-category--active {
    order: -1;
  }

  .plp-category img {
    width: 106px;
    height: 106px;
  }

  .plp-category__name {
    width: 106px;
    margin-top: 8px;
    font-size: 13px;
    line-height: 20px;
  }

  .plp-category__count {
    display: none;
  }

  .plp-layout {
    width: 100%;
    margin-top: 0;
    display: flex;
    flex-direction: column;
  }
  /* .plp-filter has order:-1, so when revealed it sits above the products
     (right under the controls) instead of at the very bottom of the page. */

  .plp-products {
    width: 100%;
    padding-left: 0;
  }

  /* Sort + filter are hidden by default and revealed by the mobile pill
     buttons (.plp-mobile-controls). Pagination stays visible on mobile. */
  .plp-toolbar,
  .plp-filter {
    display: none;
  }

  .plp-mobile-controls {
    order: -2;                 /* keep the pill above the filter/sort panels */
    height: 38px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
  }

  .plp-mobile-controls button {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--blue-850);
    font-size: 14px;
    font-weight: 700;
  }

  .plp-mobile-controls > span {
    width: 1px;
    height: 22px;
    background: #e2e8f0;
  }

  .plp-grid {
    grid-template-columns: repeat(2, 167px);
    justify-content: center;
    gap: 20px 9px;
  }

  .home-search {
    z-index: 99999;
  }

  .home-search__surface {
    top: 150px;
    z-index: 99999;
    min-height: calc(100vh - 150px);
    padding: 24px 17px 32px;
    display: block;
    background: #fff;
    box-shadow: none;
    direction: ltr;
  }

  .home-search__popular {
    width: 100%;
    margin: 0 0 26px;
    gap: 8px;
  }

  .home-search__popular h2 {
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
  }

  .home-search__popular button {
    min-height: 16px;
    gap: 5px;
    font-size: 14px;
    line-height: 16px;
  }

  .home-search__popular button img {
    width: 16px;
    height: 16px;
  }

  .home-search__results {
    width: 100%;
  }

  .home-search__grid {
    width: 293px;
    margin-inline: auto;
    grid-template-columns: repeat(3, 87px);
    gap: 20px 16px;
  }

  .home-search__card {
    width: 87px;
    min-height: 119px;
    gap: 6px;
  }

  .home-search__photo {
    width: 87px;
    height: 86px;
    border-radius: 2px;
  }

  .home-search__photo img {
    width: 87px;
    height: 86px;
  }

  .home-search__title {
    width: 87px;
    font-size: 12px;
    line-height: 16px;
  }

  .home-search__empty {
    margin-top: 18px;
    font-size: 14px;
    line-height: 20px;
  }
}

/* =====================================================================
   Home mobile — Figma-accurate fixes (UI Design - Mobile, 375px frame)
   Each section verified against Figma node 9476:60588
   ===================================================================== */
@media (max-width: 767px) {
  /* ---- Hero mobile : height follows the banner ratio so the full image shows ---- */
  .hero-mobile { height: auto; }
  .hero-mobile__image { height: auto; aspect-ratio: 375 / 442; }

  .hero-mobile__content h1 {            /* title: GE SS Two Bold 20/28 #1d3d7c, w284, top24 */
    width: 284px;
    color: #1d3d7c;
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
  }
  .hero-mobile__content p {             /* subtitle: Medium 16/24, w299 (Figma) */
    width: 299px;
    color: rgba(29, 61, 124, 0.8);
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
  }

  /* ---- Trust/offers bar (hero "Top bar" 9476:56501) : h52, py8, base 16/24 ---- */
  .hero-services-mobile {
    padding-block: 14px !important;     /* -> ~52px tall (was 18) */
    padding-inline: 16px;
  }
  .hero-services__inner--mobile { gap: 24px; }      /* between items (Figma 24) */
  .hero-services__item--mobile { gap: 6px; }        /* icon <-> text (Figma 6, was 12) */
  .hero-services__item--mobile .hero-services__label {
    font-size: 16px;                    /* Figma base (was 14) */
    line-height: 24px;                  /* (was 20) */
    color: #1d3d7c;
  }
}

/* =====================================================================
   Home mobile — section layout fixes (cont.)  node 9476:60588
   ===================================================================== */
@media (max-width: 767px) {
  /* ---- Stats / benefits 2x2 (9476:60593): cols 115 @ x40.5/x219.5, gap 64 ---- */
  .benefits-strip__mobile-grid {
    justify-content: center;   /* was space-between → spread cols to 79px gap */
    row-gap: 30px;             /* Figma row pitch (was 32) */
  }

  /* ---- Product cards: featured + best-sellers (9476:60739/60764) ---- */
  .fp-grid--mobile { row-gap: 10px; }                       /* tight, uniform row gap */
  .fp-card--discount.fp-card--mobile { min-height: 0; }     /* grow to content — no dead space */

  /* ---- Doctors strip (9476:60814): card 193, pitch 205 → gap 12 ---- */
  .doctors-strip__grid--mobile { gap: 12px; }               /* was 8 */
}

/* =====================================================================
   Mobile fixes — interior pages (PLP / Favorites)  nodes 8608:48181, 8608:49122
   ===================================================================== */
@media (max-width: 767px) {
  /* PLP hero band: Figma 100px / category card h154 (micro) */
  .plp-hero { height: 100px; }
  .plp-category { min-height: 154px; }

  /* Favorites: was 5-col 237px (desktop) with NO mobile rule -> overflowed.
     Figma Fav mobile (8608:49122) = standard product card grid 2x167, gap 9/20 */
  .favorites-grid {
    width: 343px;
    max-width: 100%;
    margin-inline: auto;
    grid-template-columns: repeat(2, 167px);
    justify-content: center;
    gap: 20px 9px;
    direction: rtl;
  }
  .favorites-card.fp-card { width: 167px; min-height: 416px; }
  .favorites-card .fp-media { height: 180px; }
  .favorites-card .fp-media-frame { height: 180px; }
  .favorites-card__remove { width: 32px; height: 32px; }
}

/* =====================================================================
   Functional components on mobile  (mini-cart drawer)
   ===================================================================== */
@media (max-width: 767px) {
  /* mini-cart drawer was fixed 385px (>375 viewport) -> cap to full width */
  .mini-cart {
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
  }
}

/* =====================================================================
   Cart mobile (8608:49154) — was fixed 1304px 2-col grid (overflowed).
   Stack to single column, items above summary, full width.
   ===================================================================== */
@media (max-width: 767px) {
  .cart-shell {
    width: 100%;
    height: auto;
    margin-bottom: 24px;
    padding-inline: 16px;
    box-sizing: border-box;
  }
  .cart-heading { width: 100%; height: auto; }
  .cart-heading h1 { font-size: 20px; line-height: 28px; }
  .cart-layout {
    width: 100%;
    height: auto;
    margin-inline-start: 0;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cart-summary-panel,
  .cart-items-panel {
    width: 100%;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
  }
  .cart-items-panel { order: -1; }   /* items above summary (Figma) */
}

@media (max-width: 767px) {
  /* favorites wrapper was fixed 1283px -> fluid */
  .favorites-content { width: 100%; max-width: 100%; box-sizing: border-box; padding-inline: 16px; }
  .favorites-count { width: auto; }
}

/* =====================================================================
   Home mobile — FULL Elementor reset + section fixes  (node 9476:60588)
   Elementor wraps every widget in section ▸ container ▸ column ▸ wrap, each
   adding width caps / padding / margin that break the mobile design. Strip all
   of it at ≤767px so the theme's own section CSS is the single source of truth.
   ===================================================================== */
@media (max-width: 767px) {
  .elementor-section,
  .elementor-container,
  .elementor-column,
  .elementor-widget-wrap,
  .elementor-widget,
  .elementor-element,
  .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
  }

  /* Hero variant visibility (belt-and-suspenders with the main swap block). */
  .hero-desktop { display: none !important; }
  .hero-mobile  { display: block !important; }
}

/* =====================================================================
   Home mobile — section-by-section Figma-accurate values (node 9476:60588)
   ===================================================================== */
@media (max-width: 767px) {
  /* HERO: the content block was pinned with a fixed inset-inline-start:46px,
     so it only looked centred at exactly 375px. Center it for any width. */
  .hero-mobile__content {
    inset-inline-start: 0;
    inset-inline-end: 0;
    margin-inline: auto;
    width: min(284px, calc(100% - 48px));
    text-align: center;
  }
  .hero-mobile__content h1,
  .hero-mobile__content p {
    width: 100%;            /* was fixed 284/299 → overflowed narrow phones */
    margin-inline: auto;
  }
  .hero-cta--mobile { margin-inline: auto; }

  /* NAV: mobile header action icons were 20px (too small per design). */
  .header-mobile__actions .header-icon img {
    width: 24px;
    height: 24px;
  }
  .header-mobile__actions .header-icon { flex: 0 0 32px; width: 32px; height: 32px; }
}

/* ===== Product card grids — responsive: 2 fluid cards on small tablets
   (481–767px), 1 card on phones (≤480px). Cards fill their column and the
   image frame scales by aspect-ratio so nothing distorts. ===== */
@media (max-width: 767px) {
  .plp-grid,
  .favorites-grid,
  .fp-grid--mobile {
    grid-template-columns: 1fr 1fr;
    gap: 24px;                 /* unified 24px card gap across all pages */
    justify-content: stretch;
  }
  .plp-grid,
  .favorites-grid {
    width: 100%;
    max-width: 100%;
  }
  .plp-grid .fp-card,
  .favorites-grid .fp-card,
  .favorites-grid .favorites-card.fp-card,
  .fp-grid--mobile .fp-card {
    width: 100%;
    min-width: 0;
  }
  .plp-grid .fp-media-frame,
  .favorites-grid .fp-media-frame,
  .fp-grid--mobile .fp-media-frame {
    height: auto;
    aspect-ratio: 167 / 180;
  }
}
@media (max-width: 480px) {
  /* المنتجات عمودين على الموبايل (كانت عمود واحد → مساحة مهدرة). */
  .plp-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================================================================
   PLP mobile — make the "تصنيف" / "ترتيب حسب" pill buttons functional:
   they reveal the real filter sidebar + sort options (which carry the
   working data-plp-* / data-orderby JS). Same controls as /shop/.
   ===================================================================== */
@media (max-width: 767px) {
  .plp-mobile-controls button.is-active {
    color: var(--primary, #1d3d7c);
    background: var(--primary-soft, #eef3ff);
  }
  /* Filter panel (تصنيف) */
  .plp-layout.is-mfilter .plp-filter {
    display: block;
    width: 100%;
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-sizing: border-box;
  }
  /* Sort panel (ترتيب حسب) — reuse the real .plp-sort menu inline */
  .plp-layout.is-msort .plp-toolbar { display: block; height: auto; margin: 0 0 16px; }
  .plp-layout.is-msort .plp-toolbar > [data-plp-count] { display: none; }
  .plp-layout.is-msort .plp-sort { width: 100%; height: auto; }
  .plp-layout.is-msort .plp-sort > summary { display: none; }
  .plp-layout.is-msort .plp-sort__menu {
    position: static;
    width: 100%;
    display: block;
    margin: 0;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
  }
}

/* =====================================================================
   TASK wishlist — صفحة المفضلة (/favorites/) على الموبايل
   عمودين دايمًا (حتى على الموبايلات الصغيرة)، صور مربعة object-fit:cover،
   و 16px padding جانبي على الصفحة فالصور متلمسش حواف الشاشة.
   آخر بلوك في الملف عشان يكسب على قواعد المفضلة السابقة.
   ===================================================================== */
@media (max-width: 767px) {
  .favorites-content {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;        /* 16px gutter حوالين الصفحة */
    box-sizing: border-box;
  }
  .favorites-grid {
    width: 100%;
    grid-template-columns: 1fr 1fr;   /* عمودين */
    gap: 16px;
    justify-content: stretch;
  }
  .favorites-card.fp-card { width: 100%; min-width: 0; min-height: 0; }
  /* صور مربعة: الـ media + الإطار يبقوا 1:1 والصورة cover */
  .favorites-grid .fp-media,
  .favorites-grid .fp-media-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .favorites-grid .fp-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
@media (max-width: 480px) {
  /* نلغي تحويل المفضلة لعمود واحد — نخليها عمودين زي المطلوب */
  .favorites-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================================
   TASK distributors/pharmacies — الأكورديون على الموبايل padding جانبي 16px
   ===================================================================== */
@media (max-width: 767px) {
  .city-list__list { padding-inline: 16px; }
}

/* =====================================================================
   Issue 28 — GLOBAL RULE: products ALWAYS render 2 columns on mobile
   (never 1), across every listing surface: shop, category pages, home
   grids, favourites, search results, WooCommerce default lists.
   Issue 29 — Mobile product-card sizing & content fit (375px+).
   This block is last in the file so it wins over earlier grid rules.
   ===================================================================== */
@media (max-width: 768px) {
  /* 28 — any product grid → two equal columns */
  .products,
  ul.products,
  .woocommerce ul.products,
  .granzia-products-grid,
  [class*="product-grid"],
  .wp-block-woocommerce-all-products,
  .plp-grid,
  .favorites-grid,
  .fp-grid--mobile {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 8px !important;              /* tight: 8px column, 10px row */
    align-items: stretch !important;      /* equal-height cards per row */
    justify-content: stretch !important;
  }

  /* 29a — reduce outer horizontal gutter to ~10px each side */
  .plp-products,
  .plp-grid,
  .favorites-content,
  .favorites-grid,
  .fp-grid--mobile,
  .woocommerce ul.products {
    padding-inline: 10px !important;
    box-sizing: border-box;
  }

  /* card fills its column — never a fixed pixel width that can overflow */
  .plp-grid > .fp-card,
  .favorites-grid > .fp-card,
  .fp-grid--mobile > .fp-card,
  ul.products li.product {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* 29c — internal card padding 8px */
  .fp-card--mobile .fp-body,
  .fp-body--mobile,
  .plp-grid .fp-body,
  .favorites-grid .fp-body {
    padding-inline: 8px !important;
    padding-top: 8px !important;
  }
  .fp-card--mobile .fp-actions,
  .fp-actions--mobile { padding-inline: 8px !important; }

  /* The card's `.fp-body{flex:1}` (flex-basis:0%) makes the body count as
     0-height when the grid sizes the row, so a DISCOUNT card (two price lines)
     got under-sized and its price collided with the "أضف للسلة" button. Give the
     body a real content basis and a small min-height floor so the card is always
     tall enough for both price rows + the button (button keeps margin-top:auto →
     pinned to the bottom, no overlap, no big dead space). */
  .fp-card--mobile .fp-body,
  .fp-body--mobile { flex-basis: auto !important; }
  .fp-grid--mobile .fp-card--discount.fp-card--mobile,
  .fp-grid--mobile .fp-card--featured-discount.fp-card--mobile,
  .plp-grid .fp-card--discount, .plp-grid .fp-card--featured-discount { min-height: 370px !important; }

  /* 29d — product name: max 2 lines, ellipsis, never clip mid-word */
  .fp-name,
  .fp-name--mobile {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* 29e — both prices (old strike-through + discounted) always visible;
     wrap/stack instead of clipping when the card is narrow */
  .fp-prices,
  .fp-prices--discount,
  .fp-prices--mobile {
    flex-wrap: wrap !important;
    gap: 2px 8px !important;
    max-width: 100%;
  }

  /* 29f — action icons stay on ONE row, 18px each */
  .fp-card--mobile .fp-action .g-icon,
  .fp-actions--mobile .fp-action .g-icon,
  .fp-card--mobile .fp-action img,
  .fp-actions--mobile .fp-action img {
    width: 18px !important;
    height: 18px !important;
  }

  /* 29g — "أضف للسلة" full card width, no overflow */
  .fp-cta--mobile,
  .fp-card--mobile .fp-cta {
    width: calc(100% - 16px) !important;
    margin-inline: 8px !important;
    box-sizing: border-box;
  }
}

/* =====================================================================
   Mobile product-card whitespace — cards hug their content, the CTA is
   pinned to the bottom (slack sits ABOVE it, never below), and rows stay
   equal height via align-items:stretch. Desktop is untouched (≤768px only).
   ===================================================================== */
@media (max-width: 768px) {
  /* No fixed card height → grow to content (no dead area). */
  .fp-grid--mobile > .fp-card,
  .fp-card--mobile,
  .plp-grid > .fp-card,
  .favorites-grid > .fp-card {
    min-height: 0 !important;
    height: auto !important;
  }
  /* Body fills the card; content stacks from the top. */
  .fp-card--mobile .fp-body,
  .fp-body--mobile,
  .plp-grid .fp-body,
  .favorites-grid .fp-body {
    flex: 1 1 auto !important;
    padding-bottom: 0 !important;
  }
  /* Tighten the vertical rhythm so the card isn't taller than its content. */
  .fp-card--mobile .fp-rating,
  .fp-rating--mobile { height: auto !important; margin-bottom: 0 !important; }
  .fp-card--mobile .fp-name,
  .fp-name--mobile { margin: 6px 0 0 !important; }
  .fp-card--mobile .fp-prices,
  .fp-card--mobile .fp-price,
  .fp-prices--mobile { margin: 6px 0 0 auto !important; }
  /* CTA pinned to the very bottom of the card, small gap beneath it. */
  .fp-cta--mobile,
  .fp-card--mobile .fp-cta {
    margin-top: auto !important;
    margin-bottom: 10px !important;
  }
}

/* ===========================================================================
 * PRODUCT CARD — Figma rebuild. Source of truth for every .fp-card site-wide
 * (homepage, /shop/, categories, search, favorites, PLP, landing). BEM hooks
 * (.fp-card__image/__icons/__body/__stars/__name/__price/__tags/__btn) sit on
 * the same nodes as the legacy .fp-* classes. Placed at the end of the last-
 * loaded stylesheet so it wins the cascade. Palette via CSS variables.
 * ======================================================================== */
:root {
  --card-navy: #1d3d7c;
  --card-border: #f0f0f0;
  --card-tag-bg: #f5f5f5;
  --card-radius: 16px;
}

/* Wrapper */
.fp-card {
  background: #fff !important;
  border: 1px solid var(--card-border) !important;
  border-radius: var(--card-radius) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05) !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Image area — square, product image contained on white */
.fp-card__image { background: #fff !important; }
.fp-card__image .fp-media-frame {
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  background: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}
.fp-card__image .fp-media-img,
.fp-card__image img { width: 100% !important; height: 100% !important; object-fit: contain !important; }

/* Icons row — Compare | View | Wishlist, 20px, gray, divider, border-bottom */
.fp-card__icons {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px 12px !important;
  border-bottom: 1px solid var(--card-border) !important;
}
.fp-card__icons .fp-action { color: #9aa4b2 !important; display: inline-flex; align-items: center; }
.fp-card__icons .fp-action .g-icon,
.fp-card__icons .fp-action img { width: 20px !important; height: 20px !important; }
.fp-card__icons .fp-action.is-active { color: var(--card-navy) !important; }
/* Favourited wishlist heart stays red, overriding the navy active tint above. */
.fp-card__icons .fp-action.fp-wishlist.is-active,
.fp-card__icons .fp-action.fp-wishlist[aria-pressed="true"] { color: #e53935 !important; }
.fp-card__icons .fp-divider { width: 1px !important; height: 16px !important; background: var(--card-border) !important; margin: 0 10px !important; flex: 0 0 auto; }

/* Body */
.fp-card__body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 0 auto !important;
  padding: 10px 12px !important;
}

/* Stars row */
.fp-card__stars { display: flex !important; align-items: center; gap: 6px; font-size: 13px !important; margin: 0 0 6px !important; }
.fp-card__stars .fp-stars { color: #f5a623 !important; }
.fp-card__stars .fp-count { color: #9aa4b2 !important; }

/* Name — navy, bold, 2 lines max */
.fp-card__name {
  color: var(--card-navy) !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  margin: 0 0 8px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
.fp-card__name a { color: inherit !important; text-decoration: none; }

/* Price — discounted navy bold, old strike gray, currency gray */
.fp-card__price { margin: 0 0 8px !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.fp-card__price .fp-amount { color: var(--card-navy) !important; font-weight: 700 !important; font-size: 16px !important; }
.fp-card__price .fp-currency { color: #9aa4b2 !important; font-weight: 500 !important; font-size: 12px !important; }
.fp-card__price .fp-price--old .fp-amount { color: #9aa4b2 !important; font-weight: 500 !important; font-size: 13px !important; text-decoration: line-through !important; }
.fp-card__price .fp-price--old .fp-currency { color: #b5bfd0 !important; }

/* Add-to-cart button — full width, navy, pill, pinned to card bottom */
.fp-card .fp-card__btn {
  width: 100% !important;
  margin: auto 0 0 !important;
  background: var(--card-navy) !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 24px !important;
  padding: 10px !important;
  min-height: 0 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  box-sizing: border-box;
}
.fp-card .fp-card__btn:hover { background: #16305f !important; }

/* Grid gaps: desktop 16px, mobile 8px */
@media (min-width: 769px) {
  .fp-grid--desktop { gap: 16px !important; }
}
@media (max-width: 768px) {
  .fp-grid--mobile { gap: 8px !important; }
  .fp-card__name { font-size: 14px !important; }
}
