/* Store look v2 (2026-11): design system + the additions also made on the headless storefront.
   Loaded after wm.css. Same values as the storefront's theme_child.css. */
:root{
  --wm-wrap:1600px;
  /* meaning colours */
  --wm-sale:#e31b23; --wm-sale-d:#d7141c;
  --wm-save:#0a7c3e; --wm-save-l:#e9f7ef;
  --wm-neutral:#4b5260; --wm-neutral-l:#eceef2; --wm-neutral-b:#c4c8d0; --wm-note:#f2f3f5;
  --wm-faint:#f3f6fe; --wm-line-strong:#e3e3e3;
  /* corners */
  --wm-r-label:4px; --wm-r-control:8px; --wm-r-card:12px; --wm-r-pill:9999px;
  /* text sizes */
  --wm-t-label:11px; --wm-t-caption:12px; --wm-t-small:13px; --wm-t-body:14px; --wm-t-lead:16px; --wm-t-price:18px; --wm-t-title:22px; --wm-t-display:28px;
  /* shadows */
  --wm-sh-raised:0 10px 30px rgb(0 0 0 / .12); --wm-sh-bar:0 -6px 18px rgb(0 0 0 / .08);
  /* stock pricing table follows the store palette */
  --hsp-select:var(--wm-blue); --hsp-select-soft:var(--wm-faint); --hsp-accent:var(--wm-save); --hsp-accent-soft:var(--wm-save-l);
  --hsp-radius:var(--wm-r-card); --hsp-tag-radius:var(--wm-r-label); --hsp-box-radius:var(--wm-r-control);
}
/* Bigger, wider stock price table (same as the storefront) */
.hsp-selector__title{font-size:var(--wm-t-lead);font-weight:700}
.hsp-tier{padding:15px 16px;font-size:15px}
.hsp-tier__radio{width:22px;height:22px}
.hsp-tier.is-active .hsp-tier__radio{border-width:7px}
.hsp-tier__amount{font-size:1.1em;font-weight:800}
.hsp-tier__save{font-weight:700}
@media (max-width:640px){.hsp-tier{gap:10px;padding:14px 12px}}

/* Sale badges in red */
.wm-sale,.wm-grid .wc-block-components-product-sale-badge,.wm-sale-wrap .onsale,.wm-pdp__related li.product .onsale,
.wc-block-components-product-sale-badge,span.onsale{background:var(--wm-sale);border-color:var(--wm-sale);color:#fff}

/* Bulk line under prices: "R 899 from 15+" */
.wm-bulkline{display:block;margin-top:2px;color:var(--wm-blue);font-size:var(--wm-t-caption);font-weight:600;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wm-bulkline .woocommerce-Price-amount{color:inherit;font-weight:inherit}

/* Icons used by the new bars */
.wm-ico--home{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M3 11 12 4l9 7'/%3E%3Cpath d='M5 10v10h5v-6h4v6h5V10'/%3E%3C/svg%3E")}
.wm-ico--grid{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E")}

/* ---------- Departments strip ---------- */
.wm-depts{padding:18px 0 6px}
.wm-depts__title{font-size:18px;font-weight:700;margin:0 0 12px}
.wm-depts__row{display:flex;gap:18px;overflow-x:auto;scrollbar-width:none;padding-bottom:8px;scroll-snap-type:x proximity}
.wm-depts__row::-webkit-scrollbar{display:none}
.wm-dept{flex:none;width:96px;display:flex;flex-direction:column;align-items:center;gap:8px;text-decoration:none;color:var(--wm-ink);scroll-snap-align:start}
.wm-dept__pic{width:88px;height:88px;border-radius:50%;background:#fff;border:2px solid #e8edf7;display:grid;place-items:center;overflow:hidden;transition:border-color .2s,transform .2s}
.wm-dept__pic img{width:76%;height:76%;object-fit:contain}
.wm-dept__pic--all{background:var(--wm-sky);color:var(--wm-blue)}
.wm-dept__pic--all .wm-ico{width:28px;height:28px}
.wm-dept__initial{font-size:30px;font-weight:800;color:var(--wm-blue)}
.wm-dept__name{font-size:var(--wm-t-small);font-weight:500;text-align:center;line-height:1.25}
.wm-dept:hover .wm-dept__pic{border-color:var(--wm-blue);transform:translateY(-2px)}
@media (max-width:640px){.wm-depts__row{gap:12px}.wm-dept{width:74px}.wm-dept__pic{width:66px;height:66px}.wm-dept__name{font-size:var(--wm-t-caption)}}

/* ---------- Deal rows ---------- */
.wm-deals{padding:8px 0 24px}
.wm-deals__head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:18px 20px;border-radius:10px 10px 0 0;color:#fff}
.wm-deals--bulk .wm-deals__head{background:linear-gradient(110deg,var(--wm-blue),#3b7bff)}
.wm-deals--sale .wm-deals__head{background:linear-gradient(110deg,var(--wm-sale-d),#f04848)}
.wm-deals__title{margin:0;font-size:var(--wm-t-title);font-weight:800;color:#fff!important}
.wm-deals__sub{margin:4px 0 0;font-size:var(--wm-t-small);opacity:.92}
.wm-deals__all{flex:none;white-space:nowrap;padding:8px 16px;border-radius:var(--wm-r-pill);background:#fff;font-size:var(--wm-t-small);font-weight:700;text-decoration:none}
.wm-deals--bulk .wm-deals__all{color:var(--wm-blue)}
.wm-deals--sale .wm-deals__all{color:var(--wm-sale-d)}
.wm-deals__row{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 4 * 14px) / 5);gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:14px;background:#fff;border-radius:0 0 10px 10px;border:1px solid var(--wm-line);border-top:0}
.wm-deal-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:10px 10px 14px;border:1px solid var(--wm-line);border-radius:6px;background:#fff;scroll-snap-align:start}
.wm-deal-card__img{position:relative;display:block;margin:0 0 12px;border-radius:4px;background:var(--wm-img);overflow:hidden}
.wm-deal-card__img img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;mix-blend-mode:multiply}
.wm-deal-card__nophoto{display:block;aspect-ratio:1}
.wm-deal-card__badge{position:absolute;top:8px;left:8px;z-index:1;padding:3px 8px;border-radius:var(--wm-r-label);color:#fff;font-size:var(--wm-t-label);font-weight:800}
.wm-deals--bulk .wm-deal-card__badge{background:var(--wm-blue)}
.wm-deals--sale .wm-deal-card__badge{background:var(--wm-sale)}
.wm-deal-card__title{color:var(--wm-ink);font-size:var(--wm-t-small);font-weight:500;line-height:1.35;text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em;margin-bottom:6px}
.wm-deal-card__price{margin:0 0 4px;color:var(--wm-ink);font-weight:700;font-size:15px}
.wm-deal-card__price del{color:var(--wm-muted);font-weight:400;font-size:.85em;margin-right:4px}
.wm-deal-card__note{margin:0 0 10px;min-height:1.3em;font-size:var(--wm-t-caption);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wm-deals--bulk .wm-deal-card__note{color:var(--wm-blue)}
.wm-deals--sale .wm-deal-card__note{color:var(--wm-sale-d)}
.wm-deal-card__btn{margin-top:auto;display:block;padding:8px 10px;border:1.5px solid var(--wm-blue);border-radius:var(--wm-r-control);color:var(--wm-blue);font-size:var(--wm-t-small);font-weight:600;text-align:center;text-decoration:none}
.wm-deal-card__btn:hover{background:var(--wm-blue);color:#fff}
.wm-deal-card .added_to_cart{display:block;margin-top:6px;font-size:var(--wm-t-caption);text-align:center}
@media (max-width:900px){.wm-deals__row{grid-auto-columns:calc((100% - 2 * 12px) / 3);gap:12px}}
@media (max-width:640px){.wm-deals__head{padding:14px 16px;align-items:center}.wm-deals__title{font-size:18px}.wm-deals__sub{font-size:var(--wm-t-caption)}.wm-deals__all{padding:6px 12px;font-size:var(--wm-t-caption)}.wm-deals__row{grid-auto-columns:44%;gap:10px;padding:10px}}

/* ---------- Trust bar (moved above the footer) ---------- */
.wm-trust{background:var(--wm-bg);border-top:1px solid var(--wm-line);padding:22px 0}
.wm-trust__row{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.wm-trust__item{display:flex;align-items:center;gap:12px}
.wm-trust__item strong{display:block;color:var(--wm-ink);font-size:var(--wm-t-body)}
.wm-trust__item small{display:block;font-size:var(--wm-t-caption);color:var(--wm-text)}
.wm-trust__ico{flex:none;width:44px;height:44px;border-radius:50%;background:var(--wm-sky);color:var(--wm-blue);display:grid;place-items:center}
.wm-trust__ico .wm-ico{width:22px;height:22px}
@media (max-width:900px){.wm-trust__row{grid-template-columns:1fr 1fr;gap:16px}}
@media (max-width:640px){.wm-trust{padding:16px 0}.wm-trust__item strong{font-size:var(--wm-t-small)}.wm-trust__ico{width:38px;height:38px}}

/* ---------- Compact search bar ---------- */
.wm-sticky{position:fixed;top:0;left:0;right:0;z-index:36;background:#fff;box-shadow:0 4px 18px rgba(0,0,0,.08);transform:translateY(-110%);transition:transform .22s ease}
.admin-bar .wm-sticky{top:var(--wp-admin--admin-bar--height,32px)}
.wm-sticky.is-shown{transform:none}
.wm-sticky__row{display:flex;align-items:center;gap:16px;padding-top:8px;padding-bottom:8px}
.wm-sticky__logo img{width:150px;height:auto;display:block}
.wm-sticky__search{flex:1;max-width:620px;display:flex;align-items:center;gap:10px;height:42px;padding:0 16px;border:1px solid var(--wm-line-strong);border-radius:40px;background:#f7f8fa;color:#777;font:inherit;font-size:14px;cursor:pointer;text-align:left}
.wm-sticky__cart{margin-left:auto;width:42px;height:42px;border-radius:50%;background:#f3f3f3;display:grid;place-items:center;color:var(--wm-ink)}
@media (max-width:640px){.wm-sticky__logo{display:none}.wm-sticky__row{gap:10px}.wm-sticky__search{height:40px;font-size:15px}}

/* ---------- Phone tab bar ---------- */
.wm-tabbar{display:none}
@media (max-width:767px){
  /* One height for the tab bar; the buy bar, WhatsApp button and page padding all sit on it, so no gap shows between them. */
  :root{--wm-tabbar-h:62px}
  body{padding-bottom:calc(var(--wm-tabbar-h) + env(safe-area-inset-bottom))}
  .wm-tabbar{display:flex;box-sizing:border-box;height:calc(var(--wm-tabbar-h) + env(safe-area-inset-bottom));position:fixed;left:0;right:0;bottom:0;z-index:38;background:#fff;border-top:1px solid #e5e7eb;box-shadow:0 -4px 16px rgba(0,0,0,.06);padding:6px 4px calc(6px + env(safe-area-inset-bottom))}
  .wm-tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:500;color:#555;text-decoration:none}
  .wm-tabbar a.is-current{color:var(--wm-blue)}
  .wm-tabbar .wm-ico{width:22px;height:22px}
  .wm-tabbar__ico{position:relative;display:grid;place-items:center;height:26px}
  .wm-tabbar__count{position:absolute;top:-4px;right:-10px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--wm-blue);color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center;box-sizing:border-box}
  .wm-tabbar__count[hidden]{display:none}
  /* iPhone Safari (iOS 26) puts bottom:0 at the top of its floating address bar and shows the page in the strip
     below it; the bar's white continues down so the strip under the tabs is plain, like an app's tab bar. */
  .wm-tabbar::after{content:"";position:absolute;left:0;right:0;top:100%;height:80px;background:inherit}
}

/* ---------- Product buy bar (phones) ---------- */
.wm-buybar{display:none}
@media (max-width:767px){
  .wm-buybar{display:flex;align-items:center;gap:12px;position:fixed;left:0;right:0;bottom:calc(var(--wm-tabbar-h) + env(safe-area-inset-bottom));z-index:37;padding:10px 14px;background:#fff;border-top:1px solid #e5e7eb;box-shadow:var(--wm-sh-bar);transform:translateY(140%);visibility:hidden;transition:transform .2s ease,visibility 0s .2s}
  .wm-buybar.is-shown{transform:none;visibility:visible;transition:transform .2s ease}
  .wm-buybar__price{flex:1;min-width:0;line-height:1.2}
  .wm-buybar__top{display:flex;align-items:center;gap:8px}
  .wm-buybar__top strong{font-size:19px;font-weight:800;color:var(--wm-ink);white-space:nowrap}
  .wm-buybar__top strong .woocommerce-Price-amount{color:inherit}
  .wm-buybar__top em{flex:none;font-style:normal;font-size:11px;font-weight:700;line-height:1;padding:4px 7px;border-radius:var(--wm-r-label);background:var(--wm-blue);color:#fff;white-space:nowrap}
  .wm-buybar__top em.is-retail{background:var(--wm-neutral-l);color:#2b2f36}
  .wm-buybar__top em:empty{display:none}
  [data-wm-line]{display:block;margin-top:3px;font-size:12px;font-weight:600;color:var(--wm-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  [data-wm-line].is-offer{color:var(--wm-blue)}
  .wm-buybar__btn{flex:none;padding:12px 16px;border:0;border-radius:var(--wm-r-control);background:var(--wm-blue);color:#fff;font:inherit;font-weight:700;font-size:15px;cursor:pointer}
}


/* GreenLight Native header/footer rows follow the shared page width. */
:is(header,footer,.bmft) .wp-content-wrap{width:100%!important;max-width:calc(var(--wm-wrap) - 40px)!important}

/* Cart icon (shopping cart instead of bag) and the cart count on the compact sticky bar */
.wm-ico--bag{--i:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='21' r='1'/%3E%3Ccircle cx='19' cy='21' r='1'/%3E%3Cpath d='M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12'/%3E%3C/svg%3E")}
.wm-sticky__cart{position:relative}
.wm-sticky__count{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--wm-blue,#1e5cea);color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center;box-sizing:border-box}
.wm-sticky__count[hidden]{display:none}

/* ---------------- 2026-11-15: product page, prices, WhatsApp ---------------- */
/* Sale prices: the new price isn't a link, so no underline. */
.price ins,.wc-block-components-product-price ins,.wm-deal-card__price ins{text-decoration:none}
/* Trust points under the buy button: phones and tablets only (the side column shows them on desktop). */
.wm-pdp__trust{display:none;list-style:none;margin:0 0 18px;padding:4px 16px;border:1px solid var(--wm-line);border-radius:6px}
.wm-pdp__trust li{display:grid;grid-template-columns:24px 1fr;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid var(--wm-line)}
.wm-pdp__trust li:last-child{border-bottom:0}
.wm-pdp__trust .wm-ico{width:22px;height:22px;color:var(--wm-ink)}
.wm-pdp__trust strong{display:block;font-size:14px;color:var(--wm-ink)}
.wm-pdp__trust small{display:block;font-size:12px;color:var(--wm-muted);line-height:1.4}
.wm-pdp__summary .wm-pdp__meta{border-bottom:0;padding-bottom:0}
/* Photo arrows: small round white buttons instead of black squares. */
.wm-pdp__media .wc-block-next-previous-buttons{padding:0 10px;pointer-events:none}
.wm-pdp__media .wc-block-next-previous-buttons__button{pointer-events:auto;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.92);border:1px solid var(--wm-line);box-shadow:0 2px 8px rgba(0,0,0,.12);display:grid;place-items:center;padding:0;color:var(--wm-ink)}
.wm-pdp__media .wc-block-next-previous-buttons__button svg,.wm-pdp__media .wc-block-next-previous-buttons__icon{width:14px;height:14px;fill:currentColor;color:var(--wm-ink)}
.wm-pdp__media .wc-block-next-previous-buttons__button:disabled{opacity:0!important}
/* Add to cart before a colour is chosen: clearly a prompt, not a broken button. */
.wm-pdppage .wm-pdp__buy form .single_add_to_cart_button.disabled{opacity:1;background:var(--wm-sky);color:var(--wm-blue)}
/* Leftover empty gallery blocks from imported descriptions leave a big blank gap: hide them. */
.wm-pdp__tabs .wd-carousel-container:not(:has(img)),.wm-pdp__tabs .wd-nav-arrows{display:none}
@media (max-width:900px){
  .wm-pdp__trust{display:block}
  .wm-pdp__side .wm-services{display:none}
  .wm-pdp__tabs{margin-top:24px}
}
@media (max-width:640px){
  .wm-pdp__price{margin-bottom:12px}
  /* Tabs in one row instead of three big stacked headings. */
  .wm-pdppage .wm-pdp__tabs ul.wc-tabs{display:flex;flex-wrap:nowrap!important;gap:0;overflow-x:auto;scrollbar-width:none;margin-bottom:16px!important}
  .wm-pdppage .wm-pdp__tabs ul.wc-tabs li{flex:none;width:auto!important}
  .wm-pdppage .wm-pdp__tabs ul.wc-tabs li a{padding:12px 14px!important;margin:0;font-size:14px!important;text-transform:none!important;white-space:nowrap;border-bottom-width:2px}
}
/* Floating WhatsApp button. */
.wm-wa{position:fixed;right:16px;bottom:24px;z-index:36;display:flex;align-items:center;gap:8px;height:52px;padding:0 18px 0 14px;border-radius:999px;background:#25d366;color:#fff;font:700 14px var(--wm-font);text-decoration:none;box-shadow:0 6px 18px rgba(0,0,0,.18);transition:bottom .2s ease,opacity .2s ease,transform .2s ease}
.wm-wa svg{width:24px;height:24px}
.wm-wa:hover{background:#1ebe5b}
body.wm-toast-open .wm-wa{opacity:0;transform:translateY(16px);pointer-events:none}
@media (prefers-reduced-motion:reduce){.wm-wa{transition:none}}
@media (max-width:767px){
  .wm-wa{width:52px;padding:0;justify-content:center;bottom:calc(var(--wm-tabbar-h) + 14px + env(safe-area-inset-bottom))}
  .wm-wa span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  body:has(.wm-buybar.is-shown) .wm-wa{bottom:calc(var(--wm-tabbar-h) + 84px + env(safe-area-inset-bottom))}
}
