/**
 * Les Jardins de la Dosse — Archive product (pages catégorie)
 * Layout pixel-perfect V1 Crate & Barrel adapté au catalogue résine tressée.
 * Chargé uniquement sur is_product_category() / is_shop() / is_product_taxonomy().
 */

/* ============================================================
   RESET LIGHT pour zone archive
   ============================================================ */
.ljd-arch-wrap,
.ljd-arch-wrap * {
    box-sizing: border-box;
}

.ljd-arch-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1a1a1a;
    background: #fff;
}

/* ============================================================
   BANDEAU PROMO (sous header)
   ============================================================ */
.ljd-arch-banner {
    background: #2f4a3a;
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 12px;
    letter-spacing: 0.04em;
}
.ljd-arch-banner strong { font-weight: 700; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.ljd-arch-breadcrumb {
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px 32px 0;
    font-size: 12px;
    color: #999;
}
.ljd-arch-breadcrumb a { color: #999; text-decoration: none; }
.ljd-arch-breadcrumb a:hover { color: #1a1a1a; }
.ljd-arch-breadcrumb .woocommerce-breadcrumb { color: #999; }
.ljd-arch-breadcrumb .woocommerce-breadcrumb a { color: #999; }

/* ============================================================
   H1 + sous-titre catégorie
   ============================================================ */
.ljd-arch-title {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 48px;
    font-weight: 500;
    text-align: center;
    margin: 24px 0 8px;
    color: #1a1a1a;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.ljd-arch-subtitle {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 0 0 32px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
    line-height: 1.6;
}

/* ============================================================
   FILTER BAR (sticky)
   ============================================================ */
.ljd-arch-filter-bar {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 40;
}
.ljd-arch-filter-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 14px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}
.ljd-arch-filter-spacer { flex: 1 1 auto; }
.ljd-arch-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 14px;
    border: 1px solid #1a1a1a;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-family: inherit;
    white-space: nowrap;
}
.ljd-arch-filter-btn:hover { background: #1a1a1a; color: #fff; }

.ljd-arch-filter-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.ljd-arch-filter-pill {
    font-size: 12px;
    padding: 7px 14px;
    border: 1px solid #d4d4d4;
    background: #fff;
    color: #1a1a1a;
    cursor: pointer;
    border-radius: 20px;
    white-space: nowrap;
    font-family: inherit;
    text-decoration: none;
}
.ljd-arch-filter-pill:hover { border-color: #1a1a1a; color: #1a1a1a; }
.ljd-arch-filter-pill.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

.ljd-arch-filter-view {
    display: flex;
    gap: 4px;
    border: 1px solid #d4d4d4;
    padding: 4px;
}
.ljd-arch-filter-view button {
    width: 28px;
    height: 28px;
    border: 0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}
.ljd-arch-filter-view button.active { background: #1a1a1a; color: #fff; }

.ljd-arch-filter-count {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}
.ljd-arch-filter-sort {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}
.ljd-arch-filter-sort select {
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: inherit;
    padding-right: 16px;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.ljd-arch-grid-wrap {
    max-width: 1440px;
    margin: 0 auto;
    padding: 32px 32px 0;
}
.ljd-arch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
}
.ljd-arch-card {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.ljd-arch-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7f5f0;
    overflow: hidden;
}
.ljd-arch-card-img img,
.ljd-arch-card-img a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform .4s ease;
    display: block;
}
.ljd-arch-card:hover .ljd-arch-card-img img {
    transform: scale(1.02);
}
.ljd-arch-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.06em;
    background: rgba(255,255,255,0.92);
    padding: 6px 12px;
    text-transform: uppercase;
    z-index: 2;
}
.ljd-arch-card-badge.is-sale { background: #2f4a3a; color: #fff; }
.ljd-arch-card-wish {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    z-index: 2;
    border: 0;
}
.ljd-arch-card-wish:hover { background: #fff; }
.ljd-arch-card-body {
    padding: 18px 0 8px;
}
.ljd-arch-card-title {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 17px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 6px;
    line-height: 1.3;
}
.ljd-arch-card-title a {
    color: inherit;
    text-decoration: none;
}
.ljd-arch-card-title a:hover { color: #2f4a3a; }
.ljd-arch-card-price {
    font-size: 14px;
    color: #1a1a1a;
    margin: 0;
    font-weight: 400;
}
.ljd-arch-card-price .woocommerce-Price-amount,
.ljd-arch-card-price ins,
.ljd-arch-card-price del { color: inherit; font-weight: 400; text-decoration: none; }
.ljd-arch-card-price del { color: #999; text-decoration: line-through; margin-right: 6px; }
.ljd-arch-card-swatches {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    align-items: center;
}
.ljd-arch-swatch {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    transition: transform .15s;
}
.ljd-arch-swatch:hover { transform: scale(1.15); }
.ljd-arch-swatch-more {
    font-size: 11px;
    color: #999;
    margin-left: 4px;
}

/* ============================================================
   DESIGN DESK CARD (insert dans la grille à la position 5)
   ============================================================ */
.ljd-arch-design-desk {
    background: #f7f5f0;
    padding: 56px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    aspect-ratio: 1 / 1;
}
.ljd-arch-design-desk-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #2f4a3a;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.ljd-arch-design-desk-title {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.15;
    color: #1a1a1a;
    margin: 0 0 16px;
    max-width: 320px;
}
.ljd-arch-design-desk-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 0 24px;
    max-width: 320px;
}
.ljd-arch-design-desk-link {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 4px;
}
.ljd-arch-design-desk-link:hover {
    color: #2f4a3a;
    border-bottom-color: #2f4a3a;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.ljd-arch-pagination {
    text-align: center;
    padding: 56px 0 80px;
}
.ljd-arch-pagination-count {
    font-size: 12px;
    color: #999;
    margin: 0 0 16px;
    letter-spacing: 0.05em;
}
.ljd-arch-view-more {
    display: inline-block;
    padding: 16px 48px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 0;
}
.ljd-arch-view-more:hover { background: #2f4a3a; color: #fff; }

/* WC native pagination overrides */
.ljd-arch-pagination .woocommerce-pagination ul.page-numbers {
    display: inline-flex;
    gap: 4px;
    border: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}
.ljd-arch-pagination .woocommerce-pagination li {
    border: 0;
}
.ljd-arch-pagination .woocommerce-pagination a,
.ljd-arch-pagination .woocommerce-pagination span {
    padding: 12px 18px !important;
    background: #fff;
    color: #1a1a1a !important;
    border: 1px solid #d4d4d4 !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-block;
}
.ljd-arch-pagination .woocommerce-pagination span.current {
    background: #1a1a1a !important;
    color: #fff !important;
    border-color: #1a1a1a !important;
}

/* ============================================================
   INSPIRATIONS SECTION
   ============================================================ */
.ljd-arch-inspirations {
    padding: 80px 32px;
    background: #f7f5f0;
}
.ljd-arch-section-title {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 36px;
    font-weight: 500;
    text-align: center;
    margin: 0 0 48px;
    color: #1a1a1a;
}
.ljd-arch-inspirations-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.ljd-arch-inspirations-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.ljd-arch-inspirations-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #ddd;
    overflow: hidden;
}
.ljd-arch-inspirations-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.ljd-arch-inspirations-card:hover img { transform: scale(1.04); }
.ljd-arch-inspirations-label {
    margin-top: 14px;
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 18px;
    color: #1a1a1a;
    text-align: center;
}

/* ============================================================
   SHOP BY CATEGORY
   ============================================================ */
.ljd-arch-shop-cat {
    padding: 80px 32px;
    background: #fff;
}
.ljd-arch-shop-cat-grid {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
}
.ljd-arch-shop-cat-card {
    flex: 0 0 220px;
    max-width: 220px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.ljd-arch-shop-cat-circle {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #f7f5f0;
    overflow: hidden;
    transition: transform .3s;
}
.ljd-arch-shop-cat-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ljd-arch-shop-cat-card:hover .ljd-arch-shop-cat-circle { transform: scale(1.04); }
.ljd-arch-shop-cat-label {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   RELATED PILLS
   ============================================================ */
.ljd-arch-related {
    padding: 0 32px 80px;
}
.ljd-arch-related-inner {
    max-width: 1440px;
    margin: 0 auto;
}
.ljd-arch-related-title {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    margin: 0 0 24px;
    color: #1a1a1a;
}
.ljd-arch-related-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ljd-arch-related-pill {
    display: inline-block;
    padding: 10px 18px;
    background: #fff;
    color: #2f4a3a;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #2f4a3a;
    transition: all .2s;
}
.ljd-arch-related-pill:hover {
    background: #2f4a3a;
    color: #fff;
}

/* ============================================================
   SEO LONG-FORM CONTENT
   ============================================================ */
.ljd-arch-seo {
    padding: 80px 32px;
    background: #fafaf8;
    border-top: 1px solid #e5e5e5;
}
.ljd-arch-seo-inner {
    max-width: 880px;
    margin: 0 auto;
}
.ljd-arch-seo h2 {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 32px;
    font-weight: 500;
    margin: 0 0 28px;
    color: #1a1a1a;
    line-height: 1.2;
}
.ljd-arch-seo h3 {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 22px;
    font-weight: 500;
    margin: 40px 0 16px;
    color: #1a1a1a;
}
.ljd-arch-seo p {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
    margin: 0 0 18px;
}
.ljd-arch-seo strong {
    color: #1a1a1a;
    font-weight: 600;
}
.ljd-arch-seo ul {
    padding-left: 24px;
    margin: 0 0 18px;
}
.ljd-arch-seo li {
    font-size: 15px;
    line-height: 1.75;
    color: #333;
    margin-bottom: 8px;
}
.ljd-arch-seo a {
    color: #2f4a3a;
    text-decoration: underline;
}

/* ============================================================
   ÉTAT VIDE (catégorie sans produits — utile en pré-import)
   ============================================================ */
.ljd-arch-empty {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 32px;
    text-align: center;
}
.ljd-arch-empty h2 {
    font-family: 'Bodoni Moda', Georgia, serif;
    font-size: 28px;
    font-weight: 500;
    margin: 0 0 16px;
    color: #1a1a1a;
}
.ljd-arch-empty p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .ljd-arch-grid { grid-template-columns: repeat(2, 1fr); }
    .ljd-arch-inspirations-grid { grid-template-columns: repeat(2, 1fr); }
    .ljd-arch-title { font-size: 40px; }
}

@media (max-width: 768px) {
    .ljd-arch-title { font-size: 32px; margin: 16px 0 6px; }
    .ljd-arch-subtitle { font-size: 13px; }
    .ljd-arch-grid { grid-template-columns: 1fr; gap: 16px; }
    .ljd-arch-filter-inner { flex-wrap: wrap; padding: 12px 16px; gap: 12px; }
    .ljd-arch-filter-pills { width: 100%; order: 3; }
    .ljd-arch-grid-wrap { padding: 24px 16px 0; }
    .ljd-arch-design-desk { padding: 40px 24px; }
    .ljd-arch-design-desk-title { font-size: 28px; }
    .ljd-arch-section-title { font-size: 28px; margin: 0 0 32px; }
    .ljd-arch-inspirations { padding: 56px 16px; }
    .ljd-arch-shop-cat { padding: 56px 16px; }
    .ljd-arch-related { padding: 0 16px 56px; }
    .ljd-arch-seo { padding: 56px 16px; }
    .ljd-arch-seo h2 { font-size: 26px; }
    .ljd-arch-seo h3 { font-size: 20px; }
}
