/* ============================================================
   HWANJIN PERFUME CATEGORY STYLE FIX
   Applies only when PHP adds body.hwanjin-perfume-archive
   ============================================================ */

body.hwanjin-perfume-archive {
    --hj-pink-dark: #95113f;
    --hj-pink: #c12057;
    --hj-pink-light: #fff6f9;
    --hj-border: #efc8d7;
    --hj-button: #cf2861;
    --hj-button-dark: #a71345;
    --hj-grey: #777777;
}

/* Product grid */
body.hwanjin-perfume-archive .woocommerce ul.products,
body.hwanjin-perfume-archive.woocommerce-page ul.products,
body.hwanjin-perfume-archive ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 28px !important;
    align-items: stretch !important;
    width: 100% !important;
    margin: 25px 0 45px !important;
    padding: 0 !important;
}

body.hwanjin-perfume-archive .woocommerce ul.products::before,
body.hwanjin-perfume-archive .woocommerce ul.products::after,
body.hwanjin-perfume-archive ul.products::before,
body.hwanjin-perfume-archive ul.products::after {
    display: none !important;
    content: none !important;
}

/* Cards */
body.hwanjin-perfume-archive .woocommerce ul.products li.product,
body.hwanjin-perfume-archive ul.products li.product {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 0 24px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    border: 1px solid var(--hj-border) !important;
    border-radius: 17px !important;
    box-shadow: 0 7px 22px rgba(120, 20, 60, .07) !important;
    text-align: center !important;
    transition: transform .25s ease, box-shadow .25s ease !important;
}

body.hwanjin-perfume-archive .woocommerce ul.products li.product:hover,
body.hwanjin-perfume-archive ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 34px rgba(120, 20, 60, .15) !important;
}

/* Reset theme wrappers so all cards line up */
body.hwanjin-perfume-archive li.product .product-wrap,
body.hwanjin-perfume-archive li.product .product-wrapper,
body.hwanjin-perfume-archive li.product .product-inner,
body.hwanjin-perfume-archive li.product .product-item,
body.hwanjin-perfume-archive li.product .product-content,
body.hwanjin-perfume-archive li.product .product-details {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.hwanjin-perfume-archive li.product a.woocommerce-LoopProduct-link,
body.hwanjin-perfume-archive li.product a.woocommerce-loop-product__link {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
}

/* Images */
body.hwanjin-perfume-archive .woocommerce ul.products li.product img,
body.hwanjin-perfume-archive ul.products li.product img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    background: var(--hj-pink-light) !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Product titles: overrides the orange Envo/YITH styling visible in the screenshot */
body.hwanjin-perfume-archive .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.hwanjin-perfume-archive .woocommerce ul.products li.product h2.woocommerce-loop-product__title,
body.hwanjin-perfume-archive .woocommerce ul.products li.product h3,
body.hwanjin-perfume-archive ul.products li.product .woocommerce-loop-product__title,
body.hwanjin-perfume-archive li.product .product-title,
body.hwanjin-perfume-archive li.product .product-title a,
body.hwanjin-perfume-archive li.product h2 a,
body.hwanjin-perfume-archive li.product h3 a {
    color: var(--hj-pink-dark) !important;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
}

body.hwanjin-perfume-archive .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.hwanjin-perfume-archive ul.products li.product .woocommerce-loop-product__title {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 20px 10px !important;
    box-sizing: border-box !important;
}

body.hwanjin-perfume-archive li.product a:hover .woocommerce-loop-product__title,
body.hwanjin-perfume-archive li.product .product-title a:hover,
body.hwanjin-perfume-archive li.product h2 a:hover,
body.hwanjin-perfume-archive li.product h3 a:hover {
    color: var(--hj-pink) !important;
}

/* Existing unified-plugin descriptions, if present */
body.hwanjin-perfume-archive .hjv7-product-description {
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 100px !important;
    margin: 0 0 16px !important;
    padding: 0 22px !important;
    color: var(--hj-grey) !important;
    font-family: inherit !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

/* Prices */
body.hwanjin-perfume-archive .woocommerce ul.products li.product .price,
body.hwanjin-perfume-archive ul.products li.product .price,
body.hwanjin-perfume-archive li.product .price,
body.hwanjin-perfume-archive li.product .amount {
    color: var(--hj-pink) !important;
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

body.hwanjin-perfume-archive .woocommerce ul.products li.product .price,
body.hwanjin-perfume-archive ul.products li.product .price {
    display: block !important;
    width: 100% !important;
    min-height: 32px !important;
    margin: auto 0 18px !important;
    padding: 0 15px !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

body.hwanjin-perfume-archive li.product .price del,
body.hwanjin-perfume-archive li.product .price del .amount {
    color: #999999 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

body.hwanjin-perfume-archive li.product .price ins,
body.hwanjin-perfume-archive li.product .price ins .amount {
    color: var(--hj-pink) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Add to cart / select options buttons */
body.hwanjin-perfume-archive .woocommerce ul.products li.product a.button,
body.hwanjin-perfume-archive .woocommerce ul.products li.product a.add_to_cart_button,
body.hwanjin-perfume-archive .woocommerce ul.products li.product a.product_type_simple,
body.hwanjin-perfume-archive .woocommerce ul.products li.product a.product_type_variable,
body.hwanjin-perfume-archive ul.products li.product a.button,
body.hwanjin-perfume-archive li.product .button,
body.hwanjin-perfume-archive li.product a.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    width: auto !important;
    min-width: 130px !important;
    min-height: 42px !important;
    margin: 0 auto !important;
    padding: 11px 22px !important;
    box-sizing: border-box !important;
    border: 0 !important;
    border-radius: 30px !important;
    outline: 0 !important;
    background: linear-gradient(135deg, var(--hj-button), var(--hj-button-dark)) !important;
    background-image: linear-gradient(135deg, var(--hj-button), var(--hj-button-dark)) !important;
    color: #ffffff !important;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    box-shadow: 0 5px 14px rgba(167, 19, 69, .20) !important;
    text-shadow: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease !important;
}

body.hwanjin-perfume-archive .woocommerce ul.products li.product a.button:hover,
body.hwanjin-perfume-archive li.product a.button:hover {
    background: linear-gradient(135deg, #b91f53, #8d1039) !important;
    background-image: linear-gradient(135deg, #b91f53, #8d1039) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 7px 17px rgba(167, 19, 69, .28) !important;
}

/* Remove Compare completely */
body.hwanjin-perfume-archive li.product .compare,
body.hwanjin-perfume-archive li.product a.compare,
body.hwanjin-perfume-archive li.product .compare-button,
body.hwanjin-perfume-archive li.product .yith-woocompare-add-product,
body.hwanjin-perfume-archive li.product [class*="compare"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

/* Sale badge */
body.hwanjin-perfume-archive .woocommerce ul.products li.product .onsale,
body.hwanjin-perfume-archive ul.products li.product .onsale,
body.hwanjin-perfume-archive li.product .onsale {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    z-index: 25 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, var(--hj-button), var(--hj-button-dark)) !important;
    color: #ffffff !important;
    font-family: "Oswald", "Arial Narrow", Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Tablet */
@media (min-width: 601px) and (max-width: 950px) {
    body.hwanjin-perfume-archive .woocommerce ul.products,
    body.hwanjin-perfume-archive.woocommerce-page ul.products,
    body.hwanjin-perfume-archive ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 600px) {
    body.hwanjin-perfume-archive .woocommerce ul.products,
    body.hwanjin-perfume-archive.woocommerce-page ul.products,
    body.hwanjin-perfume-archive ul.products {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    body.hwanjin-perfume-archive .woocommerce ul.products li.product,
    body.hwanjin-perfume-archive ul.products li.product {
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 auto !important;
    }

    body.hwanjin-perfume-archive .woocommerce ul.products li.product .woocommerce-loop-product__title {
        min-height: 0 !important;
    }

    body.hwanjin-perfume-archive .hjv7-product-description {
        min-height: 0 !important;
    }
}
