.detail-page {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    background: #f8f9fa;
}

.detail-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.loading-state,
.error-state {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #007AFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-state h2 {
    color: #333;
    margin-bottom: 12px;
}

.btn-back {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #007AFF;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.product-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.product-header {
    padding: 20px 30px;
}

.back-link {
    color: #007AFF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.back-link:hover {
    text-decoration: underline;
}

.product-main {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 30px;
    padding: 0 30px 30px 30px;
    align-items: center;
}

.product-image-container {
    width: 200px;
    height: 200px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-manufacturer {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 8px;
}

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 15px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007AFF;
}

.product-filter-cost {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.product-tag {
    background: #f0f4ff;
    color: #007AFF;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 500;
}

.summary-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.summary-section h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
}

.summary-section p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    margin-bottom: 0;
}

.reviews-inline {
    margin-top: 20px;
}

.reviews-title {
    margin-bottom: 10px;
}

.reviews-inline .reviews-list {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.reviews-inline .reviews-list li {
    margin-bottom: 4px;
}

.reviews-inline .reviews-list a {
    color: #007AFF;
    text-decoration: none;
}

.reviews-inline .reviews-list a:hover {
    text-decoration: underline;
}

.product-actions {
    display: flex;
    align-items: center;
}

.btn-buy-now-large {
    display: inline-block;
    padding: 15px 30px;
    background: #007AFF;
    color: white;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-buy-now-large:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.result-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 30px 30px;
}

.detail-section {
    padding: 25px;
    border-radius: 8px;
}

.detail-section h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.pros-section {
    background: #f8faff;
    border: 2px solid rgba(0, 122, 255, 0.3);
}

.pros-section h2 {
    color: #007aff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pros-section h2 i {
    color: #007aff;
}

.cons-section {
    background: #fff8f0;
    border: 2px solid #ffeaa7;
}

.cons-section h2 {
    color: #e17055;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cons-section h2 i {
    color: #e17055;
}

.pros-list,
.cons-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pros-list li,
.cons-list li {
    display: block;
    margin-bottom: 12px;
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
}

.pros-list li:last-child,
.cons-list li:last-child {
    margin-bottom: 0;
}

.reddit-section,
.reviews-section {
    margin: 0 40px 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    border: 2px solid #ff6b6b;
}

.reddit-section h2 {
    font-size: 1.3rem;
    color: #ff6b6b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reddit-section h2 i {
    font-size: 1.4rem;
}

.reddit-quotes {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reddit-quote {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
    margin-bottom: 10px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.review-link {
    display: block;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    color: #007AFF;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.review-link:hover {
    background: #f0f4ff;
}


@media (max-width: 900px) {
    .product-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .product-image-container {
        max-width: 400px;
        margin: 0 auto;
    }

    .product-name {
        font-size: 26px;
    }

    .product-price {
        font-size: 28px;
    }

    .product-details-grid {
        padding: 0 30px 30px;
    }

    .reddit-section,
    .reviews-section {
        margin: 0 30px 30px;
    }
}

@media (max-width: 600px) {
    .detail-page {
        margin-top: 60px;
    }

    .detail-container {
        padding: 16px;
    }

    .product-main {
        padding: 20px;
    }

    .product-header {
        padding: 16px 20px;
    }

    .product-name {
        font-size: 22px;
    }

    .product-pricing {
        flex-direction: column;
        gap: 4px;
    }

    .product-details-grid {
        padding: 0 20px 20px;
    }

    .reddit-section,
    .reviews-section {
        margin: 0 20px 20px;
        padding: 20px;
    }

    .btn-buy-now-large {
        width: 100%;
        text-align: center;
    }
}

.bottom-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 30px 40px 40px;
}

.back-to-purifiers {
    color: #007AFF;
    text-decoration: none;
    font-size: 0.95rem;
}

.back-to-purifiers:hover {
    text-decoration: underline;
}
