/* ─────────────────────────────────────────────────────────────────────
 * Product show page — layout, hero, details grid, booking section,
 * description section, section card chrome, mobile breakpoints.
 * Extracted from app/Views/products/show.php inline <style> block.
 *
 * Seller card (right rail) and reviews are split into their own files:
 *   components/seller-card.css
 *   components/reviews.css
 *
 * Tokens-only is the eventual target — this first pass preserves values
 * verbatim except for one #fff → var(--text-inverse) substitution. Raw
 * rgba/hex/radii cleanup tracked in 0427_css_inconsistencies.md §2.3.
 * ───────────────────────────────────────────────────────────────────── */

/* ---------- Two-column layout ---------- */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2.5rem;
    align-items: start;
}

.product-main {
    min-width: 0;
}

.product-sidebar {
    position: relative;
}

.product-sidebar .seller-card {
    position: sticky;
    top: 2rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-nav {
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
}

.breadcrumb-nav a {
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--primary, #366235);
}

/* ---------- Hero image ---------- */
.product-image-wrapper {
    position: relative;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-image-wrapper:hover .product-image {
    transform: scale(1.04);
}

/* Subtle bottom gradient for visual depth */
.product-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.12) 0%, transparent 100%);
    pointer-events: none;
}

/* Image action buttons */
.product-image-actions button {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.product-image-actions button:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Category badge */
.product-category-badge {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.02em;
}

/* ---------- Product info section ---------- */
.product-info-section {
    padding: 1.75rem 1.5rem 1.5rem;
}

@media (min-width: 640px) {
    .product-info-section {
        padding: 2rem 2.25rem 2.25rem;
    }
}

.product-header-flex {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.product-header-flex .price-box {
    flex-shrink: 0;
}

.product-title {
    font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 800;
}

/* ---------- Price box ---------- */
.price-box .price-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    color: var(--text-inverse);
    box-shadow:
        0 4px 6px -1px rgba(0,0,0,0.1),
        0 10px 20px -5px rgba(0,0,0,0.12);
}

.price-box .price-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
}

.price-box .price-amount {
    font-size: clamp(1.75rem, 2vw + 0.5rem, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.price-box .price-label {
    font-size: 0.8125rem;
    opacity: 0.85;
    font-weight: 500;
}

/* ---------- Details grid ---------- */
.details-grid > div {
    position: relative;
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    text-align: center;
    border: 1px solid transparent;
}

.details-grid .detail-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.details-grid > div:hover .detail-icon {
    transform: scale(1.08);
}

.details-grid .detail-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.details-grid .detail-value {
    font-size: 0.9375rem;
    font-weight: 700;
}

/* ---------- Booking section ---------- */
.booking-section {
    border-radius: 1.25rem;
    padding: 1.5rem;
    position: relative;
    border: 1px solid var(--border-primary);
}

@media (min-width: 640px) {
    .booking-section {
        padding: 2rem;
    }
}

.booking-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-primary);
}

.booking-section-header h2 {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.booking-section-header .booking-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- Description section ---------- */
.product-description-section {
    border-radius: 1.25rem;
    padding: 2rem;
}

.product-description-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.product-description-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 2.5rem;
    height: 3px;
    border-radius: 2px;
    background: var(--gradient-primary);
}

.product-description {
    line-height: 1.8;
    color: var(--text-secondary);
}

.product-description p {
    margin-bottom: 1rem;
}

.product-description ul,
.product-description ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

.product-description li {
    margin-bottom: 0.5rem;
}

.product-description h1,
.product-description h2,
.product-description h3,
.product-description h4,
.product-description h5,
.product-description h6 {
    color: var(--text-primary) !important;
    line-height: 1.3 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    text-transform: none !important;
}
.product-description h1 { font-size: 2rem !important; font-weight: 800 !important; }
.product-description h2 { font-size: 1.625rem !important; font-weight: 700 !important; }
.product-description h3 { font-size: 1.375rem !important; font-weight: 700 !important; }
.product-description h4 { font-size: 1.125rem !important; font-weight: 600 !important; }
.product-description h5 { font-size: 0.9375rem !important; font-weight: 600 !important; color: var(--text-secondary) !important; }
.product-description h6 { font-size: 0.8125rem !important; font-weight: 500 !important; color: var(--text-secondary) !important; }

/* ---------- Section cards shared (extends .hp2-card) ---------- */
.product-section-card {
    margin-bottom: 1.5rem;
}

/* ---------- Medium screens ---------- */
@media (min-width: 769px) and (max-width: 1023px) {
    .product-layout {
        grid-template-columns: 1fr 300px;
        gap: 1.5rem;
    }

    .product-image {
        height: 400px;
    }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .product-sidebar {
        order: -1; /* Move seller card above reviews on mobile */
    }

    .product-sidebar .seller-card {
        position: relative;
        top: 0;
    }

    .product-header-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .product-header-flex .price-box {
        width: 100%;
    }

    .product-image {
        height: 240px;
    }

    .product-info-section {
        padding: 0.875rem 0.625rem;
    }

    .product-section-card {
        margin-bottom: 0.75rem;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    .details-grid > div {
        padding: 0.75rem 0.5rem;
        border-radius: 0.75rem;
    }

    .details-grid .detail-icon {
        width: 2rem;
        height: 2rem;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }

    .details-grid .detail-label {
        font-size: 0.625rem;
        margin-bottom: 0.125rem;
    }

    .details-grid .detail-value {
        font-size: 0.8125rem;
    }

    .price-box .price-card {
        padding: 0.875rem 1rem;
        border-radius: 0.75rem;
    }

    .price-box .price-label {
        font-size: 0.75rem;
    }

    .breadcrumb-nav {
        flex-wrap: wrap;
    }

    .breadcrumb-nav li:last-child {
        max-width: 100%;
        word-break: break-word;
    }

    .booking-section {
        padding: 1rem;
        border-radius: 1rem;
    }

    .booking-section-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .booking-section-header .booking-icon {
        width: 2rem;
        height: 2rem;
        border-radius: 0.5rem;
    }

    .booking-section-header h2 {
        font-size: 1rem;
    }

    .product-description-section {
        padding: 0.875rem 0.625rem;
    }

    .product-description-section h2 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .product-description {
        line-height: 1.7;
        font-size: 0.9375rem;
    }
}

/* ---------- Extra small ---------- */
@media (max-width: 480px) {
    .product-image {
        height: 200px;
    }

    .price-box .price-amount {
        font-size: 1.5rem;
    }
}
