/* Product Detail Page Styles */

.product-detail {
    padding: 60px 0;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Product Images */
.product-images {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: auto;
}

.image-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--danger-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.thumbnail-images {
    display: flex;
    gap: 15px;
}

.thumbnail-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail-images img:hover {
    border-color: var(--primary-color);
}

/* Product Main Info */
.product-main-info h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-300);
}

.product-rating-large {
    font-size: 18px;
}

.rating-count {
    color: var(--gray-600);
    font-size: 16px;
}

.product-sku {
    color: var(--gray-600);
    font-size: 14px;
}

.product-price-section {
    margin-bottom: 30px;
}

.price-main {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.price-per-mg {
    color: var(--gray-600);
    font-size: 14px;
}

.product-highlights {
    background-color: var(--gray-100);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-icon {
    font-size: 20px;
    color: var(--secondary-color);
}

.product-description-short {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-actions {
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-selector label {
    font-weight: 600;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    border-radius: var(--border-radius);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.qty-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

#quantity {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 16px;
}

.add-to-cart-btn {
    width: 100%;
    font-size: 18px;
}

.bulk-pricing {
    background-color: var(--light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
}

.bulk-pricing h4 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.bulk-pricing ul {
    list-style: none;
}

.bulk-pricing li {
    padding: 8px 0;
    color: var(--gray-700);
}

.trust-seals {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-300);
}

.trust-seals img {
    width: 80px;
    height: 80px;
}

/* Product Tabs */
.product-tabs {
    padding: 60px 0;
    background-color: var(--gray-100);
}

.tabs-header {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--gray-300);
    overflow-x: auto;
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tabs-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    margin-bottom: 25px;
}

.tab-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.tab-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.tab-content li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.warning-box {
    background-color: #FFF3CD;
    border-left: 4px solid #FFC107;
    padding: 20px;
    margin: 30px 0;
    border-radius: var(--border-radius);
}

.warning-box h4 {
    color: #856404;
    margin-bottom: 10px;
}

.warning-box p {
    color: #856404;
    margin: 0;
}

/* Dosing Table */
.dosing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.dosing-table th,
.dosing-table td {
    padding: 12px;
    text-align: left;
    border: 1px solid var(--gray-300);
}

.dosing-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.dosing-table tbody tr:nth-child(even) {
    background-color: var(--gray-100);
}

/* Specs Table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.specs-table tr {
    border-bottom: 1px solid var(--gray-300);
}

.specs-table th {
    padding: 15px;
    text-align: left;
    background-color: var(--gray-100);
    font-weight: 600;
    width: 30%;
}

.specs-table td {
    padding: 15px;
}

.coa-preview {
    text-align: center;
    margin-top: 30px;
}

.coa-preview img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 15px;
}

/* Reviews */
.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid var(--gray-300);
}

.rating-overview {
    text-align: center;
}

.rating-score {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.rating-stars {
    font-size: 24px;
    margin-bottom: 10px;
}

.rating-count {
    color: var(--gray-600);
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rating-bar span:first-child {
    width: 60px;
    font-size: 14px;
}

.rating-bar .bar {
    flex: 1;
    height: 8px;
    background-color: var(--gray-300);
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar .fill {
    height: 100%;
    background-color: var(--accent-color);
}

.rating-bar span:last-child {
    width: 40px;
    text-align: right;
    font-size: 14px;
    color: var(--gray-600);
}

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

.review-item {
    padding: 25px;
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-rating {
    font-size: 16px;
}

.review-author {
    font-weight: 600;
    color: var(--dark-color);
}

.review-date {
    color: var(--gray-600);
    font-size: 14px;
}

.review-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.review-text {
    line-height: 1.6;
    color: var(--gray-700);
    margin-bottom: 15px;
}

.review-helpful {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-600);
}

.review-helpful button {
    padding: 5px 15px;
    border: 1px solid var(--gray-300);
    background-color: var(--white);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.review-helpful button:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.review-cta {
    text-align: center;
    margin-top: 40px;
}

/* Related Products */
.related-products {
    padding: 60px 0;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 40px;
}

/* Responsive */
@media (max-width: 968px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-images {
        position: relative;
        top: 0;
    }
    
    .reviews-summary {
        grid-template-columns: 1fr;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .product-main-info h1 {
        font-size: 2rem;
    }
    
    .price-main {
        font-size: 2.5rem;
    }
    
    .tabs-content {
        padding: 20px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
</product.css>