/* Weekly Specials page styling. Scoped under .b2b-ws so it never leaks onto
   other pages.

   WIDTH (2026-10-09): this page's `.content-area` now matches the site
   header's full content WIDTH because WeeklySpecialsPage removes the
   page's unused sidebar (Shoptimizer's own main.css already widens
   `.content-area` to 100% once #secondary isn't rendering) -- see
   WeeklySpecialsPage.php's own doc comment for that root-cause story.

   PADDING/INSET (2026-10-09, follow-up -- caught by a real screenshot
   after the width fix): the width fix alone made `.content-area` match
   the header's full CONTAINER width, but `.b2b-ws` itself had zero padding
   and no centering, so its content sat completely flush against the
   browser edge while the header's own content is inset by 304.5px (a
   1320px max-width column, centered via margin:auto, plus 24px internal
   padding -- confirmed live via site-header-footer.css's #masthead
   .main-header / .b2b-navbar__inner / .b2b-utility__inner, which all three
   use this exact recipe). Reused that same recipe here so this page's
   content genuinely starts/ends at the same x-position as the header's
   flag icon and social icons, not just the same outer container width. */
.b2b-ws {
    --ws-ink: #1a1a2e; --ws-muted: #6b7280; --ws-line: #e5e7eb;
    --ws-blue: #0057D9; --ws-blue-dark: #00399a; --ws-panel: #f5f7fa;
    --ws-accent: #ff6b4a;

    max-width: 1320px;
    margin-left: auto; margin-right: auto;
    padding-left: 24px; padding-right: 24px;
    box-sizing: border-box;
}
.b2b-ws { font-family: inherit; }

/* ── Hero ── */
.b2b-ws__hero {
    background: linear-gradient(135deg, var(--ws-accent) 0%, #c23e1f 100%);
    border-radius: 16px; padding: 44px 40px; margin: 0 0 40px;
    position: relative; overflow: hidden; text-align: center;
}
.b2b-ws__hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 2px, transparent 2px 26px);
}
.b2b-ws__hero-inner { position: relative; max-width: 620px; margin: 0 auto; }
.b2b-ws__eyebrow { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.9); background: rgba(255,255,255,0.18); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.b2b-ws__hero h1 { font-size: 34px; line-height: 1.18; font-weight: 800; color: #fff; margin: 0 0 12px; }
.b2b-ws__hero p { font-size: 15.5px; line-height: 1.65; color: rgba(255,255,255,0.92); margin: 0; }

/* ── Product grid section ──
   shop-page.css's .b2b-shop-layout__grid ul.products rule (reused here so
   cards match the real shop's styling exactly -- see WeeklySpecialsPage.php
   doc comment) hardcodes grid-template-columns: repeat(3, minmax(0,1fr)).
   Overridden to auto-fill + wrap naturally: cards start at the row's left
   edge and wrap onto additional rows once a row fills up. With few
   products the row simply has visible room on the right, same as any real
   product grid with a small result set -- no special low-count treatment
   needed. */
.b2b-ws__products-wrap ul.products {
    /* !important required -- shop-page.css sets margin:0 !important on this
       same selector (correct there, since the shop grid always spans the
       full row), and !important always wins the cascade regardless of
       which stylesheet loads later. */
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
}
.b2b-ws__products-wrap ul.products li.product {
    width: 100% !important;
}

/* ── Empty state ── */
.b2b-ws__empty { text-align: center; background: var(--ws-panel); border-radius: 16px; padding: 48px 32px; }
.b2b-ws__empty h2 { font-size: 22px; font-weight: 800; color: var(--ws-ink); margin: 0 0 10px; }
.b2b-ws__empty p { font-size: 15px; color: var(--ws-muted); margin: 0 0 22px; }
.b2b-ws__btn { display: inline-block; background: var(--ws-blue); color: #fff; font-weight: 700; font-size: 14.5px; padding: 12px 26px; border-radius: 8px; text-decoration: none; }
.b2b-ws__btn:hover { background: var(--ws-blue-dark); }

@media (max-width: 480px) {
    .b2b-ws__hero { padding: 32px 22px; }
    .b2b-ws__hero h1 { font-size: 26px; }
}
