/* ===== PRODUCT DETAIL PAGE STYLES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Layout principal */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px;
    border-radius: 8px;
}

/* Colonne galerie */
.gallery-column {
    position: relative;
}

.main-image {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
    width: 100%;
}

.main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.nav-btn.prev {
    left: 15px;
    background: none;
}

.nav-btn.next {
    right: 15px;
    background: none;
}


/* Images de navigation */
.image-numbers {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.image-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.image-number:hover {
    transform: translateY(-2px);
}

.image-number.active {
    color: #ff0019;
}

.image-number.active:hover {
    color: #cc0019;
}

.nav-image  {
    width: 50px;
    height: auto;
    color: black;
}

.image-number.active .nav-image {
    filter: brightness(0) saturate(100%) invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}


/* Colonne info */

.product-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000000;
}

.product-code {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.price {
    margin-bottom: 20px;
}

.current-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000000;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.discount {
    background: #ff4757;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-left: 10px;
}

.description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #555;
}

.attributes {
    margin-bottom: 30px;
}

.attributes h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
}

.attributes-list {
    display: grid;
    gap: 10px;
}

.attribute {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.attribute .name {
    font-weight: 500;
    color: #666;
}

.attribute .value {
    color: #333;
}

/* Stock status */
.stock-status {
    margin-bottom: 20px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stock-status.in-stock {
    background: none;
    border: 3px solid black;
    color: rgb(0, 0, 0);
    padding: 0.8rem 1.5rem;
    font-weight: 700;
}

.stock-status.low-stock {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.stock-status.out-of-stock {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.stock-icon {
    font-size: 1.2rem;
}

/* Quantity selector */
.quantity-selector {
    margin-bottom: 20px;
}

.quantity-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #000000;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid black;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity-input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 1px solid black;
    border-radius: 4px;
    font-size: 1rem;
    background: none;
}

/* Action buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    width: 100%;
}

.add-to-cart-btn {
    background: none;
    border: 3px solid black;
    color: rgb(0, 0, 0);
    cursor: pointer;
    padding: 5px 0px 5px 0px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 30%;
}

.add-to-cart-btn:hover {
    background: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(90, 90, 90, 0.3);
}

.add-to-cart-btn:disabled {
    background: none;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sold-out-btn {
    background: none;
    border: 3px solid black;
    color: rgb(0, 0, 0);
    cursor: pointer;
    padding: 5px 0px 5px 0px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 30%;
}

.wishlist-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.wishlist-btn:hover {
    border-color: #ff4757;
    color: #ff4757;
}

.wishlist-btn.active {
    background: #ff4757;
    color: white;
    border-color: #ff4757;
}

/* Trust info */
.trust-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
    .info-column{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
    .action-buttons{
        align-items: center;
    }
}

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .trust-info {
        grid-template-columns: 1fr;
    }
}
