/* ===================================
   PRODUCT PAGE MODERN STYLES
   =================================== */

/* Container */
.well2 {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Breadcrumb / Tree View */
.tree-view {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.tree-view a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.tree-view a:hover {
    color: #fb9902;
}

.tree-view span {
    color: #6b7280;
}

/* Product Title */
h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1d29;
    margin: 2rem 0 1.5rem;
    line-height: 1.3;
}

/* Product Layout Grid */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Product Images Section */
.product-images {
    position: sticky;
    top: 150px;
    height: fit-content;
}

.product-image-main {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.product-image-main:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.product-image-main img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* Product Info Section */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* SKU / Reference */
.product-sku {
    background: linear-gradient(135deg, #f8f9fa 0%, white 100%);
    padding: 0.45rem 1.5rem;
    border-radius: 6px;
    border-left: 2px solid #fb9902;
    font-size: 0.95rem;
}

.product-sku strong {
    color: #fb9902;
}

/* Price & Order Section */
.product-order {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.product-order:hover {
    border-color: #fb9902;
    box-shadow: 0 8px 32px rgba(251, 153, 2, 0.15);
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fb9902;
}

.price-currency {
    font-size: 1.5rem;
    color: #6b7280;
}

.price-tax {
    font-size: 0.875rem;
    color: #6b7280;
}

/* Add to Cart Button */
.btn-add-cart {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #fb9902 0%, #d48202 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-add-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.4s, height 0.4s;
}

.btn-add-cart:hover::before {
    width: 300px;
    height: 300px;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251, 153, 2, 0.4);
}

.btn-add-cart:active {
    transform: translateY(0);
}

/* Rating Widget */
.product-rating {
    background: linear-gradient(135deg, #f8f9fa 0%, rgba(251, 153, 2, 0.05) 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1rem;
}

.product-rating .rating-text {
    color: #1a1d29;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.stars-product2 {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.stars-product2 input {
    display: none;
}

.stars-product2 label {
    cursor: pointer;
    width: 20px;
    height: 20px;
    background: #fb9902;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    transition: transform 0.2s ease;
}

.stars-product2 label:hover {
    transform: scale(1.1);
}

/* Compatible Models Section */
.compatible-models {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-top: 1.5rem;
}

.compatible-models select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #1a1d29;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.compatible-models select:focus {
    outline: none;
    border-color: #fb9902;
    box-shadow: 0 0 0 3px rgba(251, 153, 2, 0.1);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 1.5rem;
}

.trust-badges img {
    max-height: 64px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.trust-badges img:hover {
    opacity: 1;
}

/* Tabs Section */
.product-tabs {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 3rem;
}

.nav-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    background: #f8f9fa;
}

.nav-link {
    flex: 1;
    padding: 1.25rem 2rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #fb9902;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #fb9902;
    background: rgba(251, 153, 2, 0.05);
}

.nav-link.active {
    color: #fb9902;
    background: white;
}

.nav-link.active::after {
    transform: scaleX(1);
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tab Content Lists */
.tab-pane ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-pane ul li {
    padding: 0.75rem 0 0.75rem 2rem;
    position: relative;
    line-height: 1.6;
    color: #1a1d29;
}

.tab-pane ul li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Feature Icons Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
}

.feature-item img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* Product Description Text */
.product-description {
    line-height: 1.8;
    color: #1a1d29;
    font-size: 1rem;
}

.product-description b,
.product-description strong {
    color: #fb9902;
    font-weight: 600;
}

.product-description u {
    text-decoration: none;
    border-bottom: 2px solid #fb9902;
    padding-bottom: 2px;
}

.images_paiement_container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
}
.images_paiement {
    padding-left: 1rem;
}
.images_paiement img {
    width: 100px;
    height: 51px;
}

.images_paiement_container .col {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-images {
        position: static;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .well2 {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    h1 {
        font-size: 1.5rem;
        margin: 1rem 0;
    }

    .product-order {
        padding: 1.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }

    .nav-tabs {
        flex-direction: column;
    }

    .nav-link {
        padding: 1rem;
        text-align: left;
    }

    .tab-content {
        padding: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .trust-badges {
        flex-direction: column;
    }
    .product-order .flex {
        flex-direction: column-reverse;
        gap: 10px;
    }
}

/* Loading Animation */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.product-order .flex {
    margin-bottom: 1.5rem;
}

/* Success Badge */
.badge-success {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #059669;
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0;
}

.badge-stock::before {
    content: '';
    font-weight: bold;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
button:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid #fb9902;
    outline-offset: 2px;
}