/*
 * Clear Round — lager single-product page.
 * Carousel, layout and product-info styles previously inlined in
 * lager/post.php. Extracted as part of Phase 6 asset extraction.
 */

/* ── Carousel ────────────────────────────────── */
.product-carousel {
    position: relative;
    background: #000;
    overflow: hidden;
    border-radius: 12px;
    max-height: 500px;
}
.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}
.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    display: block;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1a2332;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s;
    z-index: 2;
}
.carousel-btn:hover { background: #fff; }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.carousel-dot.active {
    background: #1a2332;
}

.carousel-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.75rem 0;
}
.carousel-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
    flex-shrink: 0;
}
.carousel-thumb.active {
    border-color: #1a2332;
}

/* Empty-state placeholder shown when a lager entry has no images. */
.product-image-placeholder {
    background: #f3f4f6;
    border-radius: 12px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 3rem;
}

/* ── Product layout ──────────────────────────── */
.product-page {
    padding: 8rem 0 4rem;
}
.product-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
    align-items: start;
}

.product-info {
    padding-top: 0.5rem;
}

.product-category {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.8rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.product-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a2332;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.product-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.product-price-item {
    font-size: 0.85rem;
    color: #6b7280;
}
.product-price-item strong {
    display: block;
    font-size: 1.3rem;
    color: #1a2332;
}

/* Finance box */
.product-finance {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.product-finance h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.product-finance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 1.5rem;
}
.product-finance-item {
    font-size: 0.85rem;
    color: #6b7280;
}
.product-finance-item strong {
    color: #1a2332;
}

.product-desc {
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.product-desc p {
    margin: 0 0 1rem;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.product-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}
.btn-hembesok {
    background: linear-gradient(135deg, #97BFB4 0%, #4F8F87 100%);
    color: #fff;
    font-size: 1.05rem !important;
    padding: 1rem 1.5rem !important;
}
.btn-hembesok:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79, 143, 135, 0.35);
}
.btn-product-ext {
    background: #1a2332;
    color: #fff;
}
.btn-product-ext:hover {
    background: #2c3e50;
}
.btn-back {
    background: #f3f4f6;
    color: #374151;
}
.btn-back:hover {
    background: #e5e7eb;
}

@media (max-width: 900px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
    .carousel-slide img {
        height: 300px;
    }
    .product-carousel {
        max-height: 300px;
    }
    .product-title {
        font-size: 1.4rem;
    }
}
