/* product-details.css */

/* Product Details Header */
.product-details-header {
    background: linear-gradient(135deg, #6e8efb 0%, #4a6cf7 100%);
    color: #fff;
    padding: 4rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.product-details-header .page-header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.product-details-header .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.product-details-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
    text-decoration: none;
}

.product-details-header .breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.product-details-header .breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.product-details-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-details-header .lead {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
    color: #fff;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
}

/* Product Details Section */
.product-details-section {
    padding: 4rem 0;
    background-color: #f9fafc;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .product-details-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

.main-image {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.main-image:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: #4a6cf7;
    transform: translateY(-3px);
}

.thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Product Info */
.product-info {
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.product-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-meta i {
    font-size: 0.9rem;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffb21d;
}

.product-rating i {
    font-size: 1rem;
}

.product-rating span {
    color: #666;
    margin-left: 0.5rem;
}

.product-price {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: #4a6cf7;
}

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

.discount-percentage {
    background-color: #ff4757;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.product-description {
    margin: 2rem 0;
    color: #555;
    line-height: 1.7;
}

.product-features {
    margin: 2rem 0;
}

.product-features h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
}

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

.product-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.product-features i {
    color: #4a6cf7;
    font-size: 1rem;
    margin-top: 0.2rem;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    background-color: #f5f7ff;
    border: none;
    width: 40px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #4a6cf7;
    transition: all 0.3s ease;
}

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

.quantity-input {
    width: 50px;
    height: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

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

.add-to-cart, .buy-now {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.add-to-cart {
    background-color: #4a6cf7;
    color: white;
    border: 2px solid #4a6cf7;
}

.add-to-cart:hover {
    background-color: #3a5ce4;
    border-color: #3a5ce4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

.buy-now {
    background-color: transparent;
    color: #4a6cf7;
    border: 2px solid #4a6cf7;
}

.buy-now:hover {
    background-color: #f5f7ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.1);
}

/* Product Meta Footer */
.product-meta-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.meta-item i {
    font-size: 1.1rem;
    color: #4a6cf7;
}

.meta-item strong {
    color: #333;
    font-weight: 600;
}

.social-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.social-share a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f7ff;
    color: #4a6cf7;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-share a:hover {
    background-color: #4a6cf7;
    color: white;
    transform: translateY(-2px);
}

/* Product Tabs */
.product-tabs {
    margin-top: 4rem;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 2rem;
    padding: 0;
    list-style: none;
}

.tabs-header li {
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tabs-header li:hover {
    color: #4a6cf7;
}

.tabs-header li.active {
    color: #4a6cf7;
    border-bottom-color: #4a6cf7;
}

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

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

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

/* Product Full Description */
.product-full-description {
    line-height: 1.8;
    color: #555;
}

.product-full-description h2,
.product-full-description h3,
.product-full-description h4 {
    color: #333;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.product-full-description ul,
.product-full-description ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.product-full-description img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Product Downloads */
.product-downloads {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.product-downloads h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.downloads-list {
    display: grid;
    gap: 1rem;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f9fafc;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.download-item:hover {
    background-color: #fff;
    border-color: #4a6cf7;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.download-item i {
    font-size: 1.5rem;
    color: #4a6cf7;
}

.file-info {
    flex: 1;
}

.file-name {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}

.file-size {
    font-size: 0.8rem;
    color: #777;
}

.download-item .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Specifications Table */
.specifications-table {
    overflow-x: auto;
}

.specifications-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.specifications-table th,
.specifications-table td {
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid #eee;
}

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

.specifications-table tr:last-child td {
    border-bottom: none;
}

.specifications-table tr:hover td {
    background-color: #f5f7ff;
}

/* Reviews Section */
.reviews-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .reviews-container {
        grid-template-columns: 300px 1fr;
    }
}

.reviews-summary {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    height: fit-content;
}

.average-rating {
    text-align: center;
    margin-bottom: 2rem;
}

.average {
    font-size: 3.5rem;
    font-weight: 800;
    color: #333;
    display: block;
    line-height: 1;
}

.average-rating .stars {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin: 0.5rem 0;
    color: #ffb21d;
}

.average-rating .total {
    font-size: 0.9rem;
    color: #666;
}

.rating-bars {
    margin: 2rem 0;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.star-count {
    width: 30px;
    font-size: 0.9rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.star-count i {
    color: #ffb21d;
    font-size: 0.8rem;
}

.bar-container {
    flex: 1;
    height: 8px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background-color: #ffb21d;
    border-radius: 4px;
}

.percentage {
    width: 40px;
    font-size: 0.8rem;
    color: #666;
    text-align: left;
}

.write-review-btn {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}

.review-note {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
}

.review-note a {
    color: #4a6cf7;
    text-decoration: none;
    font-weight: 600;
}

.review-note a:hover {
    text-decoration: underline;
}

.reviews-list {
    display: grid;
    gap: 1.5rem;
}

.review-item {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.review-header {
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

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

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.3rem;
    color: #ffb21d;
}

.review-date {
    font-size: 0.8rem;
    color: #777;
    margin-left: 0.5rem;
}

.review-content h5 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #333;
}

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

.no-reviews {
    text-align: center;
    padding: 2rem;
    background-color: #f9fafc;
    border-radius: 8px;
    color: #666;
}

/* FAQ Section */
.faq-accordion {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #eee;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f9fafc;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
}

.faq-question i {
    font-size: 1.2rem;
    color: #4a6cf7;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #555;
    line-height: 1.7;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.no-faqs {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.ask-question {
    padding: 2rem;
    text-align: center;
    background-color: #f9fafc;
}

.ask-question h3 {
    margin-top: 0;
    color: #333;
}

.ask-question p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Related Products Section */
.related-products-section {
    padding: 4rem 0;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.related-products-slider {
    padding: 1rem;
    margin: -1rem;
}

.product-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: #4a6cf7;
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    z-index: 2;
}

.product-badge.discount {
    background-color: #ff4757;
}

.product-image {
    position: relative;
    overflow: hidden;
}

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

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

.product-actions {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

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

.quick-view,
.add-to-cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #4a6cf7;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.quick-view:hover,
.add-to-cart:hover {
    background-color: #4a6cf7;
    color: white;
    transform: translateY(-2px);
}

.product-details {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.8rem;
    color: #4a6cf7;
    margin-bottom: 0.5rem;
    display: block;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0.5rem 0;
    line-height: 1.4;
    flex: 1;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffb21d;
    font-size: 0.8rem;
    margin: 0.5rem 0;
}

.product-rating i {
    font-size: 0.9rem;
}

.product-rating span {
    color: #666;
    margin-right: 0.5rem;
}

.product-price {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-price .current-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #4a6cf7;
}

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

.product-card .btn {
    margin-top: 1rem;
    width: 100%;
    padding: 0.7rem;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .product-details-header h1 {
        font-size: 2rem;
    }
    
    .product-price .current-price {
        font-size: 1.8rem;
    }
    
    .product-actions {
        flex-direction: row;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        justify-content: center;
        background-color: rgba(255, 255, 255, 0.9);
        padding: 0.5rem;
        opacity: 1;
        transform: none;
    }
    
    .tabs-header li {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .reviews-summary {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .product-details-header {
        padding: 3rem 0 5rem;
    }
    
    .product-details-header h1 {
        font-size: 1.8rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .add-to-cart, .buy-now {
        width: 100%;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(3, 1fr);
    }
}