/* =========================================
   KIMONO PLAGE — Product Category Refonte V2
   ========================================= */

/* === FULL BLEED === */
body.tax-product_cat .site-main,
body.tax-product_cat #main,
body.tax-product_cat .entry-content,
body.tax-product_cat .entry-content-wrap {
    padding: 0 !important;
    max-width: 100% !important;
}

/* === HERO CATEGORY === */
body.tax-product_cat .woocommerce-products-header,
body.tax-product_cat header.entry-header,
body.tax-product_cat header.product-archive-title,
body.tax-product_cat .product-archive-title {
    background: linear-gradient(135deg, rgba(30,77,107,0.85) 0%, rgba(15,34,51,0.95) 100%);
    color: #FBF7EE;
    padding: 56px 16px 40px;
    margin: 0 0 24px 0 !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(50% - 50vw) !important;
}
body.tax-product_cat .page-title.archive-title,
body.tax-product_cat .woocommerce-products-header__title,
body.tax-product_cat header.entry-header h1,
body.tax-product_cat .product-archive-title h1 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: clamp(28px, 7vw, 44px) !important;
    color: #FBF7EE !important;
    margin: 0 0 12px !important;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
body.tax-product_cat .archive-description,
body.tax-product_cat .term-description,
body.tax-product_cat .woocommerce-products-header .term-description {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(251,247,238,0.92);
    max-width: 600px;
    margin: 0 auto !important;
    padding: 0 8px;
}

/* Eyebrow over title */
body.tax-product_cat .woocommerce-products-header::before,
body.tax-product_cat header.entry-header::before,
body.tax-product_cat .product-archive-title::before {
    content: 'Collection';
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #C9A876;
    margin-bottom: 8px;
}

/* === BREADCRUMBS === */
body.tax-product_cat .woocommerce-breadcrumb {
    font-size: 12px !important;
    color: #6B7785 !important;
    padding: 12px 16px !important;
    margin: 0 !important;
}
body.tax-product_cat .woocommerce-breadcrumb a {
    color: #1E4D6B !important;
}

/* === FILTERS BAR === */
body.tax-product_cat .woocommerce-result-count,
body.tax-product_cat .kp-archive-filters {
    font-size: 13px !important;
    color: #6B7785 !important;
    padding: 0 16px !important;
    margin: 0 0 8px !important;
}
body.tax-product_cat .woocommerce-ordering {
    padding: 0 16px !important;
    margin: 0 0 16px !important;
}
body.tax-product_cat .woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid rgba(15,34,51,0.10);
    border-radius: 999px;
    font-size: 13px;
    background: white;
}

/* === PRODUCT GRID — 2 cols mobile === */
body.tax-product_cat .products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    list-style: none !important;
}
@media (min-width: 768px) {
    body.tax-product_cat .products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 18px !important;
    }
}
@media (min-width: 1024px) {
    body.tax-product_cat .products {
        grid-template-columns: repeat(4, 1fr) !important;
        max-width: 1200px;
        margin: 0 auto !important;
        padding: 0 24px !important;
    }
}
body.tax-product_cat .products .product {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}
body.tax-product_cat .products .product:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15,34,51,0.10);
}
body.tax-product_cat .products .product .woocommerce-LoopProduct-link {
    display: block;
    text-decoration: none;
}
body.tax-product_cat .products .product img {
    width: 100% !important;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 0;
    margin: 0 !important;
    transition: transform 0.4s ease;
}
body.tax-product_cat .products .product:hover img {
    transform: scale(1.04);
}
body.tax-product_cat .products .product h3,
body.tax-product_cat .products .product h2,
body.tax-product_cat .products .product .woocommerce-loop-product__title {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #0F2233 !important;
    padding: 10px 12px 4px !important;
    margin: 0 !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}
body.tax-product_cat .products .product .price {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0F2233 !important;
    padding: 0 12px 12px !important;
    margin: 0 !important;
}
body.tax-product_cat .products .product .price del {
    color: #6B7785 !important;
    font-weight: 400;
    margin-right: 6px;
}

/* Sale badge */
body.tax-product_cat .products .product .onsale {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: #C9A876 !important;
    color: white !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    min-width: 0 !important;
    line-height: 1 !important;
    min-height: 0 !important;
    z-index: 1;
}

/* Add to cart button in loop */
body.tax-product_cat .products .product .button {
    display: none !important;
}

/* === PAGINATION === */
body.tax-product_cat .woocommerce-pagination {
    text-align: center !important;
    margin: 32px 0 48px !important;
    padding: 0 16px !important;
}
body.tax-product_cat .woocommerce-pagination ul {
    border: none !important;
    display: inline-flex !important;
    gap: 6px;
}
body.tax-product_cat .woocommerce-pagination ul li {
    border: none !important;
}
body.tax-product_cat .woocommerce-pagination a,
body.tax-product_cat .woocommerce-pagination span {
    min-width: 38px;
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 12px !important;
    border-radius: 999px !important;
    background: white !important;
    border: 1px solid rgba(15,34,51,0.10) !important;
    color: #0F2233 !important;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}
body.tax-product_cat .woocommerce-pagination .current {
    background: #0F2233 !important;
    color: #FBF7EE !important;
    border-color: #0F2233 !important;
}
body.tax-product_cat .woocommerce-pagination a:hover {
    background: #FBF7EE !important;
    border-color: #C9A876 !important;
}

/* === SEO BOTTOM SECTION === */
body.tax-product_cat .archive-bottom-content,
body.tax-product_cat .term-description-bottom {
    background: #F3EDDC;
    margin: 48px 16px 0;
    padding: 24px 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
    color: #1C1917;
}
@media (min-width: 1024px) {
    body.tax-product_cat .archive-bottom-content,
    body.tax-product_cat .term-description-bottom {
        max-width: 1100px;
        margin: 48px auto 0;
    }
}
body.tax-product_cat .archive-bottom-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: #0F2233;
    margin-bottom: 12px;
}
body.tax-product_cat .archive-bottom-content a {
    color: #1E4D6B;
    border-bottom: 1px solid currentColor;
}


/* Force grid 2-col mobile (Kadence uses grid-sm-col-2 by default but applies it later) */
body.tax-product_cat ul.products.grid-cols,
body.tax-product_cat ul.products.grid-sm-col-2,
body.tax-product_cat ul.products.grid-lg-col-3 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
}
@media (min-width: 768px) {
    body.tax-product_cat ul.products.grid-cols {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (min-width: 1024px) {
    body.tax-product_cat ul.products.grid-cols {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
