/* ==========================================================
   HOME
========================================================== */

.home-intro{

    color:var(--muted);

    line-height:1.7;

    font-size:.95rem;

}

/* ==========================================================
   PAGE DETAIL
========================================================== */

.pellet-detail {
    max-width: 900px;
    margin: 0 auto;
}

.pellet-overview {
    padding: 1rem;
    margin-bottom: 1rem;
}


/* ==========================================================
   ELEMENTS INTERNES DE LA CARTE
========================================================== */

.pellet-overview .pellet-header {
    margin-bottom: 1rem;
}


/* La ligne photo + actions */

.pellet-overview .pellet-product {
    margin-bottom: 1rem;
}


/* Burn + prix */

.pellet-overview .pellet-main-info {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

/* ==========================================================
   NOM DU PELLET
========================================================== */

.pellet-header {
    text-align: center;
    margin-bottom: 1rem;
}

.pellet-header .pellet-title {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.25;
    font-weight: 700;
}

.pellet-header .pellet-brand {
    margin-top: .2rem;
    color: var(--muted);
    font-size: .82rem;
}


/* ==========================================================
   PHOTO + ACTIONS
========================================================== */

.pellet-product {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 0;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}



/* ==========================================================
   GALERIE PHOTO
========================================================== */


.pellet-photo {
    width: 100%;
    min-width: 0;
}


/* PHOTO PRINCIPALE */
/* ==========================================================
   PHOTO PRINCIPALE
========================================================== */

.photo-main {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    height: 320px;

    padding: 0;
}

.photo-main img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 320px;

    object-fit: contain;

    border-radius: 8px;

    user-select: none;
    -webkit-user-drag: none;
}

/* ==========================================================
   PHOTO MINIATURES
========================================================== */

.photo-gallery {
    display: flex;

    gap: .5rem;

    margin-top: .6rem;

    overflow-x: auto;

    padding: .1rem .1rem .5rem;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
}

.photo-gallery::-webkit-scrollbar {
    display: none;
}

.photo-gallery img {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    object-fit: cover;

    border-radius: 6px;

    border: 2px solid transparent;

    cursor: pointer;

    opacity: .7;
}

.photo-gallery img.active {
    border-color: var(--primary);
    opacity: 1;
}


/* ACTIONS */

.pellet-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .45rem;
}

.pellet-action {
    display: flex;
    align-items: center;
    gap: .45rem;

    padding: .3rem 0;

    border: 0;
    background: none;

    color: var(--muted);
    font-size: .82rem;
    text-decoration: none;

    cursor: pointer;
}

.pellet-action:hover {
    color: var(--primary);
}


/* ==========================================================
   BURN + PRIX
========================================================== */


.pellet-main-info {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;

    align-items: center;

    padding: .8rem 0;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}


/* SEPARATION */

.main-info-separator {
    width: 1px;
    height: 55px;
    background: var(--border);
	margin: 1.5rem 1.5rem;
}


/* ==========================================================
   BURN
========================================================== */

.burn-block {
    text-align: center;
}

.burn-label {
    margin-bottom: .15rem;

    font-size: .78rem;
    color: var(--muted);
}

.burn-score-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .8rem;
}

.burn-score-big {
    font-size: 2.6rem;
    line-height: 1;
    font-weight: 800;
}

.burn-vote {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 1.2rem;
    font-weight: 700;

    text-decoration: none;

    transition: transform .15s ease;
}

.burn-vote:hover {
    transform: scale(1.08);
}

.burn-hot {
    background: #fee2e2;
    color: #b91c1c;
}

.burn-cold {
    background: #e0f2fe;
    color: #0369a1;
}

.burn-votes {
    margin-top: .2rem;

    color: var(--muted);
    font-size: .72rem;
}


/* ==========================================================
   PRIX
========================================================== */

.price-block {
    text-align: center;
}

.price-label {
    margin-bottom: .15rem;

    color: var(--muted);
    font-size: .78rem;
}

.price-main {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .25rem;
}

.price-main strong {
    font-size: 2.2rem;
    line-height: 1;
    font-weight: 800;
}

.price-main span {
    font-size: .8rem;
    color: var(--muted);
}

.price-history {
    margin-top: .3rem;
}

.price-history a {
    color: var(--primary);
    font-size: .75rem;
    text-decoration: none;
}

.price-history a:hover {
    text-decoration: underline;
}


/* ==========================================================
   PUBLICITE
========================================================== */

.pellet-ad {
    margin: 1rem 0;
}

.ad-placeholder {
    min-height: 80px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px dashed var(--border);
    border-radius: 8px;

    color: #9ca3af;
    font-size: .7rem;
    letter-spacing: .05em;
}


/* ==========================================================
   FICHE TECHNIQUE
========================================================== */

.pellet-technical {
    margin-top: 1rem;
}

.pellet-technical h3 {
    margin: 0 0 .8rem;

    font-size: 1rem;
}


/* GRILLE */

.technical-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    column-gap: 2rem;
}

.technical-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    padding: .45rem 0;

    border-bottom: 1px solid var(--border);

    font-size: .8rem;
}

.technical-item span {
    color: var(--muted);
}

.technical-item strong {
    text-align: right;
    font-weight: 600;
}


/* ==========================================================
   AVIS
========================================================== */

.pellet-reviews {
    margin-top: 1rem;
}
.reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .25rem;
}

.reviews-header h3 {
    margin: 0;
    font-size: 1rem;
}

.reviews-summary {
    display: flex;
    align-items: center;
    gap: .35rem;

    margin-bottom: .8rem;

    font-size: .78rem;
}

.reviews-summary span {
    color: var(--muted);
}

.reviews-slider {
    display: flex;
    gap: .7rem;

    overflow-x: auto;

    padding-bottom: .3rem;

    scrollbar-width: thin;
}

.review-card {
    flex: 0 0 230px;

    padding: .8rem;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: #fff;
}

.review-meta {
    font-size: .75rem;
    font-weight: 600;
}

.review-text {
    margin: .4rem 0 0;

    font-size: .78rem;
    line-height: 1.4;
}

.add-review-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: .35rem .65rem;

    border-radius: 6px;

    background: var(--primary);
    color: white;

    font-size: .78rem;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;

    transition: opacity .15s ease;
}

.add-review-button:hover {
    opacity: .85;
}

/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

    .pellet-detail {
        padding-left: .8rem;
        padding-right: .8rem;
    }


    /* NOM */

    .pellet-header {
        margin-bottom: .7rem;
    }

    .pellet-header .pellet-title {
        font-size: 1.25rem;
    }


    .pellet-product {
        grid-template-columns: 60% 40%;
        gap: 0;
        padding: 0;
    }

    .photo-main {
        width: 100%;
        height: 240px;
        padding: 0;
    }

    .photo-main img {
        width: auto;
        height: auto;

        max-width: 100%;
        max-height: 240px;

        object-fit: contain;
    }

    .photo-gallery {
        justify-content: flex-start;
        gap: .35rem;
        margin-top: .3rem;
        padding: .1rem .4rem .4rem;
    }

    .photo-gallery img {
        flex: 0 0 42px;
        width: 42px;
        height: 42px;
    }

    .pellet-product-info {
        min-width: 0;
        padding: .8rem;
    }




    /* ACTIONS */

    .pellet-actions {
        gap: .2rem;
    }

    .pellet-action {
        font-size: .75rem;
    }


    /* BURN + PRICE */

    .pellet-main-info {
        grid-template-columns: 1fr 1px 1fr;

        padding: .7rem 0;
    }

    .burn-score-big {
        font-size: 2.25rem;
    }

    .burn-score-row {
        gap: .5rem;
    }

    .burn-vote {
        width: 40px;
        height: 40px;

        font-size: 1rem;
    }

    .price-main strong {
        font-size: 1.9rem;
    }


    /* FICHE TECHNIQUE */

    .technical-grid {
        grid-template-columns: 1fr;
    }

    .technical-item {
        font-size: .78rem;
    }


    /* AVIS */

	.reviews-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-direction: row;
		gap: .5rem;
	}

	.reviews-header h3 {
		font-size: .95rem;
	}

	.add-review-button {
		padding: .35rem .55rem;
		font-size: .72rem;
	}

	.review-card {
		flex-basis: 220px;
	}

    .review-card {
        flex-basis: 220px;
    }

}

/* ==========================================================
   LISTE PELLETS
========================================================== */

.pellet-row{

    display:flex;

    align-items:center;

    gap:1rem;

    padding:1rem 0;

    border-top:1px solid var(--border);

    transition:.2s;

}

.pellet-row:first-child{

    border:none;

}

.pellet-row:hover{

    background:#fafafa;

}

.pellet-thumb{

    width:70px;

    height:70px;

    flex-shrink:0;

    border-radius:12px;

    overflow:hidden;

    background:#f3f4f6;

}

.pellet-thumb img{

    width:100%;

    height:100%;

    object-fit:cover;

}

.pellet-placeholder{

    display:flex;

    align-items:center;

    justify-content:center;

    width:100%;

    height:100%;

    font-size:2rem;

}

.pellet-content{

    flex:1;

    min-width:0;

}

.pellet-liste{

    font-weight:700;

    font-size:1.05rem;

}

.pellet-arrow{

    font-size:2rem;

    color:#cbd5e1;

}

/* ==========================================================
   META
========================================================== */

.pellet-meta{

    margin-top:.4rem;

}

.meta-item{

    color:var(--muted);

    font-size:.82rem;

}

.meta-icon{

    margin-right:.15rem;

}

/* ==========================================================
   DETAIL
========================================================== */

.hero-grid{

    display:grid;

    grid-template-columns:260px 1fr;

    gap:2rem;

    align-items:start;

}

.hero-summary{

    display:flex;

    flex-direction:column;

    gap:1rem;

}

.summary-item{

    display:flex;

    align-items:center;

    gap:.8rem;

}

.summary-icon{

    width:46px;

    height:46px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:#f3f4f6;

    font-size:1.3rem;

}

.summary-item strong{

    display:block;

}

.summary-item small{

    display:block;

}

/* ==========================================================
   DASHBOARD
========================================================== */

.hero-dashboard{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:1rem;

}

.dashboard-card{

    padding:1.5rem;

}

.dashboard-card h3{

    margin-bottom:1rem;

}

/* ==========================================================
   PRICE
========================================================== */

.price-value{

    font-size:2.2rem;

    font-weight:700;

}

.price-trend{

    margin:.7rem 0;

}

.price-history-link{

    color:var(--primary);

}

.price-history-link:hover{

    text-decoration:underline;

}

/* ==========================================================
   TABLE
========================================================== */

table{

    width:100%;

    border-collapse:collapse;

}

td{

    padding:.8rem 0;

    border-bottom:1px solid var(--border);

}

td:last-child{

    text-align:right;

    font-weight:600;

}


/* ========================= */
/* SCAN CAMERA */
/* ========================= */
/* ==========================================================
   SCAN CAMERA
========================================================== */

.scan-zone {
    text-align: center;
}

.scan-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}

.scan-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.scan-frame::after {
    content: "";

    position: absolute;

    inset: 12%;

    border: 2px dashed rgba(255,255,255,0.7);

    border-radius: 12px;

    pointer-events: none;
}

.scan-hint {
    color: var(--muted);
    font-size: 0.9rem;
}

.scan-status {
    font-size: 0.85rem;
    color: #9ca3af;
}

