* {
    box-sizing: border-box
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

.menu1 a {
    color: #39393e;
    text-decoration: none;
    font-size: .8em;
    padding: .4em;
    display: inline-block;
}

.menu2 a {
    color: #39393e;
    text-decoration: none;
    font-size: .9em;
    padding: .2em;
    display: inline-block;
    border-bottom: solid 3px #0000;
    transition: all 0.3s ease;
}

.menu2 a:hover {
    border-bottom: solid 3px #39393e;
}

.slider-container-hero {
    width: 60%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    margin: auto;
}

/* main slider area */
.slider-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #102c38;
}

.slides-wrapper-hero {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.25, 0.1, 0.15, 1.0);
    will-change: transform;
    pointer-events: none;
}

.slide-hero {
    transform: translateX(100%);
    /* default: hidden off right */
    z-index: 5;
}

.slide-hero.active-hero {
    transform: translateX(0);
    /* current slide centered */
    z-index: 10;
}

.slide-hero.exit-left-hero {
    transform: translateX(-100%);
    /* exiting to left */
    z-index: 8;
}

/* navigation row */
.nav-row-hero {
    width: 100%;
    position: absolute;
    bottom: 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.4rem;
    padding: 0 0.5rem;
    z-index: 20;
}

.dashes-hero {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    z-index: 20;
    margin: auto;
}

.dash-hero {
    width: .5rem;
    height: 0.5rem;
    border-radius: 1rem;
    background: #666;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    z-index: 20;
}

.dash-hero.active-dash-hero {
    background: #333;
}

.dash-hero:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* arrow buttons */
.arrow-hero {
    background: #ddd;
    position: absolute;
    top: 45%;
    border: 1px solid #00000000;
    width: 1.6rem;
    height: 3.2rem;
    border-radius: .1em;
    font-size: 1em;
    font-weight: 400;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.5);
    line-height: 1;
    user-select: none;
    z-index: 15;
}

.next-arrow-hero {
    right: 0;
}

.previous-arrow-hero {
    left: 0;
}

.arrow-hero:hover {
    background: #fff;
    border: 1px solid #334;
}

.arrow-hero:active {
    transform: scale(0.98);
    background: #1f4155;
}

/* Slider 2 */
.slider-wrapper {
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    border-radius: 2rem;
    padding: 1.8rem 1.5rem;
    box-shadow: 0 20px 35px -8px rgba(0, 10, 30, 0.3);
}

.slider-wrapper:first-of-type {
    background: rgba(230, 240, 255, 0.5);
}

.slider-wrapper:last-of-type {
    background: rgba(240, 230, 255, 0.5);
}

h2 {
    margin: 0 0 0.5rem 0.25rem;
    font-weight: 500;
    color: #1e293b;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    background: #334155;
    color: white;
    font-size: 0.7rem;
    font-weight: 400;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    opacity: 0.8;
}

.direction-badge {
    background: #2d3b4f;
    color: #a5f3fc;
    font-size: 0.7rem;
    padding: 0.2rem 1rem 0.2rem 0.7rem;
    border-radius: 30px;
    margin-left: 0.5rem;
    gap: 0.3rem;
    display: inline-flex;
    align-items: center;
}

.direction-badge::before {
    content: "▶";
    font-size: 0.6rem;
    background: #38bdf8;
    color: #0f172a;
    padding: 0.2rem 0.4rem;
    border-radius: 50%;
    margin-right: 0.3rem;
}

.direction-badge.right::before {
    transform: rotate(180deg);
}

/* main slider container */
.slider-container1 {
    width: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
    background: #0f172a10;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.02), 0 8px 20px rgba(0, 10, 30, 0.1);
    cursor: grab;
    touch-action: pan-y pinch-zoom;
}

.slider-container1.dragging {
    cursor: grabbing;
    transition: none;
}

.slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.slider-track.no-transition {
    transition: none !important;
}

.slide {
    flex: 0 0 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    padding: 0.4rem;
}

@media screen and (max-width: 1500px) {
    .slide {
        flex: 0 0 20%;
        aspect-ratio: 3 / 4;
    }
}

@media screen and (max-width: 700px) {
    .slide {
        flex: 0 0 33%;
        aspect-ratio: 3 / 4;
    }
}

@media screen and (max-width: 500px) {
    .slide {
        flex: 0 0 50%;
        aspect-ratio: 3 / 4;
    }
}

/* card is now a clickable <a> */
.slide .card {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 1.2rem;
    box-shadow: 0 8px 16px -6px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: transform 0.3s ease-out, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.slide:hover .card {
    transform: scale(1.02);
    box-shadow: 0 16px 24px -8px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    z-index: 10;
}

/* inner content wrapper */
.card-content {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    background: white;
    border-radius: inherit;
    overflow: hidden;
}

/* Product image */
.product-image {
    width: 100%;
    height: 60%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Video container - only shown if video exists */
.product-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
    background-color: transparent; /* Ensure no white background */
}

/* Only show video on hover for slides that have video */
.slide:has(video) .product-image {
    transition: opacity 0.3s ease;
}

.slide:has(video):hover .product-video {
    opacity: 1;
    z-index: 3;
}

.slide:has(video):hover .product-image {
    opacity: 0;
}

/* Product info - always visible */
.product-info {
    padding: 0.8rem;
    background: white;
    height: 40%;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    position: relative;
    z-index: 2;
}

.product-description {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-seller {
    font-size: 0.7rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.product-seller::before {
    content: "👤";
    font-size: 0.6rem;
    opacity: 0.7;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-price {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.product-discount {
    font-size: 0.7rem;
    background: #22c55e;
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 20px;
    font-weight: 500;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: #f59e0b;
}

.product-rating span {
    color: #64748b;
    margin-left: 0.1rem;
}

.stars {
    display: flex;
    gap: 0.1rem;
}

.star-filled {
    color: #f59e0b;
}

.star-empty {
    color: #e2e8f0;
}

/* hover mask removed, replaced with video */

.drag-hint {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 1rem;
    color: #475569;
    font-size: 0.85rem;
    align-items: center;
}