/* WinePos Shop - Vivino-inspired Design System */

/* Ensure proper box-sizing for all shop elements */
.shop-layout,
.shop-layout *,
.shop-layout *::before,
.shop-layout *::after {
    box-sizing: border-box;
}

:root {
    /* Brand Colors - Vivino Style */
    --shop-brand: #A31B34;          /* Vivino rood - logo, sale badges */
    --shop-brand-dark: #7D1128;     /* Hover states */
    --shop-brand-light: #C73E54;    /* Light variant */

    /* CTA Colors - Green buttons */
    --shop-cta: #00843D;            /* Groene CTA buttons */
    --shop-cta-hover: #006B32;      /* Hover state */
    --shop-cta-text: #FFFFFF;       /* Witte tekst op buttons */

    /* Backgrounds */
    --shop-bg: #FFFFFF;             /* Primaire achtergrond */
    --shop-bg-secondary: #F7F7F7;   /* Secundaire achtergrond (cards) */
    --shop-bg-highlight: #1E1E1E;   /* Donkere highlight (BEST PICK box) */

    /* Text Colors */
    --shop-text: #1A1A1A;           /* Primaire tekst */
    --shop-text-secondary: #6D6D6D; /* Secundaire tekst */
    --shop-text-muted: #999999;     /* Placeholder, disabled */
    --shop-text-link: #1A1A1A;      /* Links */

    /* Borders & Dividers */
    --shop-border: #E5E5E5;         /* Lichte borders */
    --shop-divider: #EBEBEB;        /* Section dividers */

    /* Rating Stars */
    --shop-star-filled: #F5C518;    /* Gevulde sterren (goud) */
    --shop-star-empty: #E5E5E5;     /* Lege sterren */

    /* Badges */
    --shop-badge-sale: #A31B34;     /* Rode korting badge */
    --shop-badge-sale-text: #FFFFFF;
    --shop-badge-new: #F5C518;      /* Gele "New" badge */
    --shop-badge-premium: #1E1E1E;  /* Donkere premium badge */

    /* Price */
    --shop-price: #1A1A1A;          /* Huidige prijs */
    --shop-price-old: #999999;      /* Oude prijs (doorgestreept) */

    /* Spacing */
    --shop-spacing-xs: 0.25rem;
    --shop-spacing-sm: 0.5rem;
    --shop-spacing-md: 1rem;
    --shop-spacing-lg: 1.5rem;
    --shop-spacing-xl: 2rem;
    --shop-spacing-xxl: 3rem;

    /* Border Radius */
    --shop-radius-sm: 4px;
    --shop-radius-md: 8px;
    --shop-radius-lg: 12px;
    --shop-radius-full: 9999px;

    /* Shadows */
    --shop-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shop-shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shop-shadow-lg: 0 10px 15px rgba(0,0,0,0.15);

    /* Typography */
    --shop-font-heading: 'Playfair Display', Georgia, serif;
    --shop-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Layout */
.shop-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--shop-font-body);
    color: var(--shop-text);
    background-color: var(--shop-bg-secondary);
}

.shop-main {
    flex: 1;
    background-color: var(--shop-bg-secondary);
}

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

.shop-header {
    background: var(--shop-bg);
    box-shadow: var(--shop-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.shop-header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.shop-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--shop-spacing-md) var(--shop-spacing-xl);
    gap: var(--shop-spacing-lg);
}

/* Logo */
.shop-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.shop-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.shop-logo-text {
    font-family: var(--shop-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--shop-brand);
    display: flex;
    align-items: center;
}

/* Search */
.shop-search {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--shop-text-muted);
    font-size: 1.25rem;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius-full);
    font-size: 0.9375rem;
    background-color: var(--shop-bg-secondary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--shop-brand);
    box-shadow: 0 0 0 3px rgba(163, 27, 52, 0.1);
}

.search-input::placeholder {
    color: var(--shop-text-muted);
}

/* Header Actions */
.shop-header-actions {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-md);
}

.welcome-text {
    color: var(--shop-text-secondary);
    font-size: 0.875rem;
    white-space: nowrap;
}

.header-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--shop-radius-full);
    color: var(--shop-text);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-decoration: none;
}

.header-icon-link:hover {
    background-color: var(--shop-bg-secondary);
    color: var(--shop-brand);
}

.header-icon-link .rzi {
    font-size: 1.5rem;
}

.header-btn-login {
    padding: 8px 20px;
    background-color: var(--shop-brand);
    color: white;
    border-radius: var(--shop-radius-full);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.header-btn-login:hover {
    background-color: var(--shop-brand-dark);
    color: white;
}

/* Navigation */
.shop-nav {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 var(--shop-spacing-xl);
    border-top: 1px solid var(--shop-divider);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-xs);
    padding: var(--shop-spacing-md) var(--shop-spacing-lg);
    color: var(--shop-text);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.nav-link:hover {
    color: var(--shop-brand);
}

.nav-link.active {
    color: var(--shop-brand);
    border-bottom-color: var(--shop-brand);
}

.nav-icon {
    font-size: 1.125rem;
}

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

.shop-footer {
    background-color: var(--shop-text);
    color: white;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--shop-spacing-xxl) var(--shop-spacing-xl);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--shop-spacing-xl);
}

.footer-section h4 {
    font-family: var(--shop-font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--shop-spacing-lg);
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: var(--shop-spacing-sm);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: var(--shop-spacing-sm);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-section address {
    font-style: normal;
}

.footer-section address p {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-sm);
}

.footer-section address .rzi {
    font-size: 1rem;
    color: var(--shop-brand);
}

.footer-social {
    display: flex;
    gap: var(--shop-spacing-md);
    margin-top: var(--shop-spacing-lg);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--shop-radius-full);
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

.footer-social a:hover {
    background-color: var(--shop-brand);
}

.footer-social .rzi {
    font-size: 1.25rem;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--shop-spacing-lg) var(--shop-spacing-xl);
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--shop-spacing-lg);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* ============================================
   SHOP CONTAINER
   ============================================ */

.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--shop-spacing-xl);
}

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

.product-card {
    background: var(--shop-bg);
    border-radius: var(--shop-radius-md);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

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

.product-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: var(--shop-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-badge {
    position: absolute;
    top: var(--shop-spacing-sm);
    left: var(--shop-spacing-sm);
    padding: 4px 8px;
    border-radius: var(--shop-radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card-badge.sale {
    background-color: var(--shop-badge-sale);
    color: var(--shop-badge-sale-text);
}

.product-card-badge.new {
    background-color: var(--shop-badge-new);
    color: var(--shop-text);
}

.product-card-content {
    padding: var(--shop-spacing-md);
}

.product-card-producer {
    font-size: 0.8125rem;
    color: var(--shop-text-secondary);
    margin-bottom: var(--shop-spacing-xs);
}

.product-card-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--shop-text);
    margin-bottom: var(--shop-spacing-sm);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-meta {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-sm);
    margin-bottom: var(--shop-spacing-sm);
    font-size: 0.8125rem;
    color: var(--shop-text-secondary);
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-xs);
}

.product-card-rating .rzi {
    color: var(--shop-star-filled);
    font-size: 0.875rem;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-sm);
    margin-top: auto;
}

.product-card-price .current {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--shop-price);
}

.product-card-price .old {
    font-size: 0.875rem;
    color: var(--shop-price-old);
    text-decoration: line-through;
}

.product-card-cta {
    width: 100%;
    padding: 10px;
    background-color: var(--shop-cta);
    color: var(--shop-cta-text);
    border: none;
    border-radius: var(--shop-radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: var(--shop-spacing-md);
}

.product-card-cta:hover {
    background-color: var(--shop-cta-hover);
}

/* ============================================
   FILTER SIDEBAR
   ============================================ */

.filter-sidebar {
    background: var(--shop-bg);
    border-radius: var(--shop-radius-md);
    padding: var(--shop-spacing-lg);
}

.filter-group {
    border-bottom: 1px solid var(--shop-divider);
    padding-bottom: var(--shop-spacing-lg);
    margin-bottom: var(--shop-spacing-lg);
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-weight: 600;
    color: var(--shop-text);
    margin-bottom: var(--shop-spacing-md);
}

.filter-group-header .rzi {
    font-size: 1.25rem;
    color: var(--shop-text-secondary);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-sm);
    padding: var(--shop-spacing-xs) 0;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--shop-brand);
}

.filter-option-label {
    flex: 1;
    font-size: 0.9375rem;
    color: var(--shop-text);
}

.filter-option-count {
    font-size: 0.8125rem;
    color: var(--shop-text-muted);
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--shop-spacing-sm);
    margin-bottom: var(--shop-spacing-lg);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--shop-spacing-xs);
    padding: 6px 12px;
    background-color: var(--shop-bg-secondary);
    border-radius: var(--shop-radius-full);
    font-size: 0.8125rem;
    color: var(--shop-text);
}

.filter-chip-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: var(--shop-radius-full);
    background-color: var(--shop-text-muted);
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-chip-remove:hover {
    background-color: var(--shop-brand);
}

.clear-filters {
    color: var(--shop-brand);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px 12px;
}

.clear-filters:hover {
    text-decoration: underline;
}

/* ============================================
   VIVINO SHOP LAYOUT
   ============================================ */

.vivino-shop-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--shop-spacing-md);
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: var(--shop-spacing-md);
    height: calc(100vh - 140px); /* Viewport minus header */
    overflow: hidden;
}

/* Sidebar */
.shop-sidebar {
    height: 100%;
    overflow-y: auto;
    background: var(--shop-bg);
    border-radius: var(--shop-radius-lg);
    box-shadow: var(--shop-shadow-sm);
}

.shop-sidebar::-webkit-scrollbar {
    width: 6px;
}

.shop-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.shop-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--shop-border);
    border-radius: 3px;
}

.shop-sidebar::-webkit-scrollbar-thumb:hover {
    background-color: var(--shop-text-muted);
}

/* Main Content */
.shop-main {
    height: 100%;
    overflow-y: auto;
    min-width: 0;
    padding-right: var(--shop-spacing-sm); /* Space for scrollbar */
}

.shop-main::-webkit-scrollbar {
    width: 8px;
}

.shop-main::-webkit-scrollbar-track {
    background: var(--shop-bg-secondary);
    border-radius: 4px;
}

.shop-main::-webkit-scrollbar-thumb {
    background-color: var(--shop-border);
    border-radius: 4px;
}

.shop-main::-webkit-scrollbar-thumb:hover {
    background-color: var(--shop-text-muted);
}

/* Results Header */
.shop-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--shop-spacing-md) 0;
    margin-bottom: var(--shop-spacing-md);
}

.results-count {
    font-size: 0.9375rem;
    color: var(--shop-text-secondary);
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-sm);
}

.sort-dropdown label {
    font-size: 0.875rem;
    color: var(--shop-text-secondary);
}

.sort-dropdown select {
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    background: var(--shop-bg);
    font-size: 0.875rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236D6D6D' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Search Bar */
.shop-search-bar {
    position: relative;
    margin-bottom: var(--shop-spacing-lg);
}

.shop-search-bar input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius-md);
    font-size: 0.9375rem;
    background: var(--shop-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.shop-search-bar input:focus {
    outline: none;
    border-color: var(--shop-brand);
    box-shadow: 0 0 0 3px rgba(163, 27, 52, 0.1);
}

.shop-search-bar .clear-search {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--shop-text-muted);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.shop-search-bar .clear-search:hover {
    background: var(--shop-brand);
}

/* Active Filters Display */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--shop-spacing-sm);
    margin-bottom: var(--shop-spacing-lg);
    padding: var(--shop-spacing-md);
    background: var(--shop-bg);
    border-radius: var(--shop-radius-md);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--shop-bg-secondary);
    border-radius: var(--shop-radius-full);
    font-size: 0.8125rem;
    color: var(--shop-text);
}

.filter-tag.discount {
    background: rgba(163, 27, 52, 0.1);
    color: var(--shop-brand);
}

.filter-tag button {
    background: var(--shop-text-muted);
    color: white;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.filter-tag button:hover {
    background: var(--shop-brand);
}

.color-dot-small {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

.clear-all-filters {
    padding: 6px 12px;
    background: none;
    border: 1px solid var(--shop-brand);
    color: var(--shop-brand);
    border-radius: var(--shop-radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-all-filters:hover {
    background: var(--shop-brand);
    color: white;
}

/* Product Grid - Responsive layout using auto-fit for flexible columns */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--shop-spacing-md);
}

/* Large desktop: max 5 columns */
@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: var(--shop-spacing-md);
    }
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--shop-spacing-xxl);
    color: var(--shop-text-secondary);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--shop-border);
    border-top-color: var(--shop-brand);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* No Results */
.no-results {
    text-align: center;
    padding: var(--shop-spacing-xxl);
    background: var(--shop-bg);
    border-radius: var(--shop-radius-lg);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: var(--shop-spacing-md);
}

.no-results h3 {
    font-size: 1.25rem;
    color: var(--shop-text);
    margin-bottom: var(--shop-spacing-sm);
}

.no-results p {
    color: var(--shop-text-secondary);
    margin-bottom: var(--shop-spacing-lg);
}

.btn-clear-filters {
    padding: 10px 24px;
    background: var(--shop-brand);
    color: white;
    border: none;
    border-radius: var(--shop-radius-full);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-clear-filters:hover {
    background: var(--shop-brand-dark);
}

.popular-wines-section {
    margin-top: var(--shop-spacing-xxl);
    padding-top: var(--shop-spacing-xl);
    border-top: 1px solid var(--shop-border);
}

.popular-wines-section h4 {
    font-size: 1.125rem;
    margin-bottom: var(--shop-spacing-lg);
    color: var(--shop-text);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--shop-spacing-sm);
    margin-top: var(--shop-spacing-xl);
    padding: var(--shop-spacing-lg) 0;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid var(--shop-border);
    background: var(--shop-bg);
    color: var(--shop-text);
    border-radius: var(--shop-radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--shop-brand);
    color: var(--shop-brand);
}

.page-btn.active {
    background: var(--shop-brand);
    border-color: var(--shop-brand);
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================
   VIVINO FILTER SIDEBAR STYLES
   ============================================ */

.vivino-filter-sidebar {
    padding: var(--shop-spacing-lg);
}

.filter-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--shop-spacing-md);
    border-bottom: 1px solid var(--shop-divider);
    margin-bottom: var(--shop-spacing-lg);
}

.filter-sidebar-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.filter-sidebar-header button {
    background: none;
    border: none;
    color: var(--shop-brand);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.filter-sidebar-header button:hover {
    text-decoration: underline;
}

/* Filter Group */
.filter-group {
    border-bottom: 1px solid var(--shop-divider);
    padding-bottom: var(--shop-spacing-md);
    margin-bottom: var(--shop-spacing-md);
}

.filter-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.filter-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--shop-spacing-sm) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.filter-group-title {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--shop-text);
}

.filter-group-subtitle {
    font-weight: 400;
    color: var(--shop-text-secondary);
    font-size: 0.8125rem;
    margin-left: 4px;
}

.filter-group-chevron {
    color: var(--shop-text-secondary);
    transition: transform 0.2s;
}

.filter-group.collapsed .filter-group-chevron {
    transform: rotate(180deg);
}

.filter-group-content {
    padding-top: var(--shop-spacing-sm);
}

/* Wine Color Filter */
.wine-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: var(--shop-spacing-sm);
}

.wine-color-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius-full);
    background: var(--shop-bg);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.8125rem;
}

.wine-color-btn:hover {
    border-color: var(--shop-text-secondary);
}

.wine-color-btn.selected {
    border-color: var(--shop-brand);
    background: rgba(163, 27, 52, 0.05);
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

.wine-color-count {
    color: var(--shop-text-muted);
    font-size: 0.75rem;
}

/* Price Range Slider */
.price-range-container {
    padding: var(--shop-spacing-sm) 0;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-sm);
    margin-bottom: var(--shop-spacing-md);
}

.price-input-group {
    flex: 1;
}

.price-input-group label {
    display: block;
    font-size: 0.75rem;
    color: var(--shop-text-secondary);
    margin-bottom: 4px;
}

.price-input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    font-size: 0.875rem;
    text-align: right;
}

.price-input-group input:focus {
    outline: none;
    border-color: var(--shop-brand);
}

.price-separator {
    color: var(--shop-text-muted);
    padding-top: 20px;
}

.price-slider {
    position: relative;
    height: 30px;
    margin-top: var(--shop-spacing-sm);
}

.price-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--shop-brand);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.price-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--shop-brand);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: none;
}

.slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    width: 100%;
    background: var(--shop-border);
    border-radius: 2px;
}

.slider-range {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    background: var(--shop-brand);
    border-radius: 2px;
}

/* Rating Filter */
.rating-options {
    display: flex;
    flex-direction: column;
    gap: var(--shop-spacing-xs);
}

.rating-option {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-sm);
    padding: 6px 0;
    cursor: pointer;
}

.rating-option input[type="radio"] {
    accent-color: var(--shop-brand);
}

.rating-stars {
    display: flex;
    gap: 2px;
    color: var(--shop-star-filled);
}

.rating-label {
    font-size: 0.875rem;
    color: var(--shop-text-secondary);
}

/* Grape Search */
.grape-search {
    position: relative;
    margin-bottom: var(--shop-spacing-sm);
}

.grape-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    font-size: 0.875rem;
}

.grape-search input:focus {
    outline: none;
    border-color: var(--shop-brand);
}

/* Checkbox List */
.checkbox-list {
    max-height: 200px;
    overflow-y: auto;
}

.checkbox-list::-webkit-scrollbar {
    width: 4px;
}

.checkbox-list::-webkit-scrollbar-thumb {
    background: var(--shop-border);
    border-radius: 2px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-sm);
    padding: 6px 0;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--shop-brand);
}

.checkbox-item label {
    flex: 1;
    font-size: 0.875rem;
    color: var(--shop-text);
    cursor: pointer;
}

.checkbox-item .count {
    font-size: 0.75rem;
    color: var(--shop-text-muted);
}

/* Discount Toggle */
.discount-toggle {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-sm);
    padding: var(--shop-spacing-sm) 0;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--shop-border);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--shop-brand);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 0.875rem;
    color: var(--shop-text);
}

/* Filter checkbox items */
.filter-checkbox-item {
    padding: 4px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-sm);
    cursor: pointer;
    font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"],
.checkbox-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--shop-brand);
    flex-shrink: 0;
}

.filter-name {
    flex: 1;
    color: var(--shop-text);
}

.filter-count {
    color: var(--shop-text-muted);
    font-size: 0.75rem;
}

.filter-icon {
    font-size: 1rem;
}

/* Radio label */
.radio-label {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-sm);
    cursor: pointer;
    padding: 6px 0;
    font-size: 0.875rem;
}

.radio-label input[type="radio"] {
    accent-color: var(--shop-brand);
}

.radio-label .rating-stars {
    color: var(--shop-star-filled);
    font-size: 0.875rem;
}

/* Price range display */
.price-range-display {
    text-align: center;
    font-weight: 600;
    color: var(--shop-text);
    margin-bottom: var(--shop-spacing-sm);
    font-size: 0.9375rem;
}

.price-slider-container {
    position: relative;
    height: 30px;
    margin-bottom: var(--shop-spacing-md);
}

.price-slider-container .price-slider {
    position: absolute;
    width: 100%;
    height: 4px;
    background: var(--shop-border);
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
}

.price-slider-container .price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--shop-brand);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: var(--shop-shadow-sm);
}

.price-slider-container .price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--shop-brand);
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: none;
}

/* Discount checkbox */
.discount-checkbox {
    padding-top: var(--shop-spacing-sm);
    border-top: 1px solid var(--shop-divider);
    margin-top: var(--shop-spacing-sm);
}

/* Filter search */
.filter-search {
    margin-bottom: var(--shop-spacing-sm);
}

.filter-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius-sm);
    font-size: 0.8125rem;
}

.filter-search input:focus {
    outline: none;
    border-color: var(--shop-brand);
}

/* Scrollable filter list */
.scrollable-filter-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: var(--shop-spacing-sm);
}

.scrollable-filter-list::-webkit-scrollbar {
    width: 4px;
}

.scrollable-filter-list::-webkit-scrollbar-thumb {
    background: var(--shop-border);
    border-radius: 2px;
}

/* Show more button */
.show-more-btn {
    background: none;
    border: none;
    color: var(--shop-brand);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 0;
}

.show-more-btn:hover {
    text-decoration: underline;
}

/* Country flag in filter */
.checkbox-label .country-flag {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Clear filters button */
.clear-filters-btn {
    width: 100%;
    padding: 12px;
    background: none;
    border: 1px solid var(--shop-brand);
    color: var(--shop-brand);
    border-radius: var(--shop-radius-md);
    font-weight: 500;
    cursor: pointer;
    margin-top: var(--shop-spacing-lg);
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    background: var(--shop-brand);
    color: white;
}

/* ============================================
   VIVINO PRODUCT CARD STYLES
   ============================================ */

.vivino-product-card {
    background: var(--shop-bg);
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.vivino-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shop-shadow-lg);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: var(--shop-spacing-sm);
    left: var(--shop-spacing-sm);
    background: var(--shop-badge-sale);
    color: var(--shop-badge-sale-text);
    padding: 4px 8px;
    border-radius: var(--shop-radius-sm);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
    z-index: 1;
}

.discount-badge .discount-percent {
    font-size: 0.875rem;
}

.product-card-content {
    display: flex;
    padding: var(--shop-spacing-md);
    gap: var(--shop-spacing-md);
}

/* Product Image */
.product-image-container {
    width: 80px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-bottle-image {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
}

.product-placeholder-image {
    width: 60px;
    height: 120px;
    background: var(--shop-bg-secondary);
    border-radius: var(--shop-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-placeholder-image .wine-icon {
    width: 32px;
    height: 32px;
    color: var(--shop-text-muted);
}

/* Product Details */
.product-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.product-header {
    margin-bottom: var(--shop-spacing-sm);
}

.product-producer {
    font-size: 0.75rem;
    color: var(--shop-text-secondary);
    font-weight: 400;
    margin: 0 0 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--shop-text);
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-origin {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--shop-text-secondary);
}

.country-flag {
    font-size: 1rem;
}

/* Rating Section */
.product-rating-section {
    display: flex;
    align-items: center;
    gap: var(--shop-spacing-sm);
    margin-bottom: var(--shop-spacing-sm);
}

.rating-score {
    background: var(--shop-brand);
    color: white;
    padding: 4px 8px;
    border-radius: var(--shop-radius-sm);
    font-size: 0.875rem;
    font-weight: 700;
}

.rating-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rating-details .rating-stars {
    display: flex;
    gap: 1px;
}

.rating-details .rating-stars .star {
    font-size: 0.75rem;
    color: var(--shop-star-empty);
}

.rating-details .rating-stars .star.filled {
    color: var(--shop-star-filled);
}

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

.no-rating {
    font-size: 0.8125rem;
    color: var(--shop-text-muted);
    font-style: italic;
}

/* Price Section */
.product-price-section {
    display: flex;
    align-items: baseline;
    gap: var(--shop-spacing-sm);
    margin-top: auto;
}

.current-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--shop-price);
}

.original-price {
    font-size: 0.875rem;
    color: var(--shop-price-old);
    text-decoration: line-through;
}

/* ============================================
   ENHANCED PRODUCT CARD STYLES
   ============================================ */

/* Badges Area */
.card-badges {
    position: absolute;
    top: var(--shop-spacing-sm);
    left: var(--shop-spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.badge {
    padding: 4px 8px;
    border-radius: var(--shop-radius-sm);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discount-badge {
    position: static;
    display: inline-block;
    background: var(--shop-badge-sale);
    color: var(--shop-badge-sale-text);
}

.bio-badge {
    background: #2D9D2B;
    color: white;
}

.award-badge {
    background: #FFD700;
    color: #1A1A1A;
}

.new-badge {
    background: var(--shop-badge-new);
    color: #1A1A1A;
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: var(--shop-spacing-sm);
    right: var(--shop-spacing-sm);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s;
    box-shadow: var(--shop-shadow-sm);
}

.wishlist-btn:hover {
    background: white;
    transform: scale(1.1);
}

.wishlist-btn .heart {
    font-size: 1.25rem;
    color: var(--shop-text-muted);
    transition: color 0.2s;
}

.wishlist-btn .heart.filled {
    color: var(--shop-brand);
}

/* Grape Varieties */
.product-grapes {
    font-size: 0.75rem;
    color: var(--shop-text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product Icons (Specialties & Food Pairings) */
.product-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: var(--shop-spacing-xs);
}

.specialty-icon,
.food-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 0.875rem;
    border-radius: var(--shop-radius-sm);
    background: var(--shop-bg-secondary);
    cursor: help;
}

.specialty-icon {
    background: rgba(45, 157, 43, 0.1);
}

.food-icon {
    background: rgba(163, 27, 52, 0.1);
}

/* Product Specs (Content, Alcohol, Type) */
.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--shop-spacing-xs);
    margin-bottom: var(--shop-spacing-sm);
    font-size: 0.6875rem;
    color: var(--shop-text-muted);
}

.spec-item {
    padding: 2px 6px;
    background: var(--shop-bg-secondary);
    border-radius: var(--shop-radius-sm);
}

/* Price Row */
.price-row {
    display: flex;
    align-items: baseline;
    gap: var(--shop-spacing-sm);
}

/* Add to Cart Button */
.add-to-cart-btn {
    width: 100%;
    padding: 10px 16px;
    background: var(--shop-cta);
    color: var(--shop-cta-text);
    border: none;
    border-radius: var(--shop-radius-md);
    font-weight: 600;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--shop-spacing-xs);
    margin-top: var(--shop-spacing-sm);
}

.add-to-cart-btn:hover {
    background: var(--shop-cta-hover);
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

.add-to-cart-btn .cart-icon {
    font-size: 1rem;
}

/* Grid View Product Card Layout */
@media (min-width: 768px) {
    .vivino-product-card {
        display: flex;
        flex-direction: column;
    }

    .product-card-content {
        flex-direction: column;
        padding: var(--shop-spacing-md);
    }

    .product-image-container {
        width: 100%;
        height: 180px;
        margin-bottom: var(--shop-spacing-sm);
    }

    .product-bottle-image {
        max-height: 160px;
    }

    .product-details {
        flex: 1;
    }
}

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

@media (max-width: 1200px) {
    .vivino-shop-container {
        grid-template-columns: 260px 1fr;
        gap: var(--shop-spacing-lg);
    }
}

@media (max-width: 1024px) {
    .vivino-shop-container {
        grid-template-columns: 1fr;
        padding: var(--shop-spacing-md);
        height: auto;
        overflow: visible;
    }

    .shop-sidebar {
        height: auto;
        max-height: 400px;
        overflow-y: auto;
        margin-bottom: var(--shop-spacing-lg);
    }

    .shop-main {
        height: auto;
        overflow-y: visible;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shop-header-top {
        flex-wrap: wrap;
        padding: var(--shop-spacing-md);
    }

    .shop-search {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: var(--shop-spacing-md);
    }

    .shop-nav {
        overflow-x: auto;
        padding: 0 var(--shop-spacing-md);
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        padding: var(--shop-spacing-sm) var(--shop-spacing-md);
        white-space: nowrap;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section address p {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: var(--shop-spacing-md);
        text-align: center;
    }

    .shop-container {
        padding: var(--shop-spacing-md);
    }
}

@media (max-width: 480px) {
    .shop-logo-img {
        height: 36px;
    }

    .welcome-text {
        display: none;
    }

    .header-btn-login {
        padding: 6px 12px;
        font-size: 0.8125rem;
    }

    .nav-link span {
        display: none;
    }

    .nav-link {
        padding: var(--shop-spacing-sm);
    }

    .nav-icon {
        font-size: 1.5rem;
    }
}
