/* =========================================================
   The Barber Co. — Dark Leather Theme
   Shared visual system for all pages. Redefines the existing
   .brutal-border / .brutal-shadow / #awning-strip classes so
   every page picks up the new look automatically.
   ========================================================= */

:root {
    --leather-1: #383e46;
    --leather-2: #16181c;
    --panel: #2b2f36;
    --panel-border: rgba(245, 241, 234, 0.14);
    --cream-text: #f5f1ea;
    --muted-text: #9aa0a6;
    --ink: #141414;
}

* {
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3, .font-black.uppercase.italic, .brand-heading {
    font-family: 'Playfair Display', serif;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.01em;
}

/* The reference design uses upright type throughout; the inherited
   brutalist theme leaned heavily on italics, so normalize it globally. */
.italic {
    font-style: normal !important;
}

/* ---------- Page background: dark charcoal-slate texture ---------- */
body {
    background-color: var(--leather-2);
    background-image:
        radial-gradient(circle at 20% 15%, rgba(255,255,255,0.05) 0, transparent 45%),
        radial-gradient(circle at 85% 65%, rgba(255,255,255,0.035) 0, transparent 40%),
        repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 4px),
        linear-gradient(160deg, var(--leather-1), var(--leather-2));
    background-attachment: fixed;
    color: var(--cream-text);
}

/* ---------- Accent strip: checkerboard "comb teeth" ---------- */
#awning-strip {
    background:
        repeating-conic-gradient(#f5f1ea 0% 25%, #141414 0% 50%) 0 0 / 22px 22px;
    border-bottom: 2px solid #A31621;
}

/* ---------- Cards: soft white cards with a lit glow edge ---------- */
.brutal-border {
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.brutal-shadow,
.brutal-card {
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 26px rgba(255, 245, 225, 0.14),
        0 22px 45px -18px rgba(0, 0, 0, 0.65) !important;
}

/* Any element still using the old hard offset shadow utility */
[class*="shadow-[2px_2px"], [class*="shadow-[3px_3px"], [class*="shadow-[4px_4px"], [class*="shadow-[6px_6px"] {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 26px rgba(255, 245, 225, 0.14),
        0 22px 45px -18px rgba(0, 0, 0, 0.65) !important;
}

/* ---------- Buttons: pill-shaped ---------- */
button, .pill-btn, a.pill-btn {
    border-radius: 9999px !important;
}

/* Keep small inline qty controls squarer so +/- still reads well */
.qty-control, .qty-control button {
    border-radius: 12px !important;
}

/* ---------- Surfaces that used to be cream now sit dark ---------- */
.bg-cream {
    background-color: var(--panel) !important;
    color: var(--cream-text);
}

.dark-surface {
    background-color: var(--panel) !important;
    border-color: var(--panel-border) !important;
    color: var(--cream-text);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        0 0 18px rgba(255, 245, 225, 0.06);
}

.dark-surface .text-gray-500,
.dark-surface .text-gray-400 {
    color: var(--muted-text) !important;
}

/* Inputs sitting on the dark background */
.dark-input {
    background-color: rgba(245, 241, 234, 0.06) !important;
    border: 1px solid var(--panel-border) !important;
    color: var(--cream-text) !important;
}

.dark-input::placeholder {
    color: var(--muted-text) !important;
}

/* Stock badge on product cards */
.stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 9px;
    border-radius: 9999px;
}

/* Search bar: dark pill with an attached circular search button */
.search-btn {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 9999px;
    background: #0e0e0e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    pointer-events: none;
}

/* Pills used for filters/tabs on dark surfaces */
.pill-filter {
    border-radius: 9999px;
    border: 1px solid var(--panel-border);
    color: var(--cream-text);
    background: transparent;
}

.pill-filter.active {
    background: var(--cream-text);
    color: var(--ink);
    border-color: var(--cream-text);
}
