/* OKZ — Styles globaux */

:root {
    --okz-primary: #1a1a2e;
    --okz-accent:  #e63946;
}

/* === Cartes produits (listing) === */

.product-card {
    transition: box-shadow .15s, transform .15s;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}
.product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    transform: translateY(-2px);
}
.product-card.sold {
    opacity: .6;
    filter: grayscale(.4);
}
.product-thumb-wrap {
    position: relative;
    background: #f8f9fa;
}
.product-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.product-thumb-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
}
.product-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

/* === Fiche produit === */

.product-detail-img {
    max-height: 420px;
    object-fit: contain;
    background: #f8f9fa;
}
.thumb-mini {
    transition: opacity .1s;
}
.thumb-mini:hover {
    opacity: .75;
}

/* === Admin === */

.table th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* === Navbar === */

.navbar-brand {
    font-size: 1.3rem;
    letter-spacing: -.02em;
}

/* === Badges de statut === */

.badge {
    font-weight: 600;
}

/* === Mobile === */

@media (max-width: 576px) {
    main.container {
        padding-left: 12px;
        padding-right: 12px;
    }
    .product-detail-img {
        max-height: 280px;
    }
    h1.h3 {
        font-size: 1.25rem;
    }
}

/* === Label PDF placeholder (preview dans le navigateur) === */

.label-preview {
    width: 378px;  /* 10cm @ 96dpi */
    height: 227px; /* 6cm  @ 96dpi */
    border: 2px dashed #ccc;
    border-radius: 6px;
    font-size: 11px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
