/* ==========================================================================
   Jupiter Cannabis Theme
   The new standard in cannabis retail.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Font Face
   -------------------------------------------------------------------------- */

@font-face {
    font-family: 'Exo 2';
    src: url('../fonts/Exo2-Variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Exo 2';
    src: url('../fonts/Exo2-Variable-Italic.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */

:root {
    /* Brand Colors */
    --jp-purple: #7473A9;
    --jp-purple-light: #9494c0;
    --jp-purple-dark: #5a5990;
    --jp-green: #5C8727;
    --jp-green-light: #7aa93a;
    --jp-green-dark: #4a6d1f;
    --jp-amber: #f59e0b;
    --jp-red: #ef4444;
    --jp-blue: #4A90D9;

    /* Surfaces — LIGHT MODE (ported from React site) */
    --jp-bg: #f9fafb;
    --jp-surface: #ffffff;
    --jp-surface-2: #f3f4f6;
    --jp-hover: #e5e7eb;
    --jp-border: #e5e7eb;
    --jp-border-hover: #d1d5db;

    /* Text — dark on light */
    --jp-text: #1f2937;
    --jp-text-muted: #6b7280;
    --jp-text-dim: #9ca3af;

    /* Neutral scale (from React site) */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;

    /* Strain Colors (from React site) */
    --color-sativa: #f59e0b;
    --color-indica: #8b5cf6;
    --color-hybrid: #10b981;

    /* Typography */
    --font-family: 'Exo 2', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Sizing */
    --header-height: 64px;
    --max-width: 1280px;
    --max-width-wide: 1440px;
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --duration: 200ms;
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;

    /* Shadows — LIGHT MODE (subtle, from React site) */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 0 3px rgba(116, 115, 169, 0.1);
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.5;
    color: var(--jp-text);
    background: var(--jp-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover { color: var(--jp-purple); }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

::selection {
    background: var(--jp-purple);
    color: #fff;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    padding: 12px 24px;
    background: var(--jp-purple);
    color: #fff;
    clip: auto;
    width: auto;
    height: auto;
}

/* --------------------------------------------------------------------------
   3. Header
   -------------------------------------------------------------------------- */

.jupiter-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--jp-surface);
    border-bottom: 1px solid var(--jp-border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: var(--header-height);
}

.header-logo img {
    height: 36px;
    width: auto;
}

.header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xs);
}

.nav-menu li a {
    display: block;
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--jp-text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
    color: var(--jp-text);
    background: var(--jp-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--jp-text-muted);
    transition: all var(--duration) var(--ease);
}

.header-action-btn:hover {
    color: var(--jp-text);
    background: var(--jp-hover);
}

.header-cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
    background: var(--jp-purple);
    border-radius: 9px;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--duration) var(--ease);
}

.cart-count.has-items {
    opacity: 1;
    transform: scale(1);
}

/* Store Status */
.header-store-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    background: var(--jp-surface);
    white-space: nowrap;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--jp-text-dim);
}

.status-dot.open { background: var(--jp-green); box-shadow: 0 0 6px var(--jp-green); }
.status-dot.closed { background: var(--jp-red); }

/* Hamburger */
.header-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
}

.header-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-gray-600);
    border-radius: 1px;
    transition: all var(--duration) var(--ease);
}

/* Search Overlay */
.header-search {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--jp-surface);
    border-bottom: 1px solid var(--jp-border);
    box-shadow: var(--shadow-md);
    padding: var(--space-md) var(--space-lg);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all var(--duration) var(--ease);
}

.header-search.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.search-form {
    display: flex;
    align-items: center;
    max-width: 640px;
    margin: 0 auto;
    background: var(--color-gray-50);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-gray-300);
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--jp-text);
}

.search-input::placeholder { color: var(--color-gray-400); }

.search-submit {
    padding: 14px 20px;
    color: var(--jp-text-muted);
}

.search-submit:hover { color: var(--jp-purple); }

/* Search Results Dropdown — id-scoped so it never matches WordPress's
   body.search-results class (which would hide the whole search page). */
#search-results {
    max-height: 400px;
    overflow-y: auto;
    margin-top: var(--space-sm);
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px var(--space-md);
    border-radius: var(--radius-sm);
    transition: background var(--duration) var(--ease);
    text-decoration: none;
    color: var(--jp-text);
}

.search-result-item:hover {
    background: var(--jp-hover);
    color: var(--jp-text);
}

.search-result-img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--jp-surface-2);
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-meta {
    display: block;
    font-size: 0.7rem;
    color: var(--jp-text-dim);
}

.search-result-price {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--jp-green-light);
    flex-shrink: 0;
}

.search-no-results {
    padding: var(--space-lg);
    text-align: center;
    font-size: 0.875rem;
    color: var(--jp-text-dim);
}

/* Category Bar (Mobile) */
.header-categories {
    display: none;
    overflow: hidden;
    border-top: 1px solid var(--jp-border);
}

.categories-scroll {
    display: flex;
    gap: var(--space-sm);
    padding: 8px var(--space-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.category-chip {
    flex: 0 0 auto;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--jp-text-muted);
    background: var(--jp-surface);
    border-radius: 20px;
    scroll-snap-align: start;
    white-space: nowrap;
    transition: all var(--duration) var(--ease);
}

.category-chip:hover {
    color: var(--jp-text);
    background: var(--jp-hover);
}

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */

/* Hero (ported from Cloud Run site) */
.hero {
    position: relative;
    padding: 6rem 0;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center bottom;
    border-radius: 0;
}

@media (min-width: 769px) {
    .hero {
        background-position: center top !important;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding-bottom: var(--space-xl);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(0.6rem, 3vw, 1.1rem);
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-lg);
    font-weight: 700;
}

@media (max-width: 640px) {
    .hero {
        padding: var(--space-xl) 0;
        min-height: 220px;
        align-items: flex-end;
    }
    .hero-title { font-size: 1.75rem; }
}

/* Trust Signals Bar */
.trust-bar {
    background: var(--jp-surface);
    border-bottom: 1px solid var(--jp-border);
    padding: var(--space-md) 0;
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--jp-text);
}

.trust-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 1px;
}

.trust-divider {
    color: var(--jp-border);
    font-size: 0.9rem;
}

@media (max-width: 640px) {
    .trust-bar-inner { gap: var(--space-sm) 12px; }
    .trust-item { font-size: 0.75rem; }
    .trust-divider { display: none; }
}

/* Category Showcase (ported from Cloud Run site) */
.category-showcase-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

.category-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    background: var(--jp-surface);
    transition: all var(--transition-normal);
    text-decoration: none;
    color: var(--jp-text);
}

.category-tile:hover {
    border-color: var(--jp-purple);
    color: var(--jp-purple);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.category-tile-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--jp-purple);
}

.category-tile-icon svg { width: 100%; height: 100%; }

.category-tile-name {
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
}

.category-tile-count {
    font-size: 0.75rem;
    color: var(--jp-text-muted);
}

/* 10 tiles divide evenly only by 5 or 2. Hold 5 cols down to small tablet
   (tighten the gap so tiles stay legible), then drop straight to 2 cols so
   every row is always full — no stranded last-row tile. */
@media (max-width: 1024px) {
    .category-showcase-grid { gap: var(--space-sm); }
}
@media (max-width: 600px) {
    .category-showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .category-tile { padding: var(--space-md) var(--space-sm); }
}

/* Store Info Bar (ported from Cloud Run site) */
.store-info-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.store-info-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.store-info-bar-icon {
    width: 2rem;
    height: 2rem;
    color: var(--jp-purple);
}

.store-info-bar-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--jp-text);
    margin-bottom: 2px;
}

.store-info-bar-item p {
    font-size: 0.875rem;
    color: var(--jp-text-muted);
    line-height: 1.5;
}

.store-info-bar-item a {
    color: var(--jp-purple-light);
    text-decoration: none;
    font-weight: 600;
}

.store-info-bar-item a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .store-info-bar { grid-template-columns: 1fr; gap: var(--space-lg); }
    .store-info-bar-item { flex-direction: row; text-align: left; gap: var(--space-md); }
    .store-info-bar-icon { flex-shrink: 0; }
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.jupiter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1;
}

.jupiter-btn-primary {
    background: var(--jp-purple);
    color: #fff;
}

.jupiter-btn-primary:hover {
    background: var(--jp-purple-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.jupiter-btn-secondary {
    background: var(--color-gray-200);
    color: var(--color-gray-800);
}

.jupiter-btn-secondary:hover {
    background: var(--color-gray-300);
    color: var(--color-gray-800);
}

.jupiter-btn-ghost {
    background: transparent;
    color: var(--color-gray-600);
    border: 1px solid var(--color-gray-300);
}

.jupiter-btn-ghost:hover {
    color: var(--jp-text);
    background: var(--color-gray-100);
}

.jupiter-btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */

.section {
    padding: var(--space-3xl) var(--space-lg);
}

.section-dark { background: #111018; color: #EEEDF5; }
.section-surface { background: var(--jp-surface); }

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--jp-text-muted);
    flex-basis: 100%;
    margin-top: var(--space-sm);
}

.section-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--jp-purple-light);
}

.section-link:hover { color: var(--jp-text); }

/* --------------------------------------------------------------------------
   7. Experience Cards (Intent-Based Shopping)
   -------------------------------------------------------------------------- */

.experience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.experience-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    background: var(--card-gradient);
    overflow: hidden;
    transition: all 300ms var(--ease);
    min-height: 200px;
    color: #fff;
    text-decoration: none;
}

.experience-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    color: #fff;
}

.experience-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

.experience-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
}

.experience-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.experience-desc {
    font-size: 0.875rem;
    opacity: 0.85;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    flex: 1;
}

.experience-arrow {
    position: relative;
    z-index: 1;
    align-self: flex-end;
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--duration) var(--ease);
}

.experience-card:hover .experience-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* --------------------------------------------------------------------------
   8. Category Grid
   -------------------------------------------------------------------------- */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.category-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: var(--jp-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.category-card:hover {
    border-color: var(--cat-color, var(--jp-purple));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-image {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--color-gray-100);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms var(--ease);
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-info {
    padding: var(--space-md);
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--jp-text);
    margin-bottom: 2px;
}

.category-count {
    font-size: 0.8rem;
    color: var(--jp-text-dim);
}

/* --------------------------------------------------------------------------
   9. Product Card
   -------------------------------------------------------------------------- */

.product-grid {
    display: grid;
    gap: var(--space-md);
}

.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-grid--6 { grid-template-columns: repeat(7, 1fr); }

.product-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    background: var(--jp-surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.product-card__image-link { display: block; }

.product-card__image {
    position: relative;
    aspect-ratio: 1;
    background: var(--color-gray-100);
    overflow: hidden;
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 400ms var(--ease);
}

.product-card:hover .product-card__img {
    transform: scale(1.05);
}

.product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-card__placeholder--gradient {
    background: linear-gradient(135deg, var(--jp-purple) 0%, #1a1825 100%);
}

.product-card__initial {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    font-family: var(--font-family);
}

/* Badges */
.product-card__badges {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2px;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    line-height: 1;
}

.badge--staff-pick { background: var(--jp-green); color: #fff; }
.badge--new { background: var(--jp-purple); color: #fff; }
.badge--sale { background: var(--jp-red); color: #fff; }

.badge--lg {
    padding: 5px 14px;
    font-size: 0.7rem;
}

/* Species badge — now stacked with the other badges in the top-left corner
   (rendered inside .product-card__badges), so it is a static pill, not absolute. */
.product-card__species-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    line-height: 1;
    color: #fff;
}

.species--sativa { background: var(--jp-green); }
.species--indica { background: var(--jp-purple); }
.species--hybrid { background: #E8833A; }
.species--blend { background: #E8833A; }
.species--cbd { background: var(--jp-blue); }

/* Mobile: shrink the stacked tile badges so they don't dominate the photo */
@media (max-width: 640px) {
    .product-card__badges { gap: 2px; }
    .badge,
    .product-card__species-badge {
        font-size: 0.5625rem;
        padding: 2px 7px;
        letter-spacing: 0.04em;
    }
}

@media (max-width: 375px) {
    .badge,
    .product-card__species-badge {
        font-size: 0.5rem;
        padding: 2px 6px;
    }
}

/* Out of Stock overlay on image */
.product-card__oos-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.product-card__oos-overlay span {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-card--oos {
    opacity: 0.7;
}

/* Stock indicator on card */
.product-card__stock {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-sm);
    z-index: 2;
    color: var(--jp-text-muted);
}

.stock-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Quick Add Button */
.product-card__quick-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: var(--jp-purple);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 100%;
    min-height: 36px;
    margin-top: auto;
    padding-top: var(--space-sm);
    font-family: var(--font-family);
}

.product-card__quick-add:hover {
    background: var(--jp-purple-dark);
}

.product-card__quick-add:active {
    transform: scale(0.97);
}

/* Card Info - fixed-height slots for perfect alignment across cards */
.product-card__info {
    display: flex;
    flex-direction: column;
    padding: var(--space-sm) var(--space-sm) var(--space-md);
    flex: 1;
    min-height: 0;
}

.product-card__brand {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-gray-500);
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1em;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card__name {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-xs);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    height: 2.6em; /* exactly 2 lines at 1.3 line-height */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card__name a {
    color: var(--color-gray-900);
    text-decoration: none;
}

.product-card__name a:hover { color: var(--jp-purple); }

.product-card__category {
    font-size: 0.65rem;
    color: var(--color-gray-500);
    line-height: 1;
    margin-bottom: 2px;
    min-height: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card__weight {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--color-gray-600);
    margin-bottom: 2px;
}

.product-card__weight svg {
    flex-shrink: 0;
    color: var(--color-gray-400);
}

/* Tags */
.product-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1;
}

.tag--species {
    background: color-mix(in srgb, var(--tag-color) 15%, transparent);
    color: var(--tag-color);
    border: 1px solid color-mix(in srgb, var(--tag-color) 30%, transparent);
}

.tag--weight {
    background: var(--color-gray-100);
    color: var(--color-gray-600);
}

.tag--intent {
    background: color-mix(in srgb, var(--tag-color) 15%, transparent);
    color: var(--tag-color);
}

.tag--format {
    background: var(--color-gray-100);
    color: var(--color-gray-600);
}

.tag--lg {
    padding: 4px 12px;
    font-size: 0.75rem;
}

/* Potency */
.product-card__potency {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 4px;
    min-height: 1.4em; /* reserve space even when empty */
}

.potency-label {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px var(--space-xs);
    border-radius: var(--radius-sm);
}

.potency-label--thc {
    color: var(--jp-green);
    background: rgba(92, 135, 39, 0.1);
}

.potency-label--cbd {
    color: var(--jp-purple);
    background: rgba(116, 115, 169, 0.1);
}

.potency-label--cbg {
    color: var(--jp-amber);
    background: rgba(245, 158, 11, 0.1);
}

.potency-label--cbn {
    color: #4A90D9;
    background: rgba(74, 144, 217, 0.1);
}

.potency-bar {
    flex: 1;
    height: 4px;
    background: var(--color-gray-200);
    border-radius: 2px;
    overflow: hidden;
    min-width: 40px;
}

.potency-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 600ms var(--ease);
}

/* Price */
.product-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto;
    padding-top: 4px;
}

.price-current {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

.price-current--sale {
    color: var(--jp-red);
}

.price-original {
    font-size: 0.75rem;
    color: var(--color-gray-400);
    text-decoration: line-through;
}

/* --------------------------------------------------------------------------
   10. Carousel
   -------------------------------------------------------------------------- */

.product-carousel {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: var(--space-sm);
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track .product-card {
    flex: 0 0 calc(14.28% - 12px);
    scroll-snap-align: start;
    min-width: 160px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jp-surface);
    border: 1px solid var(--color-gray-300);
    border-radius: 50%;
    color: var(--color-gray-600);
    z-index: 5;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
    background: var(--color-gray-100);
    border-color: var(--jp-purple);
    color: var(--jp-purple);
}

.carousel-prev { left: -20px; }
.carousel-next { right: -20px; }

/* --------------------------------------------------------------------------
   11. Shop Page (Archive)
   -------------------------------------------------------------------------- */

.shop-header {
    background: var(--jp-surface);
    padding: var(--space-sm) var(--space-lg);
    border-bottom: 1px solid var(--color-gray-200);
}

.shop-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.shop-header .woocommerce-breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.shop-h1 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: var(--space-xs);
    margin-bottom: 0;
}

.shop-title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 0;
}

.shop-description {
    color: var(--jp-text-muted);
    margin-top: var(--space-sm);
    max-width: 640px;
}

/* Category SEO Footer (subtle, bottom of page) */
.category-seo-footer {
    max-width: 500px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md) var(--space-sm);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.55rem;
    line-height: 1.5;
    color: var(--jp-text-dim, #9ca3af);
}

.category-seo-footer p {
    margin-bottom: 2px;
}

.category-seo-footer a {
    color: var(--jp-text-dim, #9ca3af);
}

.seo-footer-heading {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--jp-text-dim, #9ca3af);
    margin: var(--space-sm) 0 2px;
    text-transform: none;
    letter-spacing: 0;
}

.seo-faq-item {
    padding: 1px 0;
}

.seo-faq-item summary {
    cursor: pointer;
    font-weight: 500;
    font-size: 0.55rem;
    color: var(--jp-text-dim, #9ca3af);
    list-style: none;
}

.seo-faq-item summary::-webkit-details-marker { display: none; }

.seo-faq-item summary::before {
    content: '+ ';
}

.seo-faq-item[open] summary::before {
    content: '- ';
}

.seo-faq-item p {
    font-size: 0.5rem;
    color: var(--jp-text-dim, #9ca3af);
    line-height: 1.4;
    margin: 1px 0 3px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    max-width: var(--max-width-wide);
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
}

/* Filters (drawer on all screens) */
.shop-filters {
    position: fixed;
    top: 0;
    right: -340px;
    width: 320px;
    height: 100vh;
    z-index: 1000;
    background: var(--jp-surface);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    transition: right 300ms var(--ease);
    padding: var(--space-lg);
    max-height: calc(100vh - var(--header-height) - var(--space-xl));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--jp-surface-2) transparent;
    padding-right: var(--space-sm);
}

.shop-filters.active {
    right: 0;
}

.shop-filters-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.shop-filters-backdrop.active {
    display: block;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.filters-title {
    font-size: 1rem;
    font-weight: 700;
}

.filters-clear {
    font-size: 0.8rem;
    color: var(--jp-purple-light);
    font-weight: 600;
}

.filter-group {
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--jp-border);
}

.filter-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--jp-text-muted);
    margin-bottom: var(--space-md);
}

/* Range Slider */
.range-slider {
    position: relative;
    padding: var(--space-sm) 0;
}

.range-track {
    position: relative;
    height: 4px;
    background: var(--jp-surface-2);
    border-radius: 2px;
}

.range-fill {
    position: absolute;
    height: 100%;
    background: var(--jp-purple);
    border-radius: 2px;
}

.range-input {
    position: absolute;
    top: 0;
    width: 100%;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    pointer-events: none;
}

.range-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--jp-purple);
    border: 2px solid var(--jp-surface);
    cursor: pointer;
    pointer-events: all;
    box-shadow: var(--shadow-md);
}

.range-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--jp-purple);
    border: 2px solid var(--jp-surface);
    cursor: pointer;
    pointer-events: all;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--jp-text-muted);
}

/* Filter checkboxes */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.filter-options--scrollable {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 4px 0;
}

.filter-checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-mark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--jp-border);
    border-radius: 4px;
    transition: all var(--duration) var(--ease);
    flex-shrink: 0;
    position: relative;
}

.filter-checkbox input:checked + .checkbox-mark {
    background: var(--check-color, var(--jp-purple));
    border-color: var(--check-color, var(--jp-purple));
}

.filter-checkbox input:checked + .checkbox-mark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Filter chips */
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip-label { cursor: pointer; }
.chip-input { position: absolute; opacity: 0; width: 0; height: 0; }

.chip {
    display: inline-flex;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--jp-text-muted);
    background: var(--jp-surface-2);
    border: 1px solid var(--jp-border);
    border-radius: 20px;
    transition: all var(--duration) var(--ease);
}

.chip:hover {
    border-color: var(--jp-border-hover);
    color: var(--jp-text);
}

.chip-input:checked + .chip {
    background: color-mix(in srgb, var(--chip-color, var(--jp-purple)) 20%, transparent);
    border-color: var(--chip-color, var(--jp-purple));
    color: var(--jp-text);
}

/* Toggle */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.875rem;
    padding: var(--space-sm) 0;
}

.filter-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }

.toggle-switch {
    width: 36px;
    height: 20px;
    background: var(--jp-surface-2);
    border-radius: 10px;
    position: relative;
    transition: background var(--duration) var(--ease);
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--jp-text-dim);
    border-radius: 50%;
    transition: all var(--duration) var(--ease);
}

.filter-toggle input:checked + .toggle-switch {
    background: var(--jp-purple);
}

.filter-toggle input:checked + .toggle-switch::after {
    transform: translateX(16px);
    background: #fff;
}

/* Brand search */
.filter-search {
    width: 100%;
    padding: 8px 12px;
    background: var(--color-gray-50);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--jp-text);
    margin-bottom: var(--space-sm);
}

.filter-search::placeholder { color: var(--color-gray-400); }
.filter-search:focus { outline: none; border-color: var(--jp-purple); }

/* Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.toolbar-count {
    font-size: 0.875rem;
    color: var(--jp-text-muted);
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-600);
    background: var(--jp-surface);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
}

.sort-select {
    padding: 8px 12px;
    background: var(--jp-surface);
    border: 1px solid var(--color-gray-300);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    color: var(--jp-text);
    cursor: pointer;
}

.sort-select:focus { outline: none; border-color: var(--jp-purple); }

/* Pagination */
.shop-pagination {
    margin-top: var(--space-xl);
    display: flex;
    justify-content: center;
}

.shop-pagination ul {
    display: flex;
    list-style: none;
    gap: 4px;
}

.shop-pagination li a,
.shop-pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--jp-border);
    color: var(--jp-text-muted);
    transition: all var(--duration) var(--ease);
}

.shop-pagination li a:hover {
    border-color: var(--jp-purple);
    color: var(--jp-text);
}

.shop-pagination li span.current {
    background: var(--jp-purple);
    border-color: var(--jp-purple);
    color: #fff;
}

/* No results */
.shop-no-results {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}

.shop-no-results h2 {
    margin-top: var(--space-md);
    font-size: 1.25rem;
}

.shop-no-results p {
    color: var(--jp-text-muted);
    margin: var(--space-sm) 0 var(--space-lg);
}

/* --------------------------------------------------------------------------
   12. Single Product
   -------------------------------------------------------------------------- */

.product-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.product-breadcrumbs {
    padding: var(--space-md) 0;
}

.jupiter-breadcrumbs {
    font-size: 0.8rem;
    color: var(--jp-text-dim);
}

.jupiter-breadcrumbs a { color: var(--jp-text-muted); }
.jupiter-breadcrumbs a:hover { color: var(--jp-text); }

.breadcrumb-sep {
    margin: 0 4px;
    color: var(--jp-text-dim);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    padding: var(--space-lg) 0 var(--space-3xl);
}

/* Gallery */
.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
    align-self: start;
}

.gallery-slider {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-gray-100);
    aspect-ratio: 1;
}

.gallery-slide {
    display: none;
}

.gallery-slide:first-child,
.gallery-slide.active {
    display: block;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.gallery-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color var(--duration) var(--ease);
    padding: 0;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--jp-purple);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-gray-100);
    border-radius: var(--radius-lg);
}

/* Product Info */
.product-badges {
    display: flex;
    gap: 8px;
    margin-bottom: var(--space-md);
}

.product-brand {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--jp-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.product-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}
@media (min-width: 992px) {
    /* Smaller title only on desktop where the info column is 480px wide,
       so "Locker Room Cheap Shot Indica 7.0g" stays on one line. */
    .product-title {
        font-size: clamp(1.25rem, 2.2vw, 1.5rem);
    }
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: var(--space-lg);
}

/* Cannabinoid Panel */
.cannabinoid-panel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.cannabinoid-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cannabinoid-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--jp-text-dim);
}

.cannabinoid-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--jp-text);
}

.cannabinoid-bar {
    height: 4px;
    background: var(--jp-surface-2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 4px;
}

.cannabinoid-fill {
    height: 100%;
    border-radius: 2px;
}

.cannabinoid-level {
    font-size: 0.7rem;
    color: var(--jp-text-muted);
}

/* Terpene Panel */
.terpene-panel {
    padding: var(--space-lg);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.panel-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--jp-text-muted);
    margin-bottom: var(--space-md);
}

.terpene-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.terpene-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.terpene-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.terpene-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.terpene-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--jp-text-muted);
    line-height: 1.4;
}

/* Purchase Block */
.product-purchase {
    padding: var(--space-lg);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.product-price-block {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.product-price-block del {
    font-size: 1.1rem;
    color: var(--jp-text-dim);
    font-weight: 400;
}

.product-price-block ins {
    text-decoration: none;
    color: var(--jp-green);
}

.product-stock {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
}

.stock-location {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    color: var(--jp-text-dim);
    margin-top: 2px;
}

.product-purchase .cart {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-md);
}

.product-purchase .quantity {
    display: flex;
    align-items: center;
    border: 1px solid var(--jp-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.product-purchase .quantity input {
    width: 48px;
    height: 44px;
    text-align: center;
    background: var(--jp-surface);
    border: none;
    font-weight: 600;
}

.product-purchase .single_add_to_cart_button {
    flex: 1;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: var(--jp-purple);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.product-purchase .single_add_to_cart_button:hover {
    background: var(--jp-purple-light);
    transform: translateY(-1px);
}

.product-sku {
    font-size: 0.75rem;
    color: var(--jp-text-dim);
}

/* Description */
.product-description {
    margin-bottom: var(--space-lg);
}

.product-description p {
    color: var(--jp-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

/* Related products */
.product-related {
    margin-top: var(--space-2xl);
    padding-left: 0;
    padding-right: 0;
}

/* --------------------------------------------------------------------------
   13. 30g Equivalency Meter
   -------------------------------------------------------------------------- */

.jupiter-equivalency-meter {
    padding: var(--space-md) var(--space-lg);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.equivalency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.equivalency-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--jp-text-muted);
}

.equivalency-value {
    font-size: 0.9rem;
    font-weight: 700;
}

.equivalency-bar {
    height: 8px;
    background: var(--jp-surface-2);
    border-radius: 4px;
    overflow: hidden;
}

.equivalency-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 600ms var(--ease);
}

[data-status="safe"] .equivalency-fill,
[data-status="safe"] .meter-fill { background: var(--jp-green); }
[data-status="warning"] .equivalency-fill,
[data-status="warning"] .meter-fill { background: var(--jp-amber); }
[data-status="critical"] .equivalency-fill,
[data-status="critical"] .meter-fill { background: var(--jp-red); }

/*
 * Equivalency / cart-drawer meter explanatory messages.
 * Three states: safe (informational), warning (close to legal limit),
 * critical (over legal limit, customer must act to continue).
 */
.equivalency-message,
.meter-message {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: var(--space-sm) 0 0;
    padding: 8px 10px;
    border-radius: 6px;
}

.equivalency-message--info {
    color: var(--jp-text-muted);
    background: transparent;
    padding-left: 0;
    padding-right: 0;
    font-size: 0.78rem;
}

.equivalency-message--warning,
.meter-message--warning {
    color: #5a3d00;
    background: rgba(212, 168, 67, 0.18);
    border: 1px solid rgba(212, 168, 67, 0.35);
}

.equivalency-message--critical,
.meter-message--critical {
    color: #991b1b;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    font-weight: 600;
}
.equivalency-message--critical strong,
.meter-message--critical strong {
    color: #7f1d1d;
}

/* Quick fix list rendered inside the critical-state meter. Gives the
 * customer a one-click escape hatch from the over-limit cart instead
 * of forcing them back to /cart/ to figure out what to remove. */
.meter-quickfix {
    box-sizing: border-box;
    max-width: 100%;
    margin-top: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #fecaca;
    border-radius: 8px;
}
.meter-quickfix__lead {
    margin: 0 0 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #7f1d1d;
}
.meter-quickfix__items {
    box-sizing: border-box;
    max-width: 100%;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.meter-quickfix__remove {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
    font-size: 0.88rem;
    line-height: 1.4;
    white-space: normal;
    padding: 10px 12px;
    background: #f5f3fa;
    color: #1f1b2e;
    border: 1px solid #e3e0ec;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.meter-quickfix__remove-label {
    overflow-wrap: anywhere;
}
.meter-quickfix__remove:hover {
    background: #ebe7f4;
    border-color: #c7d2fe;
}
.meter-quickfix__remove[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
.meter-quickfix__remove--recommended {
    background: #f0eff7;
    color: #1f1b2e;
    border-color: #7473A9;
}
.meter-quickfix__remove--recommended:hover {
    background: #e6e4f2;
    border-color: #5f5e8f;
}
.meter-quickfix__rec-badge {
    display: inline-block;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
    background: #7473A9;
    color: #fff;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.6;
}

.equivalency-message strong,
.meter-message strong {
    font-weight: 700;
}

/* Cart-drawer mini-meter messages are tighter than the full cart-page version */
.meter-message {
    font-size: 0.78rem;
    padding: 6px 8px;
}

/* Legacy class kept for any external references; styles match new --warning */
.equivalency-warning {
    font-size: 0.8rem;
    color: var(--jp-red);
    margin-top: var(--space-sm);
}

/* --------------------------------------------------------------------------
   14. Cart Drawer
   -------------------------------------------------------------------------- */

.cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

.cart-drawer[aria-hidden="false"] {
    pointer-events: all;
}

.cart-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 300ms var(--ease);
}

.cart-drawer[aria-hidden="false"] .cart-drawer__backdrop {
    opacity: 1;
}

.cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 90vw;
    background: var(--jp-surface);
    border-left: 1px solid var(--color-gray-200);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 300ms var(--ease);
    box-shadow: var(--shadow-xl);
}

.cart-drawer[aria-hidden="false"] .cart-drawer__panel {
    transform: translateX(0);
}

.cart-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--jp-border);
}

.cart-drawer__header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}

.cart-drawer__close {
    color: var(--jp-text-muted);
    padding: 4px;
}

.cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.cart-drawer__footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg);
    border-top: 1px solid var(--jp-border);
}

/* View Cart + Checkout sit side-by-side in their own row */
.cart-drawer__actions {
    display: flex;
    gap: var(--space-sm);
}

.cart-drawer__actions .jupiter-btn {
    flex: 1;
    justify-content: center;
}

/* Full-width "Continue Shopping" above the actions row. Purple outline so it
   reads as a button but stays subordinate to the solid-purple Checkout CTA. */
.cart-drawer__continue {
    width: 100%;
    justify-content: center;
    background: #fff;
    color: var(--jp-purple);
    border: 1.5px solid var(--jp-purple);
}

/* Hover fill only where hover truly exists, so it doesn't "stick" on touch */
@media (hover: hover) {
    .cart-drawer__continue:hover {
        background: var(--jp-purple);
        color: #fff;
    }
}

/* Press feedback on touch */
.cart-drawer__continue:active {
    background: var(--jp-purple);
    color: #fff;
}

.cart-drawer__continue svg {
    width: 16px;
    height: 16px;
}

/* Cart Drawer Items */
.cart-drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--jp-text-dim);
    text-align: center;
    gap: var(--space-md);
}

.cart-drawer-meter {
    padding: var(--space-sm) 0 var(--space-md);
    border-bottom: 1px solid var(--jp-border);
    margin-bottom: var(--space-md);
}

.meter-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--jp-text-muted);
    margin-bottom: 6px;
}

.meter-value { font-weight: 600; color: var(--jp-text); }

.meter-bar {
    height: 6px;
    background: var(--jp-surface-2);
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    border-radius: 3px;
    background: var(--jp-green);
    transition: width 300ms var(--ease);
}

.cart-drawer-meter[data-status="warning"] .meter-fill { background: var(--jp-amber); }
.cart-drawer-meter[data-status="critical"] .meter-fill { background: var(--jp-red); }

.cart-drawer-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.cart-drawer-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
}

.cart-item-img {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-img--empty {
    background: var(--color-gray-200);
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cart-item-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--jp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 0.75rem;
    color: var(--jp-text-muted);
}

.cart-item-equiv {
    font-size: 0.65rem;
    color: var(--jp-green);
    font-weight: 500;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.qty-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--jp-surface);
    border: 1px solid var(--color-gray-300);
    color: var(--color-gray-600);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-family: var(--font-family);
    border-radius: var(--radius-sm);
}

.qty-btn:hover { background: var(--color-gray-100); }
.qty-minus { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.qty-plus { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.qty-minus { border-radius: var(--radius-sm); }
.qty-plus { border-radius: var(--radius-sm); }

.qty-val {
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-gray-800);
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-gray-400);
    font-size: 1.2rem;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.cart-item-remove:hover {
    color: var(--jp-red);
    background: rgba(239, 68, 68, 0.1);
}

.cart-drawer-totals {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--jp-border);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-total-amount { color: var(--jp-text); }

/* Sold Out button */
.product-card__quick-add--oos {
    background: var(--color-gray-200);
    color: var(--color-gray-500);
    cursor: not-allowed;
}

/* Filter close button */
.filters-done-btn {
    display: block;
    width: 100%;
    padding: 14px;
    margin-top: var(--space-md);
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--jp-purple);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-family);
    min-height: 48px;
}

/* --------------------------------------------------------------------------
   15. Mobile Menu
   -------------------------------------------------------------------------- */

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
}

.mobile-menu[aria-hidden="false"] {
    pointer-events: all;
}

.mobile-menu__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 300ms var(--ease);
}

.mobile-menu[aria-hidden="false"] .mobile-menu__backdrop {
    opacity: 1;
}

.mobile-menu__panel {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--jp-surface);
    border-right: 1px solid var(--color-gray-200);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 300ms var(--ease);
    box-shadow: var(--shadow-xl);
}

.mobile-menu[aria-hidden="false"] .mobile-menu__panel {
    transform: translateX(0);
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--jp-border);
}

.mobile-menu__nav {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-md);
}

.mobile-nav-menu {
    list-style: none;
}

.mobile-nav-menu li a {
    display: block;
    padding: 14px var(--space-md);
    font-size: 1rem;
    font-weight: 500;
    color: var(--jp-text);
    border-radius: var(--radius-sm);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-nav-menu li a:hover {
    background: var(--jp-hover);
}

.mobile-menu__footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--jp-border);
}

.mobile-store-info p {
    font-size: 0.8rem;
    color: var(--jp-text-muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   16. Store Info Section
   -------------------------------------------------------------------------- */

.store-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.store-info-desc {
    font-size: 1.05rem;
    color: var(--jp-text-muted);
    line-height: 1.7;
    margin: var(--space-lg) 0;
}

.store-info-address {
    font-style: normal;
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.store-info-address a { color: var(--jp-purple-light); }

.store-info-hours {
    margin-bottom: var(--space-lg);
}

.footer-subheading, .store-info-hours h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--jp-text-dim);
    margin-bottom: var(--space-sm);
}

.hours-compact {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hours-compact div {
    display: flex;
    gap: var(--space-md);
    font-size: 0.875rem;
}

.hours-compact dt {
    color: var(--jp-text-muted);
    min-width: 70px;
}

.hours-compact dd { color: var(--jp-text); font-weight: 500; }

.hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--jp-surface-2);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.map-placeholder {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 3/2;
    background: var(--jp-surface-2);
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.jupiter-footer {
    background: #111018;
    color: #EEEDF5;
    border-top: 1px solid rgba(116, 115, 169, 0.12);
    padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo { margin-bottom: var(--space-md); }

.footer-tagline {
    font-size: 0.875rem;
    color: #9997B3;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    color: #9997B3;
    border: 1px solid rgba(116, 115, 169, 0.12);
    transition: all var(--duration) var(--ease);
}

.footer-social a:hover {
    color: #EEEDF5;
    border-color: var(--jp-purple);
}

.footer-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6B698A;
    margin-bottom: var(--space-md);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.875rem;
    color: #9997B3;
}

.footer-links a:hover { color: #EEEDF5; }

.footer-address {
    font-style: normal;
    font-size: 0.875rem;
    color: #9997B3;
    line-height: 1.8;
}

.footer-address a { color: #9494c0; }

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hours-row {
    display: flex;
    gap: var(--space-md);
    font-size: 0.8rem;
}

.hours-row dt { color: #9997B3; min-width: 70px; }
.hours-row dd { color: #EEEDF5; font-weight: 500; }

.footer-newsletter-text {
    font-size: 0.875rem;
    color: #9997B3;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.newsletter-input-wrap {
    display: flex;
    background: #1C1A26;
    border: 1px solid rgba(116, 115, 169, 0.12);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    background: transparent;
    border: none;
    font-size: 0.875rem;
    color: #EEEDF5;
}

.newsletter-input::placeholder { color: #6B698A; }
.newsletter-input:focus { outline: none; }

.newsletter-btn {
    padding: 12px 16px;
    color: var(--jp-purple);
    transition: color var(--duration) var(--ease);
}

.newsletter-btn:hover { color: var(--jp-text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--jp-border);
    flex-wrap: wrap;
}

.footer-legal {
    font-size: 0.75rem;
    color: #6B698A;
    line-height: 1.6;
    max-width: 640px;
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-md);
}

.footer-bottom-links a {
    font-size: 0.75rem;
    color: #6B698A;
}

.footer-bottom-links a:hover { color: #9997B3; }

/* --------------------------------------------------------------------------
   18. Empty Cart
   -------------------------------------------------------------------------- */

.jupiter-empty-cart {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--jp-text-muted);
}

.jupiter-empty-cart svg { margin: 0 auto var(--space-lg); }
.jupiter-empty-cart h2 { font-size: 1.25rem; margin-bottom: var(--space-sm); color: var(--jp-text); }
.jupiter-empty-cart p { margin-bottom: var(--space-lg); }

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .experience-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid--4 { grid-template-columns: repeat(3, 1fr); }
    .product-grid--6 { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .store-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .header-categories { display: none; }
    .header-store-status { display: none; }

    .hero {
        min-height: 60vh;
        padding: var(--space-2xl) var(--space-md);
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .section {
        padding: var(--space-2xl) var(--space-md);
    }

    .experience-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .product-grid--6 { grid-template-columns: repeat(2, 1fr); }

    .shop-layout {
        grid-template-columns: 1fr;
        padding: var(--space-md);
    }

    .shop-filters {
        width: 100%;
        right: -100%;
    }

    .shop-filters.active {
        right: 0;
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .product-gallery { position: static; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    /* Center the hours dt/dd rows so they don't sit offset under a centered heading */
    .footer-hours { text-align: center; }
    .hours-list { align-items: center; }
    .hours-row { justify-content: center; }
    .hours-row dt { min-width: 0; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .carousel-track .product-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 200px;
    }

    .carousel-btn { display: none; }

    /* Constrain product image on tablet/mobile */
    .product-gallery img,
    .product-gallery .wp-post-image,
    .woocommerce-product-gallery img {
        max-height: 55vh;
        width: auto;
        margin: 0 auto;
        object-fit: contain;
    }

    /* Touch-friendly tap targets */
    .filter-checkbox,
    .chip-label,
    .filter-toggle {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .product-card__name a {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .product-card__brand {
        font-size: 0.7rem;
    }

    /* Strip cards to essentials but KEEP potency (THC% is the #1 shopping criterion) */
    .product-card__category,
    .product-card__weight {
        display: none;
    }

    .product-card__info {
        gap: 4px;
        padding: 8px 10px 10px;
    }

    /* Touch-friendly add-to-cart */
    .product-card__quick-add {
        min-height: 44px;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 50vh;
        padding: var(--space-xl) var(--space-md);
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .carousel-track .product-card {
        flex: 0 0 calc(50% - 8px);
        min-width: 160px;
    }

    .shop-toolbar {
        flex-direction: column;
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .category-grid { grid-template-columns: 1fr 1fr; }

    /* Tighter carousel cards: 2 visible instead of 1 huge card */
    .carousel-track .product-card {
        flex: 0 0 calc(50% - 6px);
        min-width: 150px;
    }

    /* Compact product cards. Do NOT clamp image height — aspect-ratio:1 on
     * .product-card__image already drives sizing; a max-height here forces the
     * width down via the aspect ratio and the image renders narrower than the
     * card, looking off-centre. */
    .product-card__img { object-fit: contain; }
    .product-card__name a { font-size: 0.8rem; line-height: 1.3; }
    .product-card__brand { font-size: 0.65rem; }
    .product-card__price { font-size: 0.85rem; }
    .product-card__weight { font-size: 0.65rem; }
    .product-card__category { display: none; }
    .product-card__potency { gap: 3px; }
    .potency-label { font-size: 0.6rem; padding: 2px 5px; }

    /* Compact Add to Cart button but keep touch-friendly */
    .product-card__quick-add {
        padding: 6px;
        font-size: 0.7rem;
        min-height: 44px;
    }

    /* Smaller product grid gap */
    .product-grid { gap: 8px; }

    .cannabinoid-panel {
        grid-template-columns: 1fr 1fr;
    }

    .cart-drawer__panel {
        width: 100%;
        max-width: 100vw;
    }

    /* Single product page: constrain image so name+price are visible */
    .product-gallery img,
    .product-gallery .wp-post-image,
    .woocommerce-product-gallery img {
        max-height: 50vh;
        width: auto;
        margin: 0 auto;
        object-fit: contain;
    }

    /* Consistent product name height: clamp to 2 lines */
    .product-card__name a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* --------------------------------------------------------------------------
   19b. Ultra-narrow phones (375px - iPhone SE/13 mini)
   -------------------------------------------------------------------------- */

@media (max-width: 375px) {
    .product-card__info { padding: 6px 8px 8px; }
    .product-card__name a { font-size: 0.75rem; }
    .product-card__brand { font-size: 0.6rem; }
    .product-card__price { font-size: 0.8rem; }
    .potency-label { font-size: 0.55rem; padding: 1px 4px; }

    .product-grid { gap: 6px; }

    /* Prevent horizontal overflow */
    .section-inner,
    .shop-products,
    .product-related .section-inner {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Carousel: 2 cards, tighter gap */
    .carousel-track .product-card {
        flex: 0 0 calc(50% - 4px);
        min-width: 140px;
    }

    .carousel-track {
        gap: 8px;
        padding: 0 2px;
    }

    /* Hero: tighter padding */
    .hero {
        padding: var(--space-lg) var(--space-sm);
        min-height: 45vh;
    }

    .hero-title { font-size: clamp(1.3rem, 5.5vw, 1.8rem); }

    /* Category grid: tighter */
    .category-grid { gap: 6px; }
    .category-tile { padding: var(--space-sm); }

    /* Pagination: bigger tap targets */
    .woocommerce-pagination a,
    .woocommerce-pagination span {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */

@media print {
    .jupiter-header,
    .cart-drawer,
    .mobile-menu,
    .jupiter-footer,
    .shop-filters,
    .age-gate {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }
}

/* --------------------------------------------------------------------------
   21. Animations
   -------------------------------------------------------------------------- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 400ms var(--ease) both;
}

.product-grid .product-card:nth-child(1) { animation-delay: 0ms; }
.product-grid .product-card:nth-child(2) { animation-delay: 50ms; }
.product-grid .product-card:nth-child(3) { animation-delay: 100ms; }
.product-grid .product-card:nth-child(4) { animation-delay: 150ms; }
.product-grid .product-card:nth-child(5) { animation-delay: 200ms; }
.product-grid .product-card:nth-child(6) { animation-delay: 250ms; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   21. Filter Pills (Task #13)
   -------------------------------------------------------------------------- */

.filters-active {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 500;
    background: rgba(116, 115, 169, 0.1);
    color: var(--jp-purple);
    border: 1px solid rgba(116, 115, 169, 0.25);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-family);
    transition: all var(--transition-fast);
}

.filter-pill:hover {
    background: rgba(116, 115, 169, 0.2);
}

.pill-x {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.6;
}

.filter-pill:hover .pill-x { opacity: 1; }

/* --------------------------------------------------------------------------
   22. Product Card Improvements (Task #16)
   -------------------------------------------------------------------------- */

.product-card__quick-add {
    min-height: 44px;
    font-size: 0.8rem;
}

.product-card__image:hover .product-card__img {
    transform: scale(1.05);
    transition: transform 200ms var(--ease);
}

.product-card__img {
    transition: transform 300ms var(--ease);
}


/* --------------------------------------------------------------------------
   23. Navigation Improvements (Task #17)
   -------------------------------------------------------------------------- */

.header-hamburger span {
    transition: transform 300ms var(--ease), opacity 200ms ease;
}

.header-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.header-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu[aria-hidden="false"] .mobile-menu__panel {
    height: 100vh;
    height: 100dvh;
}

.header-search.active {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(var(--header-height) + var(--space-md));
}

.header-search.active .search-form {
    width: 90%;
    max-width: 600px;
    background: var(--jp-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    box-shadow: var(--shadow-xl, 0 20px 25px -5px rgb(0 0 0 / 0.1));
}

.categories-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.category-chip {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   24. Typography & Spacing (Task #18)
   -------------------------------------------------------------------------- */

p {
    max-width: 80ch;
}

.jupiter-btn {
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-xl) var(--space-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col {
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   25. Accessibility (Task #19)
   -------------------------------------------------------------------------- */

:focus-visible {
    outline: 2px solid var(--jp-purple);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--jp-purple);
    outline-offset: 2px;
}

.product-description a,
.product-full-desc a,
.product-short-desc a,
.footer-links a,
.store-info-desc a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.filter-checkbox input[type="checkbox"] {
    position: relative;
    width: 18px;
    height: 18px;
    opacity: 1;
    cursor: pointer;
}

/* Improved contrast for muted text */
.product-card__brand,
.cart-item-price,
.footer-tagline,
.footer-legal {
    color: var(--color-gray-600);
}

/* --------------------------------------------------------------------------
   26. Polish (Task #24)
   -------------------------------------------------------------------------- */

.product-card {
    transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.jupiter-btn {
    transition: all 200ms var(--ease);
}

.jupiter-btn:active {
    transform: scale(0.97);
}

.carousel-track {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.carousel-track > * {
    scroll-snap-align: start;
}

/* Toast notification for add-to-cart */
.jupiter-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--jp-surface);
    color: var(--jp-text);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgb(0 0 0 / 0.1));
    z-index: 1000;
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 4px solid var(--jp-green);
    animation: slideInRight 300ms var(--ease), fadeOut 300ms ease 2.5s forwards;
    font-family: var(--font-family);
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateY(10px); }
}

/* --------------------------------------------------------------------------
   27. Performance: Resource Hints (Task #23)
   -------------------------------------------------------------------------- */

/* Responsive grid gap */
@media (max-width: 480px) {
    .product-grid {
        gap: var(--space-sm);
    }
}

/* --------------------------------------------------------------------------
   28. Conversion Features (Task #25)
   -------------------------------------------------------------------------- */

.jupiter-social-proof {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--jp-green);
    font-weight: 500;
    padding: 4px 0;
}

.jupiter-urgency {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--jp-amber);
    font-weight: 500;
    padding: 4px 0;
}

.jupiter-urgency svg {
    flex-shrink: 0;
}

.woocommerce-orders-table .reorder a {
    background: var(--jp-purple);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 200ms ease;
}

.woocommerce-orders-table .reorder a:hover {
    background: var(--jp-purple-dark);
}

/* --------------------------------------------------------------------------
   Collapsible product detail sections (Value Buds pattern)
   -------------------------------------------------------------------------- */

.product-details-section {
    border-top: 1px solid var(--jp-border, #e5e7eb);
    padding: 0;
}

.details-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.details-heading::-webkit-details-marker { display: none; }

.details-heading::after {
    content: '\2014';
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--jp-text-muted, #6b7280);
    transition: transform 200ms ease;
}

.product-details-section:not([open]) .details-heading::after {
    content: '+';
}

.product-details-section > .cannabinoid-panel,
.product-details-section > .terpene-list,
.product-details-section > .product-short-desc,
.product-details-section > .product-full-desc {
    padding-bottom: 16px;
}

/* =========================================================================
   Day 2 Massage Fixes — 2026-04-14 (v5: spread single row, opens-11am hidden)
   ========================================================================= */

/* Hide "Opens at 11 AM" widget entirely */
.header-store-status { display: none !important; }

/* Allow .header-nav to shrink/expand properly in flex */
.header-nav {
    min-width: 0 !important;
    overflow: visible !important;
}
/* Make the MMM wrap fill the entire .header-nav allocation */
.header-nav #mega-menu-wrap-primary {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
/* Desktop only: stretch items across full width with space-between distribution.
 * At <=992px Max Mega Menu's own CSS hides #mega-menu-primary until the toggle
 * is tapped; we MUST NOT force display:flex on the UL at mobile widths or the
 * menu items render permanently inline alongside the toggle. */
@media (min-width: 993px) {
    #mega-menu-wrap-primary #mega-menu-primary {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        text-align: initial !important;
        padding: 0 !important;
    }
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }
    #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
        padding: 0 8px !important;
        font-size: 13px !important;
        line-height: 40px !important;
        height: 40px !important;
        white-space: nowrap !important;
    }
    #mega-menu-wrap-primary .mega-menu-toggle { display: none !important; }
}

/* Mobile (<=992px): hamburger sits on the far right and looks like a plain
 * icon button, matching .header-action-btn. The dropdown spans the full
 * sticky header width when opened. */
@media (max-width: 992px) {
    /* Push everything after the logo to the right edge */
    .header-logo { margin-right: auto !important; }
    /* Move the nav (which hosts the MMM toggle) to the last flex slot */
    .header-nav {
        order: 99 !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }
    .header-nav,
    .header-nav #mega-menu-wrap-primary { display: block !important; }
    /* Strip MMM toggle's chunky styling — match the 40x40 icon-button look */
    #mega-menu-wrap-primary .mega-menu-toggle {
        background: transparent !important;
        padding: 0 !important;
        height: 40px !important;
        min-height: 40px !important;
        width: 40px !important;
        justify-content: center !important;
        border: none !important;
    }
    #mega-menu-wrap-primary .mega-toggle-blocks-left,
    #mega-menu-wrap-primary .mega-toggle-blocks-center { display: none !important; }
    #mega-menu-wrap-primary .mega-toggle-blocks-right {
        flex: 0 0 auto !important;
        margin: 0 !important;
    }
    /* Recolor hamburger bars to muted icon tone */
    #mega-menu-wrap-primary .mega-toggle-animated-inner,
    #mega-menu-wrap-primary .mega-toggle-animated-inner::before,
    #mega-menu-wrap-primary .mega-toggle-animated-inner::after {
        background-color: var(--jp-text-muted) !important;
    }
    /* Dropdown spans the full viewport width when opened. Using viewport units
     * because the toggle is now inside a narrow .header-nav flex item, so
     * width: 100% would only span the toggle's container. */
    #mega-menu-wrap-primary .mega-menu-toggle + #mega-menu-primary {
        position: fixed !important;
        top: var(--header-height, 56px) !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-height: calc(100vh - var(--header-height, 56px)) !important;
        overflow-y: auto !important;
    }
}

/* Breadcrumb on category pages. Colors retuned for the light background;
 * the previous values were designed for a dark hero strip and failed
 * WCAG AA contrast on the actual page (link color was indigo-200 at
 * ~1.4:1 on white). */
.shop-header {
    padding-top: 1.25rem !important;
    padding-bottom: 1rem !important;
}
.jupiter-breadcrumbs {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #3f3a52;
    line-height: 1.4;
}
.jupiter-breadcrumbs a {
    color: #5a5784;
    text-decoration: none;
    transition: color 0.15s ease;
}
.jupiter-breadcrumbs a:hover {
    color: #7473A9;
    text-decoration: underline;
}
.breadcrumb-sep {
    color: #9ca3af;
    margin: 0 6px;
}

/* Fix 3: Trust bar — match dark-section rhythm (no more white strip between hero and shop-by-category) */
.trust-bar {
    background: #111018 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 18px 0 !important;
}
.trust-item {
    color: rgba(255, 255, 255, 0.85) !important;
}
.trust-stars {
    color: #f59e0b !important;
}
.trust-divider {
    color: rgba(255, 255, 255, 0.2) !important;
}
.trust-label {
    color: inherit !important;
}

/* Fix 4: Tighten section spacing + unify dark sections (2026-04-14) */
/* Sections were using --space-3xl (96px) top/bottom — way too loose. Halve it. */
.section {
    padding: var(--space-md) var(--space-lg) !important;
}
/* Unify .section-surface into dark theme so homepage flow stops flipping light/dark */
.section-surface {
    background: #111018 !important;
    color: #EEEDF5 !important;
}
.section-surface .section-title,
.section-surface h2,
.section-surface h3 {
    color: #ffffff !important;
}
.section-surface .section-subtitle,
.section-surface p {
    color: rgba(255, 255, 255, 0.7) !important;
}
/* Section header bottom margin: 40px → 24px */
.section-header {
    margin-bottom: var(--space-md) !important;
}
/* Also tighten any inline section-title bottom margin that the template sets */
.section > .section-inner > .section-title {
    margin-bottom: var(--space-md) !important;
}

/* Fix 5: Footer trimmed to 3 columns on desktop. On mobile (<=768px) it must
 * collapse to a single column or the hours and newsletter overflow the viewport. */
@media (min-width: 769px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Fix 6: Footer tighten spacing + brighten text */
.jupiter-footer {
    padding: var(--space-xl) var(--space-lg) var(--space-lg) !important;  /* was 96/24/40 -> 40/24/24 */
}
.footer-grid {
    margin-bottom: var(--space-lg) !important;  /* was 64 -> 24 */
    gap: var(--space-lg) !important;  /* was 40 -> 24 */
}
/* Address: kill <p> margins, tighter line-height */
.footer-address {
    line-height: 1.55 !important;
    color: #D7D5EA !important;
}
.footer-address p {
    margin: 0 !important;
    padding: 0 !important;
}
.footer-address p + p {
    margin-top: 2px !important;
}
.footer-address a {
    color: #C7C5DA !important;
}
.footer-tagline {
    color: #C8C6DC !important;
    margin-bottom: var(--space-sm) !important;
    line-height: 1.5 !important;
}
.footer-heading {
    color: #B5B3CC !important;  /* was #6B698A — much brighter */
    margin-bottom: 10px !important;
    font-size: 0.72rem !important;
}
.footer-subheading {
    color: #B5B3CC !important;
    margin-top: 12px !important;
    margin-bottom: 6px !important;
}
.hours-list {
    gap: 2px !important;
}
.hours-row {
    font-size: 0.85rem !important;
}
.hours-row dt {
    color: #C8C6DC !important;
}
.hours-row dd {
    color: #FFFFFF !important;
}
.footer-newsletter-text {
    color: #C8C6DC !important;
    margin-bottom: 10px !important;
    line-height: 1.5 !important;
}
.footer-legal {
    color: #A8A6BC !important;
}
.footer-bottom-links a {
    color: #B5B3CC !important;
}
.footer-bottom-links a:hover {
    color: #FFFFFF !important;
}
.footer-bottom {
    padding-top: var(--space-md) !important;
    border-top-color: rgba(255,255,255,0.08) !important;
}

/* Fix 7: removed - CBD is now inline SVG like all other icons */

/* Fix 8: Hide chat widget until chat is actually connected */
.jupiter-chat-widget,
#jupiter-chat,
[class*="chat-widget"],
[aria-label="Chat with our AI budtender"] {
    display: none !important;
}

/* Fix 9: New Arrivals grid — 7 wide on desktop, 4 on tablet, 3 on mobile. */
.product-grid--7 { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 1024px) {
    .product-grid--7 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
    .product-grid--7 { grid-template-columns: repeat(2, 1fr); }
}

/* Filters drawer + toggle hidden site-wide until the broken click handler is fixed.
   Sort dropdown remains, customers can sort by THC%, Price, Newest. */
.filter-toggle-btn,
.shop-filters,
.shop-filters-backdrop {
    display: none !important;
}

/* Hide SKU on single product page — customer-facing clutter, internal id only. */
.product-purchase .product-sku {
    display: none !important;
}

/* ==========================================================================
   Single-product page tightening pass (DESKTOP ONLY — scoped to ≥992px).
   Mobile keeps the original looser layout.
   ========================================================================== */

@media (min-width: 992px) {
    /* Both columns capped + centered so the image doesn't balloon */
    .product-layout {
        grid-template-columns: 480px 480px;
        justify-content: center;
        gap: var(--space-xl);
    }
    .product-info {
        max-width: 480px;
    }
    .product-gallery {
        max-width: 480px;
    }

    /* Tighten vertical rhythm inside info column */
    .product-info .product-purchase { margin-top: 0; }
    .product-info .product-details-section { margin-top: 0; }

    /* Compact "Add to Cart" — match info column width, not stretch */
    .product-info .product-purchase .single_add_to_cart_button {
        width: auto;
        min-width: 220px;
        padding: 12px 28px;
    }

    /* Cannabinoid panel: render as pill row instead of card grid */
    .product-info .cannabinoid-panel {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        grid-template-columns: none;
        padding: 0 0 8px;
        margin: 0;
        background: transparent;
    }
    .product-info .product-details-section[open] > .cannabinoid-panel {
        padding-top: 0;
    }
    .product-info .cannabinoid-item {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        background: var(--jp-surface-2);
        border-radius: 999px;
        padding: 6px 14px;
        font-size: 0.875rem;
        min-width: 0;
        width: auto;
    }
    .product-info .cannabinoid-item .cannabinoid-label {
        font-weight: 600;
        color: var(--jp-text-muted);
        margin: 0;
        font-size: 0.8rem;
        display: inline;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }
    .product-info .cannabinoid-item .cannabinoid-label::after {
        content: ":";
        margin-right: 4px;
    }
    .product-info .cannabinoid-item .cannabinoid-value {
        font-weight: 700;
        margin: 0;
        display: inline;
    }
    .product-info .cannabinoid-item .cannabinoid-bar,
    .product-info .cannabinoid-item .cannabinoid-level {
        display: none;
    }

    /* Tighten section spacing on desktop */
    .product-info .product-title { margin-bottom: 6px; }
    .product-info .product-brand { margin-bottom: 4px; }
    .product-info .product-tags { margin-bottom: 12px; }
    .product-info .product-purchase {
        padding: 12px 16px;
        margin-bottom: 12px;
    }
    .product-info .product-price-block { margin-bottom: 6px; }
    .product-info .product-stock { margin-bottom: 8px; }
    .product-info .product-stock .stock-location { font-size: 0.8rem; }
    .product-info .details-heading { padding: 8px 0; }
    .product-info .product-badges { margin-bottom: 0; }
    .product-info .product-details-section .product-short-desc,
    .product-info .product-details-section .product-full-desc {
        padding-bottom: 8px;
    }
}

/* ==========================================================================
   Mobile condensation pass (≤991px) — A, B, D, E, F per owner
   ========================================================================== */
@media (max-width: 991px) {

    /* A — REVERTED: mobile image back to natural full-width */

    /* B — pill-style cannabinoid panel on mobile (matches desktop) */
    .product-info .cannabinoid-panel {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        grid-template-columns: none;
        padding: 0 0 8px;
        margin: 0;
        background: transparent;
    }
    .product-info .cannabinoid-item {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        background: var(--jp-surface-2);
        border-radius: 999px;
        padding: 6px 14px;
        font-size: 0.875rem;
        min-width: 0;
        width: auto;
    }
    .product-info .cannabinoid-item .cannabinoid-label {
        font-weight: 600;
        color: var(--jp-text-muted);
        margin: 0;
        font-size: 0.8rem;
        display: inline;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }
    .product-info .cannabinoid-item .cannabinoid-label::after {
        content: ":";
        margin-right: 4px;
    }
    .product-info .cannabinoid-item .cannabinoid-value {
        font-weight: 700;
        margin: 0;
        display: inline;
    }
    .product-info .cannabinoid-item .cannabinoid-bar,
    .product-info .cannabinoid-item .cannabinoid-level {
        display: none;
    }

    /* D — tighten vertical spacing between product info sections on mobile */
    .product-info .product-brand { margin-bottom: 2px; }
    .product-info .product-tags { margin-bottom: 10px; }
    .product-info .product-purchase {
        padding: 12px;
        margin-bottom: 12px;
    }
    .product-info .product-price-block { margin-bottom: 6px; }
    .product-info .product-stock { margin-bottom: 8px; }
    .product-info .details-heading { padding: 8px 0; }
    .product-info .product-details-section .product-short-desc,
    .product-info .product-details-section .product-full-desc {
        padding-bottom: 8px;
    }

    /* E — cut the giant gap between product info and "You Might Also Like" */
    .product-related {
        margin-top: var(--space-lg);
    }

    /* F. Hide the "Ready for pickup at Unit C, 580 Academy Road" sub-line */
    .product-info .product-stock .stock-location {
        display: none;
    }
}

/* ---- Checkout trust badges ----
 *
 * Lift from the inline-style block that used to live in wc-hooks.php so the
 * mobile override in checkout-mobile.css can tighten the gap without
 * fighting inline-style specificity. Base values intentionally match the
 * previous inline ones so desktop renders the same as before. */
.jupiter-trust-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 16px 0;
    margin-top: 16px;
    border-top: 1px solid var(--jp-border, #e5e7eb);
}
.jupiter-trust-badge {
    text-align: center;
    font-size: 0.7rem;
    color: var(--jp-text-muted, #6b7280);
}

/* ---- 30g pre-flight: inline warning on single product page ---- */
.jupiter-30g-block {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #991b1b;
    padding: 16px 18px;
    border-radius: 10px;
    margin: 12px 0 20px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.jupiter-30g-block strong { color: #7f1d1d; }
.jupiter-30g-block__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

/* Visual hint on product cards that would push the cart over 30g.
 * Card stays clickable (the click is intercepted to open the swap modal). */
.product-card__quick-add--would-exceed {
    background: #fff5f5 !important;
    color: #991b1b !important;
    border-color: #fecaca !important;
}
.product-card__quick-add--would-exceed:hover {
    background: #ffe4e4 !important;
}

/* ---- Swap modal ---- */
.jupiter-swap-modal[hidden] { display: none; }
.jupiter-swap-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.jupiter-swap-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 16, 24, 0.55);
    backdrop-filter: blur(2px);
}
.jupiter-swap-modal__panel {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #fff;
    color: #1f1b2e;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}
.jupiter-swap-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 12px;
    border-bottom: 1px solid #eee;
}
.jupiter-swap-modal__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
}
.jupiter-swap-modal__close {
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #6b7280;
    padding: 4px;
    line-height: 0;
}
.jupiter-swap-modal__close:hover { color: #1f1b2e; }
.jupiter-swap-modal__body {
    padding: 14px 18px;
    flex: 1;
    overflow: auto;
}
.jupiter-swap-modal__lead {
    margin: 0 0 12px;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
}
.jupiter-swap-modal__status {
    background: #f5f3fa;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
    font-size: 0.9rem;
    color: #4b5563;
}
.jupiter-swap-modal__items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.jupiter-swap-modal__item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.jupiter-swap-modal__item-info { display: flex; flex-direction: column; gap: 2px; }
.jupiter-swap-modal__item-name { font-weight: 600; color: #1f1b2e; font-size: 0.95rem; }
.jupiter-swap-modal__item-meta { color: #6b7280; font-size: 0.8rem; }
.jupiter-swap-modal__item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.jupiter-swap-modal__action { font-size: 0.85rem; padding: 8px 12px; }
.jupiter-swap-modal__action[disabled] { opacity: 0.5; cursor: not-allowed; }
.jupiter-swap-modal__loading,
.jupiter-swap-modal__empty {
    color: #6b7280;
    text-align: center;
    padding: 18px;
    font-style: italic;
}
.jupiter-swap-modal__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-top: 1px solid #eee;
}
.jupiter-btn-link {
    background: transparent;
    color: #5a5784;
    text-decoration: underline;
    padding: 8px 12px;
    border: 0;
    font-weight: 600;
    font-size: 0.9rem;
}
.jupiter-btn-link:hover { color: #7473A9; }
@media (max-width: 480px) {
    .jupiter-swap-modal__panel {
        max-width: 100%;
        margin: 0 auto;
        align-self: flex-end;
        border-radius: 14px 14px 0 0;
    }
}
