/* --- ZMIENNA SZEROKOŚCI --- */
:root {
    --site-width: 1000px;
}

/* --- 1. GŁÓWNA KARTA WINA --- */
.wine-presentation-card {
    max-width: var(--site-width);
    width: 100%;
    margin: 40px auto 30px auto;
    
    background: linear-gradient(135deg, #3E0013, #5D001E);
    
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 12px;
    padding: 40px;
    
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 40px;
    
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Zdjęcie */
.product-img-box {
    width: 100%;
    height: 500px;
    background: transparent;
    display: flex; 
    justify-content: center; 
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding-right: 20px;
}

.product-full-img { 
    max-height: 100%; 
    width: 90%; 
    object-fit: contain; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
}

/* Prawa strona (Info) */
.product-info { display: flex; flex-direction: column; justify-content: center; }
.product-info h1 { font-size: 1.4rem; color: #D4AF37; margin: 0 0 6px 0; line-height: 1.1; }

.product-meta { 
    color: #888; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; 
    margin-bottom: 25px; border-bottom: 1px solid rgba(212,175,55,0.2); padding-bottom: 15px; 
}

.price-area { display: flex; align-items: center; gap: 20px; margin-bottom: 30px; }
.price-big { font-size: 2.2rem; font-weight: bold; color: #fff; }

.fav-big-btn { font-size: 2rem; color: #D4AF37; background: none; border: none; cursor: pointer; transition: 0.2s; }
.fav-big-btn:hover { transform: scale(1.1); }

.desc-container { 
    background: rgba(255,255,255,0.06); 
    padding: 20px; border-radius: 8px; 
    color: #ccc; font-size: 1rem; line-height: 1.6; margin-bottom: 30px; 
    font-style: italic; border-left: 4px solid #D4AF37;
}

/* --- 2. BANER AI --- */
.ai-wrapper {
    max-width: var(--site-width);
    width: 100%;
    margin: 0 auto 30px auto;
}

.ai-banner {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(90deg, #2c000e, #3E0013);
    border: 1px solid #D4AF37; padding: 15px 25px; border-radius: 10px;
    cursor: pointer; text-decoration: none; color: #fff;
    transition: 0.3s;
}
.ai-banner:hover { filter: brightness(1.2); transform: translateY(-3px); }
.ai-text h4 { color: #D4AF37; margin: 0; font-size: 1.1rem; text-transform: uppercase; }
.ai-text p { margin: 5px 0 0; font-size: 0.9rem; color: #ccc; }
.ai-icon { font-size: 1.8rem; color: #D4AF37; margin-right: 15px; }

/* --- 2b. BANER FOOD PAIRING --- */
.pairing-banner {
    max-width: var(--site-width);
    width: 100%;
    margin: 0 auto 30px auto;
    
    background: linear-gradient(135deg, #3E0013, #5D001E);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}
.pairing-title { 
    color: #D4AF37; text-transform: uppercase; font-size: 1rem; letter-spacing: 2px; 
    margin-top:0; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); 
    display: inline-block; padding-bottom: 5px;
}
.pairing-grid {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.pairing-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.9; transition: 0.3s;
}
.pairing-item:hover { opacity: 1; transform: translateY(-3px); color: #D4AF37; }

.pairing-icon-circle {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: 2px solid #D4AF37;
    display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    color: #fff;
}
.pairing-item:hover .pairing-icon-circle { background: #D4AF37; color: black; }

.pairing-name { font-size: 0.9rem; font-weight: bold; text-transform: uppercase; color: #ccc; }

/* --- 3. SEKCJA OPINII --- */
.reviews-section { 
    max-width: var(--site-width);
    width: 50%;
    margin: 0 auto 60px auto;
    
    padding: 40px; 
    background: linear-gradient(135deg, #3E0013, #5D001E); 
    
    border-radius: 12px; 
    border: 1px solid rgba(212,175,55,0.2);
    position: relative; z-index: 2; 
}
.reviews-title { color: #D4AF37; border-bottom: 1px solid #444; padding-bottom: 15px; margin-bottom: 30px; font-size: 1.8rem; }

/* Formularz opinii */
.review-form-box { background: rgba(255,255,255,0.03); padding: 25px; border-radius: 8px; margin-bottom: 40px; border: 1px solid rgba(212,175,55,0.2); }
.review-textarea { width: 100%; background: rgba(255,255,255,0.08); border: 1px solid #555; color: #fff; padding: 15px; border-radius: 5px; margin-top: 15px; font-family: inherit; font-size: 1rem; }
.submit-review-btn { background: #D4AF37; border: none; padding: 12px 30px; font-weight: bold; margin-top: 15px; cursor: pointer; border-radius: 4px; color: black; font-size: 1rem; }
.submit-review-btn:hover { background: white; }

/* Pojedyncza opinia */
.single-review { background: rgba(255,255,255,0.03); padding: 20px; border-radius: 6px; margin-bottom: 15px; border-bottom: 1px solid rgba(212,175,55,0.2); }
.r-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.r-user { font-weight: bold; color: #D4AF37; font-size: 1.1rem; }
.r-stars { color: #f1c40f; font-size: 1rem; }
.r-text { color: #ddd; font-style: italic; font-size: 1rem; line-height: 1.5; }
.r-date { color: #666; font-size: 0.8rem; margin-top: 10px; text-align: right; }

/* --- 4. ZAMIENNIKI (AI) --- */
#zamienniki {
    max-width: var(--site-width);
    width: 100%;
    margin: 0 auto 30px auto; 
    
    padding: 30px;
    background: linear-gradient(135deg, #3E0013, #5D001E); 
    border: 1px solid rgba(212,175,55,0.2); border-radius: 12px;
    display: none; 
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Układ kafelków zamienników */
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.sub-card { background: rgba(255,255,255,0.08); border: 1px solid rgba(212,175,55,0.2); border-radius: 8px; overflow: hidden; text-decoration: none; color: #fff; transition: 0.3s; display: flex; flex-direction: column; }
.sub-card:hover { border-color: #D4AF37; transform: translateY(-5px); }
.sub-img { height: 200px; background: transparent; padding: 10px; display: flex; justify-content: center; align-items: center; border-bottom: 1px solid rgba(212,175,55,0.2); }
.sub-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.sub-info { padding: 15px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.sub-price { color: #D4AF37; font-weight: bold; font-size: 1.1rem; margin-top: 10px; }

/* --- SKLEPY I AKCJE --- */
.store-list-container { margin-top: 10px; }
.store-single { 
    background: rgba(255,255,255,0.06); 
    padding: 15px; margin-bottom: 10px; border-radius: 6px; 
    display: flex; justify-content: space-between; align-items: center; 
    border: 1px solid rgba(212,175,55,0.2); 
}
.store-actions-box { display: flex; align-items: center; gap: 15px; }

/* Przycisk Rezerwacji */
.reserve-btn-big { 
    background: #5D001E; color: #fff; border: 1px solid #D4AF37; 
    padding: 10px 30px; font-weight: bold; font-size: 1rem; 
    text-transform: uppercase; cursor: pointer; border-radius: 4px; transition: 0.3s; 
}
.reserve-btn-big:hover { background: #D4AF37; color: black; }

/* Przycisk Mapy (Prowadź) */
.map-btn-big {
    background: transparent; color: var(--gold); border: 1px solid var(--gold);
    padding: 10px 20px; font-weight: bold; font-size: 1rem;
    cursor: pointer; border-radius: 4px; transition: 0.3s;
    text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.map-btn-big:hover { background: rgba(212, 175, 55, 0.1); color: #fff; }

.badge-big { position: absolute; top: 20px; left: 20px; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.9rem; z-index: 10; letter-spacing: 1px; }
.hit-big { background: #D4AF37; color: black; }
.new-big { background: #27ae60; color: #fff; }

.rating-summary { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; color: #f1c40f; margin-bottom: 20px; }
.rating-count { color: #aaa; font-size: 0.9rem; }

/* Modal */
#order-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9999; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
.modal-content { background: linear-gradient(135deg, #3E0013, #5D001E); width: 90%; max-width: 500px; padding: 30px; border-radius: 12px; border: 1px solid #D4AF37; box-shadow: 0 0 50px rgba(212, 175, 55, 0.2); position: relative; animation: modalIn 0.3s ease-out; }
@keyframes modalIn { from {opacity:0; transform: scale(0.9);} to {opacity:1; transform: scale(1);} }

.modal-close { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; color: #888; cursor: pointer; }
.form-group { margin-bottom: 15px; text-align: left; }
.form-label { display: block; color: #D4AF37; margin-bottom: 5px; font-weight: bold; font-size: 0.9rem; }
.form-input { width: 100%; padding: 12px; background: rgba(255,255,255,0.1); border: 1px solid #555; color: #fff; border-radius: 5px; }
.confirm-btn { width: 100%; background: #5D001E; color: #fff; border: none; padding: 15px; font-size: 1.1rem; font-weight: bold; text-transform: uppercase; border-radius: 5px; margin-top: 10px; border: 1px solid #D4AF37; cursor: pointer; }
.confirm-btn:hover { background: #D4AF37; color: black; }

/* Gwiazdki */
.rate { float: left; height: 46px; padding: 0 10px; }
.rate:not(:checked) > input { position:absolute; top:-9999px; }
.rate:not(:checked) > label { float:right; width:1em; overflow:hidden; white-space:nowrap; cursor:pointer; font-size:30px; color:#ccc; }
.rate:not(:checked) > label:before { content: '★ '; }
.rate > input:checked ~ label { color: #ffc700; }
.rate:not(:checked) > label:hover, .rate:not(:checked) > label:hover ~ label { color: #deb217; }
.rate > input:checked + label:hover, .rate > input:checked + label:hover ~ label, .rate > input:checked ~ label:hover, .rate > input:checked ~ label:hover ~ label, .rate > label:hover ~ input:checked ~ label { color: #c59b08; }

@media (max-width: 900px) { 
    .wine-presentation-card, .ai-wrapper, .pairing-banner, .reviews-section, #zamienniki { width: 95% !important; }
    .wine-presentation-card { grid-template-columns: 1fr; text-align: center; }
    .product-img-box { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; margin-bottom: 20px; height: 350px; }
    .store-single { flex-direction: column; gap: 15px; text-align: center; }
    .store-actions-box { flex-direction: column; width: 100%; }
    .reserve-btn-big, .map-btn-big { width: 100%; justify-content: center; }
}
