/**
 * YensBaby Theme — Homepage Stylesheet
 * Single Authoritative Stylesheet for Homepage Hero Banner Slider & Homepage Sections
 */

/* ==========================================================================
 * 1. HERO BANNER SLIDER
 * ========================================================================== */
.yens-banner-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--yens-background, #F8FAFC);
    padding: 20px 0 16px 0;
}

.yens-banner-slider-container {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    aspect-ratio: 1920 / 600;
}

.yens-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    height: 100%;
}

.yens-slide {
    position: relative;
    min-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.yens-slide-img-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.yens-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Controls */
.yens-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    color: #0F172A;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
}

.yens-slider-arrow:hover {
    background: #FFFFFF;
    transform: translateY(-50%) scale(1.08);
}

.yens-slider-arrow.prev { left: 16px; }
.yens-slider-arrow.next { right: 16px; }

/* Dots */
.yens-slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 8px;
}

.yens-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.yens-dot.active {
    width: 24px;
    border-radius: 10px;
    background: #FFFFFF;
}

/* Phone: show the WHOLE 1920x600 banner — the headline is baked into the artwork,
   so the 16/9 + min-height crop in responsive.css slices the words off. */
@media (max-width: 768px) {
    .yens-banner-slider-section .yens-banner-slider-container {
        aspect-ratio: 1920 / 600;
        min-height: 0;
    }

    .yens-banner-slider-section .yens-slide-img {
        object-fit: contain;
    }

    /* Hero is short here — park the controls in the bottom strip, clear of the headline */
    .yens-banner-slider-section .yens-slider-arrow {
        top: auto;
        /* 8px (not 6) so the 44px ::after tap pad below clears the container's
           overflow:hidden floor: 8 + 28/2 = 22 = half the pad. */
        bottom: 8px;
        transform: none;
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }

    .yens-banner-slider-section .yens-slider-arrow:hover {
        transform: scale(1.08);
    }

    .yens-banner-slider-section .yens-slider-dots {
        bottom: 11px;
    }

    /* The 28px arrow above fits the short 3.2:1 phone hero, but is under the 44px
       tap-target floor. Keep the look, expand the touch area with a transparent
       pseudo-element. Lives here so all hero-arrow geometry stays in one file. */
    .yens-banner-slider-section .yens-slider-arrow {
        position: absolute;
    }

    .yens-banner-slider-section .yens-slider-arrow::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 44px;
        height: 44px;
        transform: translate(-50%, -50%);
    }
}

/* ==========================================================================
 * 2. HOMEPAGE SECTIONS & PRODUCT GRID
 * ========================================================================== */
.yens-section {
    padding: 32px 0;
}

.yens-section-header {
    margin-bottom: 20px;
}

.yens-section-header.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.yens-section-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--yens-text-primary, #0F172A);
    margin: 0 0 4px 0;
}

.yens-section-subtitle {
    font-size: 0.9rem;
    color: var(--yens-text-secondary, #64748B);
    margin: 0;
}

.yens-link-more {
    font-weight: 700;
    color: var(--yens-primary, #0984E3);
    text-decoration: none;
    font-size: 0.88rem;
    white-space: nowrap;
}

.yens-link-more:hover {
    text-decoration: underline;
}

/* Authoritative Product Grid Layout */
.yens-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.yens-product-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Category Grid */
.yens-category-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
}

.yens-cat-card {
    background: #FFFFFF;
    border: 1px solid var(--yens-border, #E2E8F0);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.yens-cat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(9, 132, 227, 0.1);
    border-color: var(--yens-primary, #0984E3);
}

.yens-cat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.yens-cat-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--yens-text-primary, #0F172A);
    margin: 0 0 2px 0;
    line-height: 1.25;
}

.yens-cat-count {
    font-size: 0.75rem;
    color: var(--yens-text-secondary, #64748B);
}

/* Bundle & Curated Section */
.yens-bundle-banner-wrap {
    background: linear-gradient(135deg, #EAF7FF 0%, #D8F0FF 100%);
    border: 1.5px solid #CFEAF8;
    border-radius: 20px;
    padding: 28px 24px;
    color: #0F172A;
}

.yens-bundle-banner-wrap h2,
.yens-bundle-banner-wrap .yens-section-title {
    color: #0F172A !important;
}

.yens-bundle-banner-wrap p,
.yens-bundle-banner-wrap .yens-section-subtitle {
    color: #334155 !important;
}

.yens-bundle-header {
    margin-bottom: 20px;
}

.yens-curated-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.yens-curated-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    border: 1.5px solid #CFEAF8;
    box-shadow: 0 4px 12px rgba(74, 175, 232, 0.05);
}

.yens-curated-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #EAF7FF;
    color: #4AAFE8;
    font-weight: 800;
    font-size: 0.72rem;
    border-radius: 8px;
    margin-bottom: 10px;
}

.yens-curated-card h3 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    color: #0F172A;
}

.yens-curated-card p {
    margin: 0 0 14px 0;
    font-size: 0.88rem;
    color: #334155;
}

/* Trust Grid */
.yens-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: #FFFFFF;
    padding: 24px;
    border-radius: 16px;
    border: 1.5px solid #CFEAF8;
}

.yens-trust-item {
    text-align: center;
}

.yens-trust-icon {
    font-size: 1.8rem;
    margin-bottom: 6px;
    color: #4AAFE8;
}

.yens-trust-item h4 {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0F172A;
}

.yens-trust-item p {
    margin: 0;
    font-size: 0.8rem;
    color: #334155;
}

/* Newsletter Box */
.yens-newsletter-box {
    background: #EAF7FF;
    border: 1.5px solid #CFEAF8;
    border-radius: 16px;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.yens-news-content h3 {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    color: #0F172A;
}

.yens-news-content p {
    margin: 0;
    font-size: 0.88rem;
    color: #334155;
}

.yens-news-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 460px;
}

.yens-news-input {
    flex: 1;
    height: 44px;
    border-radius: 10px;
    border: 1.5px solid #CFEAF8;
    background: #FFFFFF;
    color: #0F172A;
    padding: 0 14px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.yens-news-input:focus {
    border-color: #4AAFE8;
    box-shadow: 0 0 0 3px rgba(74, 175, 232, 0.15);
}

.yens-news-btn {
    height: 44px;
    padding: 0 20px;
    background: #4AAFE8;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.88rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.yens-news-btn:hover {
    background: #38A3E0;
}
