/**
 * EP Homepage Warm Styles
 * Warm & Approachable homepage design
 */

/* CSS Variables */
.ep-homepage-warm {
    --ep-hw-dark-primary: #9f1239;
    --ep-hw-dark-secondary: #be123c;
    --ep-hw-dark-deep: #881337;
    --ep-hw-light-bg: #fff1f2;
    --ep-hw-light-bg-alt: #ffe4e6;
    --ep-hw-coral: #f43f5e;
    --ep-hw-peach: #fda4af;
    --ep-hw-cream: #fef7f0;
    --ep-hw-white: #ffffff;
    --ep-hw-black: #2d2d2d;
    --ep-hw-gray: #737373;
    --ep-hw-font-display: 'Fraunces', serif;
    --ep-hw-font-body: 'DM Sans', sans-serif;
}

.ep-homepage-warm {
    font-family: var(--ep-hw-font-body);
    background: var(--ep-hw-cream);
    color: var(--ep-hw-black);
    overflow-x: hidden;
}

.ep-homepage-warm *,
.ep-homepage-warm *::before,
.ep-homepage-warm *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.ep-hw-hero {
    padding: 60px 40px 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.ep-hw-hero__bg {
    position: absolute;
    top: -100px;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--ep-hw-light-bg-alt) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.ep-hw-hero__bg-2 {
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--ep-hw-peach) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 0;
}

.ep-hw-hero__container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.ep-hw-hero__content {
    animation: ep-hw-slideUp 0.8s ease 0.2s backwards;
}

.ep-hw-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ep-hw-white);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ep-hw-dark-primary);
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ep-hw-hero__badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: ep-hw-pulse 2s infinite;
}

@keyframes ep-hw-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
}

.ep-hw-hero__title {
    font-family: var(--ep-hw-font-display);
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 500;
    line-height: 1.15;
    color: var(--ep-hw-black);
    margin: 0 0 24px;
}

.ep-hw-hero__title span {
    color: var(--ep-hw-coral);
    font-style: italic;
}

.ep-hw-hero__description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--ep-hw-gray);
    margin: 0 0 32px;
    max-width: 480px;
}

.ep-hw-hero__cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Buttons */
.ep-hw-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--ep-hw-font-body);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ep-hw-btn--primary {
    background: var(--ep-hw-dark-primary);
    color: var(--ep-hw-white);
    box-shadow: 0 8px 30px rgba(159, 18, 57, 0.25);
}

.ep-hw-btn--primary:hover {
    background: var(--ep-hw-dark-deep);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(159, 18, 57, 0.35);
    color: var(--ep-hw-white);
}

.ep-hw-btn--secondary {
    background: var(--ep-hw-white);
    color: var(--ep-hw-black);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.ep-hw-btn--secondary:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.ep-hw-hero__trust {
    display: flex;
    gap: 32px;
}

.ep-hw-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ep-hw-gray);
}

.ep-hw-hero__trust-icon {
    width: 32px;
    height: 32px;
    background: var(--ep-hw-light-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.ep-hw-hero__images {
    position: relative;
    animation: ep-hw-slideUp 0.8s ease 0.4s backwards;
}

.ep-hw-hero__image-main {
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
}

.ep-hw-hero__image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-hw-hero__image-float {
    position: absolute;
    width: 200px;
    height: 250px;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    background-size: cover;
    background-position: center;
    animation: ep-hw-float 6s ease-in-out infinite;
}

.ep-hw-hero__image-float--1 {
    top: 10%;
    left: -60px;
    animation-delay: 0s;
}

.ep-hw-hero__image-float--2 {
    bottom: 15%;
    right: -40px;
    animation-delay: 2s;
}

@keyframes ep-hw-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes ep-hw-slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Trust Section
   ========================================================================== */
.ep-hw-trust {
    padding: 80px 40px;
    background: var(--ep-hw-white);
}

.ep-hw-trust__container {
    max-width: 1200px;
    margin: 0 auto;
}

.ep-hw-trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ep-hw-trust__card {
    background: var(--ep-hw-cream);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.ep-hw-trust__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.ep-hw-trust__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--ep-hw-coral), var(--ep-hw-peach));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.ep-hw-trust__title {
    font-family: var(--ep-hw-font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--ep-hw-black);
    margin: 0 0 8px;
}

.ep-hw-trust__text {
    font-size: 14px;
    color: var(--ep-hw-gray);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.ep-hw-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.ep-hw-section-badge {
    display: inline-block;
    background: var(--ep-hw-light-bg);
    color: var(--ep-hw-dark-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.ep-hw-section-title {
    font-family: var(--ep-hw-font-display);
    font-size: 40px;
    font-weight: 500;
    color: var(--ep-hw-black);
    margin: 0 0 16px;
}

.ep-hw-section-subtitle {
    font-size: 16px;
    color: var(--ep-hw-gray);
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================================================
   Featured Products Section
   ========================================================================== */
.ep-hw-featured {
    padding: 100px 40px;
    background: var(--ep-hw-cream);
}

.ep-hw-featured__container {
    max-width: 1400px;
    margin: 0 auto;
}

.ep-hw-products-carousel {
    position: relative;
    padding: 0 50px;
}

.ep-hw-products-carousel .swiper-slide {
    height: auto;
}

.ep-hw-product-card {
    display: block;
    background: var(--ep-hw-white);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
}

.ep-hw-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.ep-hw-product-card__image a {
    display: block;
}

.ep-hw-product-card__image {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.ep-hw-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ep-hw-product-card:hover .ep-hw-product-card__image img {
    transform: scale(1.08);
}

.ep-hw-product-card__content {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: inherit;
}

.ep-hw-product-card__content:hover {
    text-decoration: none;
}

.ep-hw-product-card__artist {
    font-size: 12px;
    font-weight: 600;
    color: var(--ep-hw-coral);
    margin: 0 0 6px;
    /* Always take 1 row, truncate if needed */
    min-height: 1.5em;
    max-height: 1.5em;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty artist placeholder to maintain spacing */
.ep-hw-product-card__artist:empty::before {
    content: '\00a0'; /* non-breaking space */
}

.ep-hw-product-card__title {
    font-family: var(--ep-hw-font-display);
    font-size: 17px;
    font-weight: 500;
    margin: 0 0 8px;
    color: var(--ep-hw-black);
    /* Always exactly 2 rows */
    line-height: 1.3;
    min-height: calc(2 * 1.3em);
    max-height: calc(2 * 1.3em);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ep-hw-product-card__price {
    font-size: 14px;
    color: var(--ep-hw-gray);
    margin: 0;
}

.ep-hw-featured__cta {
    text-align: center;
    margin-top: 48px;
}

/* Swiper customizations */
.ep-hw-products-carousel .swiper-button-prev,
.ep-hw-products-carousel .swiper-button-next {
    width: 44px;
    height: 44px;
    background: var(--ep-hw-white);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: var(--ep-hw-dark-primary);
}

.ep-hw-products-carousel .swiper-button-prev::after,
.ep-hw-products-carousel .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}

.ep-hw-products-carousel .swiper-button-prev {
    left: 0;
}

.ep-hw-products-carousel .swiper-button-next {
    right: 0;
}

.ep-hw-products-carousel .swiper-pagination {
    position: relative;
    margin-top: 32px;
}

.ep-hw-products-carousel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--ep-hw-peach);
    opacity: 1;
}

.ep-hw-products-carousel .swiper-pagination-bullet-active {
    background: var(--ep-hw-dark-primary);
}

/* ==========================================================================
   Collections / Styles Section
   ========================================================================== */
.ep-hw-collections {
    padding: 100px 40px;
    background: var(--ep-hw-white);
}

.ep-hw-collections__container {
    max-width: 1200px;
    margin: 0 auto;
}

.ep-hw-collections__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.ep-hw-collection-card {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ep-hw-white);
}

.ep-hw-collection-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.ep-hw-collection-card:hover .ep-hw-collection-card__bg {
    transform: scale(1.08);
}

.ep-hw-collection-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.ep-hw-collection-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
}

.ep-hw-collection-card__count {
    font-size: 13px;
    font-weight: 500;
    color: var(--ep-hw-peach);
    margin: 0 0 8px;
}

.ep-hw-collection-card__title {
    font-family: var(--ep-hw-font-display);
    font-size: 26px;
    font-weight: 500;
    margin: 0;
    color: #ffffff;
}

/* ==========================================================================
   Quality Promise Section
   ========================================================================== */
.ep-hw-quality {
    padding: 120px 40px;
    background: linear-gradient(135deg, var(--ep-hw-dark-primary) 0%, var(--ep-hw-dark-secondary) 100%);
    color: var(--ep-hw-white);
    position: relative;
    overflow: hidden;
}

.ep-hw-quality__pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, var(--ep-hw-coral) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, var(--ep-hw-peach) 0%, transparent 63%);
    opacity: 0.8;
}

.ep-hw-quality__container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ep-hw-quality__header {
    text-align: center;
    margin-bottom: 60px;
}

.ep-hw-quality__badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #fffafa;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.ep-hw-quality__title {
    font-family: var(--ep-hw-font-display);
    font-size: 42px;
    font-weight: 500;
    margin: 0 0 16px;
}

.ep-hw-quality__subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.ep-hw-quality__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.ep-hw-quality__card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.ep-hw-quality__card:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-5px);
}

.ep-hw-quality__card-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.ep-hw-quality__card-title {
    font-family: var(--ep-hw-font-display);
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px;
}

.ep-hw-quality__card-text {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================================================
   Guarantees Section
   ========================================================================== */
.ep-hw-guarantees {
    padding: 80px 40px;
    background: var(--ep-hw-light-bg);
}

.ep-hw-guarantees__container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.ep-hw-guarantees__title {
    font-family: var(--ep-hw-font-display);
    font-size: 32px;
    font-weight: 500;
    color: var(--ep-hw-black);
    margin: 0 0 48px;
}

.ep-hw-guarantees__grid {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.ep-hw-guarantee {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--ep-hw-white);
    padding: 20px 32px;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.ep-hw-guarantee__icon {
    font-size: 24px;
}

.ep-hw-guarantee__text {
    font-size: 15px;
    font-weight: 500;
    color: var(--ep-hw-black);
}

/* ==========================================================================
   CTA Banner Section
   ========================================================================== */
.ep-hw-cta-banner {
    padding: 100px 40px;
    background: var(--ep-hw-cream);
}

.ep-hw-cta-banner__container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.ep-hw-cta-banner__icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.ep-hw-cta-banner__title {
    font-family: var(--ep-hw-font-display);
    font-size: 38px;
    font-weight: 500;
    color: var(--ep-hw-black);
    margin: 0 0 16px;
}

.ep-hw-cta-banner__text {
    font-size: 17px;
    color: var(--ep-hw-gray);
    margin: 0 0 32px;
    line-height: 1.7;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .ep-hw-hero__container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .ep-hw-hero__images {
        max-width: 500px;
        margin: 0 auto;
    }

    .ep-hw-trust__grid,
    .ep-hw-quality__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ep-hw-collections__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ep-hw-hero {
        padding: 40px 20px 60px;
    }

    .ep-hw-hero__image-float {
        width: 100px;
        height: 125px;
        border-radius: 10px;
    }

    .ep-hw-hero__image-float--1 {
        top: 5%;
        left: -20px;
    }

    .ep-hw-hero__image-float--2 {
        bottom: 10%;
        right: -15px;
    }

    .ep-hw-hero__trust {
        flex-direction: column;
        gap: 16px;
    }

    .ep-hw-featured,
    .ep-hw-collections,
    .ep-hw-quality,
    .ep-hw-cta-banner {
        padding: 60px 20px;
    }

    .ep-hw-trust {
        padding: 60px 20px;
    }

    .ep-hw-trust__grid,
    .ep-hw-quality__grid,
    .ep-hw-collections__grid {
        grid-template-columns: 1fr;
    }

    .ep-hw-guarantees__grid {
        flex-direction: column;
        align-items: center;
    }

    .ep-hw-section-title,
    .ep-hw-quality__title {
        font-size: 28px;
    }

    .ep-hw-products-carousel {
        padding: 0;
    }

    .ep-hw-products-carousel .swiper-button-prev,
    .ep-hw-products-carousel .swiper-button-next {
        display: none;
    }
}
