/* Bottle Detail Page Specific Styles */

/* Main Content */
main.container { 
    padding-top: 70px; 
    padding-bottom: var(--spacing-xl); 
}

/* Section Containers */
.section-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 48px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.section-card.product-hero {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
}

.section-card.dark-theme {
    background-color: var(--bg-surface);
}

[data-theme="dark"] .section-card.dark-theme {
    background-color: var(--bg-surface-dark);
    border-color: var(--border-on-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.section-card.producer-section {
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

[data-theme="dark"] .section-card.producer-section {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline; 
    margin-bottom: 24px; 
    border-bottom: 1px solid var(--border-subtle); 
    padding-bottom: 16px;
}

.section-title { 
    font-size: 1.5rem; 
    font-family: var(--font-heading); 
    color: var(--text-page-heading); 
}

.section-title-external {
    font-size: 1.5rem; 
    font-family: var(--font-heading); 
    color: var(--text-page-heading);
    margin-bottom: 24px;
}

/* Product Hero */
.product-hero { 
    padding: 0; 
    display: flex; 
    position: relative; 
}

.hero-producer-banner { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    height: 280px; 
    background-image: url('https://images.unsplash.com/photo-1568213816046-0ee1c42bd559?auto=format&fit=crop&q=80&w=1200'); 
    background-size: cover; 
    background-position: center;
    opacity: 0.9; 
    z-index: 0; 
}

.producer-logo-overlay { 
    position: absolute; 
    top: 24px; 
    right: 24px; 
    max-width: 120px; 
    max-height: 60px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 1; 
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); 
}

.producer-logo-overlay img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
}

.hero-visuals { 
    width: 35%; 
    padding: 0; 
    padding-top: 80px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    position: relative; 
    z-index: 1; 
}

.carousel-container { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    overflow: hidden; 
}

.hero-visuals .bottle-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.carousel-dots { 
    position: absolute; 
    bottom: 16px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 8px; 
    z-index: 2; 
}

.dot { 
    width: 8px; 
    height: 8px; 
    background: rgba(255,255,255,0.6); 
    border-radius: 50%; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.3); 
}

.dot.active { 
    background: var(--action-primary); 
}

.nav-arrow { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    font-size: 32px; 
    color: rgba(255,255,255,0.8); 
    cursor: pointer; 
    z-index: 2; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
    padding: 8px; 
}

.nav-arrow:hover { 
    color: white; 
}

.nav-arrow.left { 
    left: 12px; 
}

.nav-arrow.right { 
    right: 12px; 
}

.add-img-btn { 
    position: absolute; 
    bottom: 50px; 
    left: 50%; 
    transform: translateX(-50%); 
    font-size: 12px; 
    color: white; 
    background: rgba(196, 97, 27, 0.9); 
    border: 1px dashed rgba(255,255,255,0.5); 
    padding: 6px 16px; 
    border-radius: 20px; 
    cursor: pointer; 
    z-index: 2; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.3); 
}

.hero-data { 
    width: 65%; 
    padding: 32px; 
    padding-top: 200px; 
    display: flex; 
    flex-direction: column; 
    z-index: 1; 
}

.breadcrumbs { 
    font-size: 14px; 
    color: rgba(255,255,255,0.9); 
    margin-bottom: 12px; 
    text-shadow: 0 1px 3px rgba(0,0,0,0.3); 
}

.title-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 8px; 
}

.product-title { 
    font-size: 2.5rem; 
    line-height: 1.1; 
    margin: 0; 
    color: white; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); 
}

.vintage-selector { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 1.25rem; 
    font-weight: bold; 
    color: var(--text-secondary); 
    border-bottom: 2px dotted var(--text-secondary); 
    cursor: pointer; 
    margin-top: 32px; 
    margin-bottom: 16px; 
}

.hero-specs { 
    display: flex; 
    gap: 24px; 
    margin-bottom: 24px; 
    font-size: 13px; 
    color: var(--text-secondary); 
    border-bottom: 1px solid var(--border-subtle); 
    padding-bottom: 16px; 
}

.spec-item strong { 
    color: var(--text-primary); 
    display: block; 
    text-transform: uppercase; 
    font-size: 11px; 
}

.ratings-grid { 
    display: grid; 
    grid-template-columns: auto auto 1fr; 
    gap: 32px; 
    margin-bottom: 24px; 
}

.rating-group { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
}

.rating-label { 
    font-size: 11px; 
    text-transform: uppercase; 
    color: var(--text-secondary); 
    letter-spacing: 0.5px; 
}

.star-rating { 
    color: #FFD700; 
    font-size: 1.25rem; 
    letter-spacing: 2px; 
}

.critic-badges { 
    display: flex; 
    gap: 8px; 
    margin-top: 4px; 
}

.critic-badge { 
    background: #eee; 
    padding: 2px 6px; 
    border-radius: 4px; 
    font-size: 12px; 
    font-weight: bold; 
    color: #333; 
}

/* Keep hero-data text colors in light theme even when dark theme is active */
[data-theme="dark"] .hero-data .vintage-selector,
[data-theme="dark"] .hero-data .hero-specs,
[data-theme="dark"] .hero-data .spec-item strong,
[data-theme="dark"] .hero-data .rating-label {
    color: #555555;
}

[data-theme="dark"] .hero-data .spec-item strong {
    color: #1A1A1A;
}

[data-theme="dark"] .hero-data .critic-badge {
    color: #333;
}

[data-theme="dark"] .hero-data .hero-specs {
    border-bottom-color: #E0E0E0;
}

[data-theme="dark"] .hero-data .ratings-grid .rating-group {
    border-right-color: #eee;
}

[data-theme="dark"] .hero-data span[style*="color: #666"],
[data-theme="dark"] .hero-data span[style*="color:#666"] {
    color: #666 !important;
}

[data-theme="dark"] .hero-data span[style*="color:var(--text-primary)"],
[data-theme="dark"] .hero-data span[style*="color: var(--text-primary)"] {
    color: #1A1A1A !important;
}

/* Management Zone */
.management-zone { 
    margin-top: auto; 
    padding: 20px; 
    background-color: var(--bg-surface-hover); 
    border-radius: 8px; 
    border: 1px solid var(--border-subtle); 
}

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

.inventory-details { 
    font-size: 12px; 
    color: #666; 
    display: flex; 
    gap: 12px; 
}

.detail-pill { 
    background: white; 
    padding: 2px 8px; 
    border-radius: 4px; 
    border: 1px solid var(--border-subtle); 
}

.primary-actions { 
    display: flex; 
    gap: 16px; 
    align-items: center; 
}

.btn-fav {
    font-size: 24px; 
    color: #ccc; 
    background: transparent; 
    border: none; 
    cursor: pointer;
    transition: color 0.2s, transform 0.2s; 
    padding: 0 12px;
}

.btn-fav:hover { 
    color: #e91e63; 
    transform: scale(1.1); 
}

.btn-fav.active { 
    color: #e91e63; 
}

[data-theme="dark"] .hero-data .management-zone .inventory-details {
    color: #666;
}

[data-theme="dark"] .hero-data .management-zone .inventory-header span[style*="color:#666"],
[data-theme="dark"] .hero-data .management-zone .inventory-header span[style*="color: #666"] {
    color: #666 !important;
}

[data-theme="dark"] .hero-data .management-zone .inventory-header span[style*="color:var(--text-primary)"],
[data-theme="dark"] .hero-data .management-zone .inventory-header span[style*="color: var(--text-primary)"] {
    color: #1A1A1A !important;
}

/* Split Columns Layout */
.split-columns { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 48px; 
}

.col-header { 
    font-size: 1.1rem; 
    font-weight: bold; 
    margin-bottom: 16px; 
    color: var(--text-secondary); 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.col-header .avg-rating { 
    font-size: 0.9rem; 
    color: #FFD700; 
    font-weight: normal; 
    margin-left: 8px; 
}

[data-theme="dark"] .section-card.dark-theme .col-header {
    color: var(--text-on-dark);
}

[data-theme="dark"] .section-card.dark-theme .empty-state {
    color: var(--text-secondary);
}

.col-content { 
    max-height: 600px; 
    overflow-y: auto; 
    padding-right: 8px; 
}

.col-content::-webkit-scrollbar { 
    width: 6px; 
}

.col-content::-webkit-scrollbar-track { 
    background: #f1f1f1; 
    border-radius: 3px; 
}

.col-content::-webkit-scrollbar-thumb { 
    background: #ccc; 
    border-radius: 3px; 
}

.col-content::-webkit-scrollbar-thumb:hover { 
    background: #999; 
}

.add-new-card { 
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background-color: var(--action-primary);
    color: white;
    margin-bottom: 24px;
    transition: background-color 0.2s ease;
}

.add-new-card:hover { 
    background-color: var(--action-primary-hover);
}

.add-icon { 
    font-size: 14px; 
    margin-right: 4px; 
}

.add-new-card h3 { 
    font-size: 1rem; 
    margin: 0; 
    display: inline; 
    font-weight: 600; 
}

.add-new-card p { 
    display: none; 
}

/* Content Cards */
.content-item { 
    border-bottom: 1px solid var(--border-subtle); 
    margin-bottom: 24px; 
    display: flex; 
    gap: 16px; 
    align-items: stretch;
    background: var(--bg-surface);
    padding: 0 16px 0 0;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.content-item > div:not(.user-bottle-img):not(.community-bottle-img) {
    padding-bottom: 24px;
}

[data-theme="dark"] .section-card.dark-theme .content-item {
    background: var(--bg-surface);
    border-color: var(--border-on-dark);
}

.user-bottle-img, .community-bottle-img { 
    width: 100px; 
    min-width: 100px; 
    min-height: 130px; 
    background: #f5f5f5; 
    flex-shrink: 0; 
    overflow: hidden; 
    border-radius: 8px 0 0 8px; 
    display: flex; 
    align-items: stretch; 
    justify-content: center; 
    margin: 0; 
    padding: 0; 
    align-self: stretch; 
}

.user-bottle-img img, .community-bottle-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
}

/* Pairing Cards */
.pairing-card { 
    display: flex; 
    gap: 16px; 
    padding: 0 16px 0 0;
    margin-bottom: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    align-items: stretch;
    height: 120px;
}

[data-theme="dark"] .section-card.dark-theme .pairing-card {
    background: var(--bg-surface);
    border-color: var(--border-on-dark);
}

.pairing-img { 
    width: 120px; 
    min-width: 120px; 
    height: 100%; 
    background: #eee; 
    border-radius: 8px 0 0 8px; 
    object-fit: cover; 
    flex-shrink: 0; 
    margin: 0; 
    display: block; 
    align-self: stretch; 
}

.pairing-content { 
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.pairing-header { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 4px; 
}

.pairing-type { 
    font-size: 11px; 
    font-weight: bold; 
    text-transform: uppercase; 
    color: var(--text-secondary); 
    background: #f0f0f0; 
    padding: 2px 6px; 
    border-radius: 4px; 
}

.pairing-rating { 
    font-weight: bold; 
}

.pairing-rating.good { 
    color: green; 
}

.pairing-rating.bad { 
    color: red; 
}

.pairing-note { 
    font-size: 14px; 
    color: #333; 
    margin-top: 4px; 
    line-height: 1.4; 
}

/* Producer Section */
.producer-banner { 
    position: relative; 
    width: 100%;
    height: 300px; 
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin: 0;
}

.producer-banner img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.producer-name-overlay {
    position: absolute;
    bottom: 24px;
    left: 32px;
    color: white;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 2;
}

.producer-bio-img-container {
    width: 200px;
    height: 200px;
    background: #333;
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.producer-bio-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.producer-img-carousel-nav { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    font-size: 24px; 
    color: rgba(255,255,255,0.8); 
    cursor: pointer; 
    z-index: 2; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
    padding: 4px; 
}

.producer-img-carousel-nav:hover { 
    color: white; 
}

.producer-img-carousel-nav.left { 
    left: 4px; 
}

.producer-img-carousel-nav.right { 
    right: 4px; 
}

.producer-img-carousel-dots { 
    position: absolute; 
    bottom: 8px; 
    left: 50%; 
    transform: translateX(-50%); 
    display: flex; 
    gap: 6px; 
    z-index: 2; 
}

.producer-info-col { 
    flex: 1; 
}

.producer-meta-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
    margin-top: 16px; 
    font-size: 13px; 
    color: #555; 
}

.producer-map { 
    width: 200px; 
    height: 200px; 
    border-radius: 8px; 
    flex-shrink: 0; 
    position: relative; 
    overflow: hidden; 
}

.producer-map img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.producer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 24px; 
}

.v-card { 
    background-color: var(--bg-surface); 
    border: 1px solid var(--border-subtle); 
    border-radius: 8px; 
    overflow: hidden; 
    transition: transform 0.2s; 
}

.v-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
}

.v-card-img { 
    height: 240px; 
    background-color: #fff; 
    display: flex; 
    align-items: flex-start; 
    justify-content: center; 
    position: relative; 
    margin: 0; 
    padding: 0; 
    border-radius: 8px 8px 0 0; 
    overflow: hidden; 
}

.v-card-img img { 
    height: 100%; 
    width: 100%; 
    object-fit: cover; 
    mix-blend-mode: multiply; 
}

.v-card-body { 
    padding: 16px; 
    text-align: left; 
}

.v-card-price { 
    font-weight: bold; 
    color: var(--text-primary); 
    float: right; 
}

.v-card-badge { 
    position: absolute; 
    top: 8px; 
    left: 8px; 
    background: #d32f2f; 
    color: white; 
    font-size: 10px; 
    padding: 2px 6px; 
    border-radius: 4px; 
}

/* Discovery Section */
.discovery-section { 
    margin-top: 64px; 
    margin-bottom: 64px; 
}

.h-card-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr)); 
    gap: 24px; 
}

.h-card { 
    display: flex; 
    background: var(--bg-surface); 
    border: 1px solid var(--border-subtle); 
    border-radius: 8px; 
    overflow: hidden; 
    transition: transform 0.2s; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
    min-height: 180px;
}

.h-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 8px 20px rgba(0,0,0,0.12); 
}

.h-card-img { 
    width: 160px; 
    min-width: 160px;
    background: #FFFFFF; 
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
}

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

.h-card-body { 
    padding: 20px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    min-width: 0; 
}

.h-card-title { 
    font-size: 18px; 
    margin: 4px 0 8px 0; 
    line-height: 1.3; 
}

.h-card-meta { 
    font-size: 12px; 
    color: var(--text-secondary); 
    display: flex; 
    justify-content: space-between; 
    margin-top: auto; 
    align-items: center; 
    gap: 8px; 
    flex-wrap: wrap; 
}

