/* =====================================================
   High Cotton Closet - Clean Final CSS
   Homepage hero, mobile hero, product cards, dropdown,
   boutique buttons, New Arrivals grid, category pages
   ===================================================== */


/* Hide duplicate WordPress site title text */
.wp-block-site-title {
    display: none !important;
}


/* Prevent sideways scrolling from full-width sections */
body {
    overflow-x: hidden !important;
}


/* Let Kadence control the global logo size.
   Current Header > Logo Max Width setting: 91px. */


/* Remove extra space above homepage content */
.home .site-main,
.home .content-area,
.home .entry-content,
.home .wp-block-post-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}


/* =====================================================
   DESKTOP HERO
   ===================================================== */

@media screen and (min-width: 1025px) {

    .home .entry-content > .wp-block-cover:first-child,
    .home .wp-block-post-content > .wp-block-cover:first-child,
    .home .wp-block-cover:first-child {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        margin-top: 0 !important;
        margin-bottom: 25px !important;
        padding: 0 !important;
        min-height: 590px !important;
        height: 590px !important;
        background-position: center center !important;
    }

    .home .entry-content > .wp-block-cover:first-child img.wp-block-cover__image-background,
    .home .wp-block-post-content > .wp-block-cover:first-child img.wp-block-cover__image-background,
    .home .wp-block-cover:first-child img.wp-block-cover__image-background {
        object-fit: cover !important;
        object-position: center center !important;
    }

    .home .entry-content > .wp-block-cover:first-child .wp-block-cover__inner-container,
    .home .wp-block-post-content > .wp-block-cover:first-child .wp-block-cover__inner-container,
    .home .wp-block-cover:first-child .wp-block-cover__inner-container {
        position: relative !important;
        z-index: 2 !important;
        transform: translateY(70px) !important;
    }
}


/* Keep content below hero aligned */
.home .entry-content > .wp-block-cover:first-child + *,
.home .wp-block-post-content > .wp-block-cover:first-child + * {
    margin-top: 25px !important;
}


/* =====================================================
   TABLET HERO
   ===================================================== */

@media screen and (min-width: 769px) and (max-width: 1024px) {

    .home .entry-content > .wp-block-cover:first-child,
    .home .wp-block-post-content > .wp-block-cover:first-child,
    .home .wp-block-cover:first-child {
        min-height: 560px !important;
        background-position: center top !important;
    }

    .home .entry-content > .wp-block-cover:first-child img.wp-block-cover__image-background,
    .home .wp-block-post-content > .wp-block-cover:first-child img.wp-block-cover__image-background,
    .home .wp-block-cover:first-child img.wp-block-cover__image-background {
        object-position: center top !important;
    }
	/* =====================================================
   HCC CATEGORY CARDS — EXACT FIX FROM LIVE HTML
   ===================================================== */

/* PRICE — exact element shown in DevTools */
ul.products.content-wrap.product-archive li.product span.price,
ul.products.content-wrap.product-archive li.product span.price *,
ul.products.product-archive li.product .price,
ul.products.product-archive li.product .price * {
    color: #4F5F46 !important;
    font-weight: 800 !important;
}


/* Reserve space directly below the price for Shop Now */
ul.products.content-wrap.product-archive li.product .product-action-wrap {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 5px 0 0 !important;
    padding: 0 !important;
    overflow: visible !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    transform: translateY(4px) !important;
    transition:
        opacity .18s ease,
        transform .18s ease !important;
}


/* Reveal Shop Now when cursor enters the product card */
ul.products.content-wrap.product-archive li.product:hover .product-action-wrap,
ul.products.content-wrap.product-archive li.product:focus-within .product-action-wrap {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}


/* Actual Add to Cart anchor shown in DevTools */
ul.products.content-wrap.product-archive
li.product
.product-action-wrap
a.button.product_type_simple.add_to_cart_button {

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    min-width: 0 !important;
    height: auto !important;

    margin: 4px auto 0 !important;
    padding: 9px 13px !important;

    background: #506047 !important;
    background-color: #506047 !important;
    border: 1px solid #506047 !important;
    border-radius: 999px !important;

    color: #ffffff !important;
    box-shadow: none !important;

    /* Hide WooCommerce's "Add to cart" wording */
    font-size: 0 !important;
}


/* Replace it with Shop Now */
ul.products.content-wrap.product-archive
li.product
.product-action-wrap
a.button.product_type_simple.add_to_cart_button::before {
    content: "SHOP NOW →" !important;
    display: inline-block !important;
    color: #ffffff !important;

    font-size: 8px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: .04em !important;
}


/* Gold when hovering directly over Shop Now */
ul.products.content-wrap.product-archive
li.product
.product-action-wrap
a.button.product_type_simple.add_to_cart_button:hover,
ul.products.content-wrap.product-archive
li.product
.product-action-wrap
a.button.product_type_simple.add_to_cart_button:focus,
ul.products.content-wrap.product-archive
li.product
.product-action-wrap
a.button.product_type_simple.add_to_cart_button:active {

    background: #B88A4C !important;
    background-color: #B88A4C !important;
    border-color: #B88A4C !important;
    color: #ffffff !important;
}.price { color: red !important; }
.product-action-wrap { opacity: 1 !important; visibility: visible !important; display: block !important; }