
/* Hide default WordPress page titles */
body.page .entry-title,
body.page .page-title,
body.page .wp-block-post-title {
    display: none !important;
}
/* Give the product photo and details some space from the page edges. */
body.single-product #primary {
    box-sizing: border-box;
    width: 92%;
    max-width: 1200px;
    margin: 32px auto 64px;
}

body.single-product div.product .product_title {
    font-size: clamp(32px, 4vw, 56px);
    line-height: 1.1;
    overflow-wrap: anywhere;
}

/* Start the related section below both the gallery and the summary. */
body.single-product div.product section.related.products {
    display: block;
    clear: both;
    padding-top: 32px;
}

body.single-product section.related.products > h2 {
    font-size: 32px;
    margin: 0 0 20px;
}

/* Only the cards inside the section should form a grid. */
body.single-product section.related.products ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0;
}

body.single-product section.related.products ul.products::before,
body.single-product section.related.products ul.products::after {
    display: none;
}

body.single-product section.related.products ul.products li.product {
    display: block;
    float: none;
    width: auto;
    margin: 0;
}

body.single-product section.related.products .woocommerce-loop-product__title {
    font-size: 16px;
    line-height: 1.4;
    margin: 8px 0;
}

@media (max-width: 768px) {
    body.single-product section.related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* All WooCommerce product categories, including future categories. */
body.tax-product_cat #primary {
    width: 92%;
    max-width: 1200px;
    margin: 24px auto 64px;
}

/* Keep the category heading close to the products. */
body.tax-product_cat #primary .woocommerce-products-header {
    display: block;
    position: static;
    height: auto;
    min-height: 0;
    padding: 16px 0;
    margin: 0 0 20px;
}

body.tax-product_cat #primary .woocommerce-products-header__title {
    margin: 0;
    font-size: clamp(36px, 4vw, 58px);
    line-height: 1.1;
}

/* Let each card fill its column. */
body.tax-product_cat #primary ul.products {
    display: grid;
    clear: both;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 20px;
    padding: 0;
    margin: 0 0 32px;
    list-style: none;
}

/* WooCommerce's float helpers otherwise occupy empty grid cells. */
body.tax-product_cat #primary ul.products::before,
body.tax-product_cat #primary ul.products::after {
    content: none;
}

body.tax-product_cat #primary ul.products > li.product {
    float: none;
    clear: none;
    width: auto;
    min-width: 0;
    margin: 0;
    text-align: center;
}

body.tax-product_cat #primary ul.products > li.product a img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

body.tax-product_cat #primary ul.products > li.product h2 {
    margin: 12px 0 0;
    padding: 0;
    font: 500 16px/1.4 Manrope, sans-serif;
    overflow-wrap: anywhere;
}

body.tax-product_cat #primary ul.products > li.product .button {
    display: inline-block;
    width: auto;
    margin: 8px 0 0;
    padding: 8px 12px;
    font-size: 12px;
    letter-spacing: 0.04em;
}

/* Keep page links visible on phones despite the theme's mobile nav styles. */
body.tax-product_cat #primary nav.woocommerce-pagination {
    display: block;
    position: static;
    padding: 0;
    text-align: center;
}

@media (max-width: 900px) {
    body.tax-product_cat #primary ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body.tax-product_cat #primary ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 12px;
    }

    body.tax-product_cat #primary .woocommerce-result-count,
    body.tax-product_cat #primary .woocommerce-ordering {
        float: none;
        margin: 0 0 12px;
    }
}

/* Country Denim — main Product List, page 290 */

.page-id-290 .cd-standard-content {
    box-sizing: border-box;
    width: min(92%, 1200px);
    max-width: none;
    margin-inline: auto;
    padding: clamp(24px, 3vw, 44px) 0 64px;
}

/* Collection heading */
.page-id-290 .page-intro {
    padding: 0 0 24px;
}

.page-id-290 .page-intro .eyebrow {
    margin: 0 0 10px;
}

.page-id-290 .page-intro h1 {
    max-width: none;
    margin: 0 0 12px;
    font-size: clamp(38px, 4.5vw, 64px);
    line-height: 1.05;
}

.page-id-290 .page-intro h1 br {
    display: none;
}

.page-id-290 .page-intro > p:last-child {
    margin: 0;
    line-height: 1.55;
}

/* Product search and category selector */
.page-id-290 main :is(.wp-block-search, .woocommerce-product-search) {
    margin: 0 0 12px;
}

.page-id-290 main :is(input[type="search"], select) {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
    margin-block: 0;
    padding: 8px 12px;
    border: 1px solid #bdb2a6;
    border-radius: 2px;
    background-color: #fffdf9;
    color: #302a27;
    font: inherit;
}

.page-id-290 main input[type="search"] {
    min-width: 0;
}

.page-id-290 main :is(
    .wp-block-search__button,
    .woocommerce-product-search button,
    .wc-block-product-categories__button
) {
    width: auto;
    min-width: 44px;
    min-height: 44px;
    margin-block: 0;
    padding: 8px 16px;
    border: 1px solid #302a27;
    border-radius: 2px;
    background: #302a27;
    color: #fffdf9;
}

.page-id-290 .wc-block-product-categories.is-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 24px;
}

/* Product grid */
.page-id-290 main :is(
    .wc-block-product-template,
    .wc-block-grid__products,
    ul.products
) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-id-290 main :is(.wc-block-grid__products, ul.products)::before,
.page-id-290 main :is(.wc-block-grid__products, ul.products)::after {
    content: none;
}

.page-id-290 main :is(
    .wc-block-product-template,
    .wc-block-grid__products,
    ul.products
) > li {
    box-sizing: border-box;
    float: none;
    width: 100% !important;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Product photographs and style numbers */
.page-id-290 main :is(
    .wc-block-components-product-image,
    .wc-block-grid__product-image
) img {
    display: block;
    width: 100%;
    height: auto;
}

.page-id-290 main :is(.wc-block-product-template, .wc-block-grid__products, ul.products)
:is(.wp-block-post-title, .wc-block-grid__product-title, .woocommerce-loop-product__title) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 10px 0 0;
    color: #302a27;
    font: 500 15px/1.4 Manrope, sans-serif;
    text-align: center;
    overflow-wrap: anywhere;
}

/* Three columns on tablets */
@media (max-width: 900px) {
    .page-id-290 main :is(.wc-block-product-template, .wc-block-grid__products, ul.products) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Two columns on phones */
@media (max-width: 600px) {
    .page-id-290 main :is(.wc-block-product-template, .wc-block-grid__products, ul.products) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }
}

@media (max-width: 900px) {
    body.single-product nav.woocommerce-breadcrumb {
        display: block;
        position: static;
        margin: 0 0 16px;
        padding: 0;
        border: 0;
        background: transparent;
        font-size: 13px;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }

    body.single-product nav.woocommerce-breadcrumb a {
        display: inline;
        padding: 0;
        color: inherit;
        text-decoration: underline;
        text-underline-offset: 3px;
    }
}