/* ======================================
   Product Card Grid - Consistent Layout
   ====================================== */

/* Equal height cards */
.product-area .row > [class*="col-"],
.shop-product-area .row > [class*="col-"] {
    margin-bottom: 20px;
    display: flex;
}

.single-product-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: visible;
    background: #fff;
    transition: box-shadow 0.3s;
}

.single-product-wrap:hover {
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    z-index: 9;
}

/* Remove the ::before overlay completely */
.single-product-wrap::before,
.single-product-wrap:hover::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    position: static !important;
}

/* Fixed height image container */
.single-product-wrap .product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8f8f8;
    border-radius: 6px 6px 0 0;
}

.single-product-wrap .product-image > a {
    display: block;
    width: 100%;
    height: 100%;
}

.single-product-wrap .product-image > a img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product description area */
.single-product-wrap .product_desc {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px;
}

.single-product-wrap .product_desc_info {
    flex: 1;
}

.single-product-wrap .product_desc_info h4 {
    min-height: 40px;
}

/* Always-visible actions - fully override absolute positioning */
.add-actions {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: auto !important;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.single-product-wrap:hover .add-actions {
    position: static !important;
    bottom: auto !important;
}

/* Fix inactive tab panes blocking clicks */
.tab-content .tab-pane {
    pointer-events: none;
    overflow: hidden;
}

.tab-content .tab-pane.active {
    pointer-events: auto;
}

/* ======================================
   Header Categories Dropdown - Above slider
   ====================================== */
.header-bottom {
    position: relative;
    z-index: 999;
}

/* Mini cart must sit above header-bottom */
.hm-minicart {
    position: relative;
    z-index: 1001;
}

.minicart {
    z-index: 1002 !important;
}

/* ======================================
   Category Menu - Overlay on top
   ====================================== */
.slider-with-banner .category-menu {
    position: relative;
    z-index: 100;
}

.slider-with-banner .category-menu .category-menu-list {
    position: absolute;
    z-index: 100;
}
