/* Winery Print Label Styles */

@media print {
    @page {
        size: A4;
        margin: 15mm;
    }
    body {
        margin: 0;
        padding: 0;
    }
    .no-print {
        display: none !important;
    }
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background: white;
}

.print-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
}

.winery-header {
    text-align: center;
    border-bottom: 3px double #8B4513;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.winery-logo {
    max-width: 250px;
    max-height: 250px;
    margin: 0 auto 20px;
    display: block;
    border: 2px solid #8B4513;
    padding: 15px;
    background: white;
    object-fit: contain;
}

.winery-title {
    font-size: 36px;
    font-weight: bold;
    color: #8B4513;
    margin: 10px 0;
}

.location-info {
    font-size: 18px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

.location-badge {
    display: inline-block;
    background: #2d5a2d;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 16px;
    margin-top: 15px;
}

.section {
    margin-bottom: 30px;
    page-break-inside: avoid;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #8B4513;
    border-bottom: 2px solid #D2691E;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.info-table td:first-child {
    font-weight: bold;
    width: 30%;
    color: #666;
}

.description-box {
    background: #f9f9f9;
    border-left: 4px solid #8B4513;
    padding: 15px;
    margin: 15px 0;
    font-style: italic;
    line-height: 1.8;
}

.wines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.wine-card {
    position: relative;
    border: 2px solid #8B4513;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    background: #f9f9f9;
}

.wine-card.selected {
    border-color: #2d5a2d;
    background: #f0f9f0;
}

.wine-checkbox-wrapper {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.wine-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 2px solid #8B4513;
    background: white;
    border-radius: 4px;
}

.wine-checkbox:checked {
    background: #2d5a2d;
    border-color: #2d5a2d;
}

.wine-card-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    object-fit: contain;
    border-radius: 5px;
}

.wine-card-name {
    font-weight: bold;
    font-size: 14px;
    color: #8B4513;
    margin-bottom: 5px;
}

.wine-card-vintage {
    font-size: 12px;
    color: #666;
}

.winery-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.winery-image-container {
    position: relative;
    border: 2px solid #8B4513;
    border-radius: 5px;
    background: #f9f9f9;
    padding: 10px;
}

.winery-image-container.selected {
    border-color: #2d5a2d;
    background: #f0f9f0;
}

.winery-image {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 300px;
    object-fit: contain;
    border-radius: 5px;
}

.image-checkbox-wrapper {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.image-checkbox {
    width: 24px;
    height: 24px;
    cursor: pointer;
    border: 2px solid #8B4513;
    background: white;
    border-radius: 4px;
}

.image-checkbox:checked {
    background: #2d5a2d;
    border-color: #2d5a2d;
}

.select-all-btn {
    background: #2d5a2d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
}

.select-all-btn:hover {
    background: #3d6a3d;
}

.deselect-all-btn {
    background: #8B4513;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
    margin-left: 10px;
}

.deselect-all-btn:hover {
    background: #A0522D;
}

.print-button {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #8B4513;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
}

.print-button:hover {
    background: #A0522D;
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #8B4513;
    color: #666;
    font-size: 12px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.contact-item {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 5px;
    border-left: 3px solid #8B4513;
}

.contact-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 5px;
}

.contact-value {
    font-size: 14px;
    color: #333;
}
