/* Product Detail Page Styles */

/* Page Layout */
.product-detail {
    padding-top: 120px;
    padding-bottom: 80px;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--gray);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* Product Detail Content Layout */
.product-detail-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.product-images {
    flex: 0 0 calc(50% - 20px);
}

.product-info {
    flex: 0 0 calc(50% - 20px);
}

/* Product Images */
.main-image {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.main-image:hover img {
    transform: scale(1.05);
}

.image-thumbnails {
    display: flex;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
    border: 2px solid transparent;
}

.thumbnail.active {
    opacity: 1;
    border-color: var(--primary);
}

.thumbnail:hover {
    opacity: 1;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.product-category {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 15px;
}

.product-info h1 {
    font-size: 36px;
    margin-bottom: 15px;
}

.product-rating {
    color: #FFC107;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.product-rating i {
    margin-right: 2px;
}

.product-rating span {
    color: var(--gray);
    margin-left: 10px;
    font-size: 14px;
}

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

.product-description p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-description h3 {
    margin: 25px 0 15px;
    font-size: 18px;
    color: var(--primary-dark);
}

.product-description ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.product-description ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 5px;
}

.product-description ul li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: -15px;
}

/* Size Options */
.size-options {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.size-option {
    padding: 8px 20px;
    border: 2px solid #ddd;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.size-option:hover {
    border-color: var(--primary);
}

.size-option.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Nutritional Information */
.nutrition-info {
    background-color: var(--light);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.nutrient {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.nutrient:last-child {
    border-bottom: none;
}

.nutrient-name {
    font-weight: 500;
}

.nutrient-value {
    color: var(--gray);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 15px;
}

.quote-btn-large {
    background-color: var(--primary);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    flex: 1;
}

.quote-btn-large:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-outline {
    border: 2px solid var(--primary);
    background-color: transparent;
    color: var(--primary);
    padding: 15px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

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

/* Product Tabs */
.product-tabs {
    margin-bottom: 60px;
}

.tab-headers {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-header {
    padding: 15px 25px;
    cursor: pointer;
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

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

.tab-header.active {
    color: var(--primary);
}

.tab-header.active:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feeding Table */
.feeding-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.feeding-table th, 
.feeding-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.feeding-table th {
    background-color: var(--light);
    font-weight: 600;
}

.feeding-table tr:hover td {
    background-color: #f9f9f9;
}

/* Ingredients List & Storage Guidelines */
.ingredients-list,
.storage-guidelines {
    columns: 2;
    column-gap: 30px;
    padding-left: 20px;
}

.ingredients-list li,
.storage-guidelines li {
    margin-bottom: 10px;
    break-inside: avoid;
}

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

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.related-product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    padding-bottom: 20px;
    text-align: center;
    transition: var(--transition);
}

.related-product-card:hover {
    transform: translateY(-5px);
}

.related-product-image {
    height: 200px;
    margin-bottom: 15px;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-product-card h3 {
    margin-bottom: 15px;
    padding: 0 15px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .product-images,
    .product-info {
        flex: 0 0 100%;
    }
    
    .product-images {
        margin-bottom: 0;
    }
    
    .ingredients-list,
    .storage-guidelines {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .tab-header {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .product-info h1 {
        font-size: 28px;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 576px) {
    .product-actions {
        flex-direction: column;
    }
    
    .tab-headers {
        flex-direction: column;
        border-bottom: none;
    }
    
    .tab-header {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .tab-header.active:after {
        display: none;
    }
    
    .tab-header.active {
        background-color: var(--primary);
        color: white;
    }
}
