.product-card {
    text-align: left;
}
.product-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    background: var(--image-bg-gradient);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover .product-img-wrapper {
    box-shadow: var(--shadow-md);
    border-color: var(--border-secondary);
}

/* Logo Watermark Background */
.product-img-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 85%;
    background: url('../img/branding/playvibe-svg.svg') no-repeat center;
    background-size: contain;
    opacity: var(--watermark-opacity); /* Subtle watermark behind image */
    z-index: 1; /* Above white background */
    pointer-events: none;
}

.product-img-aspect {
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
    transition: opacity 0.4s ease;
    position: relative;
    z-index: 2; /* Above watermark */
}
/* The primary image fades out on hover */
.product-img-wrapper:hover .img-primary {
    opacity: 0;
}
/* The secondary (gallery) image */
.img-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3; /* Above everything */
}
/* The secondary image fades in on hover */
.product-img-wrapper:hover .img-secondary {
    opacity: 1;
}

/* Badges styling positioned above everything */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
}

/* Text & Button Styling below the image */
.product-title {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}
.product-title:hover {
    color: #a8a8a8;
}
.product-price {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.product-price-old {
    text-decoration: line-through;
    color: #888888;
    margin-right: 8px;
    font-size: 0.95rem;
}
.product-price-new {
    color: #dc3545; /* Bootstrap danger red */
    font-weight: 500;
}
.add-to-cart-btn {
    width: 100%;
    border-radius: 0;
    padding: 12px 0;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    transition: all 0.3s ease;
}
.add-to-cart-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Mobile Sidebar for Filters */
@media (max-width: 767.98px) {
    .col-lg-3.col-md-4.mb-5 {
        margin-bottom: 0 !important;
        height: 0;
        overflow: visible;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 300px;
        height: 100vh;
        background-color: var(--bg-primary);
        z-index: 1000002; /* Above header */
        padding: 30px 20px;
        overflow-y: auto;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-md);
        border-right: 1px solid var(--border-secondary);
    }

    .shop-sidebar.active {
        left: 0;
    }

    .filter-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1000001;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .filter-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* Top center alignment for mobile hero slider images */
    .shop-hero-carousel .carousel-item img {
        object-position: top center !important;
    }
}
