/* =========================================================================
   AZ Supplies — Futuristic / Minimal theme layer for the Shopus (Bootstrap 5) template
   -------------------------------------------------------------------------
   HOW TO USE
   1. Load this file AFTER the template's own CSS (bootstrap + style.css) on the STORE layout only.
   2. Pick a palette on <html data-palette="midnight|cyan|mono">  (default = midnight / Option B).
   3. Add the az-* hook classes to the template's header / top bar / product-card markup.
   3. Add the az-* hook classes to the template's header / top bar / product-card markup.
   4. Template-specific class names were NOT visible when this was written (only the rendered page
      was reviewed). After grepping the real CSS, map any leftover hard-coded colours to the
      --az-* variables below (see 07_storefront_template_plan.md section 5).
   Contrast: every text/background pair below was checked for WCAG AA (>= 4.5:1) except where noted.
   ========================================================================= */

/* ---------- 0. Self-hosted fonts (no third-party requests) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/Inter-400-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/Inter-600-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/Inter-700-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("/fonts/SpaceGrotesk-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/SpaceGrotesk-700-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/JetBrainsMono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("/fonts/JetBrainsMono-600-latin.woff2") format("woff2"); }

/* ---------- 1. Shared tokens ---------- */
:root {
    --az-radius: 12px;
    --az-radius-sm: 8px;
    --az-font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --az-font-head: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --az-font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

    /* Status colours (same in every palette) */
    --az-ok-fg: #0F7B3E;
    --az-ok-bg: #E6F6EC;
    --az-low-fg: #9A5B00;
    --az-low-bg: #FFF3DC;
    --az-out-fg: #B42318;
    --az-out-bg: #FEECEA;

    /* Ink colours used by the signature CMYK hairline */
    --az-c: #00AEEF;
    --az-m: #EC008C;
    --az-y: #FFF200;
    --az-k: #111111;
}

/* ---------- 2. Palettes ---------- */
/* B. Midnight + Violet — Option B colour codes only (violet accent, light header/menu) */
:root,
html[data-palette="midnight"] {
    --az-bg: #F7F7FB;
    --az-surface: #FFFFFF;
    --az-surface-2: #EFEFF8;
    --az-ink: #0E1020;
    --az-muted: #5C6078;
    --az-line: #E4E4F0;
    --az-accent: #6D5DFC;
    --az-accent-hover: #5848E8;
    --az-on-accent: #FFFFFF;
    --az-accent-rgb: 109, 93, 252;
    --az-link: #5848E8;
    --az-header-bg: #FFFFFF;
    --az-header-ink: #0E1020;
    --az-topbar-bg: #0B1220;
    --az-topbar-ink: #CBD5E1;
    --az-glow: rgba(109, 93, 252, .38);
}

/* A. Graphite + Electric Cyan (alternate) */
html[data-palette="cyan"] {
    --az-bg: #F5F7FA;
    --az-surface: #FFFFFF;
    --az-surface-2: #EEF2F7;
    --az-ink: #0B1220;
    --az-muted: #5B6577;
    --az-line: #E1E7EF;
    --az-accent: #22D3EE;
    --az-accent-hover: #06B6D4;
    --az-on-accent: #0B1220;
    --az-accent-rgb: 34, 211, 238;
    --az-link: #0E7490;
    --az-header-bg: #FFFFFF;
    --az-header-ink: #0B1220;
    --az-topbar-bg: #0B1220;
    --az-topbar-ink: #CBD5E1;
    --az-glow: rgba(34, 211, 238, .38);
}

/* C. Mono + CMYK (pure black/white, ink-coloured micro accents) */
html[data-palette="mono"] {
    --az-bg: #FAFAFA;
    --az-surface: #FFFFFF;
    --az-surface-2: #F2F2F2;
    --az-ink: #111111;
    --az-muted: #5F5F5F;
    --az-line: #E5E5E5;
    --az-accent: #111111;
    --az-accent-hover: #333333;
    --az-on-accent: #FFFFFF;
    --az-accent-rgb: 17, 17, 17;
    --az-link: #111111;
    --az-header-bg: #FFFFFF;
    --az-header-ink: #111111;
    --az-topbar-bg: #111111;
    --az-topbar-ink: #D4D4D4;
    --az-glow: rgba(17, 17, 17, .22);
}

/* ---------- 3. Map tokens onto Bootstrap 5 ---------- */
:root {
    --bs-body-bg: var(--az-bg);
    --bs-body-color: var(--az-ink);
    --bs-body-font-family: var(--az-font-body);
    --bs-border-color: var(--az-line);
    --bs-link-color: var(--az-link);
    --bs-link-hover-color: var(--az-ink);
    --bs-primary: var(--az-accent);
    --bs-primary-rgb: var(--az-accent-rgb);
    --bs-border-radius: var(--az-radius-sm);
    --bs-border-radius-lg: var(--az-radius);
}

html {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    background: var(--az-bg);
    color: var(--az-ink);
    font-family: var(--az-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: var(--az-font-head);
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--az-ink);
}

a {
    color: var(--az-link);
}

a:hover {
    color: var(--az-ink);
}

.text-muted,
.text-secondary {
    color: var(--az-muted) !important;
}

hr {
    border-color: var(--az-line);
    opacity: 1;
}

::selection {
    background: rgba(var(--az-accent-rgb), .28);
}

/* ---------- 4. Core Bootstrap components ---------- */
.btn {
    border-radius: var(--az-radius-sm);
    font-weight: 600;
    letter-spacing: .01em;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.page-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--az-glow);
}

.btn-primary {
    --bs-btn-bg: var(--az-accent);
    --bs-btn-border-color: var(--az-accent);
    --bs-btn-color: var(--az-on-accent);
    --bs-btn-hover-bg: var(--az-accent-hover);
    --bs-btn-hover-border-color: var(--az-accent-hover);
    --bs-btn-hover-color: var(--az-on-accent);
    --bs-btn-active-bg: var(--az-accent-hover);
    --bs-btn-active-border-color: var(--az-accent-hover);
    --bs-btn-active-color: var(--az-on-accent);
    /* direct properties too, for Bootstrap < 5.2 templates that ignore --bs-btn-* */
    background-color: var(--az-accent);
    border-color: var(--az-accent);
    color: var(--az-on-accent);
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: var(--az-accent-hover);
    border-color: var(--az-accent-hover);
    color: var(--az-on-accent);
}

.btn-primary:disabled,
.btn-primary.disabled {
    opacity: .45;
}

.btn-outline-primary,
.btn-outline-dark {
    --bs-btn-color: var(--az-ink);
    --bs-btn-border-color: var(--az-ink);
    --bs-btn-hover-bg: var(--az-ink);
    --bs-btn-hover-color: var(--az-surface);
    --bs-btn-hover-border-color: var(--az-ink);
    color: var(--az-ink);
    border-color: var(--az-ink);
    background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-dark:hover {
    background: var(--az-ink);
    color: var(--az-surface);
}

.btn-dark {
    background: var(--az-ink);
    border-color: var(--az-ink);
    color: var(--az-surface);
}

.btn-dark:hover {
    background: var(--az-accent-hover);
    border-color: var(--az-accent-hover);
    color: var(--az-on-accent);
}

.form-control,
.form-select {
    background-color: var(--az-surface);
    color: var(--az-ink);
    border: 1px solid var(--az-line);
    border-radius: var(--az-radius-sm);
}

.form-control::placeholder {
    color: var(--az-muted);
    opacity: .8;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--az-accent);
    background-color: var(--az-surface);
    color: var(--az-ink);
}

.form-check-input:checked {
    background-color: var(--az-accent);
    border-color: var(--az-accent);
}

.card {
    background: var(--az-surface);
    border: 1px solid var(--az-line);
    border-radius: var(--az-radius);
    box-shadow: none;
}

.badge {
    font-weight: 600;
    letter-spacing: .02em;
    border-radius: 999px;
}

.dropdown-menu,
.offcanvas,
.modal-content {
    background: var(--az-surface);
    border: 1px solid var(--az-line);
    border-radius: var(--az-radius);
    box-shadow: 0 18px 40px rgba(11, 18, 32, .10);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--az-surface-2);
    color: var(--az-ink);
}

.page-link {
    color: var(--az-ink);
    border-color: var(--az-line);
    background: var(--az-surface);
}

.page-item.active .page-link {
    background: var(--az-accent);
    border-color: var(--az-accent);
    color: var(--az-on-accent);
}

.breadcrumb a {
    color: var(--az-muted);
}

.nav-tabs {
    border-bottom-color: var(--az-line);
}

.nav-tabs .nav-link {
    color: var(--az-muted);
    border: 0;
    border-bottom: 2px solid transparent;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: var(--az-ink);
    background: transparent;
    border-bottom-color: var(--az-accent);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--az-line);
    color: var(--az-ink);
}

.accordion-item {
    border-color: var(--az-line);
    background: var(--az-surface);
}

.accordion-button:not(.collapsed) {
    background: var(--az-surface-2);
    color: var(--az-ink);
    box-shadow: none;
}

.alert {
    border-radius: var(--az-radius-sm);
}

/* ---------- 5. Signature futuristic details (apply via hook classes) ---------- */
/* Header: white/dark bar with a 1px accent hairline underneath */
.az-header {
    background: var(--az-header-bg);
    color: var(--az-header-ink);
    position: relative;
}

.az-header a {
    color: var(--az-header-ink);
}

.az-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--az-accent) 20%, var(--az-accent) 80%, transparent);
}

/* 4-colour ink bar: put <div class="az-cmyk-bar"></div> directly under the header */
.az-cmyk-bar {
    height: 3px;
    background: linear-gradient(90deg,
            var(--az-c) 0 25%, var(--az-m) 25% 50%, var(--az-y) 50% 75%, var(--az-k) 75% 100%);
}

/* Announcement bar (carriers, returns, no-ship, image disclaimer, phones) */
.az-topbar {
    background: var(--az-topbar-bg);
    color: var(--az-topbar-ink);
    font-size: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 1rem;
}

.az-topbar a {
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
}

.az-topbar a:hover {
    color: var(--az-accent);
}

.az-chip {
    font-family: var(--az-font-mono);
    letter-spacing: .06em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    padding: .1rem .55rem;
    color: var(--az-topbar-ink);
}

/* Part numbers / SKUs read like data */
.az-sku {
    font-family: var(--az-font-mono);
    font-size: .8125rem;
    letter-spacing: .04em;
    color: var(--az-muted);
}

/* Prices */
.az-price {
    font-family: var(--az-font-head);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--az-ink);
}

.az-price__was {
    color: var(--az-muted);
    text-decoration: line-through;
    font-size: .9rem;
    margin-left: .4rem;
    font-weight: 400;
}

.az-save {
    color: var(--az-ok-fg);
    background: var(--az-ok-bg);
    font-size: .75rem;
    font-weight: 600;
    padding: .1rem .5rem;
    border-radius: 999px;
    margin-left: .4rem;
}

/* Stock pill: <span class="az-stock az-stock--in">In stock</span> | --low "Only 3 left!" | --out */
.az-stock {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .8125rem;
    font-weight: 600;
    padding: .15rem .6rem;
    border-radius: 999px;
}

.az-stock::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: currentColor;
}

.az-stock--in {
    color: var(--az-ok-fg);
    background: var(--az-ok-bg);
}

.az-stock--low {
    color: var(--az-low-fg);
    background: var(--az-low-bg);
}

.az-stock--out {
    color: var(--az-out-fg);
    background: var(--az-out-bg);
}

/* Out of stock => "Call to Place Order" (tel: link). Replaces the Add to Cart button. */
.az-callbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .6rem 1rem;
    border: 1.5px solid var(--az-out-fg);
    color: var(--az-out-fg);
    background: transparent;
    border-radius: var(--az-radius-sm);
    font-weight: 600;
    text-decoration: none;
}

.az-callbtn:hover {
    background: var(--az-out-fg);
    color: #FFFFFF;
}

/* Product card polish (add class az-product to the template's card) */
.az-product {
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.az-product:hover {
    border-color: var(--az-accent);
    box-shadow: 0 10px 28px -12px var(--az-glow);
    transform: translateY(-2px);
}

.az-product img {
    background: #FFFFFF;
    object-fit: contain;
}

/* Key specifications table on the product page */
.az-spec {
    width: 100%;
    border-collapse: collapse;
}

.az-spec th {
    width: 38%;
    text-align: left;
    font-weight: 500;
    color: var(--az-muted);
    padding: .55rem 0;
    border-bottom: 1px solid var(--az-line);
}

.az-spec td {
    padding: .55rem 0;
    border-bottom: 1px solid var(--az-line);
    font-weight: 600;
}

/* Free-shipping progress in cart drawer */
.az-freeship {
    height: 6px;
    background: var(--az-surface-2);
    border-radius: 999px;
    overflow: hidden;
}

.az-freeship>span {
    display: block;
    height: 100%;
    background: var(--az-accent);
    border-radius: 999px;
    transition: width .3s ease;
}

/* Territory / policy notices */
.az-notice {
    border: 1px solid var(--az-line);
    border-left: 3px solid var(--az-accent);
    background: var(--az-surface);
    padding: .65rem .9rem;
    border-radius: var(--az-radius-sm);
    font-size: .875rem;
    color: var(--az-muted);
}

/* Hero: faint technical grid behind a minimal headline (optional) */
.az-hero {
    background-color: var(--az-surface);
    background-image:
        linear-gradient(var(--az-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--az-line) 1px, transparent 1px);
    background-size: 44px 44px;
    background-position: -1px -1px;
}

.az-eyebrow {
    font-family: var(--az-font-mono);
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--az-link);
}

/* Footer */
.az-footer {
    background: var(--az-topbar-bg);
    color: var(--az-topbar-ink);
}

.az-footer a {
    color: #FFFFFF;
    text-decoration: none;
}

.az-footer a:hover {
    color: var(--az-accent);
}

.az-footer small {
    color: var(--az-topbar-ink);
}

/* ---------- 7. Search autocomplete ---------- */
.search-section { position: relative; }
#az-suggest[hidden] { display: none; }
#az-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--az-surface); border: 1px solid var(--az-line); border-radius: var(--az-radius-sm);
  box-shadow: 0 18px 40px rgba(11, 18, 32, .12); overflow: hidden; max-height: 320px; overflow-y: auto;
}
.az-suggest-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 14px; text-decoration: none; color: var(--az-ink); font-size: 14px;
}
.az-suggest-item:hover, .az-suggest-item.is-active { background: var(--az-surface-2); }
.az-suggest-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-suggest-tag {
  flex: none; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--az-muted); border: 1px solid var(--az-line); border-radius: 999px; padding: 1px 8px;
}

/* ---------- 8. Motion + accessibility ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

a:focus-visible {
    outline: 2px solid var(--az-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* =========================================================================
   7. Shopus template mappings — every visible template colour is mapped
   to the palette above via var(--az-*). No hard-coded #AE1C9A / #232532.
   Structural fixes only otherwise. Template root is 10px, so px units.
   ========================================================================= */

/* Template shop-btn carries a 4rem margin — reset for inline contexts.
   Accent comes from the palette, not the template magenta. */
.shop-btn,
.product-btn,
.deal-btn {
    background: var(--az-accent);
    border-color: var(--az-accent);
    color: var(--az-on-accent);
}

.shop-btn:hover {
    background: var(--az-accent);
    border-color: var(--az-accent);
    color: #fff;
}
/* Dark slide panel sweeps in on hover (template effect) — keep text white over it */
.shop-btn::after {
    background: var(--az-ink);
}
.shop-btn:hover span {
    color: #fff;
}
.shop-btn:hover svg {
    fill: #fff;
}
.product-btn:hover,
.deal-btn:hover {
    background: var(--az-accent-hover);
    border-color: var(--az-accent-hover);
    color: var(--az-on-accent);
}

.shop-btn {
    margin: 0;
}

#hero .wrapper-info .shop-btn {
    margin-top: 30px;
}

.mobile-menu-header .shop-btn {
    padding: 6px 14px;
    font-size: 12px;
}

/* Global links follow the palette (theme sections 88-89), not template ink */
a {
    color: var(--az-link);
}

a:hover {
    color: var(--az-ink);
}

/* Template clean-btn is red (destructive Clear Cart) — ours links back to shop */
.wishlist-btn.cart-btn .clean-btn {
    color: var(--az-ink);
}

.wishlist-btn.cart-btn .clean-btn:hover {
    color: var(--az-accent-hover);
}

.cart-submenu .wrapper {
    display: flex;
    align-items: flex-start;
}

.cart-submenu .wrapper-item {
    flex: 1;
    min-width: 0;
}

.cart-submenu .mini-remove {
    margin: 2px 0 0 4px;
}

/* Footer columns: breathing room above the overlapping service strip */
.footer-section {
    padding-top: 9rem;
}

/* Brands listing page: air before the heading (template category section has none) */
section.product-category {
    padding-top: 6rem;
}

/* Contact page map-slot panel (no street address — online only) */
.az-map-ph {
    border: 1px solid var(--az-line);
    border-radius: 12px;
    padding: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    font-size: 14px;
    background: var(--az-surface);
}

.az-map-ph a {
    color: var(--az-link);
    text-decoration: none;
    font-weight: 600;
}

/* Sidebar promo box — palette gradient, not template fashion magenta */
.sidebar-shop-section.az-promo {
    background: linear-gradient(135deg, var(--az-accent) 0%, var(--az-accent-hover) 100%);
}

.sidebar-shop-section.az-promo .wrapper-subtitle,
.sidebar-shop-section.az-promo .wrapper-heading {
    color: var(--az-on-accent);
}

.sidebar-shop-section.az-promo .deal-btn {
    background: var(--az-surface) !important;
    color: var(--az-ink) !important;
    border-color: transparent !important;
}

.sidebar-shop-section.az-promo .deal-btn:hover {
    background: var(--az-ink) !important;
    color: var(--az-surface) !important;
}

/* NOTE: the canonical .az-topbar (dark, palette-driven) lives in section 5.
   Do NOT re-override it here with a light strip. */

/* Header center: badge + tiles */
.header-center .header-cart-items .cart-item {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: var(--az-accent);
    color: var(--az-on-accent);
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mini-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: var(--az-surface-2);
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--az-font-head), Inter, sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--az-accent);
    overflow: hidden;
}

.mini-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mini-remove {
    background: none;
    border: 0;
    padding: 4px;
    cursor: pointer;
}

/* Category dropdown initial tiles (template slot is 20px — keep tiles inside it) */
.header-nav .category-menu-section .category-dropdown .category-list-item .dropdown-list-item .dropdown-img {
    width: 24px;
    height: 24px;
    flex: none;
}
.header-nav .category-menu-section .category-dropdown .category-list-item {
    border-top: 1px solid rgba(var(--az-accent-rgb), .12);
}
.header-nav .category-menu-section .category-dropdown .category-list-item:hover {
    background-color: rgba(var(--az-accent-rgb), .12);
}
.header-nav .category-menu-section .category-dropdown .category-list-item:hover .dropdown-text {
    color: var(--az-link);
}
.header-nav .category-menu-section .category-dropdown .category-list-item:hover .dropdown-img .az-initial {
    background: var(--az-accent);
    color: var(--az-on-accent);
}
.dropdown-img .az-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(var(--az-accent-rgb), .10);
    color: var(--az-accent-hover);
    font-weight: 700;
    font-size: 12px;
}

/* Product cards: template-exact anatomy (fixed-height card, hover icon
   buttons, accent tab button pinned flush to the card's bottom-right).
   Stock is shown as a flag on the image so rows never overflow. */
.product-wrapper .product-cart-btn {
    bottom: 0;
}

.az-flag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.az-flag--low {
    color: var(--az-low-fg);
    background: var(--az-low-bg);
}

.az-flag--out {
    color: var(--az-out-fg);
    background: var(--az-out-bg);
}

.product-cart-items button {
    line-height: 0;
}

.product-cart-items button:disabled {
    opacity: .55;
    cursor: default;
}

/* Brand logo grid wordmarks (muted like template logos, accent on hover) */
.brand-section .wrapper-img img {
    max-height: 56px;
    max-width: 82%;
    object-fit: contain;
}

.az-brand-word {
    font-family: var(--az-font-head), Inter, sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--az-muted);
    white-space: nowrap;
}

.brand-section .product-wrapper:hover .az-brand-word {
    color: var(--az-accent-hover);
}

/* Image logo (Option B) — replaces the old text "AZ Supplies Inc" wordmark */
.az-logo {
    font-family: var(--az-font-head), Inter, sans-serif;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: -.01em;
    color: var(--az-header-ink);
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.az-logo img {
    display: block;
    max-height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.az-logo span {
    color: var(--az-accent-hover);
}

@media (max-width: 991px) {
    .az-logo {
        font-size: 19px;
    }
}

.footer-order .az-logo {
    color: #fff;
}

/* Copyright row (our addition) */
.az-copyright {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 28px;
    padding: 16px 0 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    justify-content: space-between;
    font-size: 12px;
    color: var(--az-topbar-ink);
}

.az-copyright a {
    color: #fff;
}

/* Business-standard flash messages: icon row, readable size */
.az-flash { display: flex; align-items: flex-start; gap: 10px; font-size: 15px;
    padding: 14px 16px; margin-top: 16px; border-radius: 12px; }
.az-flash__icon { flex: none; margin-top: 1px; }
.az-flash ul { font-size: 14px; }

/* Order success hero */
.az-success { text-align: center; padding: 36px 16px 8px; display: flex;
    flex-direction: column; align-items: center; gap: 10px; }
.az-success__illo { margin-bottom: 6px; }
.az-success__title { font-size: 30px; margin: 0; }
.az-success__order { font-size: 16px; color: var(--az-muted); margin: 0; }
.az-success__order strong { color: var(--az-ink); }
.az-success__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.az-success__actions .shop-btn { padding: 12px 30px; font-size: 15px; text-decoration: none; }

/* Mini-cart checkout button follows the theme (template hardcodes magenta) */
.header-center .header-cart-items .header-cart .cart-submenu .cart-wrapper-section .cart-btn .checkout-btn {
    background: var(--az-accent); color: var(--az-on-accent); }
.header-center .header-cart-items .header-cart .cart-submenu .cart-wrapper-section .cart-btn .checkout-btn:hover {
    background: var(--az-accent-hover); color: var(--az-on-accent); }

/* Cart page: retint leftover template purple to the palette */
.blog { background: rgba(var(--az-accent-rgb), .07); }
.table-row { background: rgba(var(--az-accent-rgb), .07); border-color: var(--az-line); }
table .ticket-row:hover { background-color: rgba(var(--az-accent-rgb), .07); }
.cart-section .table-row .table-wrapper .wrapper-img,
.table-row .table-wrapper .wrapper-img { border-color: rgba(var(--az-accent-rgb), .18); }
.table-row .table-wrapper .heading:hover,
.cart-section .table-row .table-wrapper .heading:hover { color: var(--az-accent-hover); }
.cart-section .table-row .table-wrapper .wrapper-img,
.table-row .table-wrapper .wrapper-img { padding: 0; overflow: hidden; }
.cart-section .table-row .table-wrapper .wrapper-img .mini-thumb,
.table-row .table-wrapper .wrapper-img .mini-thumb { width: 100%; height: 100%; border-radius: 0; }
@media (max-width:1023px) {
    .cart-section { border-color: rgba(var(--az-accent-rgb), .18); }
}

/* Checkout: retint leftover template magenta (#AE1C9A) to the Option B violet.
   Covers total price, payment radios, hover + selected states. */
.order-summery .total .price { color: var(--az-accent-hover) !important; }
.order-summery .payment-type .checkbox-item input[type="radio"],
.order-summery .payment-type .checkbox-item input[type="checkbox"],
.checkout .checkbox-item input[type="radio"],
.checkout .checkbox-item input[type="checkbox"],
input[type="radio"], input[type="checkbox"] { accent-color: var(--az-accent) !important; }
.order-summery .payment-type .checkbox-item:hover {
    background-color: rgba(var(--az-accent-rgb), .08) !important; }
.order-summery .payment-type .checkbox-item:has(input:checked) {
    background-color: rgba(var(--az-accent-rgb), .10) !important;
    outline: 1px solid rgba(var(--az-accent-rgb), .35); }
.order-summery .payment-type .checkbox-item:has(input:checked):hover {
    background-color: rgba(var(--az-accent-rgb), .14) !important; }

/* Remaining template magenta hovers (qty steppers, misc icons) -> violet */
.table-row .table-wrapper-center path:hover { fill: var(--az-accent-hover) !important; }
.table-row .table-wrapper .heading:hover,
.cart-section .table-row .table-wrapper .heading:hover { color: var(--az-accent-hover) !important; }
.product-sidebar-section .product-sorting-section { align-items: center; gap: 10px 18px; flex-wrap: wrap; }
.product-sidebar-section .result p span { color: var(--az-link); font-weight: 700; }
.az-sort-wrap { position: relative; display: inline-block; }
.az-sort-wrap::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px;
    border-right: 2px solid var(--az-link); border-bottom: 2px solid var(--az-link);
    transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.az-sort-select { appearance: none; -webkit-appearance: none; border: 1px solid var(--az-line); border-radius: 999px;
    padding: 9px 38px 9px 16px; font-size: 14px; font-weight: 600; color: var(--az-ink); background-color: var(--az-surface);
    cursor: pointer; }
.az-sort-select:focus { outline: none; border-color: var(--az-accent); box-shadow: 0 0 0 3px var(--az-glow); }
.az-fchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.az-fchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 14px;
    border-radius: 999px; border: 1px solid rgba(var(--az-accent-rgb), .35); background: rgba(var(--az-accent-rgb), .10);
    color: var(--az-link); font-size: 13px; font-weight: 600; cursor: pointer; }
.az-fchip span { font-size: 16px; line-height: 1; }
.az-fchip:hover { background: var(--az-accent); border-color: var(--az-accent); color: var(--az-on-accent); }
.az-fchip--clear { background: var(--az-ink); border-color: var(--az-ink); color: var(--az-surface); }
.az-fchip--clear:hover { background: var(--az-accent); border-color: var(--az-accent); color: var(--az-on-accent); }

/* Price slider fill follows the palette (template hardcodes magenta) */
.sidebar-section .sidebar-range .noUi-connect { background: var(--az-accent); }

/* Modern sidebar: compact rows, accent checkboxes, count badges */
.sidebar .sidebar-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }
.sidebar .sidebar-list li { display: flex; align-items: center; gap: 10px; padding: 7px 10px;
    border-radius: 8px; list-style: none; }
.sidebar .sidebar-list li:hover { background: rgba(var(--az-accent-rgb), .07); }
.sidebar .sidebar-list input[type="checkbox"] { accent-color: var(--az-accent); width: 16px; height: 16px; margin: 0; flex: none; cursor: pointer; }
.sidebar .sidebar-list label { display: flex; align-items: center; gap: 8px; flex: 1; margin: 0;
    font-size: 14px; cursor: pointer; }
.az-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--az-link);
    background: rgba(var(--az-accent-rgb), .10); border-radius: 999px; padding: 1px 9px; }
.sidebar hr { border-color: var(--az-line); margin: 16px 0; }
.sidebar .wrapper-heading { font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
    color: var(--az-muted); margin-bottom: 10px; }

/* Modern pagination (palette pills, accent active) */
.az-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 18px 0 6px;
}

.az-pagination__info {
    font-size: 13px;
    color: var(--az-muted);
}

.az-pagination__info span {
    color: var(--az-ink);
    font-weight: 600;
}

.az-pagination__list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.az-page {
    margin: 0;
}

.az-page__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--az-line);
    background: var(--az-surface);
    color: var(--az-ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all .18s ease;
}

.az-page__link:hover {
    border-color: var(--az-accent);
    color: var(--az-on-accent);
    background: var(--az-accent);
}

.az-page.active .az-page__link {
    background: var(--az-accent);
    border-color: var(--az-accent);
    color: var(--az-on-accent);
}

.az-page.disabled .az-page__link {
    opacity: .45;
    pointer-events: none;
    cursor: default;
}

.az-page__dots {
    border: 0;
    background: transparent;
    min-width: 20px;
}

@media (max-width: 575px) {
    .az-pagination {
        justify-content: center;
    }

    .az-pagination__info {
        width: 100%;
        text-align: center;
    }
}

.az-sku {
    font-family: var(--az-font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--az-muted);
}

.az-price {
    font-family: var(--az-font-head);
    font-weight: 700;
    font-size: 20px;
    color: var(--az-ink);
}

.az-price__was {
    color: var(--az-muted);
    text-decoration: line-through;
    font-size: 14px;
    margin-left: 6px;
    font-weight: 400;
}

.az-save {
    color: var(--az-ok-fg);
    background: var(--az-ok-bg);
    font-size: 12px;
    font-weight: 600;
    padding: 1px 8px;
    border-radius: 999px;
    margin-left: 6px;
    white-space: nowrap;
}

.az-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 999px;
}

.az-stock::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

.az-stock--in {
    color: var(--az-ok-fg);
    background: var(--az-ok-bg);
}

.az-stock--low {
    color: var(--az-low-fg);
    background: var(--az-low-bg);
}

.az-stock--out {
    color: var(--az-out-fg);
    background: var(--az-out-bg);
}

.az-callbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    border: 1.5px solid var(--az-out-fg);
    color: var(--az-out-fg);
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.az-callbtn:hover {
    background: var(--az-out-fg);
    color: #FFFFFF;
}

.az-product {
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.az-product:hover {
    border-color: var(--az-accent) !important;
    box-shadow: 0 10px 28px -12px var(--az-glow);
    transform: translateY(-2px);
}

.az-img-ph {
    height: 313px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--az-surface-2), var(--az-surface));
    padding: 20px;
    text-align: center;
}

.az-img-ph .az-ph-brand {
    font-family: var(--az-font-head);
    font-weight: 700;
    font-size: 34px;
    color: var(--az-accent-hover);
}

.az-img-ph .az-ph-name {
    font-size: 13px;
    color: var(--az-muted);
}

.product-img img {
    width: 100%;
    height: 313px;
    object-fit: contain;
    background: #fff;
    padding: 12px;
}

.az-spec {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.az-spec th {
    width: 38%;
    text-align: left;
    font-weight: 500;
    color: var(--az-muted);
    padding: 9px 0;
    border-bottom: 1px solid var(--az-line);
}

.az-spec td {
    padding: 9px 0;
    border-bottom: 1px solid var(--az-line);
    font-weight: 600;
}

.az-freeship {
    height: 6px;
    background: var(--az-surface-2);
    border-radius: 999px;
    overflow: hidden;
}

.az-freeship>span {
    display: block;
    height: 100%;
    background: var(--az-accent);
    border-radius: 999px;
    transition: width .3s ease;
}

.az-notice {
    border: 1px solid var(--az-line);
    border-left: 3px solid var(--az-accent);
    background: var(--az-surface);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--az-muted);
}

.az-eyebrow {
    font-family: var(--az-font-mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--az-link);
}

.az-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.az-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--az-line);
    color: var(--az-ink);
    text-decoration: none;
    background: var(--az-surface);
    font-size: 13px;
}

.az-pill:hover {
    border-color: var(--az-accent);
    color: var(--az-accent-hover);
}

.az-pill--active {
    background: var(--az-accent);
    border-color: var(--az-accent);
    color: var(--az-on-accent);
}

.az-pill--active:hover {
    color: var(--az-on-accent);
}

/* Template hard-coded accents mapped to the palette (was #AE1C9A / #232532) */
.header-top .header-contact .contact-number {
    color: var(--az-accent-hover) !important;
}

.footer-service-section {
    background-color: var(--az-accent) !important;
}

.footer-service-section .service-wrapper .service-info,
.footer-service-section .service-wrapper .service-details {
    color: var(--az-on-accent) !important;
}

.price .new-price,
.product-wrapper-two .price .new-price,
.product-wrapper-three .price .new-price,
.product-info-content .price .new-price {
    color: var(--az-ink) !important;
}

.price .price-cut {
    color: var(--az-muted) !important;
}

.wrapper-section .wrapper-subtitle .wrapper-inner-title,
.style-section .product-wrapper .wrapper-info .wrapper-inner-title,
.wrapper-subtitle {
    color: var(--az-accent-hover) !important;
}

.header-top .header-profile a.active,
.header-nav-menu .menu-list a.active,
.category-list-item a.active {
    color: var(--az-accent-hover) !important;
}

.section-title .view:hover,
.product-details:hover {
    color: var(--az-accent-hover) !important;
}

/* Top 3 sections carry the palette (like the template's pink/white/magenta
   bands, but in our colors): tinted utility strip, white header, dark nav. */
.header-top-section {
    background: rgba(var(--az-accent-rgb), .08) !important;
    border-bottom: 1px solid var(--az-line);
}
.header-top .header-profile a {
    color: var(--az-ink) !important;
}
.header-top .header-profile a:hover {
    color: var(--az-accent-hover) !important;
}

/* Nav bar: violet gradient band (template's magenta band in Option B violet).
   Header/menu stay light — Option B image was colour-codes only. */
.header-bottom {
    background: linear-gradient(90deg, var(--az-accent) 0%, var(--az-accent-hover) 100%) !important;
    border-top: 0;
    border-bottom: 0;
}
.header-nav .header-nav-menu .menu-list > li > a .list-text,
.header-nav-menu .menu-list > li > a {
    color: #FFFFFF !important;
}
/* Dropdown panel links stay dark-on-white (the rule above must not leak in) */
.header-nav .header-nav-menu .menu-list .header-sub-menu a {
    color: var(--az-ink) !important;
}
.header-nav .header-nav-menu .menu-list .header-sub-menu a:hover {
    color: var(--az-accent-hover) !important;
}
.header-nav .header-nav-menu .menu-list > li > a .list-text {
    position: relative;
    padding-bottom: 5px;
}
.header-nav .header-nav-menu .menu-list > li > a .list-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: #FFFFFF;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .28s ease;
}
.header-nav .header-nav-menu .menu-list > li > a:hover .list-text::after {
    transform: scaleX(1);
}
.header-nav .header-nav-menu .menu-list a:hover .list-text {
    color: #FFFFFF !important;
}
.dropdown-btn .dropdown-icon {
    background-color: rgba(255, 255, 255, .28) !important;
}
.dropdown-btn .dropdown-icon svg {
    fill: var(--az-on-accent) !important;
}
.dropdown-btn .dropdown-text {
    color: var(--az-on-accent) !important;
}
.header-sub-menu {
    background: var(--az-surface) !important;
    border: 1px solid var(--az-line) !important;
}
.header-sub-menu a {
    color: var(--az-ink) !important;
}
.header-vendor-btn .shop-btn {
    background: #FFFFFF !important;
    color: var(--az-ink) !important;
    border-color: transparent !important;
}
.header-vendor-btn .shop-btn:hover {
    background: var(--az-ink) !important;
    color: #FFFFFF !important;
}
.header-vendor-btn .shop-btn::after {
    display: none;
}

/* Header-center: template parity in palette colors */
.header-center .header-cart-items .cart-item .cart-text {
    color: var(--az-muted) !important;
}
.header-center .header-cart-items .cart-item:hover .cart-text {
    color: var(--az-accent-hover) !important;
}
.header-center .header-cart-items .header-search:hover {
    background: var(--az-accent-hover) !important;
}
.header-center .header-cart-items a:hover svg path,
.header-center .header-user a:hover svg path {
    fill: var(--az-accent-hover) !important;
}
.header-center .header-cart-items .header-cart .cart-submenu {
    border-top: 3px solid var(--az-accent) !important;
}
.cart-submenu .cart-wrapper-section .cart-btn .view-btn {
    background: var(--az-surface-2) !important;
    color: var(--az-ink) !important;
}

/* Template yellow (#FFBB38) actions -> palette accent.
   NOTE: the search circle is the .header-search wrapper div itself. */
.header-center .header-cart-items .header-search {
    background: var(--az-accent) !important;
}
.header-center .header-cart-items .header-search .header-search-btn {
    background: transparent !important;
    box-shadow: none !important;
}
.header-search .modal-main .wrapper-main {
    border-color: var(--az-accent) !important;
}

/* Bulk-savings promo: modern card on the palette gradient.
   Fixes low-contrast eyebrow and the broken white "Get a Quote" pill. */
.sidebar-shop-section.az-promo {
    background: linear-gradient(135deg, var(--az-accent) 0%, var(--az-accent-hover) 100%);
    border: 0;
    border-radius: var(--az-radius);
    padding: 28px 24px;
    height: auto;
    min-height: 29.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
}
.sidebar-shop-section.az-promo .wrapper-subtitle {
    color: var(--az-on-accent);
    opacity: .8;
    font-size: 12px;
    letter-spacing: .14em;
    font-weight: 700;
}
.sidebar-shop-section.az-promo .wrapper-heading {
    color: var(--az-on-accent);
    font-size: 24px;
    line-height: 1.2;
    margin: 0;
}
.sidebar-shop-section.az-promo .shop-btn.deal-btn {
    background: var(--az-surface) !important;
    color: var(--az-ink) !important;
    border: 1px solid transparent !important;
    border-radius: 999px;
    padding: 10px 22px;
    margin: 8px 0 0;
    font-weight: 700;
}
.sidebar-shop-section.az-promo .shop-btn.deal-btn::after {
    display: none;
}
.sidebar-shop-section.az-promo .shop-btn.deal-btn:hover {
    background: var(--az-ink) !important;
    color: var(--az-surface) !important;
}
