/* Store extras (2026-11-15): picture menu, brand tiles, bought together, recently viewed, fade-in. */

/* Picture menu under "All Categories" */
.gl-header .bmhd-cats .wm-mega{display:block;visibility:hidden;opacity:0;transform:translateY(6px);transition:opacity .18s ease .12s,transform .18s ease .12s,visibility 0s linear .3s;width:min(1080px,calc(100vw - 40px));padding:0;border-radius:0 14px 14px 14px;box-shadow:0 24px 48px -16px rgba(15,23,42,.28);overflow:hidden;z-index:60}
.gl-header .bmhd-cats:hover .wm-mega,.gl-header .bmhd-cats:focus-within .wm-mega{visibility:visible;opacity:1;transform:none;transition-delay:.12s,.12s,0s}
.wm-mega__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 16px;padding:20px}
.wm-mega__col{padding:8px;border-radius:12px;transition:background .15s ease}
.wm-mega__col:hover{background:#f6f8fc}
.wm-mega a{text-decoration:none}
.wm-mega__head{display:flex;align-items:center;gap:12px;margin-bottom:8px;color:#0f172a;font-weight:700;font-size:14px;line-height:1.3}
.wm-mega__head:hover{color:var(--wm-blue,#2563eb)}
.wm-mega__pic{flex:none;width:56px;height:56px;border-radius:14px;background:#f1f4f9;display:grid;place-items:center;overflow:hidden;font-weight:800;color:var(--wm-blue,#2563eb)}
.wm-mega__pic img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;padding:6px;box-sizing:border-box;transition:transform .25s ease}
.wm-mega__head:hover .wm-mega__pic img{transform:scale(1.08)}
.wm-mega__subs{list-style:none;margin:0;padding:0 0 0 68px;display:grid;gap:6px}
.wm-mega__subs a{color:#475569;font-size:13px;line-height:1.4}
.wm-mega__subs a:hover{color:var(--wm-blue,#2563eb);text-decoration:underline}
.wm-mega__subs .wm-mega__more{color:var(--wm-blue,#2563eb);font-weight:600}
.wm-mega__foot{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 28px;background:#eef4ff;font-size:13px;color:#334155}
.wm-mega__foot a{color:var(--wm-blue,#2563eb);font-weight:600}
@media (max-width:1100px){.wm-mega__grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:640px){.gl-header .bmhd-cats .wm-mega{display:none}}

/* Shop by brand (home) */
.hx-brands{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:12px}
.hx-brand{display:grid;place-items:center;aspect-ratio:2/1;background:#f2f2f2;border-radius:14px;overflow:hidden;text-decoration:none;border:1px solid transparent;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.hx-brand img{width:100%;height:100%;object-fit:cover;filter:grayscale(1);opacity:.8;transition:filter .25s ease,opacity .25s ease}
.hx-brand:hover{transform:translateY(-3px);box-shadow:0 14px 28px -18px rgba(15,23,42,.4);border-color:#e8ebf1}
.hx-brand:hover img{filter:none;opacity:1}
.hx-brand__word{font-size:17px;font-weight:800;letter-spacing:-.01em;color:#475569;text-align:center;padding:0 8px}
.hx-brand:hover .hx-brand__word{color:var(--wm-blue,#2563eb)}
@media (max-width:1024px){.hx-brands{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:640px){
  .hx-brands{grid-auto-flow:column;grid-template-columns:none;grid-template-rows:repeat(2,auto);grid-auto-columns:38%;overflow-x:auto;scroll-snap-type:x mandatory;gap:8px;padding-bottom:4px}
  .hx-brand{scroll-snap-align:start;border-radius:12px}
  .hx-brand img{filter:none;opacity:1}
  .hx-brand__word{font-size:14px}
}

/* Frequently bought together (product page) */
.wm-fbt{margin:0 0 24px;padding:20px;background:#fff;border:1px solid #e8ebf1;border-radius:18px}
.wm-fbt__title{margin:0 0 16px;font-size:20px;font-weight:800;letter-spacing:-.01em;line-height:1.3}
.wm-fbt__body{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:center}
.wm-fbt__pics{display:flex;align-items:center;gap:10px}
.wm-fbt__pic{flex:1 1 0;max-width:170px;aspect-ratio:1;display:grid;place-items:center;background:#f5f7fa;border-radius:14px;overflow:hidden;transition:opacity .2s ease}
.wm-fbt__pic img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;padding:10%;box-sizing:border-box}
.wm-fbt__pic.is-off{opacity:.35}
.wm-fbt__plus{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#eef4ff;color:var(--wm-blue,#2563eb);font-weight:800}
.wm-fbt__list{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:8px}
.wm-fbt__item label{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;font-size:14px;cursor:pointer}
.wm-fbt__item input{width:18px;height:18px;margin:0;accent-color:var(--wm-blue,#2563eb)}
.wm-fbt__item.is-off label{cursor:default;color:#64748b}
.wm-fbt__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wm-fbt__name a{color:inherit;text-decoration:none}
.wm-fbt__name a:hover{color:var(--wm-blue,#2563eb);text-decoration:underline}
.wm-fbt__price{font-weight:800;white-space:nowrap}
.wm-fbt__note{margin:0 0 10px;font-size:13px;color:#64748b}
.wm-fbt__total{margin:0 0 12px;font-size:15px}
.wm-fbt__total strong{font-size:20px;font-weight:800}
.wm-fbt__btn{width:100%;height:46px;border:0;border-radius:12px;background:var(--wm-blue,#2563eb);color:#fff;font-weight:700;font-size:15px;cursor:pointer;transition:background .15s ease}
.wm-fbt__btn:hover{background:#1d4ed8}
.wm-fbt__btn:disabled{opacity:.6;cursor:not-allowed}
.wm-fbt__done{margin:10px 0 0;font-size:14px;color:#15803d;font-weight:600}
.wm-fbt__done a{color:var(--wm-blue,#2563eb)}
.wm-fbt__err{margin:10px 0 0;font-size:13px;color:#b42318;font-weight:600}
@media (max-width:767px){
  .wm-fbt{padding:16px}
  .wm-fbt__title{font-size:18px;margin-bottom:12px}
  .wm-fbt__body{grid-template-columns:1fr;gap:16px}
  .wm-fbt__plus{width:22px;height:22px;font-size:13px}
}

/* Recently viewed */
.rv__head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:14px}
.rv__title{margin:0;font-size:22px;font-weight:800;letter-spacing:-.01em;line-height:1.3}
.rv__clear{border:0;background:none;color:#64748b;font-size:13px;cursor:pointer;text-decoration:underline}
.rv__row{display:grid;grid-auto-flow:column;grid-auto-columns:150px;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:thin}
.rv__item{display:flex;flex-direction:column;gap:4px;padding:8px;background:#fff;border:1px solid #e8ebf1;border-radius:14px;text-decoration:none;color:#0f172a;scroll-snap-align:start;transition:transform .2s ease,box-shadow .2s ease}
.rv__item:hover{transform:translateY(-3px);box-shadow:0 14px 28px -18px rgba(15,23,42,.4)}
.rv__pic{display:block;aspect-ratio:1;background:#f5f7fa;border-radius:10px;overflow:hidden}
.rv__pic img{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;padding:8%;box-sizing:border-box}
.rv__name{font-size:13px;font-weight:600;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.7em}
.rv__price{font-size:14px;font-weight:800}
.rv--pdp{grid-column:1/-1;margin-top:32px}
@media (max-width:640px){.rv__title{font-size:18px}.rv__row{grid-auto-columns:128px}}

/* Fade-in below the fold (class added by script only) */
.wm-reveal{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s cubic-bezier(.2,.7,.2,1)}
.wm-reveal.is-in{opacity:1;transform:none}

/* Keep the new blocks inside narrow grid columns (no sideways scrolling on phones) */
.wm-fbt,.wm-fbt__body>*,.wm-fbt__pic,.rv,.rv__row,.wm-pdp__tabs,.wm-pdp>*{min-width:0}
.wm-fbt__pic{min-width:0}
.wm-fbt__pics{min-width:0;max-width:100%}

/* ---------- Combo products ---------- */
.wm-only { font-size: .8em; font-weight: 700; color: var(--wm-muted, #64748b); margin-right: 2px; }
.wc-block-components-product-image, .wc-block-product .wp-block-woocommerce-product-image { position: relative; }

.wm-combo { margin: 16px 0; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fafaf9; min-width: 0; }
.wm-combo__title { margin: 0 0 10px; font-size: 16px; font-weight: 800; }
.wm-combo__title span { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #111827; color: #fcd34d; font-size: 12px; vertical-align: middle; }
.wm-combo__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.wm-combo__item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wm-combo__pic { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid #e5e7eb; }
.wm-combo__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wm-combo__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.wm-combo__note { margin: 10px 0 0; font-size: 13px; color: #64748b; }
