/* Product Details Page Specific Styles */

/* Breadcrumb */
.breadcrumb-container {
    background-color: #f9f9f9;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

.breadcrumb-item {
    font-size: 0.85rem;
    color: #666;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 8px;
    color: #ccc;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item a:hover {
    color: #16a34a;
}

.breadcrumb-item.active {
    color: #16a34a;
}

/* Product Details Section */
.product-details-section {
    padding: 40px 0;
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.main-image-wrapper {
    position: relative;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

.main-product-image {
    width: 100%;
    height: auto;
    display: block;
}

.discount-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #16a34a;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 3px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.thumbnail-item {
    width: 70px;
    height: 70px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s;
}

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

.thumbnail-item.active {
    border-color: #16a34a;
}

/* Product Details */
.product-details {
    padding: 0 0 0 20px;
}

@media (max-width: 767px) {
    .product-details {
        padding: 0;
        margin-top: 30px;
    }
}

.product-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.product-rating-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.product-rating {
    display: flex;
    align-items: center;
    color: #f59e0b;
}

.rating-text {
    color: #666;
    font-size: 0.9rem;
    margin-left: 8px;
}

.product-sku {
    color: #666;
    font-size: 0.85rem;
}

.product-price-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price-section {
    display: flex;
    align-items: center;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #16a34a;
    margin-right: 10px;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.stock-status {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
}

.stock-status.in-stock {
    color: #16a34a;
}

.stock-status.out-of-stock {
    color: #ef4444;
}

.stock-status i {
    margin-right: 5px;
}

.product-description {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* Product Options */
.option-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.option-label {
    width: 80px;
    font-weight: 600;
    color: #333;
}

.color-options, .size-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-option, .size-option {
    position: relative;
}

.color-option input, .size-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.color-option label, .size-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}

.color-option input:checked + label, .size-option input:checked + label {
    border-color: #16a34a;
    background-color: #f0fdf4;
    color: #16a34a;
}

.quantity-group {
    margin-top: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quantity-btn.minus-btn {
    border-radius: 5px 0 0 5px;
}

.quantity-btn.plus-btn {
    border-radius: 0 5px 5px 0;
}

.quantity-btn:hover {
    background-color: #e5e5e5;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    text-align: center;
    font-size: 1rem;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.btn-add-to-cart, .btn-buy-now {
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-add-to-cart {
    background-color: #16a34a;
    color: white;
    flex: 1;
}

.btn-add-to-cart:hover {
    background-color: #15803d;
}

.btn-buy-now {
    background-color: #f59e0b;
    color: white;
}

.btn-buy-now:hover {
    background-color: #d97706;
}

.btn-wishlist {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    color: #666;
    font-size: 1.2rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-wishlist:hover {
    color: #ef4444;
    border-color: #ef4444;
}

/* Product Features */
.product-features {
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.product-features h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.product-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    color: #666;
}

.product-features li i {
    color: #16a34a;
    margin-right: 10px;
    margin-top: 3px;
}

/* Product Delivery Info */
.product-delivery-info {
    display: flex;
    gap: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-top: 30px;
}

.delivery-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.delivery-item i {
    font-size: 1.5rem;
    color: #16a34a;
}

.delivery-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.delivery-item p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Product Tabs Section */
.product-tabs-section {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.product-tabs {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    position: relative;
}

.tab-btn.active {
    color: #16a34a;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #16a34a;
}

.tabs-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

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

/* Product Description Content */
.product-description-content h3,
.product-specifications h3,
.product-reviews h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.product-description-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 25px 0 15px;
    color: #333;
}

.product-description-content p,
.product-description-content ul li {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

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

/* Product Specifications */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid #eee;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    text-align: left;
}

.specs-table th {
    width: 30%;
    font-weight: 600;
    color: #333;
}

.specs-table td {
    color: #666;
}

/* Product Reviews */
.reviews-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

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

.overall-rating h3 {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.overall-rating .stars {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.overall-rating p {
    color: #666;
    font-size: 0.9rem;
}

.rating-bars {
    flex: 1;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.rating-label {
    width: 60px;
    font-size: 0.9rem;
    color: #666;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin: 0 10px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background-color: #f59e0b;
    border-radius: 4px;
}

.rating-count {
    width: 30px;
    font-size: 0.9rem;
    color: #666;
    text-align: right;
}

.review-form-container {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.rating-selector {
    display: flex;
    font-size: 1.5rem;
    color: #ccc;
}

.rating-selector i {
    cursor: pointer;
    transition: color 0.2s;
}

.rating-selector i.ri-star-fill {
    color: #f59e0b;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.review-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.reviewer-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.review-date {
    font-size: 0.9rem;
    color: #999;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.review-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.load-more-reviews {
    text-align: center;
    margin-top: 20px;
}

/* Related Products Section */
.related-products-section {
    padding: 40px 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #333;
}

.related-products-slider {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 991px) {
    .related-products-slider {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .related-products-slider {
        grid-template-columns: 1fr;
    }
}

.product-item {
    margin-bottom: 20px;
}

.product-card {
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.product-image-container {
    position: relative;
    padding-top: 125%; /* 4:5 aspect ratio */
    overflow: hidden;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 3px;
    z-index: 1;
}

.product-tag.sale {
    background-color: #16a34a;
    color: white;
}

.product-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.7);
    padding: 10px;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s, transform 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.add-to-cart-btn {
    width: 100%;
    padding: 8px;
    background-color: #16a34a;
    color: white;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
    background-color: #15803d;
}

.product-info {
    padding: 15px;
}

.product-rating {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #16a34a;
}

.original-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .product-actions {
        flex-wrap: wrap;
    }
    
    .btn-add-to-cart, .btn-buy-now {
        width: 100%;
        justify-content: center;
    }
    
    .btn-wishlist {
        width: 100%;
    }
    
    .product-delivery-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .tabs-header {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .tab-btn {
        padding: 15px 15px;
    }
    
    .tabs-content {
        padding: 20px 15px;
    }
    
    .reviews-summary {
        flex-direction: column;
        gap: 20px;
    }
}