/* =====================================================
   WINE CLUB SHOP - STYLES
   =====================================================
   Design elegante in stile Josetta Saffirio
   Colori minimali e layout pulito
*/

/* Variabili CSS */
:root {
    --primary-color: #2c2c2c;
    --secondary-color: #8b7355;
    --accent-color: #d4af37;
    --text-primary: #2c2c2c;
    --text-secondary: #666;
    --text-light: #999;
    --background: #fafafa;
    --white: #ffffff;
    --border: #e5e5e5;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.wine-shop-hero {
    /* Background image with subtle gradient overlay */
    background-image: linear-gradient(135deg, rgba(248,248,248,0.2) 0%, rgba(240,240,240,0.2) 100%), url('../images/hero-shop-esclusivo.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 180px 0 120px; /* increased top spacing as requested */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wine-shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23d4af37" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.25;
}

/* Dark overlay to ensure text readability on the image */
.wine-shop-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.35) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-cta {
    margin-top: 24px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 2px solid var(--accent-color);
    color: #fff;
    background: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.btn-hero:hover {
    background: #c19d2e;
    border-color: #c19d2e;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.45);
}

.btn-hero:active {
    transform: translateY(0);
}

.hero-title h1 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin: 0 0 30px;
    color: #ffffff; /* light text over image */
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

.hero-title span {
    display: block;
    position: relative;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
    max-width: 600px;
    margin: 0 auto;
}

.hero-description p {
    margin: 0 0 15px;
}

/* =====================================================
   SHOP CONTAINER
   ===================================================== */
.wine-shop {
    padding: 80px 0;
    background: var(--white);
}

.shop-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Layout con sidebar */
.shop-with-sidebar {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 32px;
}

.filters-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    height: fit-content;
    overflow: hidden;
}

.mobile-filters-trigger { display: none; margin-bottom: 16px; }
.btn-open-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
}

/* =====================================================
   FILTRI
   ===================================================== */
.shop-filters {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 0;
    background: var(--white);
}

.filters-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.01em;
}

.filters-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    transition: var(--transition);
    align-items: center;
    gap: 8px;
}

.filters-toggle:hover {
    background: var(--background);
}

.filters-form {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 0;
}

.filters-form.active {
    display: flex;
}

.filters-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.filter-group:last-of-type {
    border-bottom: none;
}

.filter-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input,
.filter-group select {
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: var(--white);
    color: #1a1a1a;
    font-weight: 400;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}

.filter-group input:hover,
.filter-group select:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
    background: var(--white);
}

.filter-group input::placeholder {
    color: #999;
    font-weight: 400;
}

.filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.price-range {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 16px 0;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs input {
    flex: 1;
}

.price-inputs span {
    color: #999;
    font-weight: 400;
    font-size: 0.875rem;
}

.price-range-display {
    font-size: 0.8125rem;
    color: #666;
    margin-top: 8px;
    font-weight: 400;
}

.filters-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.filters-actions .btn-primary,
.filters-actions .btn-secondary {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    border: none;
    background: transparent;
    color: #1a1a1a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.filters-actions .btn-primary {
    background: #1a1a1a;
    color: #ffffff;
}

.filters-actions .btn-primary:hover {
    background: #2c2c2c;
    transform: none;
    opacity: 1;
}

.filters-actions .btn-primary:active {
    transform: scale(0.98);
    background: #1a1a1a;
}

.filters-actions .btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.filters-actions .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
}

.filters-actions .btn-secondary:active {
    transform: scale(0.98);
    background: rgba(0, 0, 0, 0.05);
}

/* =====================================================
   RISULTATI
   ===================================================== */
.shop-results { margin-top: 0; }

/* Modal Filtri Mobile */
.filters-modal { position: fixed; inset: 0; display: none; z-index: 1000; }
.filters-modal.open { display: block; }
.filters-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); }
.filters-modal-panel {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: var(--white);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    padding: 20px; max-height: 85vh; overflow: auto;
}
.filters-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.filters-modal-header h3 { margin: 0; font-size: 1.25rem; font-weight: 600; color: #1a1a1a; }
.filters-modal-content { padding: 8px 0 16px; }
.filters-modal-content .filters-form { display: flex !important; padding: 0; }
.filters-modal-content .filters-grid { display: flex !important; }
.filters-modal-content .filter-group { display: flex !important; }
.filters-modal-content .filters-actions { display: none; }
.filters-modal-footer { 
    display: flex; 
    gap: 10px; 
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.filters-modal-footer .btn-primary,
.filters-modal-footer .btn-secondary {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    border: none;
    background: transparent;
    color: #1a1a1a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.filters-modal-footer .btn-primary {
    background: #1a1a1a;
    color: #ffffff;
}

.filters-modal-footer .btn-primary:hover {
    background: #2c2c2c;
    transform: none;
    opacity: 1;
}

.filters-modal-footer .btn-primary:active {
    transform: scale(0.98);
    background: #1a1a1a;
}

.filters-modal-footer .btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.filters-modal-footer .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
}

.filters-modal-footer .btn-secondary:active {
    transform: scale(0.98);
    background: rgba(0, 0, 0, 0.05);
}
.filters-modal-close { background: none; border: 1px solid var(--border); border-radius: 8px; padding: 6px; cursor: pointer; }

/* Responsive */
@media (max-width: 1024px) {
    .shop-with-sidebar { grid-template-columns: 1fr; }
    .filters-sidebar { display: none; }
    .mobile-filters-trigger { display: block; }
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.results-count h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    margin: 0 0 5px;
}

.results-count p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.results-actions {
    display: flex;
    gap: 5px;
}

.view-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle:hover {
    background: var(--background);
}

.view-toggle.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* =====================================================
   GRIGLIA VINI - NUOVO DESIGN SHOPIFY
   ===================================================== */
.wines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.wines-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Vista lista - layout orizzontale */
.wines-list .wine-card-new {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wines-list .wine-card-image-wrapper {
    flex: 0 0 350px;
    width: 350px;
    padding-top: 0;
    height: 350px;
    margin-bottom: 0;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
}

.wines-list .wine-card-image {
    position: relative;
    width: 65%;
    height: 75%;
    max-width: 220px;
    max-height: 260px;
    min-width: 150px;
    min-height: 180px;
    object-fit: contain;
    object-position: center center;
    margin: auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.wines-list .wine-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.wines-list .wine-card-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.3;
    color: #1a1a1a;
    font-family: serif;
    letter-spacing: -0.01em;
}

.wines-list .wine-card-subtitle {
    font-size: 0.9375rem;
    color: #86868b;
    font-weight: 400;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.wines-list .wine-card-price {
    margin-top: 0;
    margin-bottom: 16px;
}

.wines-list .wine-price-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

.wines-list .wine-price-original {
    font-size: 1.25rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.wines-list .wine-card-list-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.wines-list .wine-card-overlay {
    display: none;
}

/* Nascondi CTA lista nella vista griglia */
.wines-grid .wine-card-list-actions {
    display: none;
}

/* Stili pulsanti vista lista */
.wine-card-list-btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 48px;
}

.wine-card-list-btn-discover {
    background: transparent;
    color: #1a1a1a;
    border: 2px solid rgba(0, 0, 0, 0.15);
    font-weight: 500;
}

.wine-card-list-btn-discover:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.wine-card-list-btn-cart {
    background: #1a1a1a;
    color: #ffffff;
    border: 2px solid #1a1a1a;
}

.wine-card-list-btn-cart:hover {
    background: #2c2c2c;
    border-color: #2c2c2c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wine-card-list-btn-cart:disabled {
    background: #999;
    border-color: #999;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

/* Nuova card design stile Shopify */
.wine-card-new {
    background: var(--white);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.wine-card-label {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 400;
}

.wine-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.35; /* Ratio ottimizzato per bottiglie verticali */
    background: #fafafa;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Fallback per browser che non supportano aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
    .wine-card-image-wrapper {
        padding-top: 135%;
    }
}

.wine-card-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Dimensioni uniformi per tutte le immagini */
    width: 70%;
    height: 90%;
    max-width: 200px;
    max-height: 360px;
    min-width: 120px;
    min-height: 180px;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Assicura che tutte le immagini abbiano la stessa dimensione visiva */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.wine-card-new:hover .wine-card-image {
    transform: translate(-50%, -50%) scale(1.1);
}

.wine-card-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay con pulsanti hover */
.wine-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.wine-card-new:hover .wine-card-overlay {
    opacity: 1;
    visibility: visible;
}


.wine-card-btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wine-card-btn-discover {
    background: var(--white);
    color: #1a1a1a;
    border: 1px solid var(--white);
}

.wine-card-btn-discover:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.wine-card-btn-cart {
    background: #1a1a1a;
    color: var(--white);
    border: 1px solid #1a1a1a;
}

.wine-card-btn-cart:hover {
    background: #2c2c2c;
    border-color: #2c2c2c;
}

.wine-card-btn-cart:disabled {
    background: #999;
    border-color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.wine-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wine-card-title {
    font-size: 1.125rem;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    line-height: 1.4;
    font-family: serif;
    letter-spacing: -0.01em;
}

.wine-card-subtitle {
    font-size: 0.8125rem;
    color: #86868b;
    font-weight: 400;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.wine-card-vigna,
.wine-card-vintage {
    color: #86868b;
}

.wine-card-separator {
    color: #86868b;
    margin: 0 4px;
}

.wine-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
}

.wine-price-current {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
}

.wine-price-original {
    font-size: 0.875rem;
    color: #999;
    text-decoration: line-through;
}

.wine-card-limited-availability {
    font-size: 0.75rem;
    color: #f97316;
    font-weight: 500;
    margin-top: 4px;
}

/* Vecchio design per compatibilità */
.wine-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.wine-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.wine-image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.wine-bottle-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.wine-bottle {
    width: 80px;
    height: 200px;
    background: linear-gradient(135deg, #8b7355 0%, #6b5b47 100%);
    border-radius: 40px 40px 8px 8px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.wine-bottle.magnum {
    width: 100px;
    height: 250px;
}

.bottle-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 80px;
    background: var(--white);
    border-radius: 4px;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.label-content {
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.2;
}

.wine-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.wine-year {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 2px;
}

.wine-origin {
    color: var(--text-secondary);
    font-size: 0.6rem;
}

.wine-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wine-badge.magnum {
    background: var(--primary-color);
}

.wine-badge.featured {
    background: var(--secondary-color);
}

.wine-badge.low-stock {
    background: #e74c3c;
    top: 45px;
}

.wine-content {
    padding: 16px;
}

.wine-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.wine-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.wine-vintage {
    background: var(--background);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.wine-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
    font-size: 0.8125rem;
}

.wine-details {
    margin-bottom: 14px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.8125rem;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    color: var(--text-primary);
}

.detail-value.low-stock {
    color: #e74c3c;
    font-weight: 500;
}

.wine-price {
    background: var(--background);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 14px;
    text-align: center;
}

.price-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.wine-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    background: var(--white);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.qty-btn:hover {
    background: var(--background);
}

.quantity-selector input {
    border: none;
    width: 45px;
    text-align: center;
    padding: 8px 5px;
    font-weight: 500;
    font-size: 0.875rem;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-add-cart:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

/* =====================================================
   CARRELLO FLOTTANTE
   ===================================================== */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.cart-toggle {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    position: relative;
    text-decoration: none;
}

.cart-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.cart-toggle.cart-pulse {
    animation: cartPulse 0.5s ease;
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

/* =====================================================
   SIDEBAR CARRELLO
   ===================================================== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

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

.cart-header h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary-color);
    margin: 0;
}

.cart-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.cart-close:hover {
    color: var(--primary-color);
}

.cart-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--border);
    background: var(--background);
}

.cart-total {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.btn-checkout {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 500;
}

.btn-checkout:hover {
    background: var(--secondary-color);
}

/* =====================================================
   STATI SPECIALI
   ===================================================== */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.no-results-icon {
    margin-bottom: 20px;
    color: var(--text-light);
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.wine-shop-pending,
.wine-shop-paused,
.wine-shop-guest {
    padding: 120px 0;
    text-align: center;
    background: var(--background);
}

.pending-message,
.paused-message,
.guest-message {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pending-icon,
.paused-icon,
.guest-icon {
    margin-bottom: 40px;
    margin-top: 0;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
}

.pending-icon svg,
.paused-icon svg,
.guest-icon svg {
    width: 64px;
    height: 64px;
}

.pending-message h2,
.paused-message h2,
.guest-message h2 {
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 24px;
    line-height: 1.3;
}

.pending-message p,
.paused-message p,
.guest-message p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 40px;
}

.pending-actions,
.paused-actions,
.guest-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
    margin-bottom: 0;
}

/* =====================================================
   PULSANTI
   ===================================================== */
.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: none;
    flex: 1;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent-color);
    color: #1a1a1a;
    border: none;
}

.btn-primary:hover {
    background: #c19d2e;
    transform: none;
    opacity: 0.9;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
    .hero-title h1 {
        font-size: 2.5rem;
    }
    
    .filters-toggle {
        display: flex;
    }
    
    .filters-form {
        display: none;
    }
    
    .filters-form.active {
        display: flex;
    }
    
    .wines-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Dimensioni immagini ottimizzate per mobile */
    .wine-card-image {
        width: 65%;
        height: 85%;
        max-width: 180px;
        max-height: 320px;
        min-width: 100px;
        min-height: 160px;
    }
    
    .wines-list .wine-card-image-wrapper {
        flex: 0 0 280px;
        width: 280px;
        height: 280px;
    }
    
    .wines-list .wine-card-image {
        width: 60%;
        height: 70%;
        max-width: 180px;
        max-height: 220px;
        min-width: 120px;
        min-height: 150px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .wine-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .quantity-selector {
        order: 2;
    }
    
    .btn-add-cart {
        order: 1;
    }
}

@media (max-width: 480px) {
    .hero-title h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* Dimensioni immagini ottimizzate per schermi molto piccoli */
    .wine-card-image-wrapper {
        aspect-ratio: 1 / 1.3;
    }
    
    @supports not (aspect-ratio: 1 / 1) {
        .wine-card-image-wrapper {
            padding-top: 130%;
        }
    }
    
    .wine-card-image {
        width: 60%;
        height: 80%;
        max-width: 160px;
        max-height: 280px;
        min-width: 90px;
        min-height: 140px;
    }
    
    .wines-list .wine-card-image-wrapper {
        flex: 0 0 240px;
        width: 240px;
        height: 240px;
    }
    
    .wines-list .wine-card-image {
        width: 55%;
        height: 65%;
        max-width: 150px;
        max-height: 200px;
        min-width: 100px;
        min-height: 130px;
    }
    
    .wine-content {
        padding: 20px;
    }
    
    .wine-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .wine-vintage {
        align-self: flex-start;
    }
}

/* =====================================================
   PREZZI CON SCONTO
   ===================================================== */
.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.price-discount {
    background: var(--accent-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Bottone disabilitato */
.btn-add-cart:disabled {
    background: var(--text-light);
    color: var(--white);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-add-cart:disabled:hover {
    background: var(--text-light);
    transform: none;
}
