/*
Theme Name: Canndex
Theme URI: https://canndex.de
Author: Canndex Team
Description: Modernes Cannabis-Apotheken Preisvergleichsportal mit hellem, freundlichem Design
Version: 1.0.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: canndex
*/

/* ========================================
   CANNDEX - CUSTOM DESIGN SYSTEM
   Light Theme mit Gradient-Akzenten
   ======================================== */

/* ========================================
   CSS Variables & Base Styles
   Scoped to body.canndex to avoid admin conflicts
   ======================================== */

body.canndex {
    /* CSS Variables - Light Theme (WCAG 2.1 AA Compliant) */
    --hc-bg-primary: #fafafa;
    --hc-bg-secondary: #ffffff;
    --hc-bg-card: #ffffff;
    --hc-bg-card-hover: #f0f4f5;
    /* Accessible green colors - 5.4:1+ contrast on white */
    --hc-accent-primary: #047857;
    --hc-accent-secondary: #065f46;
    --hc-accent-gradient: linear-gradient(135deg, #059669 0%, #047857 50%, #065f46 100%);
    --hc-accent-glow: rgba(4, 120, 87, 0.2);
    --hc-accent-light: rgba(4, 120, 87, 0.1);
    --hc-text-primary: #1a202c;
    --hc-text-secondary: #374151;
    /* Accessible muted text - 5.4:1 contrast on white */
    --hc-text-muted: #4b5563;
    --hc-border-color: #e2e8f0;
    --hc-border-hover: rgba(4, 120, 87, 0.4);
    --hc-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --hc-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --hc-shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --hc-shadow-glow: 0 4px 20px var(--hc-accent-glow);
    /* Accessible status colors */
    --hc-success: #047857;
    --hc-warning: #b45309;
    --hc-error: #dc2626;
    --hc-info: #1d4ed8;
    --hc-space-xs: 0.25rem;
    --hc-space-sm: 0.5rem;
    --hc-space-md: 1rem;
    --hc-space-lg: 1.5rem;
    --hc-space-xl: 2rem;
    --hc-space-2xl: 3rem;
    --hc-radius-sm: 8px;
    --hc-radius-md: 12px;
    --hc-radius-lg: 16px;
    --hc-radius-xl: 24px;
    --hc-radius-full: 9999px;
    --hc-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --hc-font-display: 'Plus Jakarta Sans', var(--hc-font-primary);

    /* Base Styles */
    margin: 0;
    padding: 0;
    font-family: var(--hc-font-primary);
    background: var(--hc-bg-primary);
    color: var(--hc-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.canndex *,
body.canndex *::before,
body.canndex *::after {
    box-sizing: border-box;
}

html:has(body.canndex) {
    scroll-behavior: smooth;
}

/* Background Pattern - Subtle for Apple-style cleanliness */
body.canndex::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(4, 120, 87, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(6, 95, 70, 0.015) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

body.canndex a {
    color: var(--hc-accent-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

body.canndex a:hover {
    color: var(--hc-accent-secondary);
}

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

/* ========================================
   TYPOGRAPHY
   ======================================== */

body.canndex h1,
body.canndex h2,
body.canndex h3,
body.canndex h4,
body.canndex h5,
body.canndex h6 {
    font-family: var(--hc-font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--hc-text-primary);
    margin: 0;
}

body.canndex h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
body.canndex h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
body.canndex h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
body.canndex h4 { font-size: 1.25rem; }
body.canndex h5 { font-size: 1.1rem; }
body.canndex h6 { font-size: 1rem; }

body.canndex p {
    color: var(--hc-text-secondary);
    margin-bottom: var(--hc-space-md);
}

/* ========================================
   LAYOUT
   ======================================== */

.hc-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--hc-space-lg);
}

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

/* ========================================
   HEADER
   ======================================== */

.hc-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--hc-border-color);
    box-shadow: var(--hc-shadow-sm);
}

.hc-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: var(--hc-space-xl);
}

.hc-logo {
    display: flex;
    align-items: center;
    gap: var(--hc-space-sm);
    font-family: var(--hc-font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--hc-text-primary);
}

.hc-logo__icon {
    width: 40px;
    height: 40px;
    background: var(--hc-accent-gradient);
    border-radius: var(--hc-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.hc-logo__text span {
    background: var(--hc-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hc-logo__image {
    height: 24px !important;
    max-height: 24px !important;
    width: auto !important;
    display: block;
    object-fit: contain;
}

.hc-logo__image--large {
    height: 36px !important;
    max-height: 36px !important;
}

/* ========================================
   NAVIGATION
   ======================================== */

.hc-nav {
    display: flex;
    align-items: center;
    gap: var(--hc-space-xs);
}

/* Hide mobile user menu on desktop */
.hc-nav__mobile-user {
    display: none;
}

.hc-nav__link {
    padding: var(--hc-space-sm) var(--hc-space-md);
    color: var(--hc-text-secondary);
    font-weight: 500;
    border-radius: var(--hc-radius-sm);
    transition: all 0.2s ease;
}

.hc-nav__link:hover,
.hc-nav__link.active {
    color: var(--hc-text-primary);
    background: var(--hc-bg-card);
}

.hc-nav__link.active {
    color: var(--hc-accent-primary);
}

/* Header Actions */
.hc-header__actions {
    display: flex;
    align-items: center;
    gap: var(--hc-space-sm);
}

.hc-btn--header {
    display: inline-flex;
    align-items: center;
    gap: var(--hc-space-xs);
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--hc-radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.hc-btn--header svg {
    flex-shrink: 0;
}

.hc-btn--header.hc-btn--success {
    background: #047857;
    color: white;
}

.hc-btn--header.hc-btn--success:hover {
    background: #065f46;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
}

.hc-btn--header.hc-btn--primary {
    background: #0369a1;
    color: white;
}

.hc-btn--header.hc-btn--primary:hover {
    background: #075985;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(3, 105, 161, 0.3);
}

/* Mobile Menu Toggle */
.hc-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--hc-space-sm);
    background: transparent;
    border: none;
    cursor: pointer;
}

.hc-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--hc-text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ========================================
   SEARCH
   ======================================== */

.hc-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.hc-search__input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.hc-search__icon {
    position: absolute;
    left: var(--hc-space-md);
    color: var(--hc-text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
}

.hc-search__input {
    width: 100%;
    padding: var(--hc-space-md) var(--hc-space-md) var(--hc-space-md) 48px;
    background: var(--hc-bg-card);
    border: 1px solid var(--hc-border-color);
    border-radius: var(--hc-radius-full);
    color: var(--hc-text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.hc-search__input::placeholder {
    color: var(--hc-text-muted);
}

.hc-search__input:focus {
    outline: none;
    border-color: var(--hc-accent-primary);
    box-shadow: 0 0 0 3px var(--hc-accent-glow);
}

.hc-search__input:focus + .hc-search__icon,
.hc-search__input-wrapper:hover .hc-search__icon {
    color: var(--hc-accent-primary);
}

/* Search Autocomplete */
.hc-search__results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--hc-bg-card);
    border: 1px solid var(--hc-border-color);
    border-radius: var(--hc-radius-md);
    box-shadow: var(--hc-shadow-lg);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.hc-search__results.active {
    display: block;
}

.hc-search__result-item {
    display: flex;
    align-items: center;
    gap: var(--hc-space-md);
    padding: var(--hc-space-md);
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid var(--hc-border-color);
}

.hc-search__result-item:last-child {
    border-bottom: none;
}

.hc-search__result-item:hover {
    background: var(--hc-bg-card-hover);
}

.hc-search__result-image {
    width: 48px;
    height: 48px;
    border-radius: var(--hc-radius-sm);
    object-fit: cover;
    background: var(--hc-bg-secondary);
}

.hc-search__result-info h4 {
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.hc-search__result-info span {
    font-size: 0.85rem;
    color: var(--hc-text-muted);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hc-hero {
    padding: var(--hc-space-2xl) 0 var(--hc-space-xl);
    text-align: center;
}

.hc-hero__title {
    margin-bottom: var(--hc-space-md);
}

.hc-hero__title span {
    background: var(--hc-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hc-hero__subtitle {
    font-size: 1.1rem;
    color: var(--hc-text-secondary);
    max-width: 600px;
    margin: 0 auto var(--hc-space-xl);
}

/* Stats */
.hc-hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--hc-space-2xl);
    margin-top: var(--hc-space-xl);
}

.hc-stat {
    text-align: center;
}

.hc-stat__value {
    font-family: var(--hc-font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--hc-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hc-stat__label {
    font-size: 0.9rem;
    color: var(--hc-text-muted);
    margin-top: var(--hc-space-xs);
}

/* ========================================
   FILTERS / TABS
   ======================================== */

.hc-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hc-space-sm);
    margin-bottom: var(--hc-space-xl);
}

.hc-filter-btn {
    padding: var(--hc-space-sm) var(--hc-space-lg);
    background: var(--hc-bg-card);
    border: 1px solid var(--hc-border-color);
    border-radius: var(--hc-radius-full);
    color: var(--hc-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hc-filter-btn:hover {
    background: var(--hc-bg-card-hover);
    color: var(--hc-text-primary);
    border-color: var(--hc-border-hover);
}

.hc-filter-btn.active {
    background: var(--hc-accent-gradient);
    border-color: transparent;
    color: #ffffff;
}

/* Advanced Filters */
.hc-advanced-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--hc-space-md);
    padding: var(--hc-space-lg);
    background: var(--hc-bg-card);
    border-radius: var(--hc-radius-lg);
    margin-bottom: var(--hc-space-xl);
}

.hc-filter-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--hc-text-muted);
    margin-bottom: var(--hc-space-xs);
}

.hc-filter-group select,
.hc-filter-group input {
    width: 100%;
    padding: var(--hc-space-sm) var(--hc-space-md);
    background: var(--hc-bg-secondary);
    border: 1px solid var(--hc-border-color);
    border-radius: var(--hc-radius-sm);
    color: var(--hc-text-primary);
    font-size: 0.9rem;
}

.hc-filter-group select:focus,
.hc-filter-group input:focus {
    outline: none;
    border-color: var(--hc-accent-primary);
}

/* ========================================
   PRODUCT GRID
   ======================================== */

.hc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--hc-space-lg);
}

/* ========================================
   PRODUCT CARD
   ======================================== */

.hc-product-card {
    background: var(--hc-bg-card);
    border: 1px solid var(--hc-border-color);
    border-radius: var(--hc-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--hc-shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hc-product-card:hover {
    transform: translateY(-4px);
    border-color: var(--hc-border-hover);
    box-shadow: var(--hc-shadow-lg);
}

.hc-product-card__image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--hc-bg-secondary);
    overflow: hidden;
}

.hc-product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.hc-product-card__badges {
    position: absolute;
    top: var(--hc-space-md);
    left: var(--hc-space-md);
    display: flex;
    flex-wrap: wrap;
    gap: var(--hc-space-xs);
}

.hc-badge {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--hc-radius-sm);
}

.hc-badge--new {
    background: var(--hc-accent-gradient);
    color: #ffffff;
}

.hc-badge--sale {
    background: var(--hc-error);
    color: white;
}

.hc-badge--popular {
    background: var(--hc-warning);
    color: #ffffff;
}

.hc-product-card__content {
    padding: var(--hc-space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hc-product-card__category {
    font-size: 0.8rem;
    color: var(--hc-accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--hc-space-xs);
}

.hc-product-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--hc-space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hc-product-card__strain {
    display: flex;
    align-items: center;
    gap: var(--hc-space-sm);
    font-size: 0.85rem;
    color: var(--hc-text-muted);
    margin-bottom: var(--hc-space-md);
}

.hc-product-card__thc-cbd {
    display: flex;
    gap: var(--hc-space-md);
    margin-bottom: var(--hc-space-md);
}

.hc-thc-cbd-value {
    display: flex;
    align-items: center;
    gap: var(--hc-space-xs);
    font-size: 0.85rem;
}

.hc-thc-cbd-value strong {
    color: var(--hc-accent-primary);
}

/* Rating */
.hc-product-card__rating {
    display: flex;
    align-items: center;
    gap: var(--hc-space-sm);
    margin-bottom: var(--hc-space-md);
}

.hc-stars {
    display: flex;
    gap: 2px;
}

.hc-star {
    width: 16px;
    height: 16px;
    color: var(--hc-text-muted);
}

.hc-star.filled {
    color: var(--hc-warning);
}

.hc-rating-count {
    font-size: 0.85rem;
    color: var(--hc-text-muted);
}

/* Availability */
.hc-product-card__availability {
    margin-bottom: var(--hc-space-md);
}

.hc-availability-bar {
    height: 4px;
    background: var(--hc-bg-secondary);
    border-radius: var(--hc-radius-full);
    overflow: hidden;
    margin-bottom: var(--hc-space-xs);
}

.hc-availability-bar__fill {
    height: 100%;
    border-radius: var(--hc-radius-full);
    transition: width 0.3s ease;
}

.hc-availability-bar__fill.high {
    background: var(--hc-success);
    width: 80%;
}

.hc-availability-bar__fill.medium {
    background: var(--hc-warning);
    width: 50%;
}

.hc-availability-bar__fill.low {
    background: var(--hc-error);
    width: 20%;
}

.hc-availability-text {
    font-size: 0.8rem;
    color: var(--hc-text-muted);
}

/* Price */
.hc-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--hc-space-md);
    border-top: 1px solid var(--hc-border-color);
    margin-top: auto;
}

.hc-product-card__price {
    display: flex;
    flex-direction: column;
}

.hc-price-label {
    font-size: 0.75rem;
    color: var(--hc-text-muted);
}

.hc-price-value {
    font-family: var(--hc-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hc-accent-primary);
}

.hc-price-value small {
    font-size: 0.85rem;
    color: var(--hc-text-muted);
    font-weight: 400;
}

.hc-product-card__pharmacies {
    display: flex;
    align-items: center;
    gap: var(--hc-space-xs);
    font-size: 0.85rem;
    color: var(--hc-text-muted);
}

/* ========================================
   BUTTONS
   ======================================== */

.hc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--hc-space-sm);
    padding: var(--hc-space-md) var(--hc-space-xl);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--hc-radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hc-btn--primary,
a.hc-btn--primary,
body.canndex a.hc-btn--primary {
    background: var(--hc-accent-gradient);
    color: #ffffff !important;
}

.hc-btn--primary:hover,
a.hc-btn--primary:hover,
body.canndex a.hc-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--hc-shadow-glow);
    color: #ffffff !important;
}

.hc-btn--secondary {
    background: var(--hc-bg-card);
    color: var(--hc-text-primary);
    border: 1px solid var(--hc-border-color);
}

.hc-btn--secondary:hover {
    background: var(--hc-bg-card-hover);
    border-color: var(--hc-border-hover);
}

.hc-btn--ghost {
    background: transparent;
    color: var(--hc-accent-primary);
}

.hc-btn--ghost:hover {
    background: var(--hc-accent-glow);
}

/* ========================================
   PHARMACY LIST
   ======================================== */

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

.hc-pharmacy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--hc-space-lg);
    background: var(--hc-bg-card);
    border: 1px solid var(--hc-border-color);
    border-radius: var(--hc-radius-lg);
    transition: all 0.2s ease;
}

.hc-pharmacy-item:hover {
    border-color: var(--hc-border-hover);
    background: var(--hc-bg-card-hover);
}

.hc-pharmacy-item__info {
    display: flex;
    align-items: center;
    gap: var(--hc-space-md);
}

.hc-pharmacy-item__logo {
    width: 56px;
    height: 56px;
    border-radius: var(--hc-radius-md);
    object-fit: contain;
    background: white;
    padding: 8px;
}

.hc-pharmacy-item__name {
    font-weight: 600;
    margin-bottom: 4px;
}

.hc-pharmacy-item__rating {
    display: flex;
    align-items: center;
    gap: var(--hc-space-xs);
    font-size: 0.85rem;
    color: var(--hc-text-muted);
}

.hc-pharmacy-item__price {
    text-align: right;
}

.hc-pharmacy-item__price-value {
    font-family: var(--hc-font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hc-accent-primary);
}

.hc-pharmacy-item__availability {
    font-size: 0.85rem;
    color: var(--hc-success);
}

/* ========================================
   FOOTER
   ======================================== */

.hc-footer {
    background: var(--hc-bg-secondary);
    border-top: 1px solid var(--hc-border-color);
    padding: var(--hc-space-2xl) 0 var(--hc-space-lg);
    margin-top: var(--hc-space-2xl);
}

.hc-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--hc-space-xl);
    margin-bottom: var(--hc-space-xl);
}

.hc-footer__column h4 {
    font-size: 1rem;
    margin-bottom: var(--hc-space-md);
    color: var(--hc-text-primary);
}

.hc-footer__links {
    list-style: none;
}

.hc-footer__links li {
    margin-bottom: var(--hc-space-sm);
}

.hc-footer__links a {
    color: var(--hc-text-muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.hc-footer__links a:hover {
    color: var(--hc-accent-primary);
}

.hc-footer__bottom {
    padding-top: var(--hc-space-lg);
    border-top: 1px solid var(--hc-border-color);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--hc-space-md);
}

.hc-footer__copyright {
    font-size: 0.85rem;
    color: var(--hc-text-muted);
}

/* ========================================
   LOADING STATES
   ======================================== */

.hc-skeleton {
    background: linear-gradient(90deg,
        var(--hc-bg-card) 25%,
        var(--hc-bg-card-hover) 50%,
        var(--hc-bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--hc-radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .hc-hero__stats {
        gap: var(--hc-space-xl);
    }
}

@media (max-width: 768px) {
    .hc-header__inner {
        flex-wrap: wrap;
        height: auto;
        padding: var(--hc-space-md) 0;
        gap: var(--hc-space-md);
    }

    .hc-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }

    .hc-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #ffffff;
        padding: var(--hc-space-md);
        border-bottom: 1px solid var(--hc-border-color);
        box-shadow: var(--hc-shadow-md);
    }

    .hc-nav.active {
        display: flex;
    }

    .hc-menu-toggle {
        display: flex;
    }

    /* Mobile User Menu in Nav */
    .hc-nav__mobile-user {
        display: block;
        margin-top: var(--hc-space-md);
        padding-top: var(--hc-space-md);
        border-top: 2px solid var(--hc-border-color);
    }

    .hc-nav__mobile-user-header {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px;
        margin: 0 -16px 8px -16px;
        background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
        border-radius: 12px;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .hc-nav__mobile-user-header:hover {
        background: linear-gradient(135deg, #dcfce7 0%, #d1fae5 100%);
    }

    .hc-nav__mobile-user-arrow {
        color: var(--hc-accent-primary);
        flex-shrink: 0;
        margin-left: auto;
    }

    .hc-nav__mobile-user-avatar img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        border: 3px solid var(--hc-accent-primary);
        object-fit: cover;
    }

    .hc-nav__mobile-user-info {
        min-width: 0;
        flex: 1;
    }

    .hc-nav__mobile-user-info strong {
        display: block;
        font-size: 1rem;
        font-weight: 600;
        color: var(--hc-text-primary);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 2px;
    }

    .hc-nav__mobile-user-info span {
        display: block;
        font-size: 0.8rem;
        color: var(--hc-text-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hc-nav__link--login,
    .hc-nav__link--register,
    .hc-nav__link--pharmacy,
    .hc-nav__link--logout {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px !important;
        margin: 0 -16px;
        border-radius: 0;
        font-size: 0.95rem;
    }

    .hc-nav__link--login:hover,
    .hc-nav__link--register:hover,
    .hc-nav__link--pharmacy:hover,
    .hc-nav__link--logout:hover {
        background: var(--hc-bg-primary);
    }

    .hc-nav__link--login svg,
    .hc-nav__link--register svg,
    .hc-nav__link--pharmacy svg,
    .hc-nav__link--logout svg {
        opacity: 0.7;
        flex-shrink: 0;
        width: 20px;
        height: 20px;
    }

    .hc-nav__link--pharmacy {
        color: var(--hc-accent-primary);
        font-weight: 500;
    }

    .hc-nav__link--pharmacy svg {
        opacity: 1;
    }

    .hc-nav__link--logout {
        color: #dc2626;
        margin-top: 8px;
        border-top: 1px solid var(--hc-border-color);
        padding-top: 16px !important;
    }

    .hc-nav__link--login {
        color: white !important;
        background: var(--hc-accent-primary) !important;
        font-weight: 600;
        border-radius: 10px !important;
        margin: 8px 16px !important;
        justify-content: center;
        width: calc(100% - 32px);
    }

    .hc-nav__link--login:hover {
        color: white !important;
        background: var(--hc-accent-secondary) !important;
    }

    .hc-nav__link--login svg {
        opacity: 1;
        color: white !important;
    }

    .hc-nav__link--register {
        color: var(--hc-accent-primary) !important;
        background: transparent !important;
        border: 2px solid var(--hc-accent-primary);
        border-radius: 10px !important;
        margin: 0 16px !important;
        justify-content: center;
        font-weight: 500;
        width: calc(100% - 32px);
    }

    .hc-nav__link--register:hover {
        background: rgba(4, 120, 87, 0.08) !important;
    }

    .hc-nav__link--register svg {
        opacity: 0.9;
    }

    .hc-hero__stats {
        flex-direction: column;
        gap: var(--hc-space-lg);
    }

    .hc-products-grid {
        grid-template-columns: 1fr;
    }

    .hc-pharmacy-item {
        flex-direction: column;
        text-align: center;
        gap: var(--hc-space-md);
    }

    .hc-pharmacy-item__info {
        flex-direction: column;
    }

    .hc-pharmacy-item__price {
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --hc-space-lg: 1rem;
        --hc-space-xl: 1.5rem;
        --hc-space-2xl: 2rem;
    }

    .hc-product-card__footer {
        flex-direction: column;
        gap: var(--hc-space-md);
        text-align: center;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.hc-text-center { text-align: center; }
.hc-text-gradient {
    background: var(--hc-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hc-mt-sm { margin-top: var(--hc-space-sm); }
.hc-mt-md { margin-top: var(--hc-space-md); }
.hc-mt-lg { margin-top: var(--hc-space-lg); }
.hc-mt-xl { margin-top: var(--hc-space-xl); }

.hc-mb-sm { margin-bottom: var(--hc-space-sm); }
.hc-mb-md { margin-bottom: var(--hc-space-md); }
.hc-mb-lg { margin-bottom: var(--hc-space-lg); }
.hc-mb-xl { margin-bottom: var(--hc-space-xl); }

.hc-hidden { display: none !important; }
.hc-visible { display: block !important; }

/* Scrollbar Styling */
body.canndex ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

body.canndex ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body.canndex ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--hc-radius-full);
}

body.canndex ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   LOGIN & REGISTRATION PAGE
   ======================================== */

.hc-auth-section {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding: var(--hc-space-xl) 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hc-auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: var(--hc-radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 868px) {
    .hc-auth-wrapper {
        grid-template-columns: 1fr;
    }
    .hc-auth-side {
        display: none;
    }
}

.hc-auth-card {
    padding: var(--hc-space-2xl);
}

.hc-auth-logo {
    text-align: center;
    margin-bottom: var(--hc-space-xl);
}

.hc-auth-logo .hc-logo {
    display: inline-flex;
    justify-content: center;
}

.hc-logo--large {
    font-size: 1.75rem;
}

.hc-logo--large .hc-logo__icon {
    width: 48px;
    height: 48px;
}

.hc-logo--large .hc-logo__icon svg {
    stroke: white;
}

/* Auth Tabs */
.hc-auth-tabs {
    display: flex;
    background: var(--hc-bg-secondary);
    border-radius: var(--hc-radius-full);
    padding: 4px;
    margin-bottom: var(--hc-space-xl);
}

.hc-auth-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: var(--hc-radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--hc-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hc-auth-tab:hover {
    color: var(--hc-text-primary);
}

.hc-auth-tab.active {
    background: white;
    color: var(--hc-accent-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Auth Forms */
.hc-auth-form-wrapper {
    display: none;
}

.hc-auth-form-wrapper.active {
    display: block;
}

.hc-auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--hc-space-md);
}

.hc-auth-error {
    display: flex;
    align-items: center;
    gap: var(--hc-space-sm);
    padding: var(--hc-space-md);
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--hc-radius-md);
    color: #dc2626;
    font-size: 0.9rem;
    margin-bottom: var(--hc-space-md);
}

.hc-auth-success {
    display: flex;
    align-items: center;
    gap: var(--hc-space-sm);
    padding: var(--hc-space-md);
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--hc-radius-md);
    color: #16a34a;
    font-size: 0.9rem;
    margin-bottom: var(--hc-space-md);
}

.hc-auth-intro {
    text-align: center;
    margin-bottom: var(--hc-space-lg);
}

.hc-auth-intro h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--hc-text-primary);
    margin-bottom: var(--hc-space-sm);
}

.hc-auth-intro p {
    color: var(--hc-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Form Groups */
.hc-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--hc-space-xs);
}

.hc-form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--hc-text-primary);
}

.hc-form-group label .required {
    color: #dc2626;
}

.hc-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.hc-input-wrapper > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--hc-text-muted);
    pointer-events: none;
    z-index: 2;
    flex-shrink: 0;
}

.hc-input-wrapper input {
    width: 100%;
    padding: 14px 48px 14px 52px !important;
    border: 1px solid var(--hc-border-color);
    border-radius: var(--hc-radius-md);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
}

.hc-input-wrapper input:focus {
    outline: none;
    border-color: var(--hc-accent-primary);
    box-shadow: 0 0 0 3px var(--hc-accent-glow);
}

.hc-input-wrapper input::placeholder {
    color: var(--hc-text-muted);
}

.hc-form-group input:not(.hc-input-wrapper input) {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--hc-border-color);
    border-radius: var(--hc-radius-md);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.hc-form-group input:not(.hc-input-wrapper input):focus {
    outline: none;
    border-color: var(--hc-accent-primary);
    box-shadow: 0 0 0 3px var(--hc-accent-glow);
}

.hc-form-hint {
    font-size: 0.8rem;
    color: var(--hc-text-muted);
}

/* Password Toggle */
.hc-password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--hc-text-muted);
    transition: color 0.2s;
}

.hc-password-toggle:hover {
    color: var(--hc-text-primary);
}

/* Form Row */
.hc-form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--hc-space-md);
}

.hc-form-row--half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--hc-space-md);
}

@media (max-width: 480px) {
    .hc-form-row--half {
        grid-template-columns: 1fr;
    }
}

/* Checkbox */
.hc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--hc-space-sm);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--hc-text-secondary);
    line-height: 1.5;
}

.hc-checkbox input {
    display: none;
}

.hc-checkbox__mark {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid var(--hc-border-color);
    border-radius: var(--hc-radius-sm);
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s;
    margin-top: 2px;
}

.hc-checkbox input:checked + .hc-checkbox__mark {
    background: var(--hc-accent-primary);
    border-color: var(--hc-accent-primary);
}

.hc-checkbox input:checked + .hc-checkbox__mark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.hc-checkbox__text {
    flex: 1;
    line-height: 1.4;
}

.hc-checkbox a,
.hc-checkbox__text a {
    color: var(--hc-accent-primary);
}

.hc-checkbox a:hover,
.hc-checkbox__text a:hover {
    text-decoration: underline;
}

/* Auth Link */
.hc-auth-link {
    font-size: 0.9rem;
    color: var(--hc-accent-primary);
}

.hc-auth-link:hover {
    text-decoration: underline;
}

/* Full Width Button */
.hc-btn--full {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--hc-radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hc-btn--full.hc-btn--primary {
    background: var(--hc-accent-gradient);
    color: white;
}

.hc-btn--full.hc-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--hc-accent-glow);
}

/* Auth Divider */
.hc-auth-divider {
    display: flex;
    align-items: center;
    gap: var(--hc-space-md);
    margin: var(--hc-space-xl) 0;
    color: var(--hc-text-muted);
    font-size: 0.85rem;
}

.hc-auth-divider::before,
.hc-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--hc-border-color);
}

/* Auth Info */
.hc-auth-info {
    text-align: center;
    font-size: 0.9rem;
    color: var(--hc-text-muted);
}

.hc-auth-info a {
    color: var(--hc-accent-primary);
    font-weight: 500;
}

.hc-auth-info a:hover {
    text-decoration: underline;
}

/* Auth Side Panel */
.hc-auth-side {
    background: linear-gradient(135deg, var(--hc-accent-primary) 0%, #059669 100%);
    padding: var(--hc-space-2xl);
    display: flex;
    align-items: center;
    color: white;
}

.hc-auth-side__content h2 {
    font-size: 1.75rem;
    margin-bottom: var(--hc-space-md);
    color: white;
}

.hc-auth-side__content p {
    opacity: 0.9;
    margin-bottom: var(--hc-space-xl);
    font-size: 1.05rem;
}

.hc-auth-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--hc-space-md);
}

.hc-auth-benefits li {
    display: flex;
    align-items: center;
    gap: var(--hc-space-md);
    font-size: 0.95rem;
}

.hc-auth-benefits li svg {
    flex-shrink: 0;
    opacity: 0.9;
}

/* Mobile responsive for header actions */
@media (max-width: 968px) {
    .hc-header__actions {
        display: none;
    }
}

@media (max-width: 768px) {
    .hc-auth-card {
        padding: var(--hc-space-xl);
    }
}

/* ========================================
   ACCOUNT DROPDOWN MENU
   ======================================== */

.hc-account-dropdown {
    position: relative;
}

.hc-account-dropdown__trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    background: white !important;
    border: 2px solid #d1d5db !important;
    color: var(--hc-text-primary) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.hc-account-dropdown__trigger:hover {
    background: white !important;
    border-color: var(--hc-accent-primary) !important;
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.15);
}

.hc-account-dropdown__trigger img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--hc-accent-primary);
}

.hc-account-dropdown__name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hc-account-dropdown__arrow {
    transition: transform 0.2s;
    opacity: 0.8;
}

.hc-account-dropdown.open .hc-account-dropdown__arrow {
    transform: rotate(180deg);
}

.hc-account-dropdown__menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.hc-account-dropdown.open .hc-account-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.hc-account-dropdown__header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.hc-account-dropdown__avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--hc-accent-primary);
}

.hc-account-dropdown__info {
    min-width: 0;
}

.hc-account-dropdown__info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--hc-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-account-dropdown__info span {
    display: block;
    font-size: 0.8rem;
    color: var(--hc-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-account-dropdown__divider {
    height: 1px;
    background: var(--hc-border-color);
    margin: 8px 0;
}

.hc-account-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--hc-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s;
}

.hc-account-dropdown__item:hover {
    background: var(--hc-bg-primary);
    color: var(--hc-text-primary);
}

.hc-account-dropdown__item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.hc-account-dropdown__item:hover svg {
    opacity: 1;
}

.hc-account-dropdown__item--pharmacy {
    color: var(--hc-accent-primary);
}

.hc-account-dropdown__item--pharmacy:hover {
    background: rgba(4, 120, 87, 0.08);
}

.hc-account-dropdown__item--logout {
    color: #dc2626;
}

.hc-account-dropdown__item--logout:hover {
    background: #fef2f2;
}

/* Responsive Dropdown */
@media (max-width: 968px) {
    .hc-account-dropdown__name {
        display: none;
    }

    .hc-account-dropdown__menu {
        right: -20px;
    }
}

/* ========================================
   FAVORITE BUTTON
   ======================================== */

.hc-product-card {
    position: relative;
}

.hc-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    opacity: 0;
}

.hc-product-card:hover .hc-favorite-btn,
.hc-favorite-btn.is-favorited {
    opacity: 1;
}

.hc-favorite-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hc-favorite-btn:active {
    transform: scale(0.95);
}

.hc-favorite-btn__icon {
    transition: all 0.2s ease;
}

.hc-favorite-btn__icon--empty {
    color: var(--hc-text-muted);
}

.hc-favorite-btn__icon--filled {
    display: none;
    color: #ef4444;
}

.hc-favorite-btn:hover .hc-favorite-btn__icon--empty {
    color: #ef4444;
}

.hc-favorite-btn.is-favorited .hc-favorite-btn__icon--empty {
    display: none;
}

.hc-favorite-btn.is-favorited .hc-favorite-btn__icon--filled {
    display: block;
}

.hc-favorite-btn.is-favorited:hover .hc-favorite-btn__icon--filled {
    transform: scale(1.1);
}

/* Favorite button animation */
@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.hc-favorite-btn.is-animating .hc-favorite-btn__icon--filled {
    animation: heartBeat 0.6s ease;
}

/* ========================================
   PRICE ALERT BUTTON & MODAL
   ======================================== */

.hc-price-alert-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: var(--hc-radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hc-price-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.hc-price-alert-btn svg {
    flex-shrink: 0;
}

/* Modal Overlay */
.hc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.hc-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.hc-modal {
    background: white;
    border-radius: 20px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    transform: scale(0.9) translateY(20px);
    transition: all 0.2s ease;
}

.hc-modal-overlay.is-open .hc-modal {
    transform: scale(1) translateY(0);
}

.hc-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--hc-border-color);
}

.hc-modal__header h3 {
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hc-modal__header h3 svg {
    color: var(--hc-accent-primary);
}

.hc-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--hc-bg-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hc-text-muted);
    transition: all 0.2s;
}

.hc-modal__close:hover {
    background: var(--hc-border-color);
    color: var(--hc-text-primary);
}

.hc-modal__body {
    padding: 24px;
}

.hc-modal__product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--hc-bg-primary);
    border-radius: 12px;
    margin-bottom: 24px;
}

.hc-modal__product-image {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
}

.hc-modal__product-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.hc-modal__product-price {
    color: var(--hc-accent-primary);
    font-weight: 600;
}

.hc-modal__form-group {
    margin-bottom: 20px;
}

.hc-modal__form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.hc-modal__form-group input,
.hc-modal__form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--hc-border-color);
    border-radius: var(--hc-radius-md);
    font-size: 1rem;
    transition: all 0.2s;
}

.hc-modal__form-group input:focus,
.hc-modal__form-group select:focus {
    outline: none;
    border-color: var(--hc-accent-primary);
    box-shadow: 0 0 0 3px var(--hc-accent-glow);
}

.hc-modal__form-hint {
    font-size: 0.85rem;
    color: var(--hc-text-muted);
    margin-top: 6px;
}

.hc-modal__footer {
    padding: 20px 24px;
    background: var(--hc-bg-primary);
    border-top: 1px solid var(--hc-border-color);
    display: flex;
    gap: 12px;
}

.hc-modal__footer .hc-btn {
    flex: 1;
}

/* Toast Notification */
.hc-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1f2937;
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hc-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.hc-toast--success {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}

.hc-toast--error {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* ========================================
   LEGAL PAGES (Impressum, AGB, Datenschutz)
   ======================================== */

.hc-legal-page {
    background: var(--hc-bg-secondary);
    min-height: calc(100vh - 72px);
    padding: var(--hc-space-2xl) 0;
    overflow-x: hidden;
}

.hc-legal-page * {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.hc-container--narrow {
    max-width: 900px;
}

.hc-legal-page__header {
    text-align: center;
    margin-bottom: var(--hc-space-2xl);
}

.hc-legal-page__title {
    font-family: var(--hc-font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--hc-text-primary);
    margin: 0 0 var(--hc-space-sm);
}

.hc-legal-page__subtitle {
    color: var(--hc-text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

.hc-legal-page__content {
    background: transparent;
    padding: 0;
}

.hc-legal-section {
    margin-bottom: var(--hc-space-xl);
    padding-bottom: var(--hc-space-xl);
    border-bottom: 1px solid var(--hc-border);
}

.hc-legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hc-legal-section h2 {
    font-family: var(--hc-font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--hc-text-primary);
    margin: 0 0 var(--hc-space-md);
}

.hc-legal-section h3 {
    font-family: var(--hc-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hc-text-primary);
    margin: var(--hc-space-lg) 0 var(--hc-space-sm);
}

.hc-legal-section h3:first-child {
    margin-top: 0;
}

.hc-legal-section p {
    color: var(--hc-text-secondary);
    line-height: 1.7;
    margin: 0 0 var(--hc-space-md);
}

.hc-legal-section p:last-child {
    margin-bottom: 0;
}

.hc-legal-section ul {
    color: var(--hc-text-secondary);
    line-height: 1.7;
    margin: 0 0 var(--hc-space-md);
    padding-left: var(--hc-space-lg);
}

.hc-legal-section ul li {
    margin-bottom: var(--hc-space-xs);
}

.hc-legal-section a {
    color: var(--hc-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hc-legal-section a:hover {
    color: var(--hc-primary-dark);
    text-decoration: underline;
}

.hc-legal-section strong {
    color: var(--hc-text-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .hc-legal-page {
        padding: var(--hc-space-lg) var(--hc-space-md);
    }

    .hc-legal-page__title {
        font-size: 1.8rem;
    }

    .hc-legal-page__header {
        margin-bottom: var(--hc-space-xl);
    }

    .hc-legal-section h2 {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .hc-legal-section p,
    .hc-legal-section li {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .hc-legal-page {
        padding: var(--hc-space-md) var(--hc-space-sm);
    }

    .hc-legal-page__title {
        font-size: 1.5rem;
    }

    .hc-legal-section h2 {
        font-size: 1rem;
    }

    .hc-legal-section p,
    .hc-legal-section li {
        font-size: 0.875rem;
    }

    .hc-container--narrow {
        padding: 0 var(--hc-space-sm);
    }
}

/* =============================================================================
   NOTIFICATION BADGE
   ============================================================================= */

.hc-notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 9px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
    animation: hc-badge-pulse 2s ease-in-out infinite;
}

@keyframes hc-badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Notification dropdown styles */
.hc-notifications-dropdown {
    position: relative;
}

.hc-notifications-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    color: var(--hc-text-secondary);
    transition: background 0.2s ease, color 0.2s ease;
}

.hc-notifications-toggle:hover {
    background: var(--hc-bg-subtle);
    color: var(--hc-text-primary);
}

.hc-notifications-toggle svg {
    width: 20px;
    height: 20px;
}

.hc-notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    color: white;
    background: var(--hc-error, #ef4444);
    border-radius: 10px;
    border: 2px solid var(--hc-white, #fff);
}

.hc-notification-badge.hc-hidden {
    display: none;
}

.hc-notifications-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background-color: #ffffff !important;
    border-radius: var(--hc-radius-lg, 12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    overflow: hidden;
    display: none;
    border: 1px solid #e5e7eb;
}

.hc-notifications-panel.is-open {
    display: block;
    animation: hc-slideDown 0.2s ease;
}

@keyframes hc-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hc-notifications-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--hc-space-md, 1rem);
    border-bottom: 1px solid var(--hc-border, #e5e7eb);
    background: var(--hc-bg-subtle, #f8fafc);
}

.hc-notifications-panel__header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hc-text-primary);
    margin: 0;
}

.hc-notifications-panel__mark-read {
    font-size: 0.8rem;
    color: var(--hc-primary, #16a34a);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--hc-radius-sm, 4px);
    transition: background 0.2s ease;
}

.hc-notifications-panel__mark-read:hover:not(:disabled) {
    background: rgba(16, 163, 74, 0.1);
}

.hc-notifications-panel__mark-read:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hc-notifications-panel__list {
    max-height: 360px;
    overflow-y: auto;
    background-color: #ffffff;
}

.hc-notifications-panel__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--hc-space-xl, 2rem);
}

.hc-notifications-panel__footer {
    padding: var(--hc-space-sm, 0.5rem) var(--hc-space-md, 1rem);
    border-top: 1px solid var(--hc-border, #e5e7eb);
    text-align: center;
    background: var(--hc-bg-subtle, #f8fafc);
}

.hc-notifications-panel__footer a {
    font-size: 0.85rem;
    color: var(--hc-primary, #16a34a);
    text-decoration: none;
    font-weight: 500;
}

.hc-notifications-panel__footer a:hover {
    text-decoration: underline;
}

.hc-notification-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hc-bg-subtle, #f8fafc);
    border-radius: 50%;
    color: var(--hc-text-secondary);
}

.hc-notification-item.is-unread .hc-notification-item__icon {
    background: rgba(16, 163, 74, 0.1);
    color: var(--hc-primary, #16a34a);
}

.hc-notification-item__content {
    flex: 1;
    min-width: 0;
}

.hc-notification-item__message {
    font-size: 0.875rem;
    color: var(--hc-text-primary);
    margin: 0 0 4px;
    line-height: 1.4;
}

.hc-notification-item__time {
    font-size: 0.75rem;
    color: var(--hc-text-muted, #9ca3af);
}

.hc-notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--hc-space-md);
    border-bottom: 1px solid var(--hc-border);
    background: var(--hc-bg-subtle);
}

.hc-notifications-header h4 {
    font-family: var(--hc-font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hc-text-primary);
    margin: 0;
}

.hc-notifications-mark-read {
    font-size: 0.8rem;
    color: var(--hc-primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hc-notifications-mark-read:hover {
    text-decoration: underline;
}

.hc-notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.hc-notification-item {
    display: flex;
    align-items: center;
    gap: var(--hc-space-xs, 0.25rem);
    padding: 0;
    border-bottom: 1px solid var(--hc-border, #e5e7eb);
    text-decoration: none;
    transition: background 0.2s ease;
    background-color: #ffffff;
    position: relative;
}

.hc-notification-item__link {
    display: flex;
    gap: var(--hc-space-sm, 0.5rem);
    padding: var(--hc-space-md, 1rem);
    padding-right: var(--hc-space-xl, 2.5rem);
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.hc-notification-item:hover {
    background-color: #f8fafc;
}

.hc-notification-item.is-unread {
    background-color: #ecfdf5;
}

.hc-notification-item.is-unread:hover {
    background-color: #d1fae5;
}

.hc-notification-item__delete {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--hc-text-muted, #9ca3af);
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.15s ease;
}

.hc-notification-item:hover .hc-notification-item__delete {
    opacity: 1;
}

.hc-notification-item__delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.hc-notification-item__delete:active {
    transform: translateY(-50%) scale(0.95);
}

.hc-notification-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--hc-bg-subtle);
    border-radius: 50%;
}

.hc-notification-content {
    flex: 1;
    min-width: 0;
}

.hc-notification-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hc-text-primary);
    margin: 0 0 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-notification-message {
    font-size: 0.8rem;
    color: var(--hc-text-secondary);
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hc-notification-time {
    font-size: 0.75rem;
    color: var(--hc-text-muted);
}

.hc-notifications-empty {
    padding: var(--hc-space-xl);
    text-align: center;
    color: var(--hc-text-muted);
}

.hc-notifications-empty-icon {
    font-size: 2.5rem;
    margin-bottom: var(--hc-space-sm);
    opacity: 0.5;
}

/* Dashboard notification section */
.hc-dashboard-notifications {
    background: var(--hc-white);
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-sm);
    overflow: hidden;
}

.hc-dashboard-notifications__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--hc-space-md) var(--hc-space-lg);
    background: var(--hc-bg-subtle);
    border-bottom: 1px solid var(--hc-border);
}

.hc-dashboard-notifications__title {
    font-family: var(--hc-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--hc-text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--hc-space-sm);
}

.hc-dashboard-notifications__list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.hc-dashboard-notification {
    display: flex;
    align-items: flex-start;
    gap: var(--hc-space-md);
    padding: var(--hc-space-md) var(--hc-space-lg);
    border-bottom: 1px solid var(--hc-border);
    transition: background 0.2s ease;
}

.hc-dashboard-notification:last-child {
    border-bottom: none;
}

.hc-dashboard-notification:hover {
    background: var(--hc-bg-subtle);
}

.hc-dashboard-notification__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: var(--hc-bg-subtle);
    border-radius: 50%;
}

.hc-dashboard-notification__content {
    flex: 1;
    min-width: 0;
}

.hc-dashboard-notification__title {
    font-weight: 600;
    color: var(--hc-text-primary);
    margin: 0 0 4px;
}

.hc-dashboard-notification__title a {
    color: inherit;
    text-decoration: none;
}

.hc-dashboard-notification__title a:hover {
    color: var(--hc-primary);
}

.hc-dashboard-notification__meta {
    font-size: 0.85rem;
    color: var(--hc-text-secondary);
}

.hc-dashboard-notification__time {
    font-size: 0.8rem;
    color: var(--hc-text-muted);
    margin-top: 4px;
}

/* Full Notifications List (Benachrichtigungen Tab) */
.hc-notifications-list-full {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--hc-white);
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-sm);
    overflow: hidden;
}

.hc-notification-full-item {
    display: flex;
    gap: var(--hc-space-md, 1rem);
    padding: var(--hc-space-lg, 1.25rem);
    border-bottom: 1px solid var(--hc-border, #e5e7eb);
    transition: background 0.2s ease;
}

.hc-notification-full-item:last-child {
    border-bottom: none;
}

.hc-notification-full-item:hover {
    background: var(--hc-bg-subtle, #f8fafc);
}

.hc-notification-full-item.is-unread {
    background: rgba(16, 185, 129, 0.05);
}

.hc-notification-full-item.is-unread:hover {
    background: rgba(16, 185, 129, 0.08);
}

.hc-notification-full-item__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border-radius: 50%;
}

.hc-notification-full-item__content {
    flex: 1;
    min-width: 0;
}

.hc-notification-full-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--hc-space-sm, 0.5rem);
    margin-bottom: 4px;
}

.hc-notification-full-item__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hc-text-primary);
    margin: 0;
}

.hc-notification-full-item__time {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--hc-text-muted, #9ca3af);
}

.hc-notification-full-item__message {
    font-size: 0.875rem;
    color: var(--hc-text-secondary);
    margin: 0 0 8px;
    line-height: 1.5;
}

.hc-notification-full-item__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--hc-primary, #16a34a);
    text-decoration: none;
}

.hc-notification-full-item__link:hover {
    text-decoration: underline;
}

.hc-user-dashboard__badge--alert {
    background: var(--hc-error, #ef4444);
    color: white;
}

@media (max-width: 640px) {
    .hc-notification-full-item {
        padding: var(--hc-space-md, 1rem);
    }

    .hc-notification-full-item__header {
        flex-direction: column;
        gap: 4px;
    }
}

.hc-dashboard-notifications__empty {
    padding: var(--hc-space-xl);
    text-align: center;
    color: var(--hc-text-muted);
}

@media (max-width: 768px) {
    .hc-notifications-panel {
        width: 100%;
        max-width: 320px;
    }
}

/* =============================================================================
   PHARMACY MAP PAGE
   ============================================================================= */

.hc-map-page {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.hc-map-page__header {
    background: var(--hc-bg-subtle);
    padding: var(--hc-space-lg) 0;
    border-bottom: 1px solid var(--hc-border);
}

.hc-map-page__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 var(--hc-space-xs);
}

.hc-map-page__subtitle {
    color: var(--hc-text-secondary);
    margin: 0;
}

.hc-map-page__controls {
    background: var(--hc-white);
    padding: var(--hc-space-md) 0;
    border-bottom: 1px solid var(--hc-border);
}

.hc-map-controls {
    display: flex;
    gap: var(--hc-space-md);
    align-items: center;
    flex-wrap: wrap;
}

.hc-map-controls__search {
    display: flex;
    flex: 1;
    min-width: 250px;
    gap: var(--hc-space-sm);
}

.hc-map-controls__search input {
    flex: 1;
    padding: var(--hc-space-sm) var(--hc-space-md);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-md);
    font-size: 1rem;
}

.hc-map-page__content {
    display: flex;
    flex: 1;
    height: calc(100vh - 200px);
    min-height: 500px;
    max-height: 800px;
}

.hc-map-page__sidebar {
    width: 350px;
    min-width: 300px;
    background: var(--hc-white);
    border-right: 1px solid var(--hc-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.hc-map-sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--hc-space-md) var(--hc-space-lg);
    border-bottom: 1px solid var(--hc-border);
    background: var(--hc-bg-subtle);
}

.hc-map-sidebar__header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--hc-text);
}

.hc-map-sidebar__header span {
    background: var(--hc-primary);
    color: var(--hc-white);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hc-map-sidebar__list {
    flex: 1;
    overflow-y: auto;
}

.hc-map-pharmacy-card {
    display: flex;
    gap: var(--hc-space-md);
    padding: var(--hc-space-md) var(--hc-space-lg);
    border-bottom: 1px solid var(--hc-border);
    cursor: pointer;
    transition: all 0.2s ease;
    align-items: center;
    background: var(--hc-white);
}

.hc-map-pharmacy-card:hover {
    background: var(--hc-bg-subtle);
    transform: translateX(4px);
}

.hc-map-pharmacy-card.is-active {
    background: linear-gradient(90deg, var(--hc-primary-light, #e8f5e9) 0%, var(--hc-white) 100%);
    border-left: 3px solid var(--hc-primary);
}

.hc-map-pharmacy-card__logo {
    width: 56px;
    height: 56px;
    border-radius: var(--hc-radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--hc-border);
    background: var(--hc-white);
}

.hc-map-pharmacy-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hc-map-pharmacy-card__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hc-primary-light, #e8f5e9) 0%, var(--hc-bg-subtle) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hc-primary);
}

.hc-map-pharmacy-card__content {
    flex: 1;
    min-width: 0;
}

.hc-map-pharmacy-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--hc-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-map-pharmacy-card__address {
    font-size: 0.875rem;
    color: var(--hc-text-secondary);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hc-map-pharmacy-card__meta {
    font-size: 0.8rem;
    color: var(--hc-text-muted);
    display: flex;
    gap: var(--hc-space-sm);
    align-items: center;
}

.hc-map-pharmacy-card__meta span {
    background: var(--hc-bg-subtle);
    padding: 2px 8px;
    border-radius: var(--hc-radius-sm);
}

.hc-map-pharmacy-card__link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hc-primary);
    padding: var(--hc-space-sm);
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    background: var(--hc-bg-subtle);
}

.hc-map-pharmacy-card__link:hover {
    background: var(--hc-primary);
    color: var(--hc-white);
}

.hc-map-pharmacy-card--no-coords {
    opacity: 0.8;
    border-left: 3px solid var(--hc-warning, #f59e0b);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, var(--hc-white) 100%);
}

.hc-map-pharmacy-card--no-coords:hover {
    opacity: 0.85;
}

.hc-map-page__map {
    flex: 1;
    height: 100%;
    min-height: 500px;
    background: #e8f4ea;
}

.hc-map-page__map .leaflet-container {
    height: 100%;
    width: 100%;
}

#hc-pharmacy-map {
    height: 100%;
    width: 100%;
}

/* Map marker */
.hc-map-marker {
    background: none;
    border: none;
}

.hc-map-marker__inner {
    width: 40px;
    height: 40px;
    background: var(--hc-primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.hc-map-marker__inner svg {
    transform: rotate(45deg);
    color: white;
    width: 20px;
    height: 20px;
}

.hc-map-popup {
    min-width: 200px;
}

.hc-map-popup h4 {
    margin: 0 0 var(--hc-space-xs);
}

.hc-map-popup p {
    margin: 0 0 var(--hc-space-sm);
    font-size: 0.9rem;
    color: var(--hc-text-secondary);
}

@media (max-width: 992px) {
    .hc-map-page__content {
        flex-direction: column;
        height: auto;
        max-height: none;
    }

    .hc-map-page__sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 350px;
        order: 2;
        border-right: none;
        border-top: 1px solid var(--hc-border);
    }

    .hc-map-page__map {
        min-height: 450px;
        height: 450px;
        order: 1;
    }

    .hc-map-pharmacy-card {
        padding: var(--hc-space-sm) var(--hc-space-md);
    }

    .hc-map-pharmacy-card__logo {
        width: 48px;
        height: 48px;
    }
}

/* =============================================================================
   STRAIN FINDER QUIZ
   ============================================================================= */

.hc-quiz-page {
    min-height: calc(100vh - 160px);
    padding: var(--hc-space-xl) 0;
    background: linear-gradient(135deg, var(--hc-bg-subtle) 0%, var(--hc-white) 100%);
}

.hc-quiz {
    max-width: 700px;
    margin: 0 auto;
}

.hc-quiz__header {
    text-align: center;
    margin-bottom: var(--hc-space-xl);
}

.hc-quiz__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 var(--hc-space-sm);
}

.hc-quiz__subtitle {
    color: var(--hc-text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.hc-quiz__progress {
    display: flex;
    align-items: center;
    gap: var(--hc-space-md);
    margin-bottom: var(--hc-space-xl);
}

.hc-quiz__progress-bar {
    flex: 1;
    height: 8px;
    background: var(--hc-border);
    border-radius: 4px;
    overflow: hidden;
}

.hc-quiz__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--hc-primary) 0%, var(--hc-primary-light) 100%);
    transition: width 0.3s ease;
}

.hc-quiz__progress-text {
    font-weight: 600;
    color: var(--hc-text-secondary);
    white-space: nowrap;
}

.hc-quiz__question {
    background: var(--hc-white);
    border-radius: var(--hc-radius-xl);
    padding: var(--hc-space-xl);
    box-shadow: var(--hc-shadow-lg);
}

.hc-quiz__question-title {
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    margin: 0 0 var(--hc-space-lg);
}

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

.hc-quiz__option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--hc-space-sm);
    padding: var(--hc-space-lg);
    background: var(--hc-bg-subtle);
    border: 2px solid transparent;
    border-radius: var(--hc-radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.hc-quiz__option:hover {
    border-color: var(--hc-primary-light);
    background: var(--hc-white);
}

.hc-quiz__option.is-selected {
    border-color: var(--hc-primary);
    background: rgba(16, 185, 129, 0.1);
}

.hc-quiz__option-icon {
    font-size: 2rem;
}

.hc-quiz__option-label {
    font-weight: 500;
    text-align: center;
}

.hc-quiz__nav {
    display: flex;
    justify-content: space-between;
    margin-top: var(--hc-space-lg);
}

.hc-quiz__results-header {
    text-align: center;
    margin-bottom: var(--hc-space-xl);
}

.hc-quiz__results-loading {
    text-align: center;
    padding: var(--hc-space-xl);
}

.hc-quiz__results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--hc-space-lg);
    margin-bottom: var(--hc-space-xl);
}

.hc-quiz-result-card {
    background: var(--hc-white);
    border-radius: var(--hc-radius-lg);
    overflow: hidden;
    box-shadow: var(--hc-shadow-md);
    position: relative;
}

.hc-quiz-result-card__match {
    position: absolute;
    top: var(--hc-space-sm);
    right: var(--hc-space-sm);
    background: var(--hc-primary);
    color: white;
    padding: 4px 10px;
    border-radius: var(--hc-radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.hc-quiz-result-card__image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.hc-quiz-result-card__placeholder {
    width: 100%;
    height: 180px;
    background: var(--hc-bg-subtle);
}

.hc-quiz-result-card__content {
    padding: var(--hc-space-md);
}

.hc-quiz-result-card__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 var(--hc-space-sm);
}

.hc-quiz-result-card__meta {
    display: flex;
    gap: var(--hc-space-sm);
    margin-bottom: var(--hc-space-sm);
    font-size: 0.85rem;
    color: var(--hc-text-secondary);
}

.hc-quiz-result-card__price {
    font-weight: 600;
    color: var(--hc-primary);
    margin-bottom: var(--hc-space-sm);
}

.hc-quiz__results-actions {
    display: flex;
    justify-content: center;
    gap: var(--hc-space-md);
}

.hc-quiz__no-results {
    text-align: center;
    color: var(--hc-text-secondary);
    padding: var(--hc-space-xl);
}

@media (max-width: 768px) {
    .hc-quiz__options {
        grid-template-columns: 1fr;
    }

    .hc-quiz__question {
        padding: var(--hc-space-lg);
    }
}

/* =============================================================================
   PRODUCT COMPARISON
   ============================================================================= */

.hc-compare-page {
    padding: var(--hc-space-xl) 0;
    min-height: calc(100vh - 200px);
}

.hc-compare__header {
    margin-bottom: var(--hc-space-xl);
}

.hc-compare__title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 var(--hc-space-xs);
}

.hc-compare__subtitle {
    color: var(--hc-text-secondary);
    margin: 0;
}

.hc-compare__empty {
    text-align: center;
    padding: var(--hc-space-xxl) var(--hc-space-lg);
    background: var(--hc-bg-subtle);
    border-radius: var(--hc-radius-xl);
}

.hc-compare__empty-icon {
    color: var(--hc-text-muted);
    margin-bottom: var(--hc-space-lg);
}

.hc-compare__empty h2 {
    font-size: 1.5rem;
    margin: 0 0 var(--hc-space-sm);
}

.hc-compare__empty p {
    color: var(--hc-text-secondary);
    margin: 0 0 var(--hc-space-lg);
}

.hc-compare__table-wrapper {
    overflow-x: auto;
    margin-bottom: var(--hc-space-lg);
}

.hc-compare__table {
    width: 100%;
    border-collapse: collapse;
    background: var(--hc-white);
    border-radius: var(--hc-radius-lg);
    overflow: hidden;
    box-shadow: var(--hc-shadow-md);
}

.hc-compare__table th,
.hc-compare__table td {
    padding: var(--hc-space-md);
    text-align: center;
    border-bottom: 1px solid var(--hc-border);
    vertical-align: middle;
}

.hc-compare__label-cell {
    width: 150px;
}

.hc-compare__product-cell {
    min-width: 200px;
    position: relative;
    padding-top: var(--hc-space-lg) !important;
}

.hc-compare__remove {
    position: absolute;
    top: var(--hc-space-sm);
    right: var(--hc-space-sm);
    background: var(--hc-bg-subtle);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hc-text-muted);
    transition: all 0.2s ease;
}

.hc-compare__remove:hover {
    background: var(--hc-danger);
    color: white;
}

.hc-compare__product-image {
    display: block;
    margin-bottom: var(--hc-space-sm);
}

.hc-compare__product-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--hc-radius-md);
}

.hc-compare__product-placeholder {
    width: 120px;
    height: 120px;
    background: var(--hc-bg-subtle);
    border-radius: var(--hc-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--hc-text-muted);
}

.hc-compare__product-name {
    display: block;
    font-weight: 600;
    color: var(--hc-text-primary);
    text-decoration: none;
}

.hc-compare__product-name:hover {
    color: var(--hc-primary);
}

.hc-compare__add-cell {
    min-width: 180px;
}

.hc-compare__add-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--hc-space-sm);
    padding: var(--hc-space-lg);
    border: 2px dashed var(--hc-border);
    border-radius: var(--hc-radius-lg);
    color: var(--hc-text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
}

.hc-compare__add-product:hover {
    border-color: var(--hc-primary);
    color: var(--hc-primary);
}

.hc-compare__label {
    text-align: left !important;
    font-weight: 600;
    color: var(--hc-text-secondary);
}

.hc-compare__value--price strong {
    font-size: 1.2rem;
    color: var(--hc-primary);
}

.hc-compare__na {
    color: var(--hc-text-muted);
    font-style: italic;
}

.hc-compare__rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hc-compare__stars {
    color: #f59e0b;
}

.hc-compare__rating-text {
    font-size: 0.85rem;
    color: var(--hc-text-secondary);
}

.hc-compare__action-row td {
    padding: var(--hc-space-lg) var(--hc-space-md);
    background: var(--hc-bg-subtle);
}

.hc-compare__actions {
    text-align: center;
}

/* Comparison floating bar */
.hc-comparison-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--hc-white);
    border-top: 1px solid var(--hc-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: var(--hc-space-md);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.hc-comparison-bar.is-visible {
    transform: translateY(0);
}

.hc-comparison-bar__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--hc-space-md);
}

.hc-comparison-bar__products {
    display: flex;
    gap: var(--hc-space-sm);
}

.hc-comparison-bar__product {
    width: 50px;
    height: 50px;
    border-radius: var(--hc-radius-md);
    overflow: hidden;
    border: 2px solid var(--hc-border);
}

.hc-comparison-bar__product img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hc-comparison-bar__info {
    flex: 1;
}

.hc-comparison-bar__count {
    font-weight: 600;
}

.hc-comparison-bar__actions {
    display: flex;
    gap: var(--hc-space-sm);
}

/* Product card comparison checkbox */
.hc-product-compare {
    position: absolute;
    top: var(--hc-space-sm);
    left: var(--hc-space-sm);
    z-index: 10;
}

.hc-product-compare__btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.9);
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-md);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hc-product-compare__btn:hover {
    background: var(--hc-white);
    border-color: var(--hc-primary);
}

.hc-product-compare__btn.is-active {
    background: var(--hc-primary);
    color: white;
    border-color: var(--hc-primary);
}

/* =============================================================================
   BADGES
   ============================================================================= */

.hc-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--hc-space-md);
}

.hc-badge-card {
    display: flex;
    align-items: center;
    gap: var(--hc-space-md);
    padding: var(--hc-space-md);
    background: var(--hc-white);
    border-radius: var(--hc-radius-lg);
    box-shadow: var(--hc-shadow-sm);
}

.hc-badge-card--locked {
    opacity: 0.5;
    filter: grayscale(1);
}

.hc-badge-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.hc-badge-card__content {
    flex: 1;
    min-width: 0;
}

.hc-badge-card__name {
    font-weight: 600;
    margin: 0 0 4px;
}

.hc-badge-card__desc {
    font-size: 0.85rem;
    color: var(--hc-text-secondary);
    margin: 0;
}

.hc-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
}

/* =============================================================================
   AVAILABILITY ALERTS
   ============================================================================= */

.hc-availability-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--hc-space-xs);
}

.hc-availability-btn.is-active {
    background: var(--hc-success);
    border-color: var(--hc-success);
    color: white;
}

/* Spinner */
.hc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--hc-border);
    border-top-color: var(--hc-primary);
    border-radius: 50%;
    animation: hc-spin 0.8s linear infinite;
    margin: 0 auto var(--hc-space-md);
}

@keyframes hc-spin {
    to { transform: rotate(360deg); }
}

/* =============================================================================
   NAVIGATION DROPDOWNS
   ============================================================================= */

.hc-nav__dropdown {
    position: relative;
}

.hc-nav__dropdown > .hc-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hc-nav__dropdown > .hc-nav__link svg {
    transition: transform 0.2s ease;
}

.hc-nav__dropdown:hover > .hc-nav__link svg {
    transform: rotate(180deg);
}

.hc-nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    background: var(--hc-white);
    border-radius: var(--hc-radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: var(--hc-space-sm);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 10px;
}

.hc-nav__dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.hc-nav__dropdown:hover .hc-nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.hc-nav__dropdown-link {
    display: flex;
    align-items: center;
    gap: var(--hc-space-sm);
    padding: var(--hc-space-sm) var(--hc-space-md);
    color: var(--hc-text-primary);
    text-decoration: none;
    border-radius: var(--hc-radius-md);
    transition: background 0.2s ease;
    white-space: nowrap;
}

.hc-nav__dropdown-link:hover {
    background: var(--hc-bg-subtle);
    color: var(--hc-primary);
}

.hc-nav__dropdown-icon {
    font-size: 1.1rem;
}

@media (max-width: 1024px) {
    .hc-nav__dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        margin: 0;
        padding: 0 0 0 var(--hc-space-md);
        background: transparent;
    }

    .hc-nav__dropdown > .hc-nav__link svg {
        display: none;
    }
}

/* ===========================
   Strain Finder CTA Banner
   =========================== */
.hc-strain-finder-cta {
    padding: var(--hc-space-2xl) 0;
}

.hc-strain-finder-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--hc-space-xl);
    padding: var(--hc-space-xl) var(--hc-space-2xl);
    background: linear-gradient(135deg, var(--hc-primary) 0%, #059669 100%);
    border-radius: var(--hc-radius-xl);
    color: white;
}

.hc-strain-finder-banner__content {
    display: flex;
    align-items: center;
    gap: var(--hc-space-lg);
}

.hc-strain-finder-banner__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--hc-radius-lg);
}

.hc-strain-finder-banner__icon svg {
    stroke: white;
}

.hc-strain-finder-banner__text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 var(--hc-space-xs) 0;
    color: white;
}

.hc-strain-finder-banner__text p {
    margin: 0;
    opacity: 0.9;
    font-size: 1rem;
    max-width: 400px;
}

.hc-strain-finder-banner .hc-btn--primary {
    background: white;
    color: var(--hc-primary);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: var(--hc-space-sm);
}

.hc-strain-finder-banner .hc-btn--primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.hc-strain-finder-banner .hc-btn--primary svg {
    stroke: var(--hc-primary);
}

@media (max-width: 768px) {
    .hc-strain-finder-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--hc-space-xl);
    }

    .hc-strain-finder-banner__content {
        flex-direction: column;
    }

    .hc-strain-finder-banner__text p {
        max-width: 100%;
    }
}

/* ===========================
   Dashboard Badges Section
   =========================== */
.hc-badges-section {
    margin-top: var(--hc-space-lg);
}

.hc-badges-section .hc-user-dashboard__card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hc-badges-section .hc-user-dashboard__card-header h3 {
    display: flex;
    align-items: center;
    gap: var(--hc-space-sm);
}

.hc-badges-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hc-primary);
    background: var(--hc-primary-bg);
    padding: var(--hc-space-xs) var(--hc-space-sm);
    border-radius: var(--hc-radius-full);
}

.hc-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--hc-space-md);
    margin-top: var(--hc-space-md);
}

.hc-badge-item {
    display: flex;
    align-items: center;
    gap: var(--hc-space-md);
    padding: var(--hc-space-md);
    background: var(--hc-bg-primary);
    border: 1px solid var(--hc-border-color);
    border-radius: var(--hc-radius-lg);
    position: relative;
    transition: all 0.2s ease;
}

.hc-badge-item--earned {
    border-color: var(--hc-primary);
    background: var(--hc-primary-bg);
}

.hc-badge-item--locked {
    opacity: 0.6;
}

.hc-badge-item--locked:hover {
    opacity: 0.8;
}

.hc-badge-item__icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hc-bg-subtle);
    border-radius: var(--hc-radius-md);
}

.hc-badge-item--earned .hc-badge-item__icon {
    background: white;
}

.hc-badge-item--locked .hc-badge-item__icon {
    filter: grayscale(100%);
}

.hc-badge-item__info {
    flex: 1;
    min-width: 0;
}

.hc-badge-item__name {
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--hc-text-primary);
    margin-bottom: 2px;
}

.hc-badge-item__date {
    display: block;
    font-size: 0.8125rem;
    color: var(--hc-primary);
}

.hc-badge-item__requirement {
    display: block;
    font-size: 0.75rem;
    color: var(--hc-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hc-badge-item__lock {
    position: absolute;
    top: var(--hc-space-sm);
    right: var(--hc-space-sm);
    color: var(--hc-text-muted);
}

@media (max-width: 640px) {
    .hc-badges-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Reviews Load More & Deep Link
   ======================================== */

.hc-reviews-load-more {
    text-align: center;
    padding: var(--hc-space-lg) 0;
    margin-top: var(--hc-space-md);
}

.hc-reviews-load-more .hc-btn {
    min-width: 280px;
}

.hc-load-more-spinner {
    display: inline-flex;
    align-items: center;
}

.hc-load-more-spinner svg {
    animation: hc-spin 1s linear infinite;
}

@keyframes hc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Review highlight animation for deep links */
.hc-review-card.hc-review-highlight {
    animation: hc-review-pulse 0.5s ease-in-out 3;
    box-shadow: 0 0 0 3px var(--hc-primary);
}

@keyframes hc-review-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px var(--hc-primary);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.3);
    }
}

/* Star Filter */
.hc-star-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--hc-space-md);
    padding-bottom: var(--hc-space-md);
    border-bottom: 1px solid var(--hc-border-color, #e5e7eb);
}

.hc-star-filter__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--hc-text-secondary);
    background: var(--hc-bg-secondary, #f8fafc);
    border: 1px solid var(--hc-border-color, #e5e7eb);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.hc-star-filter__btn:hover:not(:disabled) {
    background: var(--hc-bg-tertiary, #f1f5f9);
    border-color: var(--hc-text-tertiary, #94a3b8);
}

.hc-star-filter__btn.is-active {
    background: var(--hc-primary);
    color: white;
    border-color: var(--hc-primary);
}

.hc-star-filter__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.hc-star-filter__stars {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    color: #f59e0b;
}

.hc-star-filter__btn.is-active .hc-star-filter__stars {
    color: #fef3c7;
}

.hc-star-filter__count {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Empty reviews message */
.hc-reviews-empty {
    text-align: center;
    padding: var(--hc-space-xl) var(--hc-space-md);
    color: var(--hc-text-secondary);
}

.hc-reviews-empty p {
    margin: 0;
}

/* Mobile responsiveness for star filter */
@media (max-width: 640px) {
    .hc-star-filter {
        gap: 0.375rem;
    }

    .hc-star-filter__btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
    }

    .hc-star-filter__stars svg {
        width: 10px;
        height: 10px;
    }
}

/* ==========================================================================
   Pharmacy Single Page Styles
   ========================================================================== */

/* Pharmacy Filters */
.hc-pharmacy-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hc-space-md);
    margin-bottom: var(--hc-space-lg);
    padding: var(--hc-space-md);
    background: var(--hc-bg-secondary);
    border-radius: var(--hc-radius-lg);
}

.hc-pharmacy-filters__search {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.hc-pharmacy-filters__search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hc-text-secondary);
}

.hc-pharmacy-filters__search input {
    width: 100%;
    padding: 10px 12px 10px 40px;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-md);
    font-size: 0.9375rem;
    background: var(--hc-white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.hc-pharmacy-filters__search input:focus {
    outline: none;
    border-color: var(--hc-primary);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.hc-pharmacy-filters__controls {
    display: flex;
    gap: var(--hc-space-sm);
}

.hc-pharmacy-filters__controls .hc-select {
    padding: 10px 36px 10px 12px;
    border: 1px solid var(--hc-border);
    border-radius: var(--hc-radius-md);
    background: var(--hc-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    font-size: 0.9375rem;
    cursor: pointer;
    appearance: none;
}

/* Product Grid */
.hc-pharmacy-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--hc-space-lg);
}

/* Product Card */
.hc-pharmacy-product-card {
    background: var(--hc-white);
    border-radius: var(--hc-radius-lg);
    border: 1px solid var(--hc-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hc-pharmacy-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.hc-pharmacy-product-card__badge {
    position: absolute;
    top: var(--hc-space-sm);
    left: var(--hc-space-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--hc-radius-sm);
    z-index: 2;
}

.hc-pharmacy-product-card__image {
    aspect-ratio: 4/3;
    background: var(--hc-bg-secondary);
    overflow: hidden;
}

.hc-pharmacy-product-card__image a {
    display: block;
    width: 100%;
    height: 100%;
}

.hc-pharmacy-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.hc-pharmacy-product-card:hover .hc-pharmacy-product-card__image img {
    transform: scale(1.05);
}

.hc-pharmacy-product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hc-text-secondary);
    opacity: 0.4;
}

.hc-pharmacy-product-card__content {
    padding: var(--hc-space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hc-pharmacy-product-card__brand {
    font-size: 0.75rem;
    color: var(--hc-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--hc-space-xs);
}

.hc-pharmacy-product-card__name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 var(--hc-space-sm);
    line-height: 1.3;
}

.hc-pharmacy-product-card__name a {
    color: var(--hc-text-primary);
    text-decoration: none;
}

.hc-pharmacy-product-card__name a:hover {
    color: var(--hc-primary);
}

.hc-pharmacy-product-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--hc-space-xs);
    margin-bottom: var(--hc-space-sm);
}

.hc-pharmacy-product-card__spec {
    font-size: 0.8125rem;
    padding: 2px 8px;
    background: var(--hc-bg-secondary);
    border-radius: var(--hc-radius-sm);
    color: var(--hc-text-secondary);
}

.hc-pharmacy-product-card__spec strong {
    color: var(--hc-text-primary);
}

.hc-pharmacy-product-card__spec--thc {
    background: rgba(220, 38, 38, 0.1);
}

.hc-pharmacy-product-card__spec--thc strong {
    color: #dc2626;
}

.hc-pharmacy-product-card__spec--cbd {
    background: rgba(22, 163, 74, 0.1);
}

.hc-pharmacy-product-card__spec--cbd strong {
    color: #16a34a;
}

.hc-pharmacy-product-card__stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    margin-top: auto;
}

.hc-pharmacy-product-card__stock-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hc-text-secondary);
}

.hc-pharmacy-product-card__stock.hc-stock--available {
    color: #16a34a;
}

.hc-pharmacy-product-card__stock.hc-stock--available .hc-pharmacy-product-card__stock-dot {
    background: #16a34a;
}

.hc-pharmacy-product-card__stock.hc-stock--low {
    color: #f59e0b;
}

.hc-pharmacy-product-card__stock.hc-stock--low .hc-pharmacy-product-card__stock-dot {
    background: #f59e0b;
}

.hc-pharmacy-product-card__stock.hc-stock--unavailable {
    color: #dc2626;
}

.hc-pharmacy-product-card__stock.hc-stock--unavailable .hc-pharmacy-product-card__stock-dot {
    background: #dc2626;
}

.hc-pharmacy-product-card__footer {
    padding: var(--hc-space-md);
    background: var(--hc-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--hc-space-sm);
    border-top: 1px solid var(--hc-border);
}

.hc-pharmacy-product-card__pricing {
    display: flex;
    flex-direction: column;
}

.hc-pharmacy-product-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hc-primary);
}

.hc-pharmacy-product-card__price-unit {
    font-size: 0.75rem;
    color: var(--hc-text-secondary);
}

.hc-pharmacy-product-card__actions .hc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* No results message */
.hc-pharmacy-no-results {
    text-align: center;
    padding: var(--hc-space-xl);
    color: var(--hc-text-secondary);
}

/* Status Card - Professional White Design */
.hc-pharmacy-status-card {
    padding: var(--hc-space-md);
    border-radius: var(--hc-radius-lg);
    margin-bottom: var(--hc-space-md);
    background: var(--hc-white);
    border: 1px solid var(--hc-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hc-pharmacy-status-card__indicator {
    display: flex;
    align-items: center;
    gap: var(--hc-space-sm);
}

.hc-pharmacy-status-card__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.hc-pharmacy-status-card__dot--open {
    background: #16a34a;
    animation: pulse 2s infinite;
}

.hc-pharmacy-status-card__dot--closed {
    background: #dc2626;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.hc-pharmacy-status-card__text {
    font-weight: 600;
    font-size: 1rem;
}

.hc-pharmacy-status-card__text--open {
    color: #16a34a;
}

.hc-pharmacy-status-card__text--closed {
    color: #dc2626;
}

.hc-pharmacy-status-card__today {
    margin-top: var(--hc-space-xs);
    font-size: 0.875rem;
    color: var(--hc-text-secondary);
    padding-left: 22px;
}

.hc-pharmacy-status-card__next {
    margin-top: var(--hc-space-xs);
    font-size: 0.8125rem;
    color: var(--hc-text-secondary);
    padding-left: 22px;
    font-style: italic;
}

/* Scrollable Product List */
.hc-pharmacy-product-scroll {
    max-height: 1200px;
    overflow-y: auto;
    padding-right: var(--hc-space-xs);
}

.hc-pharmacy-product-scroll::-webkit-scrollbar {
    width: 6px;
}

.hc-pharmacy-product-scroll::-webkit-scrollbar-track {
    background: var(--hc-bg-secondary);
    border-radius: 3px;
}

.hc-pharmacy-product-scroll::-webkit-scrollbar-thumb {
    background: var(--hc-border);
    border-radius: 3px;
}

.hc-pharmacy-product-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--hc-text-secondary);
}

/* Sticky Filter Bar */
.hc-pharmacy-filters--sticky {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 100;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: var(--hc-space-sm) var(--hc-space-lg);
}

/* Contact Card with Icon Headers */
.hc-pharmacy-contact-card h3,
.hc-pharmacy-hours-card h3,
.hc-pharmacy-shipping-card h3 {
    display: flex;
    align-items: center;
    gap: var(--hc-space-sm);
}

.hc-pharmacy-contact-card h3 svg,
.hc-pharmacy-hours-card h3 svg {
    color: var(--hc-primary);
}

/* Opening Hours Table */
.hc-pharmacy-hours-table {
    display: flex;
    flex-direction: column;
    gap: var(--hc-space-xs);
}

.hc-pharmacy-hours-row {
    display: flex;
    justify-content: space-between;
    padding: var(--hc-space-xs) 0;
    border-bottom: 1px dashed var(--hc-border);
}

.hc-pharmacy-hours-row:last-child {
    border-bottom: none;
}

.hc-pharmacy-hours-day {
    font-weight: 500;
    color: var(--hc-text-primary);
}

.hc-pharmacy-hours-time {
    color: var(--hc-text-secondary);
}

.hc-pharmacy-hours-time--closed {
    color: #dc2626;
    font-style: italic;
}

/* Responsive - Mobile First */
@media (max-width: 1024px) {
    .hc-pharmacy-content-grid {
        grid-template-columns: 1fr;
        gap: var(--hc-space-lg);
    }

    .hc-pharmacy-sidebar {
        order: -1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: var(--hc-space-md);
    }

    .hc-pharmacy-status-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hc-pharmacy-filters {
        flex-direction: column;
        padding: var(--hc-space-sm);
        gap: var(--hc-space-sm);
    }

    .hc-pharmacy-filters__search {
        min-width: 100%;
    }

    .hc-pharmacy-filters__controls {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--hc-space-xs);
        width: 100%;
    }

    .hc-pharmacy-filters__controls .hc-select {
        width: 100%;
        padding: 8px 28px 8px 8px;
        font-size: 0.8125rem;
    }

    .hc-pharmacy-filters--sticky {
        top: 60px;
        padding: var(--hc-space-xs) var(--hc-space-sm);
    }

    .hc-pharmacy-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--hc-space-sm);
    }

    .hc-pharmacy-product-card__image {
        aspect-ratio: 1;
    }

    .hc-pharmacy-product-card__content {
        padding: var(--hc-space-sm);
    }

    .hc-pharmacy-product-card__name {
        font-size: 0.875rem;
        line-height: 1.2;
    }

    .hc-pharmacy-product-card__specs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .hc-pharmacy-product-card__spec {
        font-size: 0.6875rem;
        padding: 2px 6px;
        white-space: nowrap;
    }

    .hc-pharmacy-product-card__footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: var(--hc-space-sm);
        gap: var(--hc-space-xs);
    }

    .hc-pharmacy-product-card__price {
        font-size: 1.125rem;
    }

    .hc-pharmacy-product-card__actions {
        margin-top: 0;
    }

    .hc-pharmacy-product-card__actions .hc-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.8125rem;
    }

    .hc-pharmacy-product-card__badge {
        font-size: 0.625rem;
        padding: 2px 6px;
    }

    .hc-pharmacy-product-card__badge svg {
        width: 10px;
        height: 10px;
    }

    .hc-pharmacy-product-scroll {
        max-height: none;
        overflow: visible;
    }

    .hc-pharmacy-sidebar {
        grid-template-columns: 1fr;
    }

    .hc-pharmacy-profile {
        flex-direction: column;
        text-align: center;
    }

    .hc-pharmacy-profile__logo {
        margin: 0 auto var(--hc-space-md);
    }

    .hc-pharmacy-profile__meta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hc-section-header {
        flex-direction: column;
        gap: var(--hc-space-xs);
        text-align: center;
    }
}

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

    .hc-pharmacy-filters__controls {
        grid-template-columns: 1fr;
    }

    .hc-pharmacy-product-card {
        display: grid;
        grid-template-columns: 100px 1fr;
        grid-template-rows: auto auto;
    }

    .hc-pharmacy-product-card__image {
        grid-row: 1 / 3;
        aspect-ratio: 1;
        border-radius: var(--hc-radius-lg) 0 0 var(--hc-radius-lg);
    }

    .hc-pharmacy-product-card__content {
        grid-column: 2;
        grid-row: 1;
        padding: var(--hc-space-sm);
    }

    .hc-pharmacy-product-card__footer {
        grid-column: 2;
        grid-row: 2;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        border-top: none;
        border-radius: 0;
        padding: 0 var(--hc-space-sm) var(--hc-space-sm);
        background: transparent;
    }

    .hc-pharmacy-product-card__badge {
        top: var(--hc-space-xs);
        left: var(--hc-space-xs);
        font-size: 0.5625rem;
        padding: 2px 4px;
    }

    .hc-pharmacy-product-card__stock {
        font-size: 0.75rem;
    }

    .hc-pharmacy-contact-card,
    .hc-pharmacy-hours-card,
    .hc-pharmacy-shipping-card {
        padding: var(--hc-space-sm);
    }
}

