/* ==========================================================================
   Home Page Styles for Epidermist Theme
   ========================================================================== */

/* Hero Section */
.ep-hero {
    min-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    padding-top: calc(var(--ep-header-height) + 20px);
    box-sizing: border-box;
}

body.admin-bar .ep-hero {
    padding-top: calc(var(--ep-header-height) + 52px);
}

@media (max-width: 782px) {
    body.admin-bar .ep-hero {
        padding-top: calc(var(--ep-header-height) + 66px);
    }
}

@media (max-width: 768px) {
    .ep-hero {
        min-height: 70vh;
    }
}

.ep-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.ep-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.ep-hero-inner {
    max-width: 650px;
    color: var(--ep-bg-white);
}

.ep-hero-inner .ep-eyebrow {
    color: var(--ep-bg-white);
    opacity: 0.9;
}

.ep-hero-heading {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: 56px;
    line-height: 1.15;
    margin-top: 16px;
    margin-bottom: 24px;
    color: var(--ep-bg-white);
}

@media (max-width: 768px) {
    .ep-hero-heading {
        font-size: 42px;
    }
}

.ep-hero-subtext {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 40px;
}

.ep-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.ep-btn-hero-primary {
    background-color: var(--ep-bg-white);
    color: var(--ep-text-dark);
}

.ep-btn-hero-primary:hover {
    background-color: var(--ep-accent);
    color: var(--ep-bg-white);
}

.ep-btn-hero-secondary {
    background-color: transparent;
    border: 1.5px solid var(--ep-bg-white);
    color: var(--ep-bg-white);
}

.ep-btn-hero-secondary:hover {
    background-color: var(--ep-bg-white);
    color: var(--ep-text-dark);
}

/* Brand Intro Section */
.ep-brand-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 991px) {
    .ep-brand-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.ep-brand-intro-text {
    max-width: 480px;
}

.ep-brand-intro-text .ep-heading-h2 {
    margin-top: 16px;
    margin-bottom: 24px;
}

.ep-brand-intro-text .ep-body-text {
    margin-bottom: 30px;
}

.ep-brand-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    aspect-ratio: 4/5;
    object-fit: cover;
}

.ep-image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--ep-bg-secondary), #e0d5c1);
    border-radius: 12px;
}

/* Featured Products Section */
.ep-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .ep-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ep-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.ep-product-card {
    background-color: var(--ep-bg-white);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.ep-product-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.ep-product-image-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: var(--ep-bg-secondary);
}

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

.ep-product-card:hover .ep-product-image-wrapper img {
    transform: scale(1.05);
}

.ep-sale-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--ep-sale);
    color: var(--ep-bg-white);
    font-size: 11px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 2;
}

.ep-product-info {
    padding: 20px;
}

.ep-product-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ep-text-light);
    margin-bottom: 4px;
}

.ep-product-category a {
    color: inherit;
    text-decoration: none;
}

.ep-product-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    margin: 8px 0;
}

.ep-product-title a {
    color: var(--ep-text-dark);
    text-decoration: none;
}

.ep-product-title a:hover {
    color: var(--ep-accent);
}

.ep-product-rating {
    margin-bottom: 8px;
    color: var(--ep-accent);
    font-size: 12px;
}

.ep-product-price {
    font-size: 15px;
    color: var(--ep-text-dark);
    margin-bottom: 16px;
    font-weight: 500;
}

.ep-product-price del {
    color: var(--ep-text-light);
    margin-right: 8px;
    font-weight: normal;
}

.ep-product-price ins {
    text-decoration: none;
}

.ep-product-add-to-cart a {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--ep-text-dark);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.1em;
    display: inline-block;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.ep-product-add-to-cart a:hover {
    color: var(--ep-accent);
    border-bottom-color: var(--ep-accent);
}

.ep-mt-60 {
    margin-top: 60px;
}

/* Skin Concerns Cards */
.ep-concerns-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 1024px) {
    .ep-concerns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ep-concerns-grid {
        grid-template-columns: 1fr;
    }
}

.ep-concern-card {
    background-color: var(--ep-bg-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.ep-concern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.10);
}

.ep-concern-image {
    height: 240px;
    width: 100%;
}

.ep-concern-dryness { background: linear-gradient(to bottom right, #f4e8d3, #e8d5b5); }
.ep-concern-dullness { background: linear-gradient(to bottom right, #fdf6e3, #f5e4bc); }
.ep-concern-uneven { background: linear-gradient(to bottom right, #efeae4, #dcd2c6); }
.ep-concern-sensitive { background: linear-gradient(to bottom right, #e8ede9, #ccd9d1); }

.ep-concern-content {
    padding: 28px;
}

.ep-concern-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--ep-text-dark);
}

.ep-concern-desc {
    font-size: 14px;
    color: var(--ep-text-medium);
    margin-bottom: 20px;
    line-height: 1.6;
}

.ep-btn-concern {
    font-size: 13px;
    text-transform: uppercase;
    color: var(--ep-accent);
    font-weight: 600;
}

/* Brand Philosophy */
.ep-brand-philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 991px) {
    .ep-brand-philosophy-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ep-brand-philosophy-image-col {
        order: -1;
    }
}

.ep-philosophy-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.ep-philosophy-placeholder {
    aspect-ratio: 3/4;
}

.ep-large-heading {
    font-size: 42px;
    margin-bottom: 30px;
}

.ep-large-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Visual Statement */
.ep-visual-statement {
    height: 500px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .ep-visual-statement {
        height: 350px;
        background-attachment: scroll;
    }
}

.ep-visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.ep-visual-content {
    position: relative;
    z-index: 2;
}

.ep-visual-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 48px;
    color: var(--ep-bg-white);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .ep-visual-heading {
        font-size: 36px;
    }
}

/* Newsletter */
.ep-newsletter-container {
    max-width: 600px;
    text-align: center;
}

.ep-newsletter-container .ep-heading-h2 {
    margin-bottom: 16px;
}

.ep-newsletter-container .ep-body-text {
    margin-bottom: 32px;
}

.ep-newsletter-form {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

@media (max-width: 576px) {
    .ep-newsletter-form {
        flex-direction: column;
    }
}

.ep-newsletter-input {
    flex: 1;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--ep-border);
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    background-color: var(--ep-bg-white);
    outline: none;
    transition: border-color 0.3s ease;
}

.ep-newsletter-input:focus {
    border-color: var(--ep-accent);
}

.ep-newsletter-privacy {
    font-size: 12px;
    color: var(--ep-text-light);
}

/* CTA Section Reusable */
.ep-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.ep-cta-content .ep-heading-h2 {
    margin-bottom: 24px;
}

.ep-cta-content .ep-body-text {
    margin-bottom: 32px;
}
