/* ===========================================
   LISTINO VINI CUSTOM - Traditional Wine List
   =========================================== */

.listino-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Georgia', 'Times New Roman', serif;
    background: #fff;
}

/* Controls */
.listino-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.listino-btn {
    padding: 10px 20px;
    border: 2px solid;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.listino-btn-print {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

.listino-btn-print:hover {
    background: #135e96;
}

.listino-btn-pdf {
    background: #d63638;
    color: #fff;
    border-color: #d63638;
}

.listino-btn-pdf:hover {
    background: #b32d2e;
}

.listino-btn-excel {
    background: #117a65;
    color: #fff;
    border-color: #117a65;
}

.listino-btn-excel:hover {
    background: #0e5f4f;
}

/* Header */
.listino-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 3px double #8b4513;
}

.listino-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: #8b4513;
    margin: 0 0 10px 0;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.listino-subtitle {
    font-size: 20px;
    color: #666;
    font-style: italic;
    margin: 5px 0;
}

.listino-date {
    font-size: 14px;
    color: #999;
    margin: 10px 0 0 0;
}

/* Sections */
.listino-sections {
    margin-top: 30px;
}

/* Category */
.listino-category {
    margin-bottom: 60px;
    page-break-inside: avoid;
}

.listino-category-title {
    font-size: 32px;
    font-weight: 700;
    color: #8b4513;
    margin: 0 0 30px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #daa520;
    letter-spacing: 1px;
}

/* Region */
.listino-region {
    margin-bottom: 40px;
    page-break-inside: avoid;
}

.listino-region-title {
    font-size: 26px;
    font-weight: 400;
    color: #996633;
    margin: 0 0 25px 0;
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive;
    font-style: italic;
}

/* Producer */
.listino-producer {
    margin-bottom: 28px;
    page-break-inside: avoid;
}

.listino-producer-name {
    font-size: 16px;
    font-weight: 500;
    color: #5d4e37;
    margin: 0 0 12px 0;
    padding-left: 10px;
    border-left: 3px solid #daa520;
}

/* Wine Table */
.listino-wines-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
}

/* Desktop: Fixed width for perfect price alignment */
@media screen and (min-width: 800px) {
    .listino-wines-table {
        width: 800px;
        margin: 0 auto;
    }
}

.listino-wines-table tbody {
    display: table-row-group;
}

.listino-wine-row {
    display: table-row;
    page-break-inside: avoid;
}

.listino-wine-row td {
    padding: 12px 0;
    border: none;
    border-bottom: 1px dotted #ccc;
}

.listino-wine-name {
    width: auto;
    padding-right: 15px;
}

.listino-wine-name strong {
    font-weight: 600;
    color: #333;
    display: block;
    font-size: 15px;
}

.listino-wine-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.listino-wine-name a:hover {
    color: #8b4513;
    text-decoration: underline;
}

.listino-wine-details {
    font-size: 12px;
    color: #777;
    font-style: italic;
    margin-top: 2px;
}

.listino-wine-price {
    white-space: nowrap;
    text-align: right;
    padding-left: 20px;
    font-weight: 700;
    font-size: 16px;
    color: #000;
}

.listino-stock-note {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}

.listino-cost-note {
    font-size: 12px;
    color: #999;
    font-style: italic;
    font-weight: 400;
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .listino-container {
        padding: 15px;
    }

    .listino-header h1 {
        font-size: 36px;
    }

    .listino-category-title {
        font-size: 26px;
    }

    .listino-region-title {
        font-size: 22px;
    }

    .listino-producer-name {
        font-size: 14px;
    }

    .listino-wine-row td {
        padding: 10px 0;
    }

    .listino-wine-name strong {
        font-size: 14px;
    }

    .listino-wine-details {
        font-size: 11px;
    }

    .listino-wine-price {
        font-size: 14px;
    }

    .listino-controls {
        flex-direction: column;
    }

    .listino-btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .listino-controls {
        display: none !important;
    }

    .listino-container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .listino-header {
        margin-bottom: 40px;
    }

    .listino-header h1 {
        font-size: 42px;
    }

    .listino-category {
        page-break-inside: avoid;
        margin-bottom: 50px;
    }

    .listino-category-title {
        font-size: 28px;
        page-break-after: avoid;
    }

    .listino-region {
        page-break-inside: avoid;
        margin-bottom: 35px;
    }

    .listino-region-title {
        font-size: 24px;
        page-break-after: avoid;
    }

    .listino-producer {
        page-break-inside: avoid;
        margin-bottom: 25px;
    }

    .listino-producer-name {
        font-size: 15px;
    }

    .listino-wine-row {
        page-break-inside: avoid;
    }

    .listino-wine-row td {
        padding: 10px 0;
        border-bottom: 1px dotted #999;
    }

    .listino-wine-name strong {
        font-size: 13px;
    }

    .listino-wine-details {
        font-size: 11px;
    }

    .listino-wine-price {
        font-size: 14px;
    }
}
