/* ============================
   Winsurf eMarket - Hero Slider
   ============================ */
.hero-section {
    background: #fff;
    overflow: hidden;
}

.hero-row {
    --hero-h: clamp(220px, 34vw, 420px);
    display: flex;
    gap: 0;
    min-height: var(--hero-h);
    align-items: stretch;
}

/* Sidebar categories panel */
.hero-sidebar {
    width: 220px;
    height: var(--hero-h);
    flex-shrink: 0;
    background: #e6cece;
    border: 1px solid var(--primary);
    position: relative;
    z-index: 5;
    overflow: visible;
}

.hero-sidebar .cat-list {
    position: relative;
    margin: 0;
    padding: 0px !important;
    list-style: none;
    height: 100%;
    overflow: visible;
}

.hero-sidebar .cat-list > li {
    position: relative;
    padding: 0px !important;
}

.hero-sidebar .cat-list > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px 12px 30px;
    color: #2f2f2f;
    font-size: 13px;
    font-weight: 700;
    background: #e6cece;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.hero-sidebar .cat-list > li > a:hover {
    color: var(--primary);
    background: #fff5f4;
    transform: translateX(3px);
    text-decoration: none;
}

.hero-sidebar .cat-list > li > a i {
    width: 16px;
    color: #909090;
}

.hero-sidebar .cat-list > li.has-sub > a::after {
    content: '\203A';
    margin-left: auto;
    color: #9b9b9b;
    font-size: 14px;
    line-height: 1;
    transition: transform 0.18s ease, color 0.18s ease;
}

.hero-sidebar .cat-list > li.has-sub:hover > a::after,
.hero-sidebar .cat-list > li.has-sub:focus-within > a::after {
    transform: translateX(2px);
    color: var(--primary);
}

.hero-cat-submenu {
    padding: 0px !important;
    position: absolute;
    top: -1px;
    left: 100%;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    transition-delay: 0s, 0s, 0.2s;
}

.hero-cat-submenu li a {
    display: block;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
    background: #fff;
    white-space: nowrap;
    text-decoration: none;
}

.hero-cat-submenu li:last-child a {
    border-bottom: none;
}

.hero-cat-submenu li a:hover {
    color: var(--primary);
    background: #fff5f4;
    text-decoration: none;
}

.hero-sidebar .cat-list > li:hover > .hero-cat-submenu,
.hero-sidebar .cat-list > li:focus-within > .hero-cat-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
    transition-delay: 0.12s, 0.12s, 0s;
}

/* Main slider */
.hero-slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    height: var(--hero-h);
    min-height: 0;
}

.slider-track {
    display: flex;
    width: 300%;
    transition: transform 0.6s ease;
    height: 100%;
}

.slide {
    width: 33.3333%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    padding: 50px 60px;
}

.slide.slide-image-only {
    padding: 0;
    display: block;
    height: 100%;
    background: #fff;
}

.slide.slide-image-only img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #fff;
}

.slide-1 {
    background: linear-gradient(135deg, #fff5f0 0%, #fff 100%);
}

.slide-2 {
    background: linear-gradient(135deg, #f0f8ff 0%, #fff 100%);
}

.slide-3 {
    background: linear-gradient(135deg, #f0fff4 0%, #fff 100%);
}

.slide-content {
    max-width: 360px;
}

.slide-content .label {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.slide-content h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.slide-content h1 span {
    color: var(--primary);
}

.slide-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.slide-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.slide-image img {
    max-height: 320px;
    object-fit: contain;
}

/* Slider controls */
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.slider-prev {
    left: 12px;
}

.slider-next {
    right: 12px;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Hero Right Banners */
.hero-banners {
    width: 220px;
    height: var(--hero-h);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-banner {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-banner:hover img {
    transform: scale(1.05);
}

.hero-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
    color: #fff;
}

.hero-banner-overlay span {
    font-size: 11px;
    opacity: 0.9;
}

.hero-banner-overlay strong {
    font-size: 14px;
    display: block;
}

@media (max-width: 992px) {
    .hero-row {
        --hero-h: clamp(200px, 52vw, 360px);
        min-height: var(--hero-h);
    }

    .hero-slider {
        height: var(--hero-h);
        min-height: 0;
    }

    .hero-sidebar,
    .hero-banners {
        display: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    .hero-sidebar .cat-list > li > a:hover {
        transform: none;
    }
}
