/* ===== HEAD ===== */

.product-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
}

/* ===== HEADER ===== */

.navbar {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    background: #fff !important;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ff7b00, #ff4d00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #444 !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all .2s ease;
    position: relative;
}

.nav-link:hover {
    color: #ff4d00 !important;
    background: #fff5f0;
}

.nav-link.active {
    color: #ff4d00 !important;
    background: #fff5f0;
}

.btn-panier {
    background: linear-gradient(135deg, #ff7b00, #ff4d00);
    border: none;
    color: white !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 10px;
    transition: opacity .2s ease, transform .2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-panier:hover {
    opacity: .88;
    transform: translateY(-1px);
    color: white !important;
}

.btn-backoffice {
    background: #1a1a1a;
    border: none;
    color: white !important;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-backoffice:hover {
    opacity: .8;
    color: white !important;
}


/* lstproduit */

.page-produits {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 60px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.page-header p {
    color: #888;
    font-size: 1.1rem;
}

.divider {
    width: 55px;
    height: 4px;
    background: linear-gradient(90deg, #ff7b00, #ff4d00);
    border-radius: 2px;
    margin: 14px auto 0;
}

/* FILTRES */
.filtres {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 45px;
    padding: 0 20px;
}

.btn-filtre {
    padding: 10px 24px;
    border-radius: 50px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #555;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s ease;
}

.btn-filtre:hover {
    border-color: #ff4d00;
    color: #ff4d00;
}

.btn-filtre.actif {
    background: linear-gradient(135deg, #ff7b00, #ff4d00);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 14px rgba(255, 100, 0, 0.35);
}

.grid-produit {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 32px;
    padding: 0 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.card-produit {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.card-produit:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}

.card-img-wrap {
    overflow: hidden;
    height: 230px;
    position: relative;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.card-produit:hover .card-img-wrap img {
    transform: scale(1.06);
}

.card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255,255,255,0.92);
    color: #ff4d00;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
    letter-spacing: .5px;
    backdrop-filter: blur(4px);
}

.card-body {
    padding: 22px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body h2 {
    font-size: 1.2rem;
    margin: 0 0 8px 0;
    color: #1a1a1a;
    font-weight: 700;
}

.card-body p {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.card-prix {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ff4d00;
}

.card-prix span {
    font-size: 13px;
    font-weight: 500;
    color: #aaa;
    margin-left: 2px;
}

.btn-produit {
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff7b00, #ff4d00);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: opacity .2s ease, transform .2s ease;
}

.btn-produit:hover {
    opacity: .88;
    transform: translateY(-1px);
    color: white;
}

.aucun-produit {
    text-align: center;
    color: #aaa;
    font-size: 1.1rem;
    padding: 60px 0;
    grid-column: 1 / -1;
}

@media (max-width: 600px) {
    .grid-produit {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/*unproduit*/

.fiche-wrapper {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 50px 20px;
}

.fiche-retour-wrap {
    max-width: 1100px;
    margin: 0 auto 20px auto;
}

.fiche-produit {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.08);
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.fiche-img-wrap {
    position: relative;
    flex-shrink: 0;
}

.fiche-img-wrap img {
    width: 420px;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.fiche-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,0.95);
    color: #ff4d00;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fiche-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fiche-categorie {
    font-size: 13px;
    font-weight: 700;
    color: #ff4d00;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.fiche-info h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.fiche-divider {
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, #ff7b00, #ff4d00);
    border-radius: 2px;
    margin-bottom: 24px;
}

.fiche-description {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 28px;
}

.fiche-prix-block {
    background: #fff8f5;
    border: 1px solid #ffe0d0;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.fiche-prix-ht {
    font-size: 2rem;
    font-weight: 800;
    color: #ff4d00;
}

.fiche-prix-ht small {
    font-size: 14px;
    font-weight: 500;
    color: #aaa;
    margin-left: 4px;
}

.fiche-prix-ttc {
    font-size: 14px;
    color: #888;
    font-weight: 500;
}

.fiche-prix-ttc strong {
    color: #444;
}

.fiche-infos-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.fiche-infos-list .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.info-item .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #fff3ee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.quantite-label {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.quantite-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.quantite-wrap input {
    width: 100px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px;
    transition: border-color .2s;
}

.quantite-wrap input:focus {
    border-color: #ff4d00;
    outline: none;
}

.btn-panier {
    background: linear-gradient(135deg, #ff7b00, #ff4d00);
    border: none;
    color: white;
    font-size: 17px;
    font-weight: 700;
    border-radius: 14px;
    padding: 16px 24px;
    width: 100%;
    box-shadow: 0 6px 20px rgba(255, 100, 0, 0.3);
    transition: transform .15s ease, box-shadow .15s ease;
    cursor: pointer;
}

.btn-panier:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 100, 0, 0.4);
}

.btn-retour {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    background: #f0f0f0;
    color: #444;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s ease;
}

.btn-retour:hover {
    background: #e0e0e0;
    color: #222;
}

@media (max-width: 900px) {
    .fiche-produit {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
    }

    .fiche-img-wrap img {
        width: 100%;
        height: 280px;
    }
}

/*acceuil*/

.form-row {
    display: flex;
    gap: 15px;
}

/*commande*/

body {
    background: #f5f6f7;
    font-family: Arial, sans-serif;
    margin: 0;
}

.page {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: auto;
}

.left {
    width: 65%;
}

.right {
    width: 30%;
    position: sticky;
    top: 20px;
}

.amazon-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.amazon-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

h1 {
    font-size: 26px;
    margin-bottom: 20px;
}

.input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    transition: 0.2s;
}

.input:focus {
    border-color: #ff9900;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255,153,0,0.2);
}

.row {
    display: flex;
    gap: 15px;
}

.btn-amazon {
    background: #ff9900;
    border: none;
    padding: 15px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-top: 10px;
    transition: 0.2s;
}

.btn-amazon:hover {
    background: #e68a00;
}

.error-box {
    background: #ffeaea;
    border: 1px solid #ff4d4d;
    color: #b30000;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.recap-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
}

.recap-total {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
    font-size: 18px;
    font-weight: bold;
}

.btn-retour-produit {
    display: inline-block;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #ff9900;
    color: #ff9900;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: .2s;
}

.btn-retour-produit:hover {
    background: #fff5e6;
    color: #e68a00;
}

/* Responsive */
@media (max-width: 900px) {
    .page {
        flex-direction: column;
    }

    .left, .right {
        width: 100%;
    }

    .right {
        position: static;
    }
}