/* ═══════════════════════════════════════════════════════════
   Convenient Cannabis — Design System
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    /* Brand Greens */
    --green-50: #e8f5e9;
    --green-100: #c8e6c9;
    --green-200: #a5d6a7;
    --green-300: #81c784;
    --green-400: #66bb6a;
    --green-500: #4caf50;
    --green-600: #43a047;
    --green-700: #388e3c;
    --green-800: #2e7d32;
    --green-900: #1b5e20;

    /* Neutrals */
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-850: #303030;
    --gray-900: #212121;
    --gray-950: #121212;

    /* Accents */
    --amber: #ffb300;
    --red: #ef5350;

    /* Semantic */
    --bg: var(--gray-950);
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.08);
    --bg-glass: rgba(30,30,30,0.75);
    --text: #f5f5f5;
    --text-muted: #9e9e9e;
    --text-heading: #ffffff;
    --primary: var(--green-500);
    --primary-dark: var(--green-800);
    --primary-glow: rgba(76,175,80,0.25);
    --border: rgba(255,255,255,0.08);

    /* Type */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', var(--font-body);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 40px var(--primary-glow);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 0.3s;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-heading);
    line-height: 1.2;
}

a { color: var(--primary); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--green-300); }

img { max-width: 100%; display: block; }

.hidden { display: none !important; }

/* ── Age Gate ───────────────────────────────────────── */
.age-gate {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.4s var(--ease);
}
.age-gate__card {
    text-align: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.age-gate__logo { width: 100px; height: 100px; margin: 0 auto 1.5rem; border-radius: 50%; }
.age-gate__title { font-size: 1.8rem; margin-bottom: 0.5rem; }
.age-gate__subtitle { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; line-height: 1.5; }
.age-gate__dob { display: flex; gap: 0.75rem; margin: 2rem 0; justify-content: center; }
.age-gate__dob .form-group { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.age-gate__dob label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.age-gate__dob input, .age-gate__dob select {
    background: var(--gray-900); border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 0.6rem; color: var(--white); font-family: var(--font-body); width: 85px;
}
.age-gate__dob select { width: 100px; }
.age-gate__buttons { display: flex; gap: 1rem; justify-content: center; }
.age-gate__disclaimer { font-size: 0.75rem; color: var(--gray-600); margin-top: 2rem; }
.age-gate__error { font-size: 0.82rem; color: #f87171; margin-top: 0.75rem; font-weight: 500; }

/* ── Location Prompt (post-age-gate selector) ──────────── */
.location-prompt {
    /* Allow the card to scroll if it overflows on short viewports */
    overflow-y: auto;
    padding: 2rem 1rem;
    align-items: flex-start;
}
.location-prompt__card {
    max-width: 920px;
    width: 100%;
    padding: 2.25rem 2rem;
    text-align: center;
    margin: auto;
}
.location-prompt__logo { width: 72px; height: 72px; margin-bottom: 1rem; }

.location-prompt__map {
    height: 240px;
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--gray-900);
    margin: 1.5rem 0;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}
/* Leaflet draws controls/popups with high z-index — keep them above the card backdrop */
.location-prompt__map .leaflet-container { background: var(--gray-900); }
.location-prompt__map .leaflet-control-attribution {
    background: rgba(0,0,0,0.55);
    color: var(--text-muted);
    font-size: 0.65rem;
}
.location-prompt__map .leaflet-control-attribution a { color: var(--green-300); }

.location-prompt__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0 0.5rem;
}

.location-prompt__card-btn {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    padding: 0;
    color: var(--text);
    font: inherit;
    transition: transform var(--duration) var(--ease),
                border-color var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
    display: flex;
    flex-direction: column;
    position: relative;
}
.location-prompt__card-btn:hover,
.location-prompt__card-btn:focus-visible {
    border-color: var(--green-500);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    outline: none;
}
.location-prompt__card-btn:focus-visible {
    box-shadow: var(--shadow-lg), 0 0 0 3px rgba(76,175,80,0.35);
}
.location-prompt__card-btn.is-active {
    border-color: var(--green-400);
    box-shadow: var(--shadow-lg), 0 0 0 2px rgba(76,175,80,0.45);
}

.location-prompt__card-img {
    height: 160px;
    overflow: hidden;
    background: var(--gray-900);
    position: relative;
}
.location-prompt__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.location-prompt__card-btn:hover .location-prompt__card-img img,
.location-prompt__card-btn:focus-visible .location-prompt__card-img img { transform: scale(1.06); }

.location-prompt__card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 55%);
    pointer-events: none;
}

.location-prompt__card-body {
    padding: 1rem 1.1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    background: rgba(0,0,0,0.25);
}
.location-prompt__card-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-heading);
    letter-spacing: 0.01em;
}
.location-prompt__card-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.location-prompt__card-cta {
    margin-top: 0.6rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-400);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.location-prompt__card-cta::after {
    content: '→';
    transition: transform var(--duration) var(--ease);
}
.location-prompt__card-btn:hover .location-prompt__card-cta::after,
.location-prompt__card-btn:focus-visible .location-prompt__card-cta::after { transform: translateX(3px); }

/* Map marker popup — match dark theme */
.location-prompt__map .leaflet-popup-content-wrapper {
    background: var(--gray-900);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}
.location-prompt__map .leaflet-popup-tip { background: var(--gray-900); }
.location-prompt__map .leaflet-popup-content {
    margin: 0.6rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
}
.location-prompt__map .leaflet-popup-content strong {
    font-family: var(--font-display);
    color: var(--text-heading);
    display: block;
    margin-bottom: 0.15rem;
}
.location-prompt__map .leaflet-popup-content button {
    margin-top: 0.4rem;
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.03em;
}
.location-prompt__map .leaflet-popup-close-button { color: var(--text-muted); }

/* Custom pin marker */
.location-prompt__pin {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--green-500), var(--green-800));
    border: 2px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.55);
}

@media (max-width: 768px) {
    .location-prompt__card { padding: 1.75rem 1.25rem; }
    .location-prompt__map { height: 200px; }
    .location-prompt__grid { grid-template-columns: 1fr; gap: 1rem; }
    .location-prompt__card-img { height: 140px; }
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 2rem;
    border: none; border-radius: var(--radius-full); cursor: pointer;
    font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
    transition: all var(--duration) var(--ease);
}
.btn--primary {
    background: linear-gradient(135deg, var(--green-600), var(--green-800));
    color: #fff;
    box-shadow: 0 4px 16px rgba(46,125,50,0.4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(46,125,50,0.5); }
.btn--ghost {
    background: transparent; color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn--ghost:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.btn--sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn--secondary {
    background: rgba(255,255,255,0.12);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn--secondary:hover {
    background: rgba(255,255,255,0.2);
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
    position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.8rem 2rem;
    background: rgba(12,12,12,0.8);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border);
    transition: all var(--duration) var(--ease);
}
.navbar__brand { display: flex; align-items: center; gap: 0.75rem; }
.navbar__logo { width: 40px; height: 40px; border-radius: 50%; }
.navbar__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text-heading); }
.navbar__actions { margin-left: auto; margin-right: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.navbar .notice-badge-btn { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.navbar .notice-badge-count { width: 18px; height: 18px; font-size: 0.7rem; }
.navbar__links { display: flex; gap: 0.25rem; list-style: none; }
.navbar__links a {
    padding: 0.5rem 1rem; border-radius: var(--radius-full);
    color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
    transition: all var(--duration) var(--ease);
}
.navbar__links a:hover, .navbar__links a.active { color: var(--text-heading); background: rgba(255,255,255,0.06); }
.navbar__hamburger { display: none; background: none; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }

/* ── Hero ───────────────────────────────────────────── */
.hero {
    min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 4rem 2rem;
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(46,125,50,0.15) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 80%, rgba(46,125,50,0.08) 0%, transparent 40%);
    pointer-events: none;
}
.hero__content { position: relative; z-index: 1; max-width: 700px; }
.hero__logo { width: 140px; height: 140px; margin: 0 auto 2rem; border-radius: 50%; box-shadow: var(--shadow-glow); animation: float 6s ease-in-out infinite; }
.hero__title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem; }
.hero__title span { background: linear-gradient(135deg, var(--green-400), var(--green-200)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero__subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 550px; margin-left: auto; margin-right: auto; }
.hero__cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 400px) {
    .hero__cta { flex-direction: column; width: 100%; max-width: 280px; margin: 0 auto; }
    .hero__cta .btn { width: 100%; }
}

.hero__image-overlay {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.15; z-index: 0;
    filter: saturate(1.5) blur(3px);
}
.hero__content { position: relative; z-index: 2; max-width: 700px; }
.hero__back-link { 
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--green-400); font-weight: 700; font-size: 0.85rem;
    margin-bottom: 1.5rem; letter-spacing: 0.05em;
}

/* ── Section ────────────────────────────────────────── */
.section { padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
@media (max-width: 400px) {
    .section { padding: 3rem 1rem; }
}
.section--compact { padding-top: 1rem; }
.section__header { text-align: center; margin-bottom: 2rem; }
.section--compact .section__header { margin-bottom: 1rem; }
.section__title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700; margin-bottom: 0.5rem; }
.section__subtitle { color: var(--text-muted); font-size: 1.05rem; }
.section__divider { width: 60px; height: 3px; background: linear-gradient(90deg, var(--green-500), var(--green-300)); border-radius: 2px; margin: 1rem auto 0; }

/* ── Location Cards ─────────────────────────────────── */
.locations-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 2rem; }
.location-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; transition: all var(--duration) var(--ease);
    cursor: pointer;
}
.location-card:hover { border-color: var(--green-500); transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.location-card__image {
    height: 220px; overflow: hidden; position: relative;
    background: var(--gray-900);
}
.location-card__image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.location-card:hover .location-card__image img { transform: scale(1.05); }

.location-card__body {
    padding: 1.5rem;
    background: var(--gray-900);
    position: relative;
    z-index: 2;
}
.location-card__name { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; color: #fff; }
.location-card__detail { display: flex; align-items: flex-start; gap: 0.6rem; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.6rem; }
.location-card__detail svg { flex-shrink: 0; margin-top: 2px; color: var(--green-500); }
.location-card__hours { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.location-card__hours-title { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green-400); margin-bottom: 0.75rem; }
.hours-grid { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.5rem; font-size: 0.88rem; }

.hours-grid .day { color: var(--text-muted); }
.hours-grid .time { color: var(--text); }
.hours-grid .today { color: var(--green-400); font-weight: 600; }
.location-card__stock { margin-top: 1rem; padding: 0.6rem 1rem; background: rgba(76,175,80,0.1); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--green-300); display: flex; align-items: center; gap: 0.5rem; }

/* ── Product Menu ───────────────────────────────────── */
.menu-controls { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; align-items: center; }
.menu--collapsed .menu-controls,
.menu--collapsed .active-filters,
.menu--collapsed .products-grid,
.menu--collapsed .pagination {
    display: none !important;
}
.menu-filter-actions {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    transition: all 0.4s var(--ease);
}

.menu-filter-actions.floating {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    opacity: 1;
}

.menu-filter-actions.floating .filter-trigger-btn {
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
    backdrop-filter: blur(16px);
    background: var(--green-600); /* Consistent solid green */
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    color: #fff;
    opacity: 1 !important;
}

.menu-search {
    flex: 1; min-width: 140px;
    padding: 0.35rem 0.5rem 0.35rem 1.8rem;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); font-size: 0.75rem; font-family: var(--font-body);
    transition: border-color var(--duration) var(--ease);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%239e9e9e' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242.656a5 5 0 1 1 0-10 5 5 0 0 1 0 10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: 0.5rem center;
    height: 32px;
}
.menu-search:focus { outline: none; border-color: var(--green-500); }
.menu-search::placeholder { color: var(--text-muted); }
.filter-select {
    padding: 0.25rem 1.4rem 0.25rem 0.5rem; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text); font-size: 0.75rem;
    font-family: var(--font-body); cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%239e9e9e' viewBox='0 0 16 16'%3E%3Cpath d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: calc(100% - 0.4rem) center;
    height: 32px;
}
.filter-select option { background: var(--gray-900); color: var(--text); }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.products-grid.list-view {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
.products-grid.list-view .product-card {
    display: grid;
    grid-template-columns: 84px 1.5fr 1fr 70px 100px 40px;
    align-items: center;
    gap: 0.5rem 1rem;
    padding: 0.4rem 0.75rem;
}
.products-grid.list-view .product-card__footer { display: contents; }

.products-grid.list-view .product-card__info-group { min-width: 0; overflow: hidden; }
.products-grid.list-view .product-card__brand,
.products-grid.list-view .product-card__name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-grid.list-view .product-card__details-group { 
    display: flex; 
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem 0.4rem;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    overflow: hidden;
    font-size: 0.55rem;
}
.products-grid.list-view .product-card__thc { 
    white-space: nowrap; 
    opacity: 0.7;
    margin-right: 0.25rem;
}
.products-grid.list-view .product-card__terpenes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.products-grid.list-view .product-card__price-badge { justify-self: end; }
.products-grid.list-view .product-card__stock { justify-self: end; display: flex; gap: 0.25rem; }
.products-grid.list-view .product-card__stock-label { display: none; }

.products-grid.list-view .product-card__request { justify-self: end; }
.products-grid.list-view .btn--request {
    padding: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.products-grid.list-view .btn--request .icon svg { width: 14px; height: 14px; }

/* Request tooltip */
.request-tip {
    background: rgba(30, 30, 34, 0.95);
    color: #e5e5ea;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    line-height: 1.4;
    text-align: center;
    width: 180px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    pointer-events: none;
    animation: tipFadeIn 0.15s ease;
}
.request-tip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(30, 30, 34, 0.95);
}
@keyframes tipFadeIn { from { opacity: 0; transform: translateY(-100%) translateY(4px); } to { opacity: 1; transform: translateY(-100%); } }


@media (max-width: 1100px) {
    .products-grid.list-view .product-card {
        grid-template-columns: 44px 1.2fr 1fr 60px 85px 36px;
        gap: 0.25rem 0.5rem;
    }
}

@media (max-width: 800px) {
    .products-grid.list-view .product-card {
        grid-template-columns: 44px 1.2fr 0.8fr 60px 80px 36px;
        gap: 0.25rem 0.4rem;
    }
    .products-grid.list-view .product-card__details-group {
        display: flex;
        font-size: 0.35rem;
    }
}

@media (max-width: 600px) {
    .products-grid.list-view .product-card {
        grid-template-columns: 32px 1.2fr 0.8fr 45px 70px 32px;
        gap: 0.1rem 0.2rem;
        padding: 0.35rem 0.5rem;
    }
    .products-grid.list-view .product-card__details-group {
        display: flex;
        font-size: 0.28rem;
    }
    .products-grid.list-view .product-card__img-container {
        width: 32px;
        height: 32px;
    }
}

.badge--terpene {
    display: inline-block;
    padding: 0.02rem 0.25rem; /* Reduced vertical padding */
    border-radius: 4px;
    font-size: 0.6rem; /* Slightly smaller */
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.01em;
    white-space: nowrap;
    cursor: pointer;
    margin: 0.1rem 0;
}
/* colours set inline by JS via TERPENE_INFO */

/* In list-view: strip pills down to micro-text */
.products-grid.list-view .badge--terpene {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: inherit;
    padding: 0;
    opacity: 0.9;
}
.products-grid.list-view .badge--terpene:not(:last-child)::after {
    content: '·';
    margin: 0 0.15rem;
    opacity: 0.5;
}

#terpene-tip {
    background: #16171c;
    border: 1px solid #2e2f36;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    width: 220px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.85);
    line-height: 1.45;
}
.terpene-tip__name {
    font-size: 0.88rem;
    font-weight: 800;
    display: block;
    letter-spacing: 0.02em;
}
.terpene-tip__bp {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    float: right;
    margin-top: 0.15rem;
    font-weight: 600;
}
.terpene-tip__desc {
    font-size: 0.76rem;
    color: #e5e7eb;
    margin: 0.3rem 0 0;
    clear: both;
}
.products-grid.list-view .product-card__img-container {
    position: static;
    width: 80px;
    height: 80px;
}


.products-grid.list-view .product-card__price-badge {
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    font-size: 0.95rem;
    color: var(--text-heading);
    display: flex;
    align-items: center;
}

.products-grid.list-view .product-card__price-badge.price-calculated {
    color: var(--amber);
}

.product-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 1rem; cursor: pointer;
    transition: all var(--duration) var(--ease);
    display: flex;
    flex-direction: column;
}
.product-card:hover { background: var(--bg-card-hover); transform: translateY(-2px); border-color: rgba(76,175,80,0.2); box-shadow: var(--shadow-md); }
.product-card__brand { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-400); font-weight: 600; margin-bottom: 0.3rem; }
.product-card__name { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.product-card:not(.list-view) .product-card__info-group {
    padding-right: 110px;
}
.product-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.badge {
    display: inline-flex; padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
}
.badge--indica { background: rgba(129,71,230,0.15); color: #b388ff; }

.product-card {
    position: relative;
    padding-top: 3.2rem; /* Make room for the price badge */
}

.product-card__brand {
    margin-top: 0.5rem;
}

.product-card__img-container {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: zoom-in;
    z-index: 5;
    transition: all 0.3s var(--ease);
}
.product-card__img-container:hover {
    width: 140px;
    height: 140px;
    z-index: 50;
    box-shadow: var(--shadow-lg);
}
.product-card__img {
    width: 100%; height: 100%; object-fit: cover;
}

.modal__img-container {
    width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border);
    margin-bottom: 2rem; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.modal__img { width: 100%; height: 100%; object-fit: contain; }

.badge--indica { background: rgba(129,71,230,0.15); color: #b388ff; }
.badge--sativa { background: rgba(255,167,38,0.15); color: #ffb74d; }
.badge--hybrid { background: rgba(76,175,80,0.15); color: var(--green-300); }
.badge--format { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.badge--cbd    { background: rgba(33,150,243,0.15);  color: #64b5f6; }
.badge--local  { background: rgba(255,183,77,0.15);  color: #ffb74d; }
.product-card__thc { font-size: 0.8rem; color: var(--text-muted); }
.product-card__thc strong { color: var(--text); }
.product-card__terpenes { 
    margin-top: 0.5rem; 
    font-size: 0.78rem; 
    color: var(--text-muted); 
    display: flex; 
    flex-wrap: wrap; 
    gap: 0.25rem; 
    align-items: center;
}
.product-card__terpenes span { color: var(--green-300); }

/* Footer row for Grid View */
.product-card__footer {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    align-items: center;
    justify-content: space-between;
}
.product-card__footer .product-card__price-badge {
    position: static;
    order: 2;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--text-heading);
}
.product-card__footer .product-card__price-badge.price-calculated { color: var(--amber); }
.product-card__footer .product-card__stock   { order: 1; }
.product-card__footer .product-card__request { order: 3; }

.product-card__stock {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.product-card__stock-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-right: 0.2rem; }
.stock-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    position: relative;
    cursor: help;
}
.stock-dot--in-stock { background: var(--green-500); box-shadow: 0 0 8px var(--primary-glow); }
.stock-dot--out-of-stock { background: var(--gray-700); }

/* Stock tooltips handled by JS initStockTooltip() */

.product-card__request {
    margin-left: auto;
}
.btn--request {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}
.btn--request:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}
.btn--request.requested {
    color: var(--amber);
    background: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.3);
}
.btn--request.others-requested {
    color: #ff9800;
    background: rgba(255, 152, 0, 0.08);
    border-color: rgba(255, 152, 0, 0.2);
}
.btn--request.popular {
    color: var(--amber);
    background: rgba(255, 193, 7, 0.12);
    border-color: var(--amber);
    animation: pulse-gold 2s infinite ease-in-out;
}
.btn--request .icon { display: flex; align-items: center; }
.btn--request .icon svg { width: 16px; height: 16px; }

@keyframes pulse-gold {
    0% { transform: scale(1); filter: drop-shadow(0 0 1px var(--amber)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 6px var(--amber)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 1px var(--amber)); }
}




.pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 2.5rem; }
.pagination .btn { min-width: 40px; }
.pagination__info { color: var(--text-muted); font-size: 0.85rem; margin: 0 1rem; }

/* ── Loading & Empty States ─────────────────────────── */
.loading { text-align: center; padding: 3rem; color: var(--text-muted); }
.loading__spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--green-500); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 1rem; }
.empty-state { text-align: center; padding: 3rem; color: var(--text-muted); }

/* ── Product Detail Modal ───────────────────────────── */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 5000;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.2s var(--ease);
}
.modal {
    background: var(--gray-900); border: 1px solid var(--border); border-radius: var(--radius-lg);
    max-width: 600px; width: 92%; max-height: 85vh; overflow-y: auto;
    padding: 2rem; position: relative;
    animation: slideUp 0.3s var(--ease);
}
.modal__close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; line-height: 1; }
.modal__close:hover { color: var(--text); }
.modal__brand { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green-400); font-weight: 600; }
.modal__name { font-size: 1.5rem; font-weight: 700; margin: 0.3rem 0 1rem; }
.modal__badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.modal__section { margin-bottom: 1.25rem; }
.modal__section-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; margin-bottom: 0.4rem; }
.modal__description { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.modal__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.modal__stat { background: var(--bg-card); padding: 0.75rem; border-radius: var(--radius-sm); }
.modal__stat-label { font-size: 0.72rem; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.04em; }
.modal__stat-value { font-size: 1.1rem; font-weight: 700; color: var(--text-heading); }
.modal__availability { margin-top: 1rem; }
.modal__availability-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }

/* ── Shopping Cart ───────────────────────────────────── */
.cart-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.cart-pill:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--green-500);
}
.cart-pill__icon { font-size: 1.1rem; }
.cart-pill__count {
    background: var(--green-500);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.cart-pill__total {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-heading);
}

.modal--cart {
    max-width: 450px;
    display: flex;
    flex-direction: column;
}
.cart-items-list {
    margin: 1.5rem 0;
    max-height: 40vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cart-item-row {
    display: grid;
    grid-template-columns: 50px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.cart-item-row img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    background: var(--bg-card);
}
.cart-item-info {
    display: flex;
    flex-direction: column;
}
.cart-item-name {
    font-weight: 600;
    font-size: 0.9rem;
}
.cart-item-brand {
    font-size: 0.7rem;
    color: var(--green-400);
    text-transform: uppercase;
    font-weight: 600;
}
.cart-item-price {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.cart-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.cart-qty-btn:hover { background: rgba(255,255,255,0.12); }
.cart-item-qty { font-weight: 600; font-size: 0.9rem; min-width: 1.2rem; text-align: center; }

.cart-footer {
    border-top: 2px solid var(--border);
    padding-top: 1.5rem;
}
.cart-summary {
    margin-bottom: 1.5rem;
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.cart-summary-row span:last-child {
    font-weight: 700;
    color: var(--text-heading);
}
.grams-row {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.grams-warning {
    color: var(--red) !important;
}
.checkout-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* ─── In-store mode: handoff status overlay ─────────────────────
   Full-screen on phone. Big 4-digit code + countdown so the customer
   can walk to the counter and read it to the budtender. */
.modal--handoff {
    max-width: 480px;
    text-align: center;
    padding: 2.5rem 1.5rem 1.5rem;
}
.handoff-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}
.handoff-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}
.handoff-code {
    font-family: 'Outfit', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--green-500, #4caf50);
    padding: 1.5rem 1rem;
    margin: 0 auto 1.5rem;
    background: rgba(76, 175, 80, 0.12);
    border: 2px solid rgba(76, 175, 80, 0.4);
    border-radius: 16px;
    display: inline-block;
    line-height: 1;
    text-shadow: 0 0 24px rgba(76, 175, 80, 0.4);
}
.handoff-timer-wrap {
    margin-bottom: 1.5rem;
}
.handoff-timer {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.2rem;
}
.handoff-timer.is-warning { color: var(--amber, #ffb300); }
.handoff-timer.is-critical { color: var(--red, #ef5350); }
.handoff-timer-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.handoff-cart-summary {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    text-align: left;
    font-size: 0.85rem;
    color: var(--text-muted);
    max-height: 30vh;
    overflow-y: auto;
}
.handoff-cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.25rem 0;
}
.handoff-cart-summary-row .name { color: var(--text); }
.handoff-cart-summary-total {
    font-weight: 700;
    color: var(--text);
    border-top: 1px solid var(--border, rgba(255,255,255,0.08));
    margin-top: 0.4rem;
    padding-top: 0.5rem;
}

/* In-store mode banner — pinned across the top, shows which store the
   customer's session is locked to. Replaces the location picker. */
.instore-banner {
    background: rgba(76, 175, 80, 0.12);
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
    color: var(--green-500, #4caf50);
    padding: 0.6rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.instore-banner .icon { margin-right: 0.4rem; }
.instore-banner .store-name { color: var(--text); font-weight: 700; }

/* My Account Pill */
.nav-account-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(76,175,80,0.1);
    border: 1px solid rgba(76,175,80,0.2);
    border-radius: var(--radius-full);
    color: var(--green-400);
    font-weight: 600;
    font-size: 0.85rem;
}
.nav-account-btn:hover {
    background: rgba(76,175,80,0.2);
    color: var(--green-300);
}

/* ── About ──────────────────────────────────────────── */
.about-content { max-width: 700px; margin: 0 auto; text-align: center; color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }

/* ── Announcement ───────────────────────────────────── */
.announcement {
    background: linear-gradient(90deg, var(--green-900), var(--green-800));
    padding: 0.75rem 2rem; text-align: center;
    font-size: 0.9rem; font-weight: 500; color: var(--green-100);
    position: relative; z-index: 1001;
}

/* ── AGLC Compliance Banners ═══ */
.aglc-banners { background: var(--gray-950); padding: 6rem 2rem; }
.aglc-banner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.aglc-banner {
    background: var(--bg-card); padding: 2.5rem; border-radius: var(--radius-lg);
    border-left: 4px solid var(--green-500); transition: transform 0.3s var(--ease);
}
.aglc-banner:hover { transform: translateY(-5px); background: var(--bg-card-hover); }
.aglc-banner__badge { font-size: 0.7rem; font-weight: 800; color: var(--green-500); text-transform: uppercase; margin-bottom: 0.75rem; }
.aglc-banner h3 { margin-bottom: 1rem; }
.aglc-banner p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

/* ── Footer ─────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 5rem 2rem 3rem; background: var(--gray-950); }
.footer__container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3rem; max-width: 1200px; margin: 0 auto; text-align: left; }
.footer__main { flex: 1; min-width: 280px; }
.footer__links { flex: 1; display: flex; gap: 4rem; justify-content: flex-end; min-width: 280px; }
.footer__brand { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text-heading); margin-bottom: 1rem; }
.footer__link-group h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-heading); margin-bottom: 1.5rem; }
.footer__link-group a { display: block; color: var(--text-muted); margin-bottom: 0.8rem; font-size: 0.9rem; transition: color 0.2s; }
.footer__link-group a:hover { color: var(--green-500); }
.footer__divider { height: 1px; background: var(--border); margin: 3rem 0; width: 100%; }
.footer__legal { color: var(--text-muted); font-size: 0.78rem; line-height: 1.8; text-align: center; max-width: 900px; margin: 0 auto; }
@media (max-width: 700px) {
    .footer { padding: 3rem 1.25rem 2rem; }
    .footer__container { flex-direction: column; align-items: center; text-align: center; gap: 2rem; }
    .footer__main { min-width: unset; }
    .footer__links { justify-content: center; min-width: unset; }
    .footer__link-group { text-align: center; }
}

.location-card__license { font-size: 0.8rem; font-weight: 700; color: var(--green-500); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }

.location-card__notice {
    width: 100%; height: 200px; padding: 2rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: #fff;
    position: relative; overflow: hidden;
    cursor: pointer;
}
.location-card__notice--notice { background: linear-gradient(135deg, var(--green-800), var(--green-950)); }
.location-card__notice--sale { background: linear-gradient(135deg, #b71c1c, #d32f2f); }
.location-card__notice--event { background: linear-gradient(135deg, #4527a0, #673ab7); }

.location-card__notice .notice-badge {
    position: absolute; top: 1rem; right: 1rem;
    font-size: 0.65rem; font-weight: 800; background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.6rem; border-radius: var(--radius-full);
}
.location-card__notice .notice-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 0.5rem; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.location-card__notice .notice-text { font-size: 0.95rem; opacity: 0.9; max-width: 80%; }

/* ── Location Specific "Snaz" ────────────────────────── */

/* Oyen: Prairie Vibe */
.location-card--oyen .location-card__notice {
    background-image:
        radial-gradient(circle at top right, rgba(255, 179, 0, 0.2), transparent),
        linear-gradient(135deg, var(--green-800), var(--green-950));
}
.location-card--oyen .location-card__notice::before {
    content: ''; position: absolute; inset: 0;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0c16.568 0 30 13.432 30 30s-13.432 30-30 30S0 46.568 0 30 13.432 0 30 0zm0 10C18.954 10 10 18.954 10 30s8.954 20 20 20 20-8.954 20-20S41.046 10 30 10z' fill='%23ffffff' fill-rule='evenodd'/%3E%3C/svg%3E");
    animation: pulse 8s ease-in-out infinite;
}

/* Irricana: Township Vibe */
.location-card--irricana .location-card__notice {
    background-image:
        radial-gradient(circle at bottom left, rgba(76, 175, 80, 0.2), transparent),
        linear-gradient(135deg, #2e3b4e, #1a242f);
}
.location-card--irricana .location-card__notice::before {
    content: ''; position: absolute; inset: 0;
    opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20z' fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
    transform: rotate(15deg);
}

/* Notice Type Overrides with Snaz */
.location-card__notice--sale {
    background: linear-gradient(135deg, #d32f2f, #7b1fa2) !important;
    animation: glow-red 3s infinite alternate;
}
.location-card__notice--sale .notice-badge { background: #ff5252 !important; box-shadow: 0 0 10px rgba(255,82,82,0.5); }

.location-card__notice--event {
    background: linear-gradient(135deg, #1976d2, #4527a0) !important;
}

@keyframes glow-red {
    from { box-shadow: inset 0 0 20px rgba(211,47,47,0.2); }
    to { box-shadow: inset 0 0 50px rgba(211,47,47,0.4); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.1); opacity: 0.08; }
}

/* ── Location View ──────────────────────────────────── */
.location-view {
    padding-top: 5rem;
    min-height: auto;
    animation: fadeIn 0.8s var(--ease);
}

@media (max-width: 768px) {
    .location-view { padding-top: 0; }
}

.location-hero {
    height: 45vh; min-height: 360px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; position: relative;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* On the main page cards, only apply image to the notice/top area */
.location-card.location-card--oyen .location-card__notice,
.location-card.location-card--oyen .location-card__img,
.location-hero.location-card--oyen {
    background-image: url('https://images.unsplash.com/photo-1603912627214-935aae65812b?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.location-card.location-card--irricana .location-card__notice,
.location-card.location-card--irricana .location-card__img,
.location-hero.location-card--irricana {
    background-image: url('https://images.unsplash.com/photo-1574634534894-89d7576c8259?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}


.location-hero::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2;
}

.location-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: 3;
}
.location-hero__content { position: relative; z-index: 5; }
.location-hero h1 {
    font-size: clamp(3rem, 8vw, 5rem); font-weight: 800; margin-bottom: 0.5rem;
    background: linear-gradient(to bottom, #fff, var(--gray-400));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.location-hero__license { font-size: 1.1rem; color: var(--green-400); font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.8; }

.back-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-bottom: 2rem; font-size: 0.95rem; color: var(--green-400);
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
    transition: all 0.3s var(--ease);
}
.back-link:hover { color: #fff; transform: translateX(-5px); }

/* ── Notice pills — discrete tags at the bottom of the hero ── */
.location-hero__notices {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center;
    z-index: 10;
}
.notice-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.85rem 0.35rem 0.5rem;
    border-radius: var(--radius-full);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.45);
    font-size: 0.78rem; font-weight: 600;
    cursor: default;
}
.notice-pill__type {
    font-size: 0.65rem; font-weight: 800; letter-spacing: 0.08em;
    padding: 0.15rem 0.45rem; border-radius: var(--radius-full);
    background: rgba(255,255,255,0.12);
}
.notice-pill__title { color: rgba(255,255,255,0.9); }
.notice-pill--notice .notice-pill__type { color: var(--green-400); }
.notice-pill--event  .notice-pill__type { color: #b39ddb; }
.notice-pill--sale   .notice-pill__type { color: #ef9a9a; }

/* ── Location menu header ── */
.location-menu-header { margin: 3rem 0 2.5rem; }
.location-menu-header__top { display: flex; align-items: flex-start; gap: 1.5rem; justify-content: space-between; }
.location-menu-header h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.location-menu-header p { color: var(--text-muted); }

/* Notice badge button in header */
.notice-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(76,175,80,0.1);
    border: 1px solid var(--green-500);
    border-radius: var(--radius-full);
    color: var(--green-300);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    font-size: 0.9rem;
    position: relative;
}
.notice-badge-btn.badge-hint {
    animation: badge-pulse 2s infinite ease-in-out;
    box-shadow: 0 0 15px var(--primary-glow);
    border-color: var(--amber);
    color: var(--amber);
}
.notice-badge-btn.badge-hint .notice-badge-count {
    background: var(--amber);
}
@keyframes badge-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 5px var(--primary-glow); }
    50% { transform: scale(1.08); box-shadow: 0 0 20px var(--primary-glow); }
}
.notice-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--green-500);
    border-radius: 50%;
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
}

/* Notices panel in filter bar */
.notices-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    animation: slideUp 0.3s var(--ease);
}
.notices-panel.hidden {
    display: none;
}
.notices-panel__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

/* Notice panel cards */
.notice-panel-card {
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--green-500);
    background: var(--bg-card);
    transition: all var(--duration) var(--ease);
}
.notice-panel-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.notice-panel-card--notice {
    border-left-color: var(--green-500);
    background: linear-gradient(135deg, rgba(46,125,50,0.15), rgba(46,125,50,0.05));
}
.notice-panel-card--sale {
    border-left-color: #ef5350;
    background: linear-gradient(135deg, rgba(239,83,80,0.15), rgba(239,83,80,0.05));
}
.notice-panel-card--event {
    border-left-color: #7e57c2;
    background: linear-gradient(135deg, rgba(126,87,194,0.15), rgba(126,87,194,0.05));
}
.notice-panel-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.notice-panel-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0;
}
.notice-panel-card__text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Notice badge styling */
.notice-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.notice-panel-card--notice .notice-badge {
    background: rgba(76,175,80,0.2);
    color: var(--green-300);
}
.notice-panel-card--sale .notice-badge {
    background: rgba(239,83,80,0.2);
    color: #ff8a8a;
}
.notice-panel-card--event .notice-badge {
    background: rgba(126,87,194,0.2);
    color: #ce93d8;
}

/* ── Location info footer — contact, hours, notices ── */
#location-footer {
    border-top: 1px solid var(--border);
    margin-top: 5rem;
    padding: 0;
    overflow: hidden;
}
/* ── Store Info Banner ──────────────────────────────────── */
.store-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    overflow: hidden;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.store-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.4) 100%);
    transition: background 0.3s;
    z-index: 1;
}

.store-banner:hover .store-banner__overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.5) 100%);
}

.store-banner__back {
    position: relative;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem max(1.5rem, 4vw) 0;
    transition: color 0.2s;
    width: fit-content;
}
.store-banner__back:hover { color: #fff; }

.store-banner__content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    padding: 1rem max(1.5rem, 4vw) 2rem;
    flex: 1;
}
.store-banner__left { flex: 1; min-width: 0; }
.store-banner__name {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.4rem;
}
.store-banner__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
}
.store-banner__meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.store-banner__hours { color: var(--green-400); font-weight: 600; }
.store-banner__notices {
    display: flex;
    align-items: center;
    justify-content: center;
}
.store-banner__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}
.store-banner__btn { pointer-events: none; }

/* ── Store Info Modal ───────────────────────────────────── */
.sim {
    background: var(--gray-900, #111214);
    border: 1px solid var(--border, #2e2f36);
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}
.sim__hero {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}
.sim__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17,18,20,0.92) 0%, rgba(0,0,0,0.3) 60%, rgba(0,0,0,0.1) 100%);
}
.sim__hero-text {
    position: absolute;
    bottom: 1.25rem;
    left: 1.5rem;
    right: 3rem;
}
.sim__hero-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.25rem;
}
.sim__hero-address {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}
.sim__body {
    padding: 1.75rem 1.75rem 2rem;
}
.sim__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.75rem;
}
.sim__section { display: flex; flex-direction: column; gap: 0.1rem; }
.sim__section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.sim__detail {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-primary, #e5e7eb);
    margin-bottom: 0.65rem;
}
.sim__detail svg { flex-shrink: 0; margin-top: 2px; opacity: 0.7; }
.sim__detail a { color: var(--green-400); text-decoration: none; }
.sim__detail a:hover { text-decoration: underline; }
.sim__hours { font-size: 0.84rem; gap: 0.25rem; }
.sim__notices { display: flex; flex-direction: column; gap: 0.75rem; }
.sim__notice {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--border);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}
.sim__notice .notice-badge { margin-bottom: 0.4rem; display: inline-block; }
.sim__notice-title { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.2rem; }
.sim__notice-text { font-size: 0.83rem; color: var(--text-muted); line-height: 1.5; margin: 0; }
.sim__notice--notice { border-color: rgba(76,175,80,0.25); }
.sim__notice--event  { border-color: rgba(126,87,194,0.25); }
.sim__notice--sale   { border-color: rgba(239,83,80,0.25); }

@media (max-width: 768px) {
    .location-view { padding-top: 0; }
    .location-hero { height: 40vh; min-height: 300px; }
    .location-hero h1 { font-size: 2.5rem; }
    .location-hero__notices { bottom: 1rem; }
    .store-banner__content { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 0.75rem 1.25rem 1.5rem; }
    .store-banner__notices { justify-content: flex-start; padding: 0; }
    .store-banner__right { flex-direction: row; align-items: center; width: 100%; }
    .sim__cols { grid-template-columns: 1fr; gap: 1.5rem; }
    .sim__hero { height: 160px; }
    .sim__hero-name { font-size: 1.4rem; }
    .sim__body { padding: 1.25rem 1.25rem 1.75rem; }
}

/* ── Animations ─────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { animation: fadeIn 0.6s var(--ease) both; }
.fade-in-up { animation: slideUp 0.6s var(--ease) both; }

/* ── Pricing Styles ─────────────────────────────────── */
.product-card__price-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    z-index: 10;
    box-shadow: var(--shadow-sm);
    font-family: var(--font-display);
}
/* When nested in the bottom stock row */
.product-card__stock .product-card__price-badge {
    position: static;
    padding: 0.15rem 0.5rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    margin: 0 auto; /* Push to middle if flex allows */
}

.product-card__price-badge.price-calculated {
    color: var(--amber);
    border-color: rgba(255, 179, 0, 0.4);
}

.price-calculated {
    color: var(--amber) !important;
}

.price-disclaimer {
    font-size: 0.7rem;
    color: var(--amber);
    opacity: 0.9;
    margin-top: 0.2rem;
    display: block;
    font-weight: 500;
    line-height: 1.3;
}

.modal__availability-item .price-disclaimer {
    text-align: right;
    margin-top: 0.1rem;
}

/* ── Responsive ─────────────────────────────────────── */

/* ── Filter Drawer ──────────────────────────────────── */
.drawer-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-filter-actions {
    display: block;
    margin-bottom: 1.5rem;
}

.drawer-header-mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.35rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.drawer-header-mobile h3 { margin: 0; font-size: 0.95rem; color: var(--text-heading); font-family: var(--font-display); }
.btn-close-drawer {
    background: none; border: none; color: var(--text);
    font-size: 1.5rem; cursor: pointer; line-height: 1;
}

.filter-trigger-btn {
    width: auto;
    min-width: 160px;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--green-600);
    color: #fff;
    border: none;
    opacity: 1 !important;
}

#menu-controls {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    background: var(--bg-card);
    z-index: 2000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0.75rem 4rem; /* Extra bottom padding for mobile chrome */
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 10px 0 40px rgba(0,0,0,0.6);
    border-right: 1px solid var(--border);
}

#menu-controls.open { transform: translateX(0); }

.filter-bar { 
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem; 
    width: 100%;
}
.search-container { grid-column: span 2; margin-bottom: 0.1rem; }
.filter-select { 
    width: 100% !important; 
    margin: 0 !important; 
    font-size: 0.7rem; 
    height: 30px;
}
.filter-toggles { 
    display: flex !important; 
    flex-wrap: wrap;
    gap: 0.5rem !important; 
    width: 100%;
    margin-top: 0.5rem;
}
.toggle-label { font-size: 0.65rem; padding: 0.25rem 0.4rem; width: 100%; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255,255,255,0.03); }
.view-toggle { grid-column: span 2; margin-top: 0.1rem; display: flex; gap: 0.25rem; }
.view-toggle .btn { padding: 0.25rem !important; font-size: 0.65rem !important; flex: 1; }
.btn-my-requests { grid-column: span 2; margin-top: 0.1rem; padding: 0.25rem !important; font-size: 0.65rem !important; }

@media (max-width: 768px) {
    .navbar__links { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(18,18,18,0.97); flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
    .navbar__links.open { display: flex; z-index: 999; }
    .navbar__links a { font-size: 1.2rem; }
    .navbar__hamburger { display: block; z-index: 1000; }
    .navbar__actions { margin-right: 0.5rem; }
    .navbar .notice-badge-btn { padding: 0.35rem 0.6rem; }
    .navbar .notice-badge-btn .label-text { display: none; }
    .hero { min-height: 90vh; padding: 7rem 1.5rem 3rem; }
    .hero__title { font-size: 2rem; }
    .section { padding: 3rem 1.25rem; }
    .locations-grid { grid-template-columns: 1fr; }
    .products-grid:not(.list-view) { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 0.75rem; 
    }
    .products-grid:not(.list-view) .product-card {
        padding: 1rem 0.75rem 0.75rem 0.75rem;
    }
    .products-grid:not(.list-view) .product-card__info-group {
        padding-right: 65px; /* Stay clear of image */
    }
    .products-grid:not(.list-view) .product-card__name {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    .products-grid:not(.list-view) .product-card__img-container {
        width: 60px;
        height: 60px;
    }
    .products-grid:not(.list-view) .product-card__img-container:hover {
        width: 80px;
        height: 80px;
    }
    .products-grid.list-view .product-card {
        grid-template-columns: 44px 1.2fr 1fr 50px 75px 36px;
        gap: 0.25rem;
    }
    @media (max-width: 400px) {
        .products-grid.list-view .product-card {
            grid-template-columns: 36px 1fr 0.8fr 45px 65px 32px;
            font-size: 0.75rem;
        }
        .products-grid.list-view .product-card__name { font-size: 0.75rem; }
        .products-grid.list-view .product-card__brand { font-size: 0.65rem; }
    }
    .products-grid.list-view .product-card__img-container {
        width: 40px;
        height: 40px;
    }
    
    .mobile-filter-actions { display: block; }
    
    #menu-controls {
        width: 90%;
        max-width: 320px;
        padding: 1.25rem 1rem;
    }
    @media (max-width: 350px) {
        #menu-controls { width: 100%; border-right: none; }
    }
    .filter-trigger-btn { width: auto; min-width: 160px; transform: scale(0.9); }
    
    .modal { padding: 1.5rem; width: 96%; }
    .modal__stats { grid-template-columns: 1fr; }
}



/* ── Active Filters ─────────────────────────────────── */
.active-filters { margin-bottom: 1.5rem; }
.active-filters-list { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.filter-pill {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-muted);
    gap: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.filter-pill strong { color: var(--green-400); }

.filter-pill__clear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s ease;
}

.filter-pill__clear:hover { color: var(--red); }

.btn-clear-all {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 0.5rem;
}

.btn-clear-all:hover { color: var(--text); }

@media (max-width: 768px) {
    .active-filters { margin-bottom: 1rem; }
    .filter-pill { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
}

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-950); }
::-webkit-scrollbar-thumb { background: var(--gray-700); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-600); }

/* ── Old Skool CC ────────────────────────────────────── */
.os-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.28rem 0.65rem;
    background: rgba(167,7,75,0.1);
    border: 1px solid rgba(167,7,75,0.3);
    border-radius: var(--radius-full);
    color: #d4608e;
    font-size: 0.76rem; font-weight: 700;
    letter-spacing: 0.07em;
    cursor: pointer; white-space: nowrap;
    transition: all 0.2s var(--ease);
    font-family: var(--font-body);
}
.os-btn:hover {
    background: rgba(167,7,75,0.22);
    border-color: rgba(167,7,75,0.55);
    color: #e87db0;
    box-shadow: 0 0 10px rgba(167,7,75,0.25);
}
.os-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 5000;
    background: rgba(0,0,0,0.88); backdrop-filter: blur(12px);
    display: flex !important; align-items: flex-end !important; justify-content: center !important;
    padding: 1.5rem 1.5rem 0 !important;
    animation: fadeIn 0.2s var(--ease);
}
.os-container {
    width: 100%; max-width: 680px; max-height: calc(100vh - 1.5rem) !important;
    background: #0d0d0f;
    border: 1px solid rgba(167,7,75,0.25);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    display: flex; flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(167,7,75,0.12), 0 20px 60px rgba(0,0,0,0.8);
    animation: slideUp 0.3s var(--ease);
}
.os-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid rgba(167,7,75,0.18);
    background: rgba(167,7,75,0.07);
    flex-shrink: 0;
}
.os-title {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 800;
    letter-spacing: 0.14em;
    color: #e87db0;
    text-shadow: 0 0 18px rgba(167,7,75,0.55);
}
.os-subtitle {
    font-size: 0.7rem; color: var(--text-muted);
    letter-spacing: 0.03em; margin-left: 0.65rem;
}
.os-close {
    background: none; border: none;
    color: var(--text-muted); font-size: 1.4rem;
    cursor: pointer; line-height: 1; padding: 0.2rem;
    transition: color 0.15s;
}
.os-close:hover { color: var(--text); }
.os-cats {
    display: flex; flex-wrap: wrap; gap: 0.35rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}
.os-cat-btn {
    padding: 0.22rem 0.55rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.06em; cursor: pointer;
    transition: all 0.13s;
    font-family: var(--font-body); white-space: nowrap;
}
.os-cat-btn:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.os-cat-btn--active {
    background: rgba(167,7,75,0.18) !important;
    border-color: rgba(167,7,75,0.45) !important;
    color: #e87db0 !important;
}
.os-list { overflow-y: auto; flex: 1; padding: 0.35rem 0; -webkit-overflow-scrolling: touch; }
.os-item {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.42rem 1rem;
    cursor: pointer; transition: background 0.1s;
}
.os-item:hover { background: rgba(255,255,255,0.04); }
.os-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.os-name {
    font-size: 0.81rem; color: var(--text);
    flex: 1; overflow: hidden;
    white-space: nowrap; text-overflow: ellipsis;
}
.os-price {
    font-size: 0.81rem; font-weight: 700;
    color: var(--green-400); flex-shrink: 0;
}
.os-hint { padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.os-loading { color: var(--text-muted); font-size: 0.82rem; }
.os-legend { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.35rem; flex-wrap: wrap; }
.os-leg { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.os-legend, .os-legend span { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 0.02em; }
.os-item-tip {
    position: fixed; z-index: 6000;
    background: #16171c;
    border: 1px solid rgba(167,7,75,0.3);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    width: 210px; max-width: 210px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.85);
    pointer-events: none;
    font-size: 0.74rem; color: var(--text-muted);
    line-height: 1.5;
}
.os-touch-tip {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.45rem 0.9rem 0.45rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border-left: 3px solid var(--green-400);
    font-size: 0.75rem; color: var(--text-muted);
    animation: os-tip-in 0.13s ease;
}
.os-touch-tip__detail { flex: 1; }
.os-touch-tip__btn {
    flex-shrink: 0;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.72rem; font-weight: 600;
    padding: 0.28rem 0.6rem;
    cursor: pointer; white-space: nowrap;
    transition: background 0.15s;
}
.os-touch-tip__btn:hover { background: rgba(255,255,255,0.13); }
@keyframes os-tip-in {
    from { opacity: 0; transform: translateY(-3px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    .os-container { max-height: 96vh; border-radius: var(--radius-md) var(--radius-md) 0 0; align-self: flex-end; }
    .os-overlay { align-items: flex-end; padding: 0; }
    .os-title { font-size: 0.9rem; }
    .os-cats { padding: 0.5rem 0.75rem; }
    .os-item { padding: 0.5rem 0.75rem; }
    .os-name { font-size: 0.78rem; }
}

/* ── OSRS Papyrus Scroll (Easter Egg) ──────────────── */
.os-container--papyrus {
    background: #d4b88d !important;
    background-image: url('https://www.transparenttextures.com/patterns/parchment.png') !important;
    border: 3px solid #5b3b1e !important;
    border-radius: 0 !important;
    padding: 2.5rem 1.5rem !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.6) !important;
    position: relative;
    max-width: 720px !important;
    color: #3b2b1a !important;
    animation: slideUp 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28) !important;
}

.os-container--papyrus::before,
.os-container--papyrus::after {
    content: '';
    position: absolute;
    left: -15px; right: -15px;
    height: 44px;
    background: linear-gradient(to right, #8b6b4a, #d4b88d, #8b6b4a);
    border: 3px solid #5b3b1e;
    border-radius: 22px;
    z-index: 10;
}
.os-container--papyrus::before { top: -22px; }
.os-container--papyrus::after { bottom: -22px; }

.os-container--papyrus .os-header {
    background: transparent !important;
    border-bottom: 2px solid rgba(91, 59, 30, 0.2) !important;
    margin-bottom: 0.5rem;
    padding-top: 0;
}

.os-container--papyrus .os-title {
    font-family: serif, "Times New Roman", Times !important;
    color: #5b3b1e !important;
    text-shadow: none !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.02em !important;
}

.os-container--papyrus .os-subtitle {
    color: #5b3b1e !important;
    opacity: 0.8;
    font-weight: 600;
}

.os-container--papyrus .os-cat-btn {
    background: rgba(91, 59, 30, 0.08) !important;
    border-color: rgba(91, 59, 30, 0.25) !important;
    color: #5b3b1e !important;
    font-family: serif !important;
    text-transform: capitalize !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
}

.os-container--papyrus .os-cat-btn--active {
    background: #5b3b1e !important;
    color: #d4b88d !important;
}

.os-container--papyrus .os-item {
    font-family: serif !important;
    border-bottom: 1px solid rgba(91, 59, 30, 0.08);
    padding: 0.6rem 1rem !important;
}
.os-container--papyrus .os-item:hover { background: rgba(91, 59, 30, 0.05); }

.os-container--papyrus .os-name {
    color: #2a1b0c !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.os-container--papyrus .os-price {
    color: #3b5b1e !important; /* Classic dark green for prices */
    font-weight: 900 !important;
    font-size: 1rem !important;
}

.os-container--papyrus ::-webkit-scrollbar-track { background: rgba(91, 59, 30, 0.05); }
.os-container--papyrus ::-webkit-scrollbar-thumb { background: #8b6b4a; }

@keyframes rollUp {
    0% { max-height: 96vh; opacity: 1; transform: scaleY(1); transform-origin: top; }
    100% { max-height: 0; opacity: 0; transform: scaleY(0); transform-origin: top; }
}
.os-container--papyrus.os-rolling-up {
    animation: rollUp 0.8s forwards ease-in !important;
    overflow: hidden !important;
}


