/* REGENT Store UX Cleanup v5.3.7
 * Visual-only, archive-scoped. No data changes.
 */

body.regent-store-ux-cleanup-v537 {
    --regent-ink: #17283a;
    --regent-muted: #6b7785;
    --regent-blue: #149bd7;
    --regent-border: #e4e8ec;
    --regent-card-radius: 18px;
}

/* 1) Compress the oversized shop hero without removing the page title. */
body.regent-store-ux-cleanup-v537 .hero-section,
body.regent-store-ux-cleanup-v537 .woocommerce-products-header,
body.regent-store-ux-cleanup-v537 [class*="shop-hero"],
body.regent-store-ux-cleanup-v537 [class*="archive-hero"] {
    min-height: 0 !important;
}

body.regent-store-ux-cleanup-v537 .hero-section {
    padding-top: clamp(28px, 4vw, 52px) !important;
    padding-bottom: clamp(28px, 4vw, 52px) !important;
}

body.regent-store-ux-cleanup-v537 .hero-section .page-title,
body.regent-store-ux-cleanup-v537 .woocommerce-products-header__title,
body.regent-store-ux-cleanup-v537 h1.page-title {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: clamp(32px, 3.5vw, 48px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em;
    color: var(--regent-ink);
}

/* 2) Keep the filter/search bar premium and more compact. */
body.regent-store-ux-cleanup-v537 .regent-shop-filters,
body.regent-store-ux-cleanup-v537 .regent-store-filters,
body.regent-store-ux-cleanup-v537 .regent-product-filters,
body.regent-store-ux-cleanup-v537 .regent-filter-bar,
body.regent-store-ux-cleanup-v537 form[class*="regent"][class*="filter"] {
    padding: 18px 20px !important;
    border-radius: 16px !important;
    border-color: var(--regent-border) !important;
    box-shadow: 0 8px 28px rgba(23, 40, 58, 0.035) !important;
}

body.regent-store-ux-cleanup-v537 .regent-shop-filters label,
body.regent-store-ux-cleanup-v537 .regent-store-filters label,
body.regent-store-ux-cleanup-v537 .regent-product-filters label,
body.regent-store-ux-cleanup-v537 form[class*="regent"][class*="filter"] label {
    font-size: 14px !important;
    font-weight: 650 !important;
    color: var(--regent-ink) !important;
}

body.regent-store-ux-cleanup-v537 .regent-shop-filters input,
body.regent-store-ux-cleanup-v537 .regent-shop-filters select,
body.regent-store-ux-cleanup-v537 .regent-store-filters input,
body.regent-store-ux-cleanup-v537 .regent-store-filters select,
body.regent-store-ux-cleanup-v537 form[class*="regent"][class*="filter"] input,
body.regent-store-ux-cleanup-v537 form[class*="regent"][class*="filter"] select {
    min-height: 48px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
}

/* 3) Product cards: less dead space, clearer hierarchy. */
body.regent-store-ux-cleanup-v537 ul.products li.product,
body.regent-store-ux-cleanup-v537 .products .product,
body.regent-store-ux-cleanup-v537 [class*="regent"][class*="product-card"] {
    border-radius: var(--regent-card-radius) !important;
}

body.regent-store-ux-cleanup-v537 ul.products li.product .ct-image-container,
body.regent-store-ux-cleanup-v537 .products .product .ct-image-container,
body.regent-store-ux-cleanup-v537 ul.products li.product [class*="image"],
body.regent-store-ux-cleanup-v537 .products .product [class*="image"] {
    overflow: hidden;
}

body.regent-store-ux-cleanup-v537 ul.products li.product img,
body.regent-store-ux-cleanup-v537 .products .product img,
body.regent-store-ux-cleanup-v537 [class*="regent"][class*="product-card"] img {
    object-fit: contain !important;
}

body.regent-store-ux-cleanup-v537 .woocommerce-loop-product__title,
body.regent-store-ux-cleanup-v537 .products .product [class*="title"],
body.regent-store-ux-cleanup-v537 [class*="regent"][class*="product-card"] [class*="title"] {
    color: var(--regent-ink) !important;
    font-size: clamp(17px, 1.25vw, 19px) !important;
    font-weight: 750 !important;
    line-height: 1.65 !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

/* Brand stays visible but subordinate to the product name. */
body.regent-store-ux-cleanup-v537 .products .product [class*="brand"],
body.regent-store-ux-cleanup-v537 [class*="regent"][class*="product-card"] [class*="brand"] {
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #5f6d7b !important;
}

/* Stock should be readable but not shout. */
body.regent-store-ux-cleanup-v537 .products .product [class*="stock"],
body.regent-store-ux-cleanup-v537 [class*="regent"][class*="product-card"] [class*="stock"] {
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.5 !important;
}

/* Price is the strongest commercial signal after title. */
body.regent-store-ux-cleanup-v537 .products .product .price,
body.regent-store-ux-cleanup-v537 [class*="regent"][class*="product-card"] [class*="price"] {
    color: #111820 !important;
    font-size: clamp(19px, 1.45vw, 22px) !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin-top: 10px !important;
    margin-bottom: 12px !important;
}

/* CTA remains high contrast but slightly more compact. */
body.regent-store-ux-cleanup-v537 ul.products li.product .button,
body.regent-store-ux-cleanup-v537 .products .product .button,
body.regent-store-ux-cleanup-v537 [class*="regent"][class*="product-card"] a[class*="button"] {
    min-height: 48px !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* JS only adds this class when an archive meta line is definitely redundant/internal. */
body.regent-store-ux-cleanup-v537 .regent-ux-hide-meta {
    display: none !important;
}

/* Slightly tighten product card text block if the active storefront exposes a wrapper. */
body.regent-store-ux-cleanup-v537 .products .product [class*="content"],
body.regent-store-ux-cleanup-v537 .products .product [class*="details"],
body.regent-store-ux-cleanup-v537 [class*="regent"][class*="product-card"] [class*="content"] {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
}

/* Tablet / mobile: preserve readability and tap sizes. */
@media (max-width: 1024px) {
    body.regent-store-ux-cleanup-v537 .hero-section {
        padding-top: 28px !important;
        padding-bottom: 28px !important;
    }

    body.regent-store-ux-cleanup-v537 .woocommerce-loop-product__title,
    body.regent-store-ux-cleanup-v537 .products .product [class*="title"] {
        font-size: 17px !important;
    }
}

@media (max-width: 689px) {
    body.regent-store-ux-cleanup-v537 .hero-section {
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }

    body.regent-store-ux-cleanup-v537 .hero-section .page-title,
    body.regent-store-ux-cleanup-v537 h1.page-title {
        font-size: 32px !important;
    }

    body.regent-store-ux-cleanup-v537 .regent-shop-filters,
    body.regent-store-ux-cleanup-v537 .regent-store-filters,
    body.regent-store-ux-cleanup-v537 .regent-product-filters,
    body.regent-store-ux-cleanup-v537 form[class*="regent"][class*="filter"] {
        padding: 14px !important;
    }

    body.regent-store-ux-cleanup-v537 .products .product .price {
        font-size: 19px !important;
    }
}
