/**
 * Baijia Static Product List Styles
 */

.baijia-static-product-list {
    width: 100%;
}

/* Grid */
.baijia-spl-grid {
    display: grid;
    gap: 30px;
}

/* Item Wrapper - like BRABUS column: holds min-height via JS */
.baijia-spl-item-wrap {
    position: relative;
}

/* Inner container: padding + negative margin like BRABUS .grid-teaser-shadow */
.baijia-spl-item-wrap.has-hover .baijia-spl-item-inner {
    background-color: #fff;
    display: block;
    margin-left: -10px;
    margin-right: -10px;
    padding: 10px;
}

.baijia-spl-item {
    display: block;
    text-decoration: none;
    color: #000;
}

.baijia-spl-item:hover {
    color: #000;
}

/* Hover content - hidden by default */
.baijia-spl-hover-content {
    display: none;
    margin-top: 20px;
}

/* Hover: inner becomes absolute (wrap keeps min-height via JS) */
@media (hover: hover) {
    .baijia-spl-item-wrap.has-hover .baijia-spl-item-inner:hover,
    .baijia-spl-item-wrap.has-hover .baijia-spl-item-inner:focus-within {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.75);
    }

    .baijia-spl-item-wrap.has-hover .baijia-spl-item-inner:hover .baijia-spl-hover-content,
    .baijia-spl-item-wrap.has-hover .baijia-spl-item-inner:focus-within .baijia-spl-hover-content {
        display: block;
    }
}

@media (hover: hover) and (min-width: 768px) {
    .baijia-spl-item-wrap.has-hover .baijia-spl-item-inner:hover,
    .baijia-spl-item-wrap.has-hover .baijia-spl-item-inner:focus-within {
        box-shadow: 0 20px 20px -10px rgba(0, 0, 0, 0.75);
    }
}

@media (hover: none) {
    .baijia-spl-item-wrap.has-hover .baijia-spl-item-inner:focus,
    .baijia-spl-item-wrap.has-hover .baijia-spl-item-inner:active {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 10;
        box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.75);
    }

    .baijia-spl-item-wrap.has-hover .baijia-spl-item-inner:focus .baijia-spl-hover-content,
    .baijia-spl-item-wrap.has-hover .baijia-spl-item-inner:active .baijia-spl-hover-content {
        display: block;
    }
}

/* Image */
.baijia-spl-item-image {
    position: relative;
    width: 100%;
    padding-bottom: 66%;
    overflow: hidden;
    background: #f5f5f5;
}

.baijia-spl-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.baijia-spl-item-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #eee;
}

/* SOLD badge */
.baijia-spl-sold-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background-color: #333;
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    line-height: 1.3;
}

/* Product name */
.baijia-spl-item-name {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin: 20px 0 0;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Hover content table styling */
.baijia-spl-hover-content {
    font-size: 14px;
    font-weight: 300;
    color: #000;
    line-height: 1.5;
}

.baijia-spl-hover-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: inherit;
    color: inherit;
}

.baijia-spl-hover-content table td,
.baijia-spl-hover-content table th {
    padding: 4px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    vertical-align: top;
    font-weight: inherit;
    text-align: left;
}

.baijia-spl-hover-content table tr:first-child td,
.baijia-spl-hover-content table tr:first-child th {
    border-top: 1px solid #ccc;
}

.baijia-spl-hover-content a:not(.baijia-spl-details-btn) {
    color: #000;
    text-decoration: none;
}

.baijia-spl-hover-content a:not(.baijia-spl-details-btn):hover {
    color: #6e0517;
}

/* Details button */
.baijia-spl-details-wrap {
    text-align: center;
    margin-top: 15px;
}

a.baijia-spl-details-btn {
    display: inline-block;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

/* Responsive */
@media (max-width: 767px) {
    .baijia-spl-grid {
        gap: 15px;
    }

    .baijia-spl-item-name {
        font-size: 13px;
    }
}
