/* Product Detail Page - Modern Design */

.product-detail-page {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
}

/* Breadcrumb Modern Style */
.product-breadcrumb {
    background: white;
    padding: 20px 0;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.product-breadcrumb .breadcrumb {
    margin: 0;
    background: transparent;
    padding: 0;
}

.product-breadcrumb .breadcrumb-item a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.product-breadcrumb .breadcrumb-item a:hover {
    color: #20c997;
    transform: translateX(2px);
}

.product-breadcrumb .breadcrumb-item.active {
    color: #6c757d;
    font-weight: 600;
}

/* Product Hero Section */
.product-detail-hero {
    padding: 40px 0 60px;
    border-radius: 30px;
    margin-bottom: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

/* Product Image Gallery */
.product-image-gallery {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.product-image-main {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.product-image-main:hover {
    transform: scale(1.05);
}

.product-image-thumbnails {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    overflow-x: auto;
    padding: 10px 0;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.product-thumbnail:hover,
.product-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-green);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Product Info Section */
.product-info-section {
    padding-left: 30px;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.product-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    color: var(--primary-green);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 20px;
    border: 2px solid rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
}

.product-category-badge:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15) 0%, rgba(32, 201, 151, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

/* Rating Section */
.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.rating-stars {
    display: flex;
    gap: 5px;
    font-size: 1.3rem;
}

.rating-stars i {
    color: #ffc107;
    text-shadow: 0 2px 5px rgba(255, 193, 7, 0.3);
    animation: star-twinkle 2s ease-in-out infinite;
}

.rating-stars i:nth-child(1) { animation-delay: 0s; }
.rating-stars i:nth-child(2) { animation-delay: 0.2s; }
.rating-stars i:nth-child(3) { animation-delay: 0.4s; }
.rating-stars i:nth-child(4) { animation-delay: 0.6s; }
.rating-stars i:nth-child(5) { animation-delay: 0.8s; }

@keyframes star-twinkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.rating-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.rating-count {
    color: #6c757d;
    font-size: 0.95rem;
}

/* Price Section */
.product-price-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.product-price-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.product-price-main {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.product-price-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

/* Stock Status */
.product-stock-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 15px;
    font-weight: 600;
    margin-bottom: 25px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-stock-status.in-stock {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    color: #28a745;
    border: 2px solid rgba(40, 167, 69, 0.3);
}

.product-stock-status.out-of-stock {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(255, 0, 0, 0.1) 100%);
    color: #dc3545;
    border: 2px solid rgba(220, 53, 69, 0.3);
}

.product-stock-status i {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

/* Quantity Selector */
.quantity-selector {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.quantity-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    display: block;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 200px;
}

.quantity-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-green);
    background: white;
    color: var(--primary-green);
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-green);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    flex: 1;
    text-align: center;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Action Buttons */
.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-add-to-cart {
    flex: 1;
    padding: 18px 30px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-add-to-cart:hover::before {
    width: 300px;
    height: 300px;
}

.btn-add-to-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.4);
}

.btn-add-to-cart:active {
    transform: translateY(-1px);
}

.btn-add-to-cart:disabled {
    background: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-add-to-cart i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-add-to-cart:hover i {
    transform: scale(1.2) rotate(15deg);
}

.btn-wishlist {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-green);
    background: white;
    color: var(--primary-green);
    border-radius: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    background: var(--primary-green);
    color: white;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-wishlist.active {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Care Guide Card */
.care-guide-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(32, 201, 151, 0.05) 100%);
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.care-guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.4);
}

.care-guide-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.care-guide-header i {
    font-size: 1.8rem;
    color: var(--primary-green);
    animation: float 3s ease-in-out infinite;
}

.care-guide-header h5 {
    margin: 0;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.3rem;
}

.care-guide-content p {
    color: #495057;
    line-height: 1.8;
    margin-bottom: 15px;
}

.care-guide-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.care-guide-item i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

.care-guide-item strong {
    color: #2c3e50;
    min-width: 100px;
}

/* Description Section */
.product-description-section {
    background: white;
    border-radius: 25px;
    padding: 40px;
    margin: 50px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.product-description-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 3px solid rgba(40, 167, 69, 0.1);
}

.product-description-header i {
    font-size: 2rem;
    color: var(--primary-green);
}

.product-description-header h4 {
    margin: 0;
    font-weight: 800;
    color: #2c3e50;
    font-size: 1.8rem;
}

.product-description-content {
    color: #495057;
    line-height: 1.9;
    font-size: 1.05rem;
}

/* Reviews Section */
.reviews-section {
    background: white;
    border-radius: 25px;
    padding: 40px;
    margin: 50px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid rgba(40, 167, 69, 0.1);
}

.reviews-header h4 {
    margin: 0;
    font-weight: 800;
    color: #2c3e50;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviews-header i {
    color: var(--primary-green);
    font-size: 1.8rem;
}

/* Review Form */
.review-form-card {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(32, 201, 151, 0.05) 100%);
    border: 2px solid rgba(40, 167, 69, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
}

.review-form-card h5 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-form-card h5 i {
    color: var(--primary-green);
}

.review-form .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.review-form .form-select,
.review-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.review-form .form-select:focus,
.review-form .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    outline: none;
}

.btn-submit-review {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-submit-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Review Item */
.review-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-green);
    transition: all 0.3s ease;
}

.review-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-author {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1rem;
}

.review-rating {
    display: flex;
    gap: 3px;
}

.review-rating i {
    color: #ffc107;
    font-size: 1rem;
}

.review-text {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 10px;
}

.review-date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Similar Products Section */
.similar-products-section {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    padding: 40px;
    margin: 50px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.similar-products-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid rgba(40, 167, 69, 0.1);
}

.similar-products-header i {
    font-size: 2rem;
    color: var(--primary-green);
}

.similar-products-header h4 {
    margin: 0;
    font-weight: 800;
    color: #2c3e50;
    font-size: 1.8rem;
}

.similar-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.similar-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(40, 167, 69, 0.2);
}

.similar-product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.similar-product-card:hover .similar-product-image {
    transform: scale(1.1);
}

.similar-product-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.similar-product-name {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
    min-height: 50px;
}

.similar-product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.btn-view-details {
    margin-top: auto;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-view-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: white;
}

/* Responsive Design */
@media (max-width: 991px) {
    .product-info-section {
        padding-left: 0;
        margin-top: 30px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-price-main {
        font-size: 2.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-wishlist {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .product-detail-hero {
        padding: 20px 0 40px;
    }
    
    .product-image-main {
        height: 350px;
    }
    
    .product-title {
        font-size: 1.75rem;
    }
    
    .product-price-main {
        font-size: 2rem;
    }
    
    .product-description-section,
    .reviews-section,
    .similar-products-section {
        padding: 25px;
    }
}

