/* Product Detail Page Specific Styles */

.breadcrumb {
    background: #f8fafc;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-nav a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #5855eb;
}

.separator {
    color: #64748b;
}

.current {
    color: #1e293b;
    font-weight: 500;
}

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

/* Product Detail Layout */
.product-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

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

.main-image {
    width: 485px;
    height: 485px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: zoom-in;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.image-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #ef4444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: none;
}

.thumbnail-images {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 60px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #6366f1;
    transform: scale(1.05);
}

/* Product Info */
.product-info {
    padding-left: 2rem;
}

.product-category {
    display: inline-block;
    background: #f0f9ff;
    color: #0284c7;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.product-title-h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stars {
    color: #fbbf24;
    font-size: 1.125rem;
}

.rating-text {
    color: #64748b;
    font-size: 0.875rem;
}

.rating-link {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.rating-link:hover {
    text-decoration: underline;
}

.product-price {
    margin-bottom: 2rem;
}

.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: #059669;
    margin-right: 1rem;
}

.original-price {
    font-size: 1.5rem;
    color: #64748b;
    text-decoration: line-through;
    margin-right: 1rem;
}

.discount-badge {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product-description {
    color: #4b5563;
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

/* Button Hover Animations */
.btn-add-cart, .btn-buy-now {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-add-cart:hover, .btn-buy-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #059669, #10b981);
}

.btn-add-cart:active, .btn-buy-now:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

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

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f9fafb;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover:not(:disabled) {
    background: #e5e7eb;
    color: #374151;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
    outline: none;
    background: white;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex: 1;
}

.btn-add-cart {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    flex: 2;
}

.btn-buy-now {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    flex: 2;
}

.btn-wishlist {
    background: white;
    color: #6366f1;
    border: 2px solid #6366f1;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    background: #6366f1;
    color: white;
}

/* Product Features */
.product-features {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.features-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #4b5563;
    font-size: 0.875rem;
}

.features-list li i {
    color: #059669;
    font-size: 1rem;
}

/* Product Specifications */
.product-specs {
    margin-top: 2rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.specs-title {
    background: #f9fafb;
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #e5e7eb;
}

.specs-list {
    padding: 0;
}

.spec-item {
    display: flex;
    padding: 1rem 2rem;
    border-bottom: 1px solid #f1f5f9;
}

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

.spec-label {
    font-weight: 600;
    color: #374151;
    width: 150px;
    flex-shrink: 0;
}

.spec-value {
    color: #6b7280;
    flex: 1;
}

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

.tabs-nav {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.tab-content {
    display: none;
}

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

.tab-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.tab-content p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Reviews Section */
.reviews-summary {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.overall-rating {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.overall-stars {
    font-size: 1.5rem;
    color: #fbbf24;
    margin-bottom: 0.5rem;
}

.total-reviews {
    color: #6b7280;
    font-size: 0.875rem;
}

.review-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.reviewer-info h4 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.reviewer-info .stars {
    color: #fbbf24;
    font-size: 0.875rem;
}

.review-date {
    color: #6b7280;
    font-size: 0.875rem;
}

.review-text {
    color: #4b5563;
    line-height: 1.6;
}

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

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 2;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 -60px;
}

.modal-prev,
.modal-next {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    transition: background 0.3s ease;
}

.modal-prev:hover,
.modal-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-prev {
    margin-left: -60px;
}

.modal-next {
    margin-right: -60px;
}

/* Loading State */
.loading-product {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    flex-direction: column;
    gap: 1rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Not Found State */
.product-not-found {
    text-align: center;
    padding: 4rem 2rem;
}

.not-found-icon {
    font-size: 5rem;
    color: #e5e7eb;
    margin-bottom: 1.5rem;
}

.not-found-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.not-found-text {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail-layout {
        gap: 3rem;
    }

    .product-info {
        padding-left: 1rem;
    }
}

/* Key Benefits Section */
.key-benefits {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #6366f1;
}

.benefits-title {
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #374151;
}

.benefits-list li i {
    color: #059669;
    font-size: 1rem;
    width: 16px;
}

/* Contact Support Section */
.contact-support {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    color: white;
    text-align: center;
}

.support-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.support-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.support-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 100px;
}

.support-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.support-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.support-option span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Animated Counter */
.downloads-counter {
    position: relative;
}

.animated-count {
    transition: all 0.3s ease;
}

.animated-count::after {
    content: '+';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.animated-count.completed::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .support-options {
        gap: 0.75rem;
    }

    .support-option {
        min-width: 80px;
        padding: 0.75rem;
    }

    .support-title {
        font-size: 1.25rem;
    }

    .product-info {
        padding-left: 0;
    }

    .product-images {
        position: static;
    }

    .main-image {
        height: 300px;
    }

    .product-title {
        font-size: 2rem;
    }

    .current-price {
        font-size: 1.75rem;
    }

    .original-price {
        font-size: 1.25rem;
    }

    .product-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .tabs-nav {
        flex-wrap: wrap;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .spec-item {
        flex-direction: column;
        gap: 0.5rem;
    }

    .spec-label {
        width: auto;
    }

    .modal-prev {
        margin-left: -40px;
    }

    .modal-next {
        margin-right: -40px;
    }

    .modal-prev,
    .modal-next {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }

    .product-title {
        font-size: 1.5rem;
    }

    .current-price {
        font-size: 1.5rem;
    }

    .product-features,
    .review-item {
        padding: 1.5rem;
    }

    .specs-title {
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
    }

    .spec-item {
        padding: 0.75rem 1.5rem;
    }

    .tabs-nav {
        gap: 0;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
        min-width: 0;
    }

    .modal-content {
        margin: 0 1rem;
    }

    .modal-close {
        top: -40px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
