/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Astra
Author: Healey Packaging
Author URI: https://healeypackaging.co.uk/
Template: astra
Version: 1.0.26-tawk-visitor-presence
*/

/* Add your custom CSS below */
.single-product .product_meta {
display: none !important;
}

/* ============================================================
   GLOBAL FORM WRAPPER
   ============================================================ */
.hp-form-wrapper {
    max-width: 640px; /* +20px wider as you requested */
    background: #ffffff;
    padding: 28px 30px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid #e5e5e5;
    margin: 0 auto;
    position: relative;
}

@media (max-width: 768px) {
    .hp-form-wrapper {
        max-width: 100%;
        padding: 22px;
    }
}

/* ============================================================
   TITLES / HEADINGS
   ============================================================ */
.hp-form-title {
    font-size: 24px;
    font-weight: 700;
    color: #2187cc;
    margin-bottom: 6px;
}

.hp-form-tagline {
    font-size: 14px;
    color: #666;
    margin-bottom: 22px;
}

/* ============================================================
   FIELD DESIGN
   ============================================================ */
.hp-field {
    margin-bottom: 18px;
}

.hp-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

/* Input / Select / Textarea */
.hp-field input,
.hp-field select,
.hp-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    background: #fafafa;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    transition: 0.2s ease;
}

.hp-field input:focus,
.hp-field select:focus,
.hp-field textarea:focus {
    border-color: #2187cc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(33,135,204,0.15);
    outline: none;
}

/* ============================================================
   GRID LAYOUTS
   ============================================================ */
.hp-2col,
.hp-3col {
    display: grid;
    gap: 14px;
}

.hp-2col { grid-template-columns: 1fr 1fr; }
.hp-3col { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 600px) {
    .hp-2col,
    .hp-3col {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   RADIO BUTTON TAG STYLE (Unit / Material / Finish / Qty)
   ============================================================ */
.hp-option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hp-option-buttons label {
    cursor: pointer;
    position: relative;
}

.hp-option-buttons input[type="radio"] {
    display: none;
}

.hp-option-buttons span {
    padding: 9px 14px;
    background: #fff;
    border-radius: 999px;
    border: 1px solid #dcdcdc;
    font-size: 13px;
    transition: 0.2s;
    display: inline-block;
}

.hp-option-buttons input[type="radio"]:checked + span {
    background: #2187cc;
    color: #fff;
    border-color: #2187cc;
}

/* ============================================================
   STEPS / INDICATORS
   ============================================================ */
.hp-steps {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.hp-step-indicator {
    flex: 1;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f2f5f9;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hp-step-indicator span {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d0dbea;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-step-indicator.hp-step-active {
    background: #2187cc;
    color: #fff;
}

.hp-step-indicator.hp-step-active span {
    background: #fff;
    color: #2187cc;
}

/* ============================================================
   STEP ACTION BUTTONS
   ============================================================ */
.hp-step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    gap: 10px;
}

.hp-step-actions-right {
    justify-content: flex-end;
}

.hp-step-btn {
    padding: 11px 18px;
    border-radius: 999px;
    background: #2187cc;
    color: #fff;
    border: 1px solid #2187cc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.hp-step-btn:hover {
    background: #1367a1;
}

.hp-prev-step {
    background: #fff !important;
    color: #2187cc !important;
    border-color: #2187cc !important;
}

/* ============================================================
   FINAL SUBMIT BUTTON
   ============================================================ */
.hp-submit-btn {
    width: 100%;
    background: #2187cc;
    padding: 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.hp-submit-btn:hover {
    background: #1367a1;
}

/* ============================================================
   SUCCESS MESSAGE
   ============================================================ */
.hp-success-message {
    margin-top: 16px;
    display: none;
}

.hp-success-box {
    background: #e8f7ec;
    border: 1px solid #a6dfb7;
    padding: 14px 16px;
    color: #257a43;
    border-radius: 8px;
    font-size: 14px;
}

/* ============================================================
   SMALL HELPER TEXT
   ============================================================ */
.hp-note {
    font-size: 12px;
    color: #777;
}
.hp-3col.hp-fullwidth {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
/* MOBILE BUTTON FIX */
@media (max-width: 768px) {

    /* Step action buttons full width & aligned */
    .hp-step-actions {
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
    }

    .hp-step-actions button {
        width: 100% !important;
        text-align: center !important;
    }

    .hp-step-btn,
    .hp-submit-btn {
        padding: 14px !important;
        border-radius: 12px !important;
        font-size: 15px !important;
    }
}
/* FIX: Step Indicators breaking layout on mobile */
@media (max-width: 768px) {

    .hp-steps {
        display: flex;
        flex-wrap: wrap;        /* allow wrapping */
        justify-content: center; /* center items */
        gap: 10px;
    }

    .hp-step-indicator {
        flex: unset !important; /* remove forced width */
        width: auto !important;
        padding: 8px 14px !important;
    }
}
.hp-extra-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 40px;
}
.hp-extra-options label {
    display:flex;
    justify-content:space-between;
    font-weight:500;
}
.hp-extra-options input[type="checkbox"] {
    width:18px;
    height:18px;
}
@media(max-width:768px){
    .hp-extra-options { grid-template-columns:1fr; }
}
.hp-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
/* ---------------------------------------------------
   REMOVE BULLETS + CLEAN ALIGNMENT FOR TAB NAVIGATION
--------------------------------------------------- */
.hp-tabs-nav {
    list-style: none !important;
    padding-left: 45px !important;
    margin-left: 10 !important;

    display: flex;
    align-items: flex-end;
    gap: 25px;

    border-bottom: 2px solid #dfe6ef;
    padding-bottom: 0;
    margin-bottom: 25px;
}


/* ---------------------------------------------------
   TAB BUTTONS (INACTIVE STYLE)
--------------------------------------------------- */
.hp-tab-btn {
    cursor: pointer;
    padding: 10px 22px 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;

    color: #7a8aac;
    background: #f5f7fa;

    border-radius: 4px 4px 0 0;
    position: relative;

    transition: all 0.25s ease;
}


/* ---------------------------------------------------
   ACTIVE TAB STYLE (BLUE TOP BORDER + WHITE PANEL)
--------------------------------------------------- */
.hp-tab-btn.active {
    color: #5da2e3;
    background: #ffffff;
    border-bottom: 2px solid #ffffff !important;
}

.hp-tab-btn.active::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 3px;

    background: #5da2e3;
    border-radius: 3px 3px 0 0;
}


/* ---------------------------------------------------
   TAB CONTENT (SHOW/HIDE)
--------------------------------------------------- */
.hp-tab-pane {
    display: none;
    line-height: 1.7;
    animation: fadeIn .25s ease;
}

.hp-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ---------------------------------------------------
   HEADINGS INSIDE DESCRIPTION & FAQ CONTENT AREA
--------------------------------------------------- */
.hp-tab-pane h1,
.hp-tab-pane h2,
.hp-tab-pane h3,
.hp-tab-pane h4 {
    color: #5da2e3 !important;
}
/* ----------------------------------------------------
   POPPINS FONT GLOBAL
------------------------------------------------------ */
body, html,
p, span, li, ul, ol, a,
button, input, select, textarea,
.wp-block, .elementor *, .woocommerce,
.woocommerce *, table, th, td {
    font-family: "Poppins", sans-serif !important;
}

/* ----------------------------------------------------
   HEADING BASE STYLE
------------------------------------------------------ */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
    font-family: "Poppins", sans-serif !important;
    font-weight: 700 !important;
    color: #212121 !important;
    margin: 0 0 12px;
}

/* Two-color generated spans */
.hp-dark {
    color: #212121 !important;
}
.hp-blue {
    color: #5da2e3 !important;
}
/* =====================================================
   GLOBAL ICON REPAIR – FULL RESTORE (FINAL VERSION)
   Fixes: Elementor Icons, Font Awesome, Flaticon,
   Dashicons, Woo Icons, Menu Icons, Header Icons
 ===================================================== */

/* DO NOT ALLOW POPPINS TO OVERRIDE ICON FONTS */
i, i:before, i:after,
[class^="fa"], [class*=" fa"],
[class^="fas"], [class*=" fas"],
[class^="far"], [class*=" far"],
[class^="fab"], [class*=" fab"],
[class^="fal"], [class*=" fal"],
[class^="dashicons"], [class*=" dashicons"],
[class^="eicon"], [class*=" eicon"],
[class^="flaticon"], [class*=" flaticon"],
[class^="ti-"], [class*=" ti-"] {
    font-family: unset !important;
    font-style: normal !important;
}

/* RESTORE ELEMENTOR ICON LIBRARY */
.eicon, .eicon:before {
    font-family: "eicons" !important;
}

/* RESTORE FONT AWESOME 5 */
.fa, .fas, .far, .fab, .fal {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 700 !important;
}

/* RESTORE FONT AWESOME BRANDS */
.fab {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

/* RESTORE FLATICON (OLD ELEMENTOR) */
[class^="flaticon-"], [class*=" flaticon-"] {
    font-family: "Flaticon" !important;
}

[class^="ti-"], [class*=" ti-"] {
    font-family: "themify" !important;
}

/* RESTORE WORDPRESS DASHICONS */
.dashicons, .dashicons-before:before {
    font-family: "dashicons" !important;
}

/* RESTORE WOOCOMMERCE STAR RATING ICONS */
.woocommerce .star-rating:before,
.woocommerce .star-rating span:before {
    font-family: "star" !important;
}
.hp-error input,
.hp-error select,
.hp-error textarea {
    border: 2px solid red !important;
}

.hp-error-msg {
    color: red;
    font-size: 12px;
    margin-top: 4px;
}
.hp-floating-cta{
  position: fixed;
  top: 70%;
  left: 28px;
  transform: translateY(-50%);
  z-index: 999999;
}

.hp-float-btn{
  position:relative;
  display:flex;
  align-items:center;
  gap:6px;
  padding:14px 16px;
  font-size:14px;
  font-weight:600;
  color:#fff;
  text-decoration:none;
  border-radius:0 10px 10px 0;
  transform:rotate(-90deg);
  transform-origin:left center;
  margin-bottom:72px;
  white-space:nowrap;
  box-shadow:0 6px 18px rgba(0,0,0,.25);
}

.hp-whatsapp{ background:#25d366; }
.hp-quote{ background:#0078c1; }

.hp-floating-cta svg{
  width:20px;
  height:20px;
}

/* ================= MOBILE ================= */
@media(max-width:768px){

  .hp-floating-cta{
    left:auto;
    right:16px;
    bottom:110px;
    top:auto;
    transform:none;
  }

  .hp-float-btn{
    transform:none;
    width:56px;
    height:56px;
    padding:0;
    border-radius:50%;
    justify-content:center;
    margin-bottom:12px;
  }

  .hp-text{ display:none; }

  .hp-floating-cta svg{
    width:26px;
    height:26px;
  }
}

/* ============================================================
   SITE-WIDE DESKTOP CLARITY POLISH
   ============================================================ */
html,
body,
#page,
.site,
.site-content {
    font-family: "Poppins", Arial, Helvetica, sans-serif !important;
    -webkit-font-smoothing: subpixel-antialiased;
    -moz-osx-font-smoothing: auto;
    text-rendering: optimizeLegibility;
}

body :where(p, a, span, li, label, button, input, select, textarea, small, strong, th, td, h1, h2, h3, h4, h5, h6) {
    font-family: "Poppins", Arial, Helvetica, sans-serif !important;
}

body :where(h1, h2, h3, h4, h5, h6) {
    letter-spacing: 0 !important;
    font-weight: 700 !important;
}

body :where(img) {
    image-rendering: auto;
    backface-visibility: hidden;
}

body :where(i, i::before, i::after, .fa, .fas, .far, .fab, .fal, .dashicons, .dashicons-before::before, .eicon, .eicon::before, [class^="flaticon-"], [class*=" flaticon-"]) {
    font-family: inherit;
}

.fa,
.fas,
.far,
.fal {
    font-family: "Font Awesome 5 Free" !important;
}

.fab {
    font-family: "Font Awesome 5 Brands" !important;
}

.dashicons,
.dashicons-before::before {
    font-family: "dashicons" !important;
}

.eicon,
.eicon::before {
    font-family: "eicons" !important;
}

.woocommerce .star-rating::before,
.woocommerce .star-rating span::before {
    font-family: "star" !important;
}

/* ==========================================================
   PRODUCT CATEGORY GRID SAFETY FIX
   Global fallback for WooCommerce category pages.
========================================================== */
body.tax-product_cat .hp-shop-products,
.hp-cat-page .hp-shop-products,
body.tax-product_cat .hp-box-explorer,
body .hp-cat-page .hp-box-explorer,
body.tax-product_cat .hp-box-explorer ul.products {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}

body.tax-product_cat .hp-box-explorer ul.products,
.hp-cat-page .hp-box-explorer ul.products,
body.tax-product_cat ul.products.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body.tax-product_cat .hp-box-explorer ul.products::before,
body .hp-cat-page .hp-box-explorer ul.products::before,
body.tax-product_cat .hp-box-explorer ul.products::after,
body .hp-cat-page .hp-box-explorer ul.products::after,
body.tax-product_cat ul.products.products::before,
body.tax-product_cat ul.products.products::after {
    content: none !important;
    display: none !important;
}

body.tax-product_cat .hp-box-explorer ul.products li.product,
.hp-cat-page .hp-box-explorer ul.products li.product,
body.tax-product_cat ul.products.products li.product {
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
}

body.tax-product_cat .hp-box-explorer ul.products li.product img,
.hp-cat-page .hp-box-explorer ul.products li.product img,
body.tax-product_cat ul.products.products li.product img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    object-position: center !important;
}

@media (max-width: 1180px) {
    body.tax-product_cat .hp-box-explorer ul.products,
    .hp-cat-page .hp-box-explorer ul.products,
    body.tax-product_cat ul.products.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 920px) {
    body.tax-product_cat .hp-box-explorer ul.products,
    .hp-cat-page .hp-box-explorer ul.products,
    body.tax-product_cat ul.products.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }
}

@media (max-width: 620px) {
    body.tax-product_cat .hp-fw,
    .hp-cat-page .hp-fw {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.tax-product_cat .hp-container,
    .hp-cat-page .hp-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
    }

    body.tax-product_cat .hp-hero-grid,
    .hp-cat-page .hp-hero-grid,
    body.tax-product_cat .hp-shop-head-alt,
    .hp-cat-page .hp-shop-head-alt,
    body.tax-product_cat .hp-trust-row,
    .hp-cat-page .hp-trust-row,
    body.tax-product_cat .hp-card-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    body.tax-product_cat .hp-box-explorer ul.products,
    .hp-cat-page .hp-box-explorer ul.products,
    body.tax-product_cat ul.products.products {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Direct template-rendered product cards for product category pages */
.hp-direct-product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.hp-direct-product-card {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid rgba(204, 221, 238, .95) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 45px rgba(4, 31, 58, .08) !important;
}

.hp-direct-product-card__media {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    aspect-ratio: 1 / .78 !important;
    background: linear-gradient(135deg, #f3f8fe 0%, #fff 100%) !important;
    border-bottom: 1px solid rgba(204, 221, 238, .78) !important;
    overflow: hidden !important;
}

.hp-direct-product-card__media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 14px !important;
    margin: 0 !important;
}

.hp-direct-product-card__body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: 18px !important;
}

.hp-direct-product-card__title {
    margin: 0 !important;
    color: #071d32 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
}

.hp-direct-product-card__title a {
    color: inherit !important;
    text-decoration: none !important;
}

.hp-direct-product-card__excerpt {
    margin: 0 !important;
    color: rgba(7, 29, 50, .72) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.hp-direct-product-card__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: fit-content !important;
    margin-top: auto !important;
    padding: 10px 14px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #005e9e 0%, #58a1e3 100%) !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.hp-products-empty {
    width: 100% !important;
    padding: 36px 22px !important;
    background: #fff !important;
    border: 1px solid rgba(204, 221, 238, .95) !important;
    border-radius: 18px !important;
    text-align: center !important;
}

@media (max-width: 1180px) {
    .hp-direct-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 860px) {
    .hp-direct-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
    }
}

@media (max-width: 520px) {
    .hp-direct-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
    }

    .hp-direct-product-card {
        border-radius: 14px !important;
    }

    .hp-direct-product-card__body {
        padding: 12px !important;
        gap: 8px !important;
    }

    .hp-direct-product-card__title {
        font-size: 13px !important;
    }

    .hp-direct-product-card__excerpt {
        display: none !important;
    }

    .hp-direct-product-card__button {
        width: 100% !important;
        padding: 9px 10px !important;
        font-size: 12px !important;
    }

    .hp-direct-product-card__media img {
        padding: 8px !important;
    }
}

/* ======================================================
   LIVE WOOCOMMERCE CATEGORY GRID RESCUE
   Keeps real category products visible even when Astra column
   classes or older category CSS collapse the product loop.
====================================================== */
body.tax-product_cat .ast-woocommerce-container,
body.tax-product_cat .woocommerce,
body.tax-product_cat .site-main,
body.tax-product_cat .ast-container {
    overflow: visible !important;
}

body.tax-product_cat .ast-woocommerce-container ul.products,
body.tax-product_cat .woocommerce ul.products,
body.tax-product_cat ul.products.columns-4,
body.woocommerce-page.tax-product_cat ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 18px 48px !important;
    list-style: none !important;
    clear: both !important;
    float: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
}

body.tax-product_cat .ast-woocommerce-container ul.products::before,
body.tax-product_cat .ast-woocommerce-container ul.products::after,
body.tax-product_cat .woocommerce ul.products::before,
body.tax-product_cat .woocommerce ul.products::after {
    content: none !important;
    display: none !important;
}

body.tax-product_cat .ast-woocommerce-container ul.products li.product,
body.tax-product_cat .woocommerce ul.products li.product,
body.tax-product_cat ul.products.columns-4 li.product,
body.tax-product_cat ul.products li.ast-article-post.product {
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    background: #fff !important;
    border: 1px solid rgba(204, 221, 238, .95) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    box-shadow: 0 18px 45px rgba(4, 31, 58, .08) !important;
}

body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    aspect-ratio: 1 / .78 !important;
    min-height: 190px !important;
    background: linear-gradient(135deg, #f3f8fe 0%, #fff 100%) !important;
    border-bottom: 1px solid rgba(204, 221, 238, .78) !important;
    overflow: hidden !important;
}

body.tax-product_cat ul.products li.product .woocommerce-LoopProduct-link,
body.tax-product_cat ul.products li.product .ast-loop-product__link {
    display: block !important;
    color: inherit !important;
    text-decoration: none !important;
}

body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

body.tax-product_cat ul.products li.product img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 14px !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.tax-product_cat ul.products li.product .astra-shop-summary-wrap {
    display: block !important;
    padding: 16px !important;
    min-height: 84px !important;
    background: #fff !important;
}

body.tax-product_cat ul.products li.product .woocommerce-loop-product__title {
    display: block !important;
    margin: 0 !important;
    color: #071d32 !important;
    font-family: Poppins, Arial, sans-serif !important;
    font-size: 17px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

@media (max-width: 1180px) {
    body.tax-product_cat .ast-woocommerce-container ul.products,
    body.tax-product_cat .woocommerce ul.products,
    body.tax-product_cat ul.products.columns-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 900px) {
    body.tax-product_cat .ast-woocommerce-container ul.products,
    body.tax-product_cat .woocommerce ul.products,
    body.tax-product_cat ul.products.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px !important;
        padding-inline: 14px !important;
    }
}

@media (max-width: 520px) {
    body.tax-product_cat .ast-woocommerce-container ul.products,
    body.tax-product_cat .woocommerce ul.products,
    body.tax-product_cat ul.products.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        padding-inline: 10px !important;
    }

    body.tax-product_cat ul.products li.product {
        border-radius: 14px !important;
    }

    body.tax-product_cat ul.products li.product .astra-shop-thumbnail-wrap {
        min-height: 126px !important;
    }

    body.tax-product_cat ul.products li.product img {
        padding: 8px !important;
    }

    body.tax-product_cat ul.products li.product .astra-shop-summary-wrap {
        padding: 10px !important;
        min-height: 62px !important;
    }

    body.tax-product_cat ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px !important;
        line-height: 1.25 !important;
    }
}

/* ======================================================
   PRODUCT CATEGORY CARD POLISH
   No description under titles, equal card height, full image fit.
====================================================== */
body.tax-product_cat .hp-direct-product-grid {
    align-items: stretch !important;
}

body.tax-product_cat .hp-direct-product-card {
    height: 100% !important;
    min-height: 0 !important;
}

body.tax-product_cat .hp-direct-product-card__media {
    aspect-ratio: 1 / 1 !important;
    min-height: 0 !important;
    background: #fff !important;
}

body.tax-product_cat .hp-direct-product-card__media img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
}

body.tax-product_cat .hp-direct-product-card__body {
    flex: 1 1 auto !important;
    min-height: 156px !important;
    justify-content: space-between !important;
}

body.tax-product_cat .hp-direct-product-card__title {
    min-height: 48px !important;
}

body.tax-product_cat .hp-direct-product-card__excerpt {
    display: none !important;
}

body.tax-product_cat .hp-direct-product-card__button {
    margin-top: 16px !important;
}

@media (max-width: 520px) {
    body.tax-product_cat .hp-direct-product-card__body {
        min-height: 116px !important;
    }

    body.tax-product_cat .hp-direct-product-card__title {
        min-height: 38px !important;
    }
}

/* ======================================================
   PRODUCT CATEGORY FINAL TIGHT CARD FIX
====================================================== */
body.tax-product_cat .hp-direct-product-card {
    justify-content: flex-start !important;
}

body.tax-product_cat .hp-direct-product-card__media {
    display: block !important;
    width: calc(100% + 2px) !important;
    margin: -1px -1px 0 !important;
    aspect-ratio: 1 / .86 !important;
    border-bottom: 1px solid rgba(204, 221, 238, .78) !important;
    background: #fff !important;
}

body.tax-product_cat .hp-direct-product-card__media img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: cover !important;
    object-position: center !important;
    transform: scale(1.08) !important;
}

body.tax-product_cat .hp-direct-product-card__body {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 18px 18px 20px !important;
}

body.tax-product_cat .hp-direct-product-card__title {
    min-height: 0 !important;
    margin: 0 !important;
}

body.tax-product_cat .hp-direct-product-card__button {
    width: fit-content !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin-top: 8px !important;
    padding: 10px 15px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
}

@media (max-width: 520px) {
    body.tax-product_cat .hp-direct-product-grid {
        gap: 12px !important;
    }

    body.tax-product_cat .hp-direct-product-card {
        border-radius: 14px !important;
    }

    body.tax-product_cat .hp-direct-product-card__media {
        aspect-ratio: 1 / .88 !important;
    }

    body.tax-product_cat .hp-direct-product-card__media img {
        transform: scale(1.1) !important;
    }

    body.tax-product_cat .hp-direct-product-card__body {
        min-height: 0 !important;
        gap: 9px !important;
        padding: 11px 10px 13px !important;
    }

    body.tax-product_cat .hp-direct-product-card__title {
        min-height: 0 !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    body.tax-product_cat .hp-direct-product-card__button {
        width: fit-content !important;
        max-width: 100% !important;
        margin-top: 6px !important;
        padding: 8px 11px !important;
        border-radius: 999px !important;
        font-size: 11px !important;
        line-height: 1 !important;
        gap: 5px !important;
    }
}

/* ======================================================
   PRODUCT CATEGORY IMAGE CONTAIN + COMPACT BUTTON FIX
====================================================== */
body.tax-product_cat .hp-direct-product-grid {
    align-items: start !important;
}

body.tax-product_cat .hp-direct-product-card {
    height: auto !important;
    width: calc(100% - 28px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

body.tax-product_cat .hp-direct-product-card__media {
    aspect-ratio: 1 / .82 !important;
    background: #fff !important;
}

body.tax-product_cat .hp-direct-product-card__media img {
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    box-sizing: border-box !important;
    padding: 10px !important;
}

body.tax-product_cat .hp-direct-product-card__body {
    min-height: 0 !important;
    gap: 11px !important;
    padding: 17px 18px 18px !important;
}

body.tax-product_cat .hp-direct-product-card__title {
    min-height: 48px !important;
    display: flex !important;
    align-items: flex-start !important;
}

body.tax-product_cat .hp-direct-product-card__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    max-width: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 10px 15px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

body.tax-product_cat .hp-direct-product-card__button span {
    display: inline-block !important;
    flex: 0 0 auto !important;
}

@media (max-width: 520px) {
    body.tax-product_cat .hp-direct-product-card {
        width: calc(100% - 18px) !important;
    }

    body.tax-product_cat .hp-direct-product-card__media {
        aspect-ratio: 1 / .86 !important;
    }

    body.tax-product_cat .hp-direct-product-card__body {
        gap: 8px !important;
        padding: 10px 10px 12px !important;
    }

    body.tax-product_cat .hp-direct-product-card__title {
        min-height: 38px !important;
    }

    body.tax-product_cat .hp-direct-product-card__button {
        padding: 8px 10px !important;
        font-size: 11px !important;
        gap: 5px !important;
    }
}

/* ======================================================
   PRODUCT CATEGORY SAMPLE STYLE OVERRIDE
   Matches the clean sample cards: image tray + centered title.
====================================================== */
body.tax-product_cat .hp-direct-product-grid {
    gap: 30px !important;
    align-items: stretch !important;
}

body.tax-product_cat .hp-direct-product-card {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 16px 16px 24px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(196, 216, 235, .95) !important;
    background: #fff !important;
    box-shadow: 0 18px 42px rgba(7, 29, 50, .06) !important;
}

body.tax-product_cat .hp-direct-product-card__media {
    width: 100% !important;
    margin: 0 !important;
    aspect-ratio: 1 / .82 !important;
    padding: 12px !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: #f5f8fc !important;
    overflow: hidden !important;
}

body.tax-product_cat .hp-direct-product-card__media img {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
}

body.tax-product_cat .hp-direct-product-card__body {
    padding: 20px 4px 0 !important;
    gap: 0 !important;
    min-height: 0 !important;
    align-items: center !important;
    text-align: center !important;
}

body.tax-product_cat .hp-direct-product-card__title {
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

body.tax-product_cat .hp-direct-product-card__button {
    display: none !important;
}

@media (max-width: 520px) {
    body.tax-product_cat .hp-direct-product-grid {
        gap: 12px !important;
    }

    body.tax-product_cat .hp-direct-product-card {
        padding: 10px 10px 14px !important;
        border-radius: 14px !important;
    }

    body.tax-product_cat .hp-direct-product-card__media {
        padding: 8px !important;
        border-radius: 12px !important;
        aspect-ratio: 1 / .86 !important;
    }

    body.tax-product_cat .hp-direct-product-card__body {
        padding-top: 12px !important;
    }

    body.tax-product_cat .hp-direct-product-card__title {
        min-height: 44px !important;
        font-size: 13px !important;
        line-height: 1.18 !important;
    }
}
