﻿
/* Global Styles */
.tab-count {
    background: #6366f1;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.tabs-content {
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tab-panel {
    display: none;
    padding: 3rem;
    animation: fadeIn 0.3s ease;
}

    .tab-panel.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Description Tab */
.product-description h3,
.product-description h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 700;
}

.product-description h3 {
    font-size: 1.5rem;
}

.product-description h4 {
    font-size: 1.25rem;
    margin-top: 2rem;
}

.product-description p {
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.product-description ul {
    list-style: none;
    padding: 0;
}

.product-description li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #64748b;
}

    .product-description li::before {
        content: '✓';
        position: absolute;
        left: 0;
        color: #10b981;
        font-weight: bold;
    }

.feature-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #D4B02A 0%, #BB9508 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #64748b;
    margin: 0;
}

/* Specifications Tab */
.specifications-table {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.spec-group {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

    .spec-group h4 {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 1.5rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid #e2e8f0;
    }

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

    .spec-row:last-child {
        border-bottom: none;
    }

.spec-label {
    font-weight: 600;
    color: #374151;
}

.spec-value {
    color: #64748b;
    text-align: right;
}

/* Reviews Tab */
.reviews-summary {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.rating-overview {
    text-align: center;
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
}

.overall-rating {
    margin-bottom: 1rem;
}

.rating-number {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    display: block;
    margin-bottom: 0.5rem;
}

.rating-stars.large {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.total-reviews {
    color: #64748b;
    font-size: 0.875rem;
}

.rating-distribution {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bar-label {
    min-width: 30px;
    font-size: 0.875rem;
    color: #64748b;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.bar-percentage {
    min-width: 40px;
    text-align: right;
    font-size: 0.875rem;
    color: #64748b;
}

.review-actions {
    display: flex;
    justify-content: center;
}

.write-review-btn.primary {
    background: linear-gradient(135deg, #D4B02A 0%, #BB9508 100%);
    color: white;
    border: none;
}

    .write-review-btn.primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    }

.review-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
}

.filter-options {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.review-filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

    .review-filter-btn:hover {
        border-color: #6366f1;
        color: #6366f1;
    }

    .review-filter-btn.active {
        background: #6366f1;
        border-color: #6366f1;
        color: white;
    }

.review-sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.review-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-name {
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #10b981;
    font-size: 0.75rem;
    font-weight: 500;
}

.review-meta {
    text-align: right;
}

.review-rating {
    margin-bottom: 0.5rem;
}

.review-date {
    color: #64748b;
    font-size: 0.875rem;
}

.review-content {
    margin-bottom: 1.5rem;
}

.review-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.review-text {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-images {
    display: flex;
    gap: 0.75rem;
}

    .review-images img {
        width: 80px;
        height: 80px;
        border-radius: 8px;
        object-fit: cover;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

        .review-images img:hover {
            transform: scale(1.1);
        }

.review-actions {
    display: flex;
    gap: 1rem;
}

.helpful-btn,
.reply-btn,
.report-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: #64748b;
}

    .helpful-btn:hover {
        border-color: #10b981;
        color: #10b981;
    }

    .reply-btn:hover {
        border-color: #6366f1;
        color: #6366f1;
    }

    .report-btn:hover {
        border-color: #ef4444;
        color: #ef4444;
    }

.load-more-reviews {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    padding: 1rem 2rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .load-more-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    }

/* Shipping Tab */
.shipping-policies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.policy-section {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

    .policy-section h4 {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1.125rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 1.5rem;
    }

    .policy-section ul {
        list-style: none;
        padding: 0;
    }

    .policy-section li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.75rem;
        color: #64748b;
        line-height: 1.6;
    }

        .policy-section li::before {
            content: '•';
            position: absolute;
            left: 0;
            color: #6366f1;
            font-weight: bold;
        }

/* Q&A Tab */
.qa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

    .qa-header h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #1e293b;
    }

.ask-question-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #D4B02A 0%, #BB9508 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .ask-question-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    }

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.qa-item {
    background: #f8fafc;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.question {
    margin-bottom: 1.5rem;
}

    .question h5 {
        font-size: 1.125rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 0.5rem;
    }

.question-meta {
    color: #64748b;
    font-size: 0.875rem;
}

.answer {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid #6366f1;
}

    .answer p {
        color: #64748b;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

.answer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .answer-meta span {
        color: #64748b;
        font-size: 0.875rem;
    }

.helpful-answer-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: #64748b;
}

    .helpful-answer-btn:hover {
        border-color: #10b981;
        color: #10b981;
    }

/* Related Products */
.related-products-section,
.recently-viewed-section {
    margin-bottom: 4rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-header h2,
    .section-header h3 {
        font-size: 2rem;
        font-weight: 800;
        color: #1e293b;
        margin-bottom: 0.5rem;
    }

    .section-header p {
        color: #64748b;
        font-size: 1.125rem;
    }

.related-products-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.products-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.3s ease;
    padding: 2rem 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

    .carousel-nav.prev {
        left: 0rem;
        background: rgb(212, 176, 42);
    }

    .carousel-nav.next {
        right: 0rem;
        background: rgb(212, 176, 42);
    }

    .carousel-nav:hover {
        background: #6366f1;
        color: white;
        transform: translateY(-50%) scale(1.1);
    }

.recently-viewed-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.clear-history-btn {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

    .clear-history-btn:hover {
        background: #e2e8f0;
    }

.recently-viewed-list {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
}

/* Modals */
.fullscreen-modal,
.share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .fullscreen-modal.active,
    .share-modal.active {
        opacity: 1;
        visibility: visible;
    }

.fullscreen-backdrop,
.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.fullscreen-content {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .fullscreen-close:hover {
        background: white;
        transform: scale(1.1);
    }

.fullscreen-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .fullscreen-image-container img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 12px;
    }

.fullscreen-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
}

.fullscreen-nav {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .fullscreen-nav:hover {
        background: white;
        transform: scale(1.1);
    }

.share-modal .modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.share-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

    .modal-header h3 {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1e293b;
        margin: 0;
    }

.modal-close {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .modal-close:hover {
        background: #e2e8f0;
        transform: scale(1.1);
    }

.modal-body {
    padding: 2rem;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

    .share-option:hover {
        border-color: #6366f1;
        transform: translateY(-2px);
    }

    .share-option i {
        font-size: 1.5rem;
        color: #64748b;
    }

    .share-option span {
        font-size: 0.875rem;
        font-weight: 500;
        color: #374151;
    }

.share-link {
    display: flex;
    gap: 0.5rem;
}

    .share-link input {
        flex: 1;
        padding: 0.75rem 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #f8fafc;
        font-size: 0.875rem;
    }

.copy-btn {
    padding: 0.75rem 1rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .copy-btn:hover {
        background: #4f46e5;
    }

/* Success Notification */
.success-notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    transform: translateX(400px);
    transition: all 0.4s ease;
    z-index: 1000;
    min-width: 350px;
    border-left: 4px solid #10b981;
}

    .success-notification.show {
        transform: translateX(0);
    }

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    width: 50px;
    height: 50px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.notification-message h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.notification-message p {
    color: #64748b;
    margin: 0;
    font-size: 0.875rem;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #10b981;
    border-radius: 0 0 16px 16px;
    animation: notificationProgress 4s linear;
}

@keyframes notificationProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery-section {
        position: static;
    }

    .reviews-summary {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .trust-badges-section {
        grid-template-columns: 1fr;
    }
}
.secondary-actions {
   height:46px;
}
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .current-price {
        font-size: 2.5rem;
    }

    .primary-actions {
        flex-direction: column;
    }

    .secondary-actions {
        grid-template-columns: 1fr;
    }

    .tabs-navigation {
        flex-wrap: wrap;
    }

    .tab-nav-btn {
        flex: 1;
        min-width: 120px;
    }

    .feature-highlights {
        grid-template-columns: 1fr;
    }

    .shipping-policies {
        grid-template-columns: 1fr;
    }

    .share-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .success-notification {
        right: 1rem;
        left: 1rem;
        min-width: auto;
        transform: translateY(-100px);
    }

        .success-notification.show {
            transform: translateY(0);
        }
}

body.modal-open {
    overflow: hidden;
}

container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Product Breadcrumb */
.product-breadcrumb {
    background: white;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #D4B02A;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .breadcrumb-link:hover {
        color: #D4B02A;
    }

.breadcrumb-current {
    color: #64748b;
    font-weight: 500;
}

.product-navigation {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
}

    .nav-btn:hover {
        background: #6366f1;
        border-color: #6366f1;
        color: white;
        transform: scale(1.1);
    }

/* Product Detail Section */
.product-detail-section {
    margin-bottom: 4rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Product Gallery */
.product-gallery-section {
    position: sticky;
    top: 2rem;
}

.main-gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-image-wrapper {
    position: relative;
}

.main-image-container {
    position: relative;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.main-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    cursor: zoom-in;
}

.zoom-lens {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid #6366f1;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
}

.gallery-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gallery-control-btn {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .gallery-control-btn:hover {
        background: white;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

.product-status-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}

.sale-badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.new-badge {
    background: linear-gradient(135deg, #D4B02A 0%, #BB9508 100%);
    ;
    color: white;
}

.featured-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.wishlist-toggle-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.25rem;
}

    .wishlist-toggle-btn:hover {
        background: white;
        transform: scale(1.1);
    }

    .wishlist-toggle-btn.active {
        background: #ef4444;
        color: white;
    }

.zoom-result {
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Thumbnail Gallery */
.thumbnail-gallery-wrapper {
    position: relative;
}

.thumbnail-gallery {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem 0;
}

    .thumbnail-gallery::-webkit-scrollbar {
        height: 4px;
    }

    .thumbnail-gallery::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 2px;
    }

    .thumbnail-gallery::-webkit-scrollbar-thumb {
        background: #6366f1;
        border-radius: 2px;
    }

.thumbnail-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

    .thumbnail-item:hover {
        transform: scale(1.05);
    }

    .thumbnail-item.active {
        border-color: #6366f1;
        transform: scale(1.05);
    }

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.thumbnail-item:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .thumbnail-nav.prev {
        left: -15px;
    }

    .thumbnail-nav.next {
        right: -15px;
    }

    .thumbnail-nav:hover {
        background: #6366f1;
        color: white;
        transform: translateY(-50%) scale(1.1);
    }

/* Gallery Features */
.gallery-features {
    display: flex;
    gap: 1rem;
}

.feature-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #64748b;
}

    .feature-btn:hover {
        border-color: #6366f1;
        color: #6366f1;
        transform: translateY(-2px);
    }

/* Product Information Panel */
.product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.product-header {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 2rem;
}

.product-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #D4B02A 0%, #BB9508 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.product-rating-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-stars {
    display: flex;
    gap: 0.125rem;
    color: #fbbf24;
    font-size: 1.25rem;
}

.rating-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
}

.rating-count {
    color: #64748b;
    font-size: 0.875rem;
}

.write-review-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #64748b;
}

    .write-review-btn:hover {
        border-color: #6366f1;
        color: #6366f1;
    }

.product-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.meta-label {
    color: #64748b;
    font-weight: 500;
}

.meta-value {
    font-weight: 600;
    color: #1e293b;
}

    .meta-value.in-stock {
        color: #10b981;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .meta-value.out-of-stock {
        color: #ef4444;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

/* Pricing Section */
.pricing-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.price-container {
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.price-comparison {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.original-price {
    font-size: 1.25rem;
    color: #64748b;
    text-decoration: line-through;
}

.savings-amount {
    padding: 0.5rem 1rem;
    background: #10b981;
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
}

.price-history {
    margin-top: 1rem;
}

.price-history-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: #64748b;
}

    .price-history-btn:hover {
        border-color: #6366f1;
        color: #6366f1;
    }

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #64748b;
}

    .payment-option i {
        color: #10b981;
    }

/* Product Variants */
.product-variants-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.variant-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.variant-label {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.color-variants {
    display: flex;
    gap: 0.75rem;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
}

    .color-option:hover {
        transform: scale(1.1);
    }

    .color-option.active {
        border-color: #6366f1;
        transform: scale(1.1);
    }

        .color-option.active::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-weight: bold;
            text-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
        }

.size-variants {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.size-option {
    padding: 0.75rem 1.25rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #64748b;
    min-width: 60px;
    text-align: center;
}

    .size-option:hover {
        border-color: #6366f1;
        color: #6366f1;
        transform: translateY(-2px);
    }

    .size-option.active {
        background: #6366f1;
        border-color: #6366f1;
        color: white;
        transform: translateY(-2px);
    }

.size-guide-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    color: #64748b;
    align-self: flex-start;
}

    .size-guide-btn:hover {
        border-color: #6366f1;
        color: #6366f1;
    }

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
}

.quantity-btn {
    width: 45px;
    height: 45px;
    border: none;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #64748b;
}

    .quantity-btn:hover {
        background: #6366f1;
        color: white;
    }

.quantity-input {
    width: 60px;
    height: 45px;
    border: none;
    text-align: center;
    font-weight: 600;
    background: white;
    color: #1e293b;
    padding-left: 15px;
}

.stock-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    color: #ea580c;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.primary-actions {
    display: flex;
    gap: 1rem;
}

.btn-add-to-cart,
.btn-buy-now,
.btn-notify-stock {
    flex: 1;
    padding: 1.25rem 2rem;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 20px;
    height:46px;
}

.btn-add-to-cart {
    background: linear-gradient(135deg, #D4B02A 0%, #BB9508 100%);
    color: white;
}

    .btn-add-to-cart:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    }

.btn-buy-now {
    background: linear-gradient(135deg, #D4B02A 0%, #BB9508 100%);
    ;
    color: white;
}

    .btn-buy-now:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
    }

.btn-notify-stock {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

    .btn-notify-stock:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
    }

.btn-content,
.btn-loading,
.btn-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-loading,
.btn-success {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.btn-add-to-cart.loading .btn-content {
    opacity: 0;
}

.btn-add-to-cart.loading .btn-loading {
    opacity: 1;
}

.btn-add-to-cart.success .btn-content {
    opacity: 0;
}

.btn-add-to-cart.success .btn-success {
    opacity: 1;
}

.btn-add-to-cart.success {
    background: linear-gradient(135deg, #D4B02A 0%, #BB9508 100%);
    ;
}

.secondary-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #64748b;
}

    .action-btn:hover {
        border-color: #6366f1;
        color: #6366f1;
        transform: translateY(-2px);
    }

/* Delivery Information */
.delivery-info-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #e2e8f0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

    .delivery-option:hover {
        border-color: #6366f1;
        background: #f8fafc;
    }

    .delivery-option.express {
        border-color: #f59e0b;
        background: #fff7ed;
    }

.delivery-icon {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6366f1;
    font-size: 1.25rem;
}

.delivery-option.express .delivery-icon {
    background: #f59e0b;
    color: white;
}

.delivery-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .delivery-details strong {
        color: #1e293b;
        font-weight: 600;
    }

    .delivery-details span {
        color: #64748b;
        font-size: 0.875rem;
    }

.delivery-price {
    font-weight: 700;
    color: #1e293b;
}

.delivery-calculator {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
}

.calculator-input {
    display: flex;
    gap: 0.75rem;
}

.zip-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
}

.calculate-btn {
    padding: 0.75rem 1.5rem;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .calculate-btn:hover {
        background: #4f46e5;
    }

/* Trust Badges */
.trust-badges-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.875rem;
    color: #64748b;
}

    .trust-badge i {
        color: #10b981;
        font-size: 1.125rem;
    }

/* Product Details Tabs */
.product-details-tabs {
    margin-bottom: 4rem;
}

.tabs-navigation {
    display: flex;
    background: white;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tab-nav-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 2rem;
    border: none;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #64748b;
    border-bottom: 3px solid transparent;
}

    .tab-nav-btn:hover {
        background: #f1f5f9;
        color: #6366f1;
    }

    .tab-nav-btn.active {
        background: white;
        color: #6366f1;
        border-bottom-color: #6366f1;
    }

 
.related-products-carousel {
    position: relative;
    overflow: hidden;
}

.products-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease-in-out;
}

.product-box {
    flex: 0 0 200px;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

    .product-box img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 8px;
    }

.product-title {
    font-size: 16px;
    margin: 10px 0 5px;
}

.product-price {
    font-weight: bold;
    color: #28a745;
}

.btn-add-to-cart {
    margin-top: 10px;
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: #D4B02A;
    color: #fff;
    cursor: pointer;
    width: 100%
}



/*------------------------------------------*/
.related-products-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.products-track {
    display: flex;
    transition: transform 0.5s ease;
}

.product-box {
    min-width: 240px; /* adjust per your design */
    flex-shrink: 0;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 2;
}

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }

.related-products-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.products-track {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
    transition: transform 0.3s;
}

.product-box {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    height: auto;
    min-width: 250px;
    max-width: 350px;
}

.product-item-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.8);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

    .carousel-nav.prev {
        left: 0;
    }

    .carousel-nav.next {
        right: 0;
    }

.carousel-dots {
    text-align: center;
    margin-top: 1rem;
}

/* --- Responsive Styles --- */
@media (max-width: 991.98px) {
    .product-detail-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .product-gallery-section,
    .product-info-panel {
        width: 100%;
        max-width: 100%;
    }

    .main-image-container {
        max-width: 100%;
    }

    .thumbnail-gallery-wrapper {
        overflow-x: auto;
    }

    .thumbnail-gallery {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
    }

    .thumbnail-item {
        min-width: 60px;
        max-width: 80px;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .product-title {
        font-size: 1.2rem;
    }

    .main-product-image {
        width: 100%;
        height: auto;
        max-width: 100vw;
    }

    .product-detail-section,
    .product-details-tabs,
    .related-products-section {
        padding: 0.5rem 0;
    }

    .products-track {
        gap: 0.5rem;
    }

    .product-box {
        min-width: 180px;
        max-width: 220px;
    }

    .carousel-nav {
        padding: 0.25rem 0.5rem;
    }

    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .product-gallery-section {
        position: relative;
    }
}