/* ==========================================
   HK Product Card — Redesigned (Reference Match)
   ========================================== */

/* Card wrapper */
.hk-product-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    border: 1px solid #f0f0f0;
}
.hk-product-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.11);
    transform: translateY(-2px);
}

/* Image wrap — square aspect ratio, slightly taller on desktop */
.hk-card-image-wrap {
    position: relative;
    width: 100%;
    padding-top: 110%; /* slightly taller than 1:1 for bigger feel */
    background: #f5f5f3;
    overflow: hidden;
}

/* Image link fills the square */
.hk-card-img-link {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Image itself */
.hk-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8%; /* breathing space */
    transition: transform 0.3s ease;
}
.hk-product-card:hover .hk-card-img {
    transform: scale(1.04);
}

/* Badges top-left */
.hk-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hk-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.hk-badge--primary {
    background: var(--primary-color, #FCCA19);
    color: #1a1a1a;
}
.hk-badge--red {
    background: #ffe4e4;
    color: #c0392b;
}

/* Floating action buttons — top right */
.hk-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hk-icon-btn {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    transition: background 0.18s ease, transform 0.18s ease;
    backdrop-filter: blur(4px);
}
/* Wishlist specific heart icon styling */
.hk-heart-svg {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
}
.hk-heart-svg.is-outline,
.hk-heart-svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}
.hk-heart-svg.is-filled,
.hk-heart-svg.is-filled path {
    fill: #000000 !important;
    stroke: none !important;
}

/* ==========================================
   GLOBAL CIRCULAR WISHLIST (Cards & Overlays)
   Interaction: Hover Yellow Circle, Active Black Fill
   ========================================== */
/* Hover State for cards */
.wishlist.rounded-full:hover,
.hk-icon-btn:hover {
    background-color: var(--primary-color, #FCCA19) !important;
    border-color: var(--primary-color, #FCCA19) !important;
    color: #000000 !important;
}

/* Active State (Wishlisted) */
.wishlist.rounded-full.primary-bg-color,
.hk-icon-btn.primary-bg-color,
.hk-icon-btn--active {
    background-color: var(--primary-color, #FCCA19) !important;
    border-color: var(--primary-color, #FCCA19) !important;
}

/* Heart filling black when active */
.wishlist.rounded-full.primary-bg-color svg,
.wishlist.rounded-full.primary-bg-color svg path,
.hk-icon-btn.primary-bg-color svg,
.hk-icon-btn.primary-bg-color svg path,
.hk-icon-btn--active svg,
.hk-icon-btn--active svg path {
    fill: #000000 !important;
    stroke: none !important;
}

/* ==========================================
   HK Standardized Pill Buttons
   ========================================== */
/* ==========================================
   HK Standardized Pill Buttons — GLOBAL
   Applies to Quick View and Get Query everywhere
   ========================================== */
.hk-btn,
a.hk-btn,
button.hk-btn {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-color: #f5f5f3 !important;
    color: #111111 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important; /* Rounded Rectangle Look */
    padding: 0.5rem 1.25rem !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: all 0.22s ease !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    height: 40px !important;
    line-height: normal !important;
    outline: none !important;
    box-shadow: none !important;
}

/* =============================================
   YELLOW HOVER EFFECT — Site Wide
   Works on all pages wherever .hk-btn is used
   ============================================= */
.hk-btn:hover,
.hk-btn:focus,
a.hk-btn:hover,
a.hk-btn:focus,
button.hk-btn:hover,
button.hk-btn:focus,
.hk-btn.active,
.hk-btn--active {
    background-color: #FCCA19 !important;
    border-color: #FCCA19 !important;
    color: #111111 !important;
    box-shadow: 0 4px 14px rgba(252, 202, 25, 0.35) !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

.hk-btn:active,
button.hk-btn:active {
    transform: translateY(0px) !important;
    box-shadow: 0 2px 6px rgba(252, 202, 25, 0.25) !important;
}

.hk-btn svg,
a.hk-btn svg,
button.hk-btn svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
    flex-shrink: 0 !important;
    pointer-events: none !important;
    transition: inherit !important;
}


/* =============================================
   HIDE REVIEWS / RATINGS GLOBALLY — Site Wide
   Removes star ratings from all product cards
   ============================================= */
.item-rating,
.item-ratings,
[class*="review"] .star-rating,
div.item-rating,
.item-rating.mt-1p,
.item-rating.order-first {
    display: none !important;
}

/* Hide the review block in filter results */
.filter-review-block,
.product-review-stars {
    display: none !important;
}

/* Global Price Hiding */
.product-hover .dm-bold, .product-card .dm-bold, .hk-card .dm-bold { display: none !important; }
.hover-price, .item-price, .product-price, .price-block { display: none !important; }
.amount, .regular-price, .sale-price { display: none !important; }
p.dm-bold.mt-1\.5, p.text-sm.dm-bold, p.text-20.dm-bold, p.dm-bold.text-20 { display: none !important; }

/* Active Wishlist Button Style (Applied after click) */
.hk-icon-btn--active {
    background: var(--primary-color, #FCCA19) !important;
    border-color: var(--primary-color, #FCCA19) !important;
}
.hk-icon-btn--active .hk-heart-svg,
.hk-icon-btn--active .hk-heart-svg path {
    fill: #000000 !important;
    stroke: none !important;
    color: #000000 !important;
}

/* Card body — name + buttons */
.hk-card-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

/* Product name */
.hk-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'DM Sans', 'Segoe UI', sans-serif;
}

/* CTA row — two equal pill buttons */
.hk-card-cta {
    display: flex;
    gap: 6px;
    margin-top: auto;
}
.hk-btn {
    flex: 1;
    min-width: 0; /* allow shrinking */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    border-radius: 50px; /* pill shape */
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: -apple-system, BlinkMacSystemFont, 'DM Sans', 'Segoe UI', sans-serif;
    border: 1.5px solid #e0e0e0;
    letter-spacing: -0.1px;
}
.hk-btn--outline {
    background: #f5f5f3 !important;
    color: #1a1a1a !important;
    border-color: #e0e0e0 !important;
}
/* Quick View — yellow on hover */
.hk-btn--outline:hover {
    background: var(--primary-color, #FCCA19) !important;
    color: #1a1a1a !important;
    border-color: var(--primary-color, #FCCA19) !important;
}

/* Get Query — light initially, yellow (primary) on hover/active */
.hk-btn--query {
    background: #f5f5f3 !important;
    color: #1a1a1a !important;
    border-color: #e0e0e0 !important;
}
.hk-btn--query:hover,
.hk-btn--query:focus,
.hk-btn--query:active {
    background: var(--primary-color, #FCCA19) !important;
    color: #1a1a1a !important;
    border-color: var(--primary-color, #FCCA19) !important;
}

/* Share copy feedback */
.hk-icon-btn.share-copied svg {
    color: #16a34a;
}

/* ==========================================
   Get Query CTA Redesign Styles
   "Add to Wishlist" + "Get Query" Lead Capture
   ========================================== */


/* --- CTA Row --- */
.b2b-cta-row {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* --- Add to Wishlist Button --- */
.btn-wishlist-cta,
.btn-get-price-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1.5px solid #d3d1c7;
    border-radius: 10px;
    background: #ffffff;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 140px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-wishlist-cta svg,
.btn-get-price-direct svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-wishlist-cta:hover,
.btn-get-price-direct:hover {
    border-color: #b4b2a9;
    background: #f5f5f3;
}

.btn-wishlist-cta.is-wishlisted {
    border-color: #D4537E;
    background: #FBEAF0;
    color: #D4537E;
}

/* Custom state for Get Price variant — professional orange theme */
.btn-wishlist-cta[data-label-type="get-price"].is-wishlisted,
.btn-get-price-direct.is-requested {
    border-color: #ea580c;
    background: #fff7ed;
    color: #ea580c;
}

.btn-wishlist-cta[data-label-type="get-price"].is-wishlisted:hover,
.btn-get-price-direct.is-requested:hover {
    background: #ffedd5;
}

.btn-wishlist-cta .heart-icon {
    font-size: 18px;
    line-height: 1;
}

/* --- Get Query Button (Product Page OVERRIDE) --- */
.product-page-cta .btn-get-query {
    padding: 12px 24px !important;
    border: 1.5px solid #b4b2a9 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    font-size: 16px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    min-width: 140px;
    height: 48px !important;
}

/* Ensure Wishlist button matches on product page */
.product-page-cta .btn-wishlist-cta {
    height: 48px !important;
    padding: 12px 24px !important;
    border: 1.5px solid #b4b2a9 !important;
    border-radius: 10px !important;
}

.btn-get-query:hover,
.btn-get-query:focus,
.btn-get-query:active,
.product-page-cta .btn-get-query:hover {
    background: var(--primary-color, #FCCA19) !important;
    color: #1a1a1a !important;
    border-color: var(--primary-color, #FCCA19) !important;
    box-shadow: 0 4px 10px rgba(252, 202, 25, 0.25) !important;
}

.btn-get-query svg {
    display: none;
}

/* --- Quick View (card buttons) --- */
.btn-quick-view-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1.5px solid #d3d1c7;
    border-radius: 8px;
    background: #f5f5f3;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.btn-quick-view-card:hover {
    background: var(--primary-color, #FCCA19);
    border-color: var(--primary-color, #FCCA19);
    color: #1a1a1a;
    box-shadow: 0 4px 10px rgba(252, 202, 25, 0.25);
}

/* Compact variant for inside card overlays/rows */
.btn-quick-view-card--compact {
    min-width: 0;
    flex: 1;
    padding: 9px 14px;
    font-size: 13px;
}

.btn-get-query--compact {
    min-width: 0;
    flex: 1;
    padding: 9px 14px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-get-query--compact svg {
    display: none;
}

.btn-get-query--compact span {
    white-space: nowrap;
}

/* --- Success Banner --- */
.gq-success-banner {
    display: none;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 12px 16px;
    background: #EAF3DE;
    border: 1px solid #C0DD97;
    border-radius: 8px;
    color: #3B6D11;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    animation: gq-slide-in 0.3s ease;
}

.gq-success-banner.is-visible {
    display: flex;
}

@keyframes gq-slide-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Get Query Modal
   ========================================== */

/* --- Backdrop --- */
.gq-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.gq-modal-backdrop.is-open {
    display: flex;
}

/* --- Modal Container --- */
.gq-modal {
    background: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.gq-modal-backdrop.is-open .gq-modal {
    transform: translateY(0);
    opacity: 1;
}

/* --- Product Strip --- */
.gq-product-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f5f5f3;
    border-radius: 12px 12px 0 0;
    border-bottom: 0.5px solid #d3d1c7;
}

.gq-product-strip img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    background: #ffffff;
    border: 0.5px solid #d3d1c7;
    border-radius: 8px;
    padding: 4px;
    flex-shrink: 0;
}

.gq-product-strip-info {
    min-width: 0;
    flex: 1;
}

.gq-product-strip-name {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.gq-product-strip-meta {
    font-size: 13px;
    color: #5f5e5a;
    margin: 4px 0 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Modal Body --- */
.gq-modal-body {
    padding: 24px 20px;
}

.gq-modal-title {
    font-size: 18px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.gq-modal-subtitle {
    font-size: 13px;
    color: #888780;
    margin: 0 0 24px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Form Fields --- */
.gq-form-group {
    margin-bottom: 18px;
}

.gq-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #888780;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.gq-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 0.5px solid #d3d1c7;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a1a;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.gq-form-group input:focus {
    border-color: #1a1a1a;
}

.gq-form-group input[readonly] {
    background: #f5f5f3;
    color: #5f5e5a;
    cursor: default;
}

/* --- Modal Footer --- */
.gq-modal-footer {
    display: flex;
    gap: 12px;
    padding: 0 20px 24px;
    justify-content: flex-end;
}

.gq-btn-cancel {
    padding: 10px 24px;
    border: 0.5px solid #d3d1c7;
    border-radius: 8px;
    background: #ffffff;
    color: #5f5e5a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.gq-btn-cancel:hover {
    background: #f5f5f3;
    color: #1a1a1a;
}

.gq-btn-submit {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.gq-btn-submit:hover {
    background: #333333;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .b2b-cta-row {
        flex-direction: row;
    }

    .btn-wishlist-cta,
    .btn-get-query {
        min-width: 120px;
        padding: 10px 12px;
        font-size: 14px;
    }

    .gq-modal {
        max-width: 100%;
        margin: 0;
        border-radius: 12px;
    }
}

/* --- Card specific Get Price Button --- */
.btn-get-price-direct-card {
    padding: 8px 16px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    width: 100%;
    margin-top: 5px;
    background: #ffffff !important;
    border: 1px solid #eb8026 !important; /* Hospice orange theme */
    color: #eb8026 !important;
}

.btn-get-price-direct-card:hover {
    background: #eb8026 !important;
    color: #ffffff !important;
}

.btn-get-price-direct-card.is-requested {
    border-color: #ea580c !important;
    background: #fff7ed !important;
    color: #ea580c !important;
}
