/* ============================================================
   Awafi Beauty Portal — B2B e-commerce
   Self-contained styles (no dependency on app.css)
   ============================================================ */

:root {
    --brand: #ec1c3a;
    --brand-ink: #b3122a;
    --brand-soft: #fdeef0;
    --ink: #201c1d;
    --ink-2: #4d4749;
    --muted: #8a8285;
    --line: #ece7e6;
    --line-2: #f4f0ef;
    --bg: #ffffff;
    --bg-2: #faf7f6;
    --paper: #fbf9f8;
    --ok: #16a34a;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow-sm: 0 2px 10px rgba(32, 28, 29, 0.05);
    --shadow: 0 10px 30px rgba(32, 28, 29, 0.08);
    --shadow-lg: 0 20px 48px rgba(32, 28, 29, 0.12);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --shell: 1280px;
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', Georgia, serif;
}

/* Soft product tones */
.pb-tone-blush { background: linear-gradient(150deg, #fceceb, #f7d9dd); color: #b76d78; }
.pb-tone-rose { background: linear-gradient(150deg, #fbe4ec, #f4c6d8); color: #b65681; }
.pb-tone-sage { background: linear-gradient(150deg, #e8f0e6, #cfe1cd); color: #5f7d5c; }
.pb-tone-sand { background: linear-gradient(150deg, #f4ece0, #e6d5bd); color: #977c53; }
.pb-tone-sky { background: linear-gradient(150deg, #e6eef4, #cadcec); color: #5a7f9c; }
.pb-tone-lilac { background: linear-gradient(150deg, #eee7f4, #dccdec); color: #7d63a0; }
.pb-tone-peach { background: linear-gradient(150deg, #fbe8dc, #f6d0b6); color: #b57550; }
.pb-tone-mint { background: linear-gradient(150deg, #e2f0ee, #c6e4de); color: #4f8a80; }
.pb-tone-cream { background: linear-gradient(150deg, #f6f1ea, #ece1cf); color: #90805f; }

/* ---------------- Base ---------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.b2b {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body.b2b img { max-width: 100%; display: block; }
body.b2b a { color: inherit; text-decoration: none; }
.pb-shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.b2b-main { min-height: 40vh; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }

/* ---------------- Buttons ---------------- */
.pb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
    font: 600 15px/1 var(--font); cursor: pointer; transition: all 0.2s var(--ease);
    white-space: nowrap;
}
.pb-btn--lg { height: 54px; padding: 0 28px; font-size: 16px; flex: 1; }
.pb-btn--primary { background: var(--brand); color: #fff; }
.pb-btn--primary:hover { background: var(--brand-ink); transform: translateY(-1px); }
.pb-btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.pb-btn--ghost:hover { border-color: var(--ink); }
.pb-btn--dark { background: var(--ink); color: #fff; }
.pb-btn--dark:hover { background: #000; }
.pb-btn--light { background: #fff; color: var(--ink); }
.pb-btn--light:hover { background: var(--brand-soft); }
.pb-btn.is-added { background: var(--ok) !important; border-color: var(--ok) !important; color: #fff; }

/* ---------------- Badges ---------------- */
.pb-badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    padding: 4px 10px; border-radius: 999px; font: 700 11px/1 var(--font);
    letter-spacing: 0.02em; text-transform: uppercase; background: #fff; color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.pb-badge--sale { background: var(--brand); color: #fff; }
.pb-badge--new { background: var(--ink); color: #fff; }
.pb-badge--bestseller { background: #f4ece0; color: #977c53; }

/* ---------------- Announce ---------------- */
.pb-announce { background: var(--ink); color: #fff; font-size: 12.5px; }
.pb-announce-in { display: flex; align-items: center; justify-content: center; gap: 14px; height: 38px; flex-wrap: wrap; overflow: hidden; }
.pb-announce-item { opacity: 0.92; }
.pb-dot { opacity: 0.4; }

/* ---------------- Header ---------------- */
.pb-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.pb-header.is-stuck { box-shadow: var(--shadow-sm); }
.pb-header-in { display: flex; align-items: center; gap: 22px; height: 76px; }
.pb-burger { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; }

.pb-logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.pb-logo-word { font: 800 26px/1 var(--font); letter-spacing: -0.03em; color: var(--ink); }
.pb-logo-dot { color: var(--brand); }
.pb-logo-tag { font: 600 9.5px/1 var(--font); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.pb-search { flex: 1; max-width: 620px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; transition: border-color 0.2s; }
.pb-search:focus-within { border-color: var(--brand); background: #fff; }
.pb-search-ic { color: var(--muted); flex-shrink: 0; }
.pb-search input { flex: 1; border: 0; background: none; outline: none; font: 500 15px var(--font); color: var(--ink); }
.pb-search-btn { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: 600 14px var(--font); cursor: pointer; transition: background 0.2s; }
.pb-search-btn:hover { background: var(--brand-ink); }

.pb-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.pb-action { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 12px; border-radius: 12px; color: var(--ink); transition: background 0.2s, color 0.2s; position: relative; }
.pb-action:hover { background: var(--bg-2); color: var(--brand); }
.pb-action-label { font: 600 11px var(--font); }
.pb-cart-count { position: absolute; top: 2px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: #fff; font: 700 11px/18px var(--font); text-align: center; }
.pb-cart-count.is-bump { animation: pbBump 0.3s var(--ease); }
@keyframes pbBump { 50% { transform: scale(1.4); } }

/* Category nav */
.pb-nav { border-top: 1px solid var(--line-2); }
.pb-nav-in { display: flex; align-items: stretch; gap: 4px; height: 50px; }
.pb-nav-item { position: relative; display: flex; }
.pb-nav-link { display: inline-flex; align-items: center; gap: 5px; padding: 0 14px; font: 600 14.5px var(--font); color: var(--ink-2); transition: color 0.2s; }
.pb-nav-link:hover { color: var(--brand); }
.pb-nav-link--offers { color: var(--brand); }
.pb-nav-caret { transition: transform 0.2s; }
.pb-nav-item:hover .pb-nav-caret { transform: rotate(180deg); }

/* Mega menu */
.pb-mega { position: absolute; top: 100%; left: 0; min-width: 460px; padding-top: 10px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: all 0.24s var(--ease); z-index: 120; }
.pb-nav-item:hover .pb-mega { opacity: 1; visibility: visible; transform: translateY(0); }
.pb-mega-in { display: grid; grid-template-columns: 1fr 200px; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 20px; }
.pb-mega-head { display: block; font: 700 12px var(--font); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.pb-mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.pb-mega-col li a { display: block; padding: 8px 10px; border-radius: 8px; font: 500 14px var(--font); color: var(--ink); transition: background 0.15s, color 0.15s; }
.pb-mega-col li a:hover { background: var(--brand-soft); color: var(--brand); }
.pb-mega-promo { border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; position: relative; overflow: hidden; }
.pb-mega-promo-tag { font: 600 11px var(--font); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.pb-mega-promo p { margin: 4px 0 10px; font: 600 15px var(--font); color: var(--ink); line-height: 1.3; }
.pb-mega-promo-link { font: 700 13px var(--font); color: var(--ink); }

/* ---------------- Drawer (mobile) ---------------- */
.pb-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.pb-drawer.is-open { visibility: visible; }
.pb-drawer-scrim { position: absolute; inset: 0; background: rgba(20, 16, 17, 0.5); opacity: 0; transition: opacity 0.3s; }
.pb-drawer.is-open .pb-drawer-scrim { opacity: 1; }
.pb-drawer-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 360px); background: #fff; transform: translateX(-100%); transition: transform 0.32s var(--ease); display: flex; flex-direction: column; }
.pb-drawer.is-open .pb-drawer-panel { transform: translateX(0); }
.pb-drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.pb-drawer-close { background: none; border: 0; color: var(--ink); cursor: pointer; padding: 4px; }
.pb-drawer-nav { overflow-y: auto; padding: 8px 12px 30px; }
.pb-drawer-home { display: block; padding: 14px 12px; font: 700 16px var(--font); border-bottom: 1px solid var(--line-2); }
.pb-drawer-group summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; font: 700 16px var(--font); cursor: pointer; list-style: none; border-bottom: 1px solid var(--line-2); }
.pb-drawer-group summary::-webkit-details-marker { display: none; }
.pb-drawer-group[open] summary svg { transform: rotate(180deg); }
.pb-drawer-subs { display: flex; flex-direction: column; padding: 6px 0 12px; }
.pb-drawer-subs a { padding: 10px 22px; font: 500 15px var(--font); color: var(--ink-2); }
.pb-drawer-subs a:hover { color: var(--brand); }

/* ---------------- Sections ---------------- */
.pb-section { padding: 46px 0; }
.pb-section-spacer { height: 40px; }
.pb-section-head { text-align: center; max-width: 620px; margin: 0 auto 30px; }
.pb-section-head h2 { font: 600 clamp(26px, 3.4vw, 38px)/1.1 var(--font-display); letter-spacing: -0.01em; }
.pb-section-head p { margin: 10px 0 0; color: var(--ink-2); }
.pb-section-head--row { display: flex; align-items: flex-end; justify-content: space-between; text-align: left; max-width: none; }
.pb-section-head--row h2 { font-size: clamp(24px, 3vw, 32px); }
.pb-eyebrow { display: inline-block; font: 700 12px var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); }

/* ---------------- Hero ---------------- */
.pb-hero { background: linear-gradient(180deg, var(--paper), #fff); border-bottom: 1px solid var(--line-2); }
.pb-hero-in { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 56px 0; }
.pb-hero-title { font: 500 clamp(38px, 6vw, 68px)/1.02 var(--font-display); letter-spacing: -0.02em; margin: 16px 0 0; }
.pb-hero-title em { font-style: italic; color: var(--brand); }
.pb-hero-sub { margin: 20px 0 0; font-size: 17px; color: var(--ink-2); max-width: 46ch; }
.pb-hero-cta { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.pb-hero-stats { display: flex; gap: 34px; margin-top: 36px; }
.pb-hero-stats strong { display: block; font: 700 24px var(--font); }
.pb-hero-stats span { font-size: 13px; color: var(--muted); }
.pb-hero-visual { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; height: 380px; }
.pb-hero-card { border-radius: var(--radius); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pb-hero-card:nth-child(1) { grid-row: span 2; }
.pb-hero-card:nth-child(3) { grid-row: span 2; margin-top: -40px; }
.pb-hero-card img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.pb-hero-card .pb-bottle { width: 58%; }
.pb-hero-card-tag { position: absolute; bottom: 14px; left: 14px; font: 700 12px var(--font); letter-spacing: 0.1em; text-transform: uppercase; background: #fff; padding: 5px 12px; border-radius: 999px; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------------- Benefits ---------------- */
.pb-benefits { border-bottom: 1px solid var(--line-2); background: #fff; }
.pb-benefits-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 26px 0; }
.pb-benefit { display: flex; align-items: center; gap: 14px; padding: 6px 10px; }
.pb-benefit svg { color: var(--brand); flex-shrink: 0; }
.pb-benefit strong { display: block; font-size: 15px; }
.pb-benefit span { font-size: 13px; color: var(--muted); }

/* ---------------- Category tiles ---------------- */
.pb-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pb-cat-tile { position: relative; display: flex; align-items: center; gap: 6px; padding: 24px; border-radius: var(--radius); min-height: 150px; overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.pb-cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pb-cat-tile .pb-bottle { position: absolute; right: -10px; bottom: -18px; width: 130px; opacity: 0.55; }
.pb-cat-tile-body { position: relative; z-index: 1; }
.pb-cat-tile-body strong { display: block; font: 600 21px var(--font-display); color: var(--ink); }
.pb-cat-tile-body span { font-size: 13.5px; color: var(--ink-2); max-width: 20ch; display: block; margin-top: 4px; }
.pb-cat-tile-arrow { position: absolute; top: 18px; right: 20px; font-size: 20px; color: var(--ink); opacity: 0; transform: translateX(-6px); transition: all 0.3s var(--ease); z-index: 1; }
.pb-cat-tile:hover .pb-cat-tile-arrow { opacity: 1; transform: translateX(0); }

/* ---------------- Product card ---------------- */
.pb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s; display: flex; flex-direction: column; }
.pb-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.pb-card-media { position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--paper); padding: 16px; border-bottom: 1px solid var(--line-2); }
.pb-card-img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.4s var(--ease); }
.pb-card:hover .pb-card-img { transform: scale(1.05) translateY(-2px); }
.pb-card-media .pb-bottle { width: 52%; transition: transform 0.4s var(--ease); }
.pb-card:hover .pb-card-media .pb-bottle { transform: scale(1.06) translateY(-3px); }
.pb-card-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pb-card-brand { font: 700 11px var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pb-card-name { font: 600 15px/1.3 var(--font); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.pb-card-name:hover { color: var(--brand); }
.pb-card-rating { display: flex; align-items: center; gap: 4px; font: 600 12.5px var(--font); color: var(--ink-2); }
.pb-card-rating svg { color: #f2b01e; }
.pb-card-reviews { color: var(--muted); font-weight: 500; }
.pb-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.pb-price { display: flex; align-items: baseline; gap: 8px; }
.pb-price-now { font: 700 17px var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }
.pb-price-was { font: 500 13px var(--font); color: var(--muted); text-decoration: line-through; }
.pb-card-add { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: all 0.2s var(--ease); flex-shrink: 0; }
.pb-card-add:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------------- Rail (horizontal scroll) ---------------- */
.pb-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 18px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.pb-rail > .pb-card { scroll-snap-align: start; }
.pb-rail::-webkit-scrollbar { height: 6px; }
.pb-rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

/* ---------------- Editorial ---------------- */
.pb-editorial { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; border-radius: 24px; padding: 44px; align-items: center; overflow: hidden; }
.pb-editorial-copy h3 { font: 500 clamp(24px, 3vw, 34px) var(--font-display); color: var(--ink); margin: 12px 0; }
.pb-editorial-copy p { color: var(--ink-2); margin: 0 0 22px; max-width: 40ch; }
.pb-editorial-art { display: flex; justify-content: center; gap: 10px; }
.pb-editorial-art .pb-bottle { width: 130px; }
.pb-editorial-art .pb-bottle:nth-child(2) { width: 100px; align-self: flex-end; }

/* ---------------- Brand strip ---------------- */
.pb-brandstrip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pb-brandstrip-item { display: flex; align-items: center; justify-content: center; height: 88px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 600 17px var(--font-display); color: var(--ink-2); background: #fff; transition: all 0.2s; }
.pb-brandstrip-item:hover { border-color: var(--brand); color: var(--brand); }

/* ---------------- Category page ---------------- */
.pb-cathead { padding: 40px 0 36px; }
.pb-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 16px; flex-wrap: wrap; }
.pb-crumbs a:hover { color: var(--brand); }
.pb-crumbs span { color: var(--muted); }
.pb-crumbs-current { color: var(--ink); font-weight: 600; }
.pb-cathead-title { font: 500 clamp(30px, 4.5vw, 48px) var(--font-display); }
.pb-cathead-sub { margin: 8px 0 0; color: var(--ink-2); }

.pb-subnav { position: sticky; top: 76px; z-index: 40; background: rgba(255,255,255,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.pb-subnav-in { display: flex; gap: 8px; padding: 12px 24px; overflow-x: auto; scrollbar-width: none; }
.pb-subnav-in::-webkit-scrollbar { display: none; }
.pb-pill { flex-shrink: 0; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font: 600 14px var(--font); color: var(--ink-2); background: #fff; transition: all 0.2s; }
.pb-pill:hover { border-color: var(--ink); color: var(--ink); }
.pb-pill.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.pb-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 18px; }
.pb-toolbar-count { font-size: 14px; color: var(--ink-2); }
.pb-sort { display: flex; align-items: center; gap: 8px; font: 600 14px var(--font); color: var(--ink-2); }
.pb-sort select { height: 40px; padding: 0 34px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23201c1d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; font: 600 14px var(--font); color: var(--ink); cursor: pointer; -webkit-appearance: none; appearance: none; }

.pb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pb-empty { text-align: center; padding: 70px 0; }
.pb-empty p { color: var(--ink-2); margin-bottom: 18px; }

/* ---------------- Product detail ---------------- */
.pb-crumbs--pdp { padding-top: 22px; margin-bottom: 0; }
.pb-pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 24px 24px 40px; align-items: start; }
.pb-pdp-gallery { position: sticky; top: 96px; }
.pb-pdp-main { position: relative; aspect-ratio: 1 / 1; border-radius: 22px; display: flex; align-items: center; justify-content: center; background: var(--paper); border: 1px solid var(--line-2); }
.pb-pdp-main .pb-bottle { width: 46%; }
.pb-pdp-img { max-width: 80%; max-height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.pb-pdp-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.pb-pdp-thumb { width: 78px; height: 78px; border-radius: 14px; border: 2px solid var(--line); cursor: pointer; display: grid; place-items: center; padding: 0; background: var(--paper); overflow: hidden; }
.pb-pdp-thumb .pb-bottle { width: 46%; }
.pb-pdp-thumb img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.pb-pdp-thumb.is-active { border-color: var(--brand); }

.pb-pdp-brand { font: 700 12px var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); }
.pb-pdp-title { font: 500 clamp(26px, 3.4vw, 40px)/1.1 var(--font-display); margin: 10px 0 14px; }
.pb-pdp-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.pb-stars { position: relative; display: inline-block; line-height: 0; }
.pb-stars-row { display: flex; gap: 2px; }
.pb-stars-row svg { width: 16px; height: 16px; display: block; }
.pb-stars-base { color: #e3ddda; }
.pb-stars-fill { position: absolute; top: 0; left: 0; overflow: hidden; color: #f2b01e; white-space: nowrap; }
.pb-pdp-rating-num { font-weight: 700; }
.pb-pdp-rating-count { color: var(--muted); font-size: 14px; }

.pb-pdp-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pb-pdp-price-now { font: 700 30px var(--font); font-variant-numeric: tabular-nums; }
.pb-pdp-price-was { font-size: 18px; color: var(--muted); text-decoration: line-through; }
.pb-pdp-save { font: 700 12px var(--font); color: #fff; background: var(--brand); padding: 4px 10px; border-radius: 999px; }
.pb-pdp-vat { width: 100%; font-size: 13px; color: var(--muted); }
.pb-pdp-desc { color: var(--ink-2); margin: 20px 0 24px; }

.pb-pdp-buy { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.pb-qty { display: flex; align-items: center; height: 54px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.pb-qty button { width: 46px; height: 100%; border: 0; background: #fff; font-size: 20px; cursor: pointer; color: var(--ink); }
.pb-qty button:hover { background: var(--bg-2); color: var(--brand); }
.pb-qty input { width: 40px; height: 100%; border: 0; text-align: center; font: 700 16px var(--font); background: none; }
.pb-pdp-wish { width: 54px; height: 54px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--ink); transition: all 0.2s; flex-shrink: 0; }
.pb-pdp-wish:hover { border-color: var(--brand); color: var(--brand); }

.pb-pdp-meta { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.pb-pdp-meta li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); font-size: 14px; }
.pb-pdp-meta span { color: var(--muted); }
.pb-instock { color: var(--ok); }
.pb-pdp-assure { display: flex; gap: 18px; flex-wrap: wrap; }
.pb-pdp-assure div { display: flex; align-items: center; gap: 7px; font: 600 13px var(--font); color: var(--ink-2); }
.pb-pdp-assure svg { color: var(--brand); }

.pb-pdp-details { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 24px; border-top: 1px solid var(--line); }
.pb-pdp-detail-col h3 { font: 600 20px var(--font-display); margin-bottom: 14px; }
.pb-pdp-detail-col p { color: var(--ink-2); }
.pb-speclist { list-style: none; margin: 0; padding: 0; }
.pb-speclist li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.pb-speclist span { color: var(--muted); }

/* ---------------- CTA band ---------------- */
.pb-cta { background: var(--ink); color: #fff; margin-top: 40px; }
.pb-cta-in { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; padding: 52px 0; }
.pb-cta-copy h2 { font: 500 clamp(26px, 3.4vw, 40px) var(--font-display); }
.pb-cta-copy p { margin: 12px 0 0; color: rgba(255,255,255,0.7); max-width: 46ch; }
.pb-cta-form { display: flex; gap: 12px; }
.pb-cta-form input { flex: 1; height: 54px; padding: 0 20px; border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; background: rgba(255,255,255,0.06); color: #fff; font: 500 15px var(--font); outline: none; }
.pb-cta-form input::placeholder { color: rgba(255,255,255,0.5); }
.pb-cta-form input:focus { border-color: #fff; }

/* ---------------- Footer ---------------- */
.pb-footer { background: var(--paper); border-top: 1px solid var(--line); }
.pb-footer-in { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; padding: 56px 0 40px; }
.pb-logo--foot { margin-bottom: 16px; }
.pb-footer-blurb { color: var(--ink-2); font-size: 14px; max-width: 34ch; margin: 0 0 18px; }
.pb-footer-trust { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-footer-trust span { font: 600 11px var(--font); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.pb-footer-col h4 { font: 700 13px var(--font); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.pb-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.pb-footer-col a { font-size: 14px; color: var(--ink-2); transition: color 0.2s; }
.pb-footer-col a:hover { color: var(--brand); }
.pb-footer-bottom { border-top: 1px solid var(--line); }
.pb-footer-bottom-in { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; font-size: 13px; color: var(--muted); }
.pb-footer-back:hover { color: var(--brand); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
    .pb-grid { grid-template-columns: repeat(3, 1fr); }
    .pb-footer-in { grid-template-columns: 1fr 1fr 1fr; }
    .pb-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .pb-nav { display: none; }
    .pb-burger { display: inline-flex; }
    .pb-header-in { height: 66px; gap: 14px; }
    .pb-action-label { display: none; }
    .pb-action { padding: 8px; }
    .pb-hero-in { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
    .pb-hero-visual { height: 300px; }
    .pb-benefits-in { grid-template-columns: 1fr 1fr; gap: 18px; }
    .pb-cat-grid { grid-template-columns: 1fr 1fr; }
    .pb-editorial { grid-template-columns: 1fr; }
    .pb-editorial-art { display: none; }
    .pb-brandstrip { grid-template-columns: repeat(3, 1fr); }
    .pb-pdp { grid-template-columns: 1fr; gap: 26px; }
    .pb-pdp-gallery { position: static; }
    .pb-pdp-details { grid-template-columns: 1fr; gap: 26px; }
    .pb-cta-in { grid-template-columns: 1fr; }
    .pb-subnav { top: 66px; }
}
@media (max-width: 620px) {
    .pb-shell { padding: 0 16px; }
    .pb-search { display: none; }
    .pb-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .pb-cat-grid { grid-template-columns: 1fr; }
    .pb-brandstrip { grid-template-columns: 1fr 1fr; }
    .pb-hero-stats { gap: 20px; }
    .pb-cta-form { flex-direction: column; }
    .pb-pdp-buy { flex-wrap: wrap; }
    .pb-btn--lg { flex: 1 1 100%; order: 3; }
    .pb-footer-in { grid-template-columns: 1fr 1fr; }
    .pb-card-body { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    body.b2b * { transition: none !important; animation: none !important; }
}

/* ============================================================
   Cart drawer
   ============================================================ */
.pb-cart-drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.pb-cart-drawer.is-open { visibility: visible; }
.pb-cart-scrim { position: absolute; inset: 0; background: rgba(20, 16, 17, 0.5); opacity: 0; transition: opacity 0.3s; }
.pb-cart-drawer.is-open .pb-cart-scrim { opacity: 1; }
.pb-cart-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(92vw, 420px); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.34s var(--ease); box-shadow: -20px 0 50px rgba(0, 0, 0, 0.12); }
.pb-cart-drawer.is-open .pb-cart-panel { transform: translateX(0); }
.pb-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.pb-cart-head h3 { font: 700 18px var(--font); }
.pb-cart-headcount { color: var(--muted); font-weight: 500; }
.pb-cart-x { background: none; border: 0; cursor: pointer; color: var(--ink); padding: 4px; }
.pb-cart-body { flex: 1; overflow-y: auto; padding: 4px 22px; }
.pb-cart-body:empty { display: none; }
.pb-cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); text-align: center; padding: 40px; }
.pb-cart-empty svg { color: var(--line); }
.pb-cart-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; }
.pb-cart-line { display: flex; justify-content: space-between; font: 700 18px var(--font); margin-bottom: 6px; }
.pb-cart-note { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.pb-cart-foot .pb-btn { width: 100%; }

.pb-ci { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.pb-ci-img { width: 64px; height: 64px; border-radius: 10px; background: var(--paper); display: grid; place-items: center; overflow: hidden; }
.pb-ci-img img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.pb-ci-brand { font: 700 10px var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: block; }
.pb-ci-name { font: 600 14px var(--font); color: var(--ink); display: block; margin: 2px 0 8px; line-height: 1.3; }
.pb-ci-name:hover { color: var(--brand); }
.pb-ci-row { display: flex; align-items: center; gap: 12px; }
.pb-ci-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.pb-ci-qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 16px; color: var(--ink); }
.pb-ci-qty span { min-width: 22px; text-align: center; font: 600 13px var(--font); }
.pb-ci-remove { background: none; border: 0; cursor: pointer; font: 500 12.5px var(--font); color: var(--muted); text-decoration: underline; }
.pb-ci-remove:hover { color: var(--brand); }
.pb-ci-price { font: 700 14px var(--font); white-space: nowrap; }

/* ============================================================
   Checkout
   ============================================================ */
.pb-checkout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 20px 24px 40px; align-items: start; position: relative; }
.pb-co-form { display: flex; flex-direction: column; gap: 18px; }
.pb-co-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.pb-co-block h3 { display: flex; align-items: center; gap: 10px; font: 700 17px var(--font); margin-bottom: 16px; }
.pb-co-step { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 13px var(--font); display: grid; place-items: center; }
.pb-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.pb-field:last-child { margin-bottom: 0; }
.pb-field label { font: 600 13px var(--font); color: var(--ink-2); }
.pb-field input, .pb-field select { height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: 500 15px var(--font); color: var(--ink); background: #fff; outline: none; transition: border-color 0.2s; }
.pb-field input:focus, .pb-field select:focus { border-color: var(--brand); }
.pb-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pb-co-radio { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; margin-bottom: 10px; transition: border-color 0.2s, background 0.2s; }
.pb-co-radio:last-of-type { margin-bottom: 0; }
.pb-co-radio:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pb-co-radio input { accent-color: var(--brand); width: 18px; height: 18px; flex-shrink: 0; }
.pb-co-radio span { flex: 1; display: flex; flex-direction: column; }
.pb-co-radio strong { font: 600 14.5px var(--font); }
.pb-co-radio em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.pb-co-radio b { font: 700 14px var(--font); }
.pb-co-secure { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }

.pb-co-summary { position: sticky; top: 96px; }
.pb-co-summary-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: var(--paper); }
.pb-co-summary-card h3 { font: 700 17px var(--font); margin-bottom: 12px; }
.pb-co-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.pb-co-item-img { position: relative; width: 52px; height: 52px; border-radius: 10px; background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; }
.pb-co-item-img img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.pb-co-item-qty { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--ink); color: #fff; font: 700 11px/20px var(--font); text-align: center; padding: 0 5px; }
.pb-co-item-brand { font: 700 10px var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); display: block; }
.pb-co-item-name { font: 600 13.5px var(--font); display: block; }
.pb-co-item-price { font: 700 14px var(--font); white-space: nowrap; }
.pb-co-totals { margin-top: 16px; }
.pb-co-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); padding: 6px 0; }
.pb-co-row--total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 18px; color: var(--ink); }
.pb-co-row--total strong { font-weight: 700; }
.pb-co-totals .pb-btn { width: 100%; margin-top: 16px; }
.pb-co-continue { display: block; text-align: center; margin-top: 12px; font: 600 13px var(--font); color: var(--ink-2); }
.pb-co-continue:hover { color: var(--brand); }
.pb-co-empty { text-align: center; padding: 20px 0; color: var(--muted); }
.pb-co-empty .pb-btn { margin-top: 12px; }

.pb-co-done { position: absolute; inset: 0; background: #fff; display: grid; place-items: start center; padding-top: 30px; }
.pb-co-done-card { text-align: center; max-width: 460px; }
.pb-co-done-tick { width: 72px; height: 72px; border-radius: 50%; background: #eaf7ee; color: var(--ok); display: grid; place-items: center; margin: 0 auto 20px; }
.pb-co-done-card h2 { font: 500 30px var(--font-display); margin-bottom: 12px; }
.pb-co-done-card p { color: var(--ink-2); margin-bottom: 22px; }

/* search page form */
.pb-search--page { max-width: 560px; margin-top: 22px; background: #fff; }

/* ============================================================
   Responsive additions
   ============================================================ */
@media (max-width: 900px) {
    .pb-checkout { grid-template-columns: 1fr; gap: 24px; }
    .pb-co-summary { position: static; }
}
@media (max-width: 620px) {
    .pb-header-in { flex-wrap: wrap; row-gap: 10px; padding-bottom: 10px; }
    .pb-search { display: flex !important; order: 5; flex-basis: 100%; max-width: none; height: 44px; }
    .pb-field-row { grid-template-columns: 1fr; }
    .pb-cart-panel { width: 100vw; }
}
