/* --- 4. Product Hero --- */
.page-container {
    max-width: var(--container-width); margin: 0 auto;
    padding: 8rem 1rem 4rem 1rem;
}

.product-hero {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; margin-bottom: 4rem;
}

.product-gallery {
    display: flex; flex-direction: column; gap: 1rem;
}

/* Updated Main Image Styles for fitting */
.main-image {
    width: 100%; height: 400px; border-radius: 1.5rem; overflow: hidden;
    background: #e5e7eb; /* Fallback color */
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
    position: relative;
    cursor: pointer;
    display: block; /* Removed flex centering to allow img to fill */
}

/* Ensure any image fits perfectly */
.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover: fills container, crops if needed. Contain: fits inside, shows background. */
    display: block;
    transition: transform 0.3s ease;
}

.image-caption {
    position: absolute;
    bottom: -120px;
    left: 0; width: 100%;
    padding: 1.25rem 1.5rem;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left; color: white;
    display: flex; flex-direction: column; gap: 0.25rem;
    transition: bottom 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 10;
}

.main-image:hover .image-caption,
.image-caption.visible {
    bottom: 0;
}

.caption-title { font-size: 1rem; font-weight: 700; color: white; display: flex; align-items: center; gap: 0.5rem; }
.caption-desc { font-size: 0.85rem; color: #9ca3af; }
.caption-icon { width: 16px; height: 16px; color: var(--primary-orange); }

.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

.thumb {
    height: 80px; border-radius: 1rem; cursor: pointer; transition: 0.2s; overflow: hidden;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background: #e5e7eb;
}
.thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.thumb.active { border-color: var(--primary-orange); transform: scale(0.95); }
.thumb:hover { transform: translateY(-2px); }

.product-info {
    padding: 2rem; border-radius: 2rem; display: flex; flex-direction: column; gap: 1.5rem;
}
.product-badge {
    background: rgba(249, 115, 22, 0.1); color: var(--primary-orange);
    padding: 0.25rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 700;
    width: fit-content; text-transform: uppercase; letter-spacing: 0.05em;
}

.product-title { font-size: 2.5rem; font-weight: 800; line-height: 1.1; color: var(--text-main); }
.product-price { font-size: 2rem; font-weight: 700; color: var(--primary-orange); display: flex; align-items: center; gap: 0.5rem; }
.product-price span { font-size: 1rem; color: var(--text-muted); font-weight: 500; text-decoration: line-through; }

.product-desc { font-size: 1.1rem; color: var(--text-muted); line-height: 1.6; }

.action-group { display: flex; gap: 1rem; margin-top: 1rem; }
.btn-large {
    flex: 1; padding: 1rem; border-radius: 1rem; font-weight: 700; font-size: 1rem;
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transition: 0.2s;
}
.btn-primary {
    background: var(--primary-orange); color: white;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.3);
}
.btn-primary:hover { transform: translateY(-3px); background: var(--primary-orange-hover); }

.btn-secondary {
    background: white; color: var(--text-main); border: 1px solid var(--glass-border);
}
.btn-secondary:hover { background: #f9fafb; border-color: #d1d5db; }

/* --- 5. Features & Specs --- */
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    padding: 2rem; border-radius: 1.5rem;
}
.feature-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.feature-icon {
    width: 40px; height: 40px; border-radius: 10px; background: #fff7ed;
    display: flex; align-items: center; justify-content: center; color: var(--primary-orange);
}

.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.check-item { display: flex; gap: 0.75rem; color: #4b5563; font-size: 0.95rem; }
.check-icon { color: #10b981; flex-shrink: 0; }

/* --- 6. Feedback Section --- */
.feedback-section { margin-top: 2rem; }
.section-heading { font-size: 1.5rem; font-weight: 800; margin-bottom: 2rem; }

.review-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem;
}

.review-card {
    padding: 1.5rem; border-radius: 1.5rem; display: flex; flex-direction: column; gap: 1rem;
}
.reviewer { display: flex; align-items: center; gap: 1rem; }
.reviewer-avatar {
    width: 48px; height: 48px; border-radius: 50%; background: #e5e7eb;
    object-fit: cover; border: 2px solid white;
}
.reviewer-info h4 { font-size: 0.95rem; font-weight: 700; margin: 0; }
.rating { display: flex; gap: 0.1rem; color: #fbbf24; font-size: 0.8rem; margin-top: 0.2rem; }
.review-text { font-size: 0.9rem; color: #4b5563; line-height: 1.6; font-style: italic; }

@media (max-width: 900px) {
    .page-container { padding-top: 6rem; }
    .product-hero { grid-template-columns: 1fr; }
    .main-image { height: 300px; }
}
