/* ETERNAL FLOWER - VISITOR PRODUCT VIEW CSS */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Poppins:wght@300;400;600&display=swap');

:root {
    --ink: #433422;
    --gold: #c5a059;
    --soft-cream: rgba(255, 253, 240, 0.9);
    --gold-border: rgba(197, 160, 89, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.visitor-details-body {
    font-family: 'Poppins', sans-serif;
    color: var(--ink);
    background-image: url('images/b7.png') !important;
    background-size: cover !important;
    background-attachment: fixed;
    background-position: center;
    min-height: 100vh; /* Changed from fixed height to min-height */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.visitor-glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    padding: 40px; 
    width: 85%;
    max-width: 950px; 
    height: auto; /* Allow card to grow with text */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.content-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start; /* Align items to top */
}

.image-area {
    flex: 1;
}

.image-area img {
    width: 100%;
    max-width: 400px; /* Slightly larger for detail */
    border-radius: 25px;
    display: block;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.info-area { flex: 1.2; }

.top-label {
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 5px;
}

.display-name {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem; 
    margin-bottom: 10px;
    line-height: 1.1;
}

.desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* --- UPDATED SPECS SECTION (Prevents Crumpling) --- */
.specs-row {
    display: flex;
    flex-direction: column; /* Stacks Material and Sustainability */
    background: rgba(255, 253, 240, 0.7);
    padding: 20px;
    border-radius: 15px;
    gap: 20px; /* Space between the blocks */
    margin: 20px 0;
    border: 1px solid var(--gold-border);
}

.spec-tile {
    width: 100%;
}

.spec-tile small {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.spec-tile p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.price-box { 
    font-size: 2.2rem; 
    font-weight: 600; 
    margin-bottom: 25px; 
    color: var(--ink);
}

.visitor-actions { display: flex; gap: 15px; }

.btn-guest-cart, .btn-guest-order {
    flex: 1;
    text-decoration: none;
    text-align: center;
    padding: 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

.btn-guest-cart { 
    background: transparent; 
    color: var(--gold); 
    border: 2px solid var(--gold); 
}

.btn-guest-cart:hover {
    background: var(--gold);
    color: white;
}

.btn-guest-order { 
    background: var(--gold); 
    color: white; 
    border: none; 
}

.btn-guest-order:hover {
    background: #ac8b4d;
    transform: translateY(-2px);
}

.exit-btn { 
    position: absolute; 
    top: 25px; 
    right: 30px; 
    color: var(--ink); 
    font-size: 1.2rem; 
    text-decoration: none;
    z-index: 10;
}

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
    .content-flex { 
        flex-direction: column; 
        align-items: center;
    }
    
    .image-area img { 
        max-width: 100%; 
    }

    .visitor-glass-card {
        width: 95%;
        padding: 20px;
    }
}