/* Custom Styles for Product Hero SP-1 */

.sp-1-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: #ffffff;
}

.sp-1-bg {
    position: absolute;
    inset: 0;
    background-image: url('../Images/products/Products.webp');
    /* Single lifestyle background */
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.sp-1-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 40%, transparent 100%);
    z-index: 1;
}

.brush-wrapper {
    position: relative;
    display: inline-block;
}

/* Exact Underline Decoration from about.html */
.underline-brush {
    position: absolute;
    left: 0%;
    bottom: -32px;
    width: 100%;
    height: 30px;
    transform: none;
    background:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 500 50" preserveAspectRatio="none"><path d="M10 20 Q 150 10, 480 30" stroke="%23d64a6f" stroke-width="6" stroke-linecap="round" fill="none" opacity="1"/><path d="M40 35 Q 200 25, 495 45" stroke="%23d64a6f" stroke-width="3" stroke-linecap="round" fill="none" opacity="1"/></svg>') no-repeat left bottom;
    background-size: 50%;
    pointer-events: none;
    filter: blur(0.5px);
}

@media (min-width: 1024px) {
    .underline-brush {
        left: -0%;
        transform: none;
        width: 150%;
        bottom: -40px;
        height: 45px;
    }
}

.product-cards-container {
    position: absolute;
    bottom: 80px;
    right: 5%;
    display: flex;
    gap: 25px;
    align-items: flex-end;
    z-index: 30;
    transition: all 0.3s ease;
}

.product-card-floating {
    background: white;
    border-radius: 16px;
    padding: 15px;
    /* Intensified White/Soft Shadow for premium glow */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08), 0 0 20px rgba(255, 255, 255, 0.5);
    width: 280px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card-floating:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12), 0 0 30px rgba(255, 255, 255, 0.6);
}

/* Rating Star Size Increase */
.rating-stars {
    font-size: 14px;
    color: #fbbf24;
    letter-spacing: 1px;
}

.rating-text {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Responsive Best Practices: Mobile Horizontal Slider */
@media (max-width: 1024px) {
    .sp-1-hero {
        padding-top: 80px;
        padding-bottom: 40px; /* Reduced to sit closer to separate trust bar */
        height: auto;
        min-height: auto;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        overflow: hidden;
    }

    .sp-1-overlay {
        background: rgba(255, 255, 255, 0.6);
    }

    .product-cards-container {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
        padding: 16px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        flex-wrap: nowrap !important;
        gap: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        align-items: center;
        box-sizing: border-box;
        scroll-behavior: smooth;
    }

    .product-card-floating {
        width: 82vw;
        max-width: none;
        padding: 12px;
        scroll-snap-align: center;
        margin-bottom: 10px;
        flex-shrink: 0;
    }
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 1024px) {
    .product-card-floating {
        width: 45vw;
        max-width: 380px;
    }
}

/* Trust bar (Moved outside in HTML) */
.sp-1-trust-bar {
    position: relative;
    z-index: 50;
    background-color: #C53771; /* bg-primary */
    width: 100%;
}

@media (min-width: 1025px) {
    .sp-1-trust-bar {
        margin-top: -64px; /* Pull it into the vh-100 hero */
        height: 64px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 1024px) {
    .sp-1-trust-bar {
        position: relative;
        padding-top: 10px;
        padding-bottom: 30px;
    }
}

@media (max-width: 1023px) {
    @keyframes trustScroll {
        from {
            transform: translateX(0);
        }

        to {
            transform: translateX(-50%);
        }
    }

    .trust-bar-scroller {
        display: flex;
        width: max-content;
        animation: trustScroll 25s linear infinite;
    }

    .trust-bar-container {
        overflow: hidden;
        mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }
}

@media (max-width: 640px) {
    .brush-wrapper h1 {
        font-size: 28px !important;
    }

    .underline-brush {
        bottom: -16px;
        height: 20px;
        left: 50%;
        width: 110%;
        transform: translateX(-50%);
    }
}