
/* --- Global Styles & Variables --- */
:root {
    --epm-color-primary: #4A90E2; /* A calm, modern blue */
    --epm-color-secondary: #50E3C2; /* A vibrant teal/mint for accents */
    --epm-color-accent: #F5A623; /* Warm accent for special offers */
    --epm-color-text: #333333;
    --epm-color-text-light: #555555;
    --epm-color-text-lighter: #777777;
    --epm-color-background: #FFFFFF;
    --epm-color-surface: #FFFFFF; /* For cards and distinct sections */
    --epm-color-border: #EAEAEA;
    --epm-color-success: #28A745;
    --epm-color-error: #E74C3C;
    --epm-color-warning: #F39C12;

    --epm-font-primary: 'Poppins', sans-serif;
    --epm-font-secondary: 'Open Sans', sans-serif;

    --epm-border-radius-medium: 1rem; /* 10px */
    --epm-border-radius-large: 2rem; /* 20px */
    --epm-border-radius-pill: 5rem; /* 50px for pill shape */

    --epm-shadow-soft: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.08);
    --epm-shadow-medium: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.1);
    --epm-shadow-strong: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.12);

    --epm-spacing-xs: 0.5rem;
    --epm-spacing-sm: 1rem;
    --epm-spacing-md: 1.5rem;
    --epm-spacing-lg: 2rem;
    --epm-spacing-xl: 3rem;
    --epm-spacing-xxl: 4rem;

    --epm-header-height: 7rem; /* Adjust as needed */
}

html {
    font-size: 50%; /* 1rem = 10px */
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {

    font-size: 1.6rem; /* Default body text size 16px */
    line-height: 1.6;
    color: var(--epm-color-text);
    background-color: var(--epm-color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Utility Classes --- */
.epm-container {
    width: 90%;
    max-width: 120rem; /* 1200px */
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--epm-spacing-md);
}

.epm-text-center { text-align: center; }
.epm-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--epm-font-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--epm-color-text);
    margin-bottom: var(--epm-spacing-sm);
}
h1 { font-size: 3.6rem; font-weight: 700; margin-bottom: var(--epm-spacing-md); } /* 36px */
h2 { font-size: 2.8rem; margin-bottom: var(--epm-spacing-lg); } /* 28px */
h3 { font-size: 2rem; } /* 20px */

/* --- Links --- */
a {
    color: var(--epm-color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover, a:focus {
    color: darken(var(--epm-color-primary), 10%);
    text-decoration: underline;
}

/* --- Buttons --- */
.epm-button {
    display: inline-block;
    font-family: var(--epm-font-primary);
    font-weight: 500;
    font-size: 1.5rem;
    padding: 1.2rem var(--epm-spacing-lg);
    border: 0.1rem solid transparent;
    border-radius: var(--epm-border-radius-pill);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.epm-button--primary {
    background-color: var(--epm-color-primary);
    color: var(--epm-color-surface);
}
.epm-button--primary:hover, .epm-button--primary:focus {
    background-color: darken(var(--epm-color-primary), 10%);
    color: var(--epm-color-surface);
    box-shadow: var(--epm-shadow-soft);
    text-decoration: none;
}
.epm-button--secondary {
    background-color: var(--epm-color-secondary);
    color: var(--epm-color-text);
}
 .epm-button--secondary:hover, .epm-button--secondary:focus {
    background-color: darken(var(--epm-color-secondary), 10%);
    color: var(--epm-color-text);
    box-shadow: var(--epm-shadow-soft);
    text-decoration: none;
}
.epm-button--outline {
    background-color: transparent;
    color: var(--epm-color-primary);
    border-color: var(--epm-color-primary);
}
.epm-button--outline:hover, .epm-button--outline:focus {
    background-color: var(--epm-color-primary);
    color: var(--epm-color-surface);
    text-decoration: none;
}
.epm-button i { margin-left: var(--epm-spacing-xs); }

/* --- Scroll Animations --- */
[data-epm-animation] {
    opacity: 0;
    transform: translateY(3rem);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-epm-animation].epm-is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- General Section Styling --- */
main > section {
    padding: var(--epm-spacing-xxl) 0;
}

.epm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--epm-spacing-xl);
}
.epm-section-header--centered {
    text-align: center;
    flex-direction: column;
    margin-bottom: var(--epm-spacing-lg); /* Less margin if title and tagline are centered */
}
.epm-section-title {
    font-size: 2.8rem;
    font-weight: 600;
}
.epm-section-tagline {
    font-size: 1.6rem;
    color: var(--epm-color-text-light);
    margin-top: -1rem; /* Pulls it closer to the title */
    margin-bottom: var(--epm-spacing-lg);
}
.epm-view-all-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--epm-color-primary);
}
.epm-view-all-link i { margin-left: 0.5rem; }
.epm-empty-state {
    text-align: center;
    padding: var(--epm-spacing-xl);
    background-color: #f8f9fa;
    border-radius: var(--epm-border-radius-medium);
    color: var(--epm-color-text-lighter);
}
.epm-empty-state p { font-size: 1.6rem; }

/* --- Hero Section --- */
.epm-hero {
    background: linear-gradient(45deg, var(--epm-color-primary), var(--epm-color-secondary));
    color: var(--epm-color-surface);
    padding: var(--epm-spacing-xxl) 0;
    text-align: center;
    min-height: 70vh; /* Adjusted for potentially taller content */
    display: flex;
    align-items: center;
    justify-content: center;
}
.epm-hero__content {
    max-width: 70rem;
}
.epm-hero__title {
    font-size: 4.2rem; /* Larger for hero */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--epm-spacing-md);
    color: var(--epm-color-surface);
}
.epm-hero__subtitle {
    font-size: 1.8rem;
    margin-bottom: var(--epm-spacing-xl);
    opacity: 0.9;
}
.epm-hero__cta {
    padding: 1.5rem 3.5rem;
    font-size: 1.8rem;
    background-color:rgba(195, 217, 253, 0.9);
    color: var(--epm-color-text);
}
.epm-hero__cta:hover {
    background-color: darken(var(--epm-color-accent), 10%);
    color: var(--epm-color-text);
}
.epm-hero__image-container {
    margin-top: var(--epm-spacing-xl);
}
.epm-hero__image {
    max-width: 25rem; /* Example size */
    height: auto;
    border-radius: var(--epm-border-radius-large);
}

/* --- Category Showcase --- */
.epm-category-showcase {
     background-color: #F9FAFB;
}
.epm-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: var(--epm-spacing-lg);
    margin-top: var(--epm-spacing-md);
}
.epm-category-card {
    background-color: var(--epm-color-surface);
    padding: var(--epm-spacing-lg);
    text-align: center;
    border-radius: var(--epm-border-radius-large);
    box-shadow: var(--epm-shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.epm-category-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--epm-shadow-medium);
    text-decoration: none;
}
.epm-category-card__icon {
    font-size: 3.5rem;
    color: var(--epm-color-primary);
    margin-bottom: var(--epm-spacing-sm);
    line-height: 1; /* Ensure icon is centered */
}
.epm-category-card__name {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--epm-color-text);
}

/* --- Product Card --- */
.epm-product-card {
    background-color: var(--epm-color-surface);
    border-radius: var(--epm-border-radius-large); /* 20px */
    box-shadow: var(--epm-shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* For swiper slides to be equal height */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative; /* For badges */
    margin-left: 5px !important;
    margin-right: 5px !important;
}
.epm-product-card:hover {
    transform: translateY(-0.3rem);
    box-shadow: var(--epm-shadow-medium);
}
.epm-product-badge {
    position: absolute;
    top: var(--epm-spacing-sm);
    left: var(--epm-spacing-sm);
    padding: var(--epm-spacing-xs) var(--epm-spacing-sm);
    border-radius: var(--epm-border-radius-pill);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--epm-color-surface);
    z-index: 10;
}
.epm-product-badge--discount { background-color: var(--epm-color-error); }
.epm-product-badge--new { background-color: var(--epm-color-secondary); color: var(--epm-color-text); }
.epm-product-badge--low-stock { background-color: var(--epm-color-warning); color: var(--epm-color-text); }

.epm-product-card__image-link {
    display: block;
    aspect-ratio: 1 / 1; /* Square images */
    overflow: hidden;
    height: 100px !important;
    padding: 10px;
}
.epm-product-card__image {
    width: 100%;
    height: 100px !important;
    object-fit: fill; /* Changed to cover */
    transition: transform 0.4s ease;
    border-radius: 20px !important;
}
.epm-product-card:hover .epm-product-card__image {
    transform: scale(1.05);
}
.epm-product-card__info {
    padding: var(--epm-spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows info to take remaining space */
}
.epm-product-card__name {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 0px !important;

    
    overflow: hidden;
}
.epm-product-card__name a { color: var(--epm-color-text); }
.epm-product-card__name a:hover { color: var(--epm-color-primary); }

.epm-product-card__store {
    font-size: 1.3rem;
    color: var(--epm-color-text-lighter);
    margin-bottom: var(--epm-spacing-xs);
    display: block;
}
.epm-product-card__store:hover { color: var(--epm-color-secondary); }

.epm-product-card__units {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom :-2px;
    margin-top :-4px;
}
.epm-product-card__price-container {
    margin-bottom: var(--epm-spacing-md);
    display: flex;
    align-items: baseline;
    gap: var(--epm-spacing-xs);
}
.epm-product-card__price {
    font-weight: 600;
      margin-bottom: -18px !important; /* Adjust padding to fit content */
}
.epm-product-card__price--current {
    font-size: 1.6rem;
    color: var(--epm-color-primary);
}
.epm-product-card__price--original {
    font-size: 1.2rem;
    color: var(--epm-color-text-lighter);
    text-decoration: line-through;
}
.epm-product-card__add-to-cart-btn {
    width: 100%;
    margin-top: auto; /* Pushes button to the bottom */
    font-size: 1.4rem;
    padding: 1rem;
}

/* --- Swiper Carousel Styling --- */
.epm-swiper-container {
    padding-bottom: var(--epm-spacing-xl); /* Space for pagination */
}
.epm-swiper-slide { /* For swiper to manage its slides */
     height: auto; /* Let content define height, or set a fixed one if necessary */
     display: flex; /* Helps with alignment if content varies */
}
.epm-swiper-nav {
    color: var(--epm-color-primary);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 4rem;
    height: 4rem;

    box-shadow: var(--epm-shadow-soft);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.epm-swiper-nav::after { font-size: 1.8rem; font-weight: bold; }
.epm-swiper-nav:hover {
    background-color: var(--epm-color-primary);
    color: var(--epm-color-surface);
}
.epm-swiper-nav--prev { left: -1rem; }
.epm-swiper-nav--next { right: -1rem; }

.epm-swiper-pagination .swiper-pagination-bullet {
    background-color: var(--epm-color-primary);
    opacity: 0.5;
    width: 1rem;
    height: 1rem;
    margin-bottom: -10px !important;
}
.epm-swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}


/* --- Flash Sales Section --- */
.epm-flash-sales {
    background: linear-gradient(135deg, var(--epm-color-accent), lighten(var(--epm-color-accent), 15%));
    color: var(--epm-color-text); /* Using dark text on light accent bg */
}
.epm-flash-sales .epm-section-title { color: #000; } /* White title on colored background */
.epm-flash-sales-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--epm-spacing-lg);
    flex-wrap: wrap; /* Allow wrapping on small screens */
}
.epm-flash-sales-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--epm-color-surface); /* White title */
}
.epm-flash-sales-title i { margin-right: var(--epm-spacing-sm); }

.epm-flash-sales-countdown {
    display: flex;
    align-items: center;
    gap: var(--epm-spacing-sm);
    color: var(--epm-color-surface);
    font-size: 1.5rem;
}
.epm-flash-sales-countdown span { font-weight: 500;}
.epm-timer-box {
    background-color: rgba(255, 255, 255, 0.2);
    padding: var(--epm-spacing-xs) var(--epm-spacing-sm);
    border-radius: var(--epm-border-radius-medium);
    text-align: center;
    min-width: 6rem;
}
.epm-timer-box span { display: block; font-size: 2rem; font-weight: 700; }
.epm-timer-box small { font-size: 1.2rem; text-transform: uppercase; opacity: 0.8; }
.epm-flash-sales .epm-product-card {
    border: 0.2rem solid silver; /* Highlight flash sale items */

}
.epm-flash-sales .epm-product-card .epm-product-card__price{

    margin-bottom: -250px !important; /* Adjust padding to fit content */
}
/* --- Price Tier Collections --- */

.epm-price-collections-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to 1 column for mobile */
    gap: var(--epm-spacing-lg);
}
.epm-collection-banner {
    border-radius: var(--epm-border-radius-large);
    padding: var(--epm-spacing-xl);
    background-size: cover;
    background-position: center;
    color: var(--epm-color-surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align text to the left */
    min-height: 25rem;
    position: relative;
    overflow: hidden;
}
.epm-collection-banner::before { /* Overlay for text readability */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    border-radius: var(--epm-border-radius-large);
}
.epm-collection-banner__content {
    position: relative;
    z-index: 2;
    max-width: 60%; /* Prevent text from spanning entire width */
}
.epm-collection-banner__title {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--epm-color-surface);
    margin-bottom: var(--epm-spacing-xs);
}
.epm-collection-banner__tagline {
    font-size: 1.6rem;
    margin-bottom: var(--epm-spacing-md);
    color: var(--epm-color-surface);
    opacity: 0.9;
}
.epm-collection-banner .epm-button--outline {
    border-color: var(--epm-color-surface);
    color: var(--epm-color-surface);
}
 .epm-collection-banner .epm-button--outline:hover {
    background-color: var(--epm-color-surface);
    color: var(--epm-color-primary);
}


/* --- Why Choose Us Section --- */
.epm-why-choose-us { background-color: #F9FAFB; }
.epm-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: var(--epm-spacing-lg);
}
.epm-feature-item {
    background-color: var(--epm-color-surface);
    padding: var(--epm-spacing-xl);
    text-align: center;
    border-radius: var(--epm-border-radius-large);
    box-shadow: var(--epm-shadow-soft);
}
.epm-feature-item__icon {
    font-size: 4rem;
    color: var(--epm-color-primary);
    margin-bottom: var(--epm-spacing-md);
    line-height: 1;
}
.epm-feature-item__title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: var(--epm-spacing-xs);
}
.epm-feature-item__description {
    font-size: 1.4rem;
    color: var(--epm-color-text-light);
}

/* --- Footer (Placeholder - Assuming footer.php handles this) --- */
.epm-main-footer {
    background-color: var(--epm-color-text);
    color: #F1F1F1;
    padding: var(--epm-spacing-xl) 0;
    font-size: 1.4rem;
}
.epm-main-footer .epm-container { text-align: center; }
.epm-main-footer a { color: var(--epm-color-secondary); }
.epm-main-footer a:hover { color: var(--epm-color-surface); }


/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2, .epm-section-title, .epm-flash-sales-title { font-size: 2.4rem; }
    .epm-hero__title { font-size: 3.2rem; }

    .epm-section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .epm-view-all-link { margin-top: var(--epm-spacing-sm); }

    .epm-flash-sales-header {
        flex-direction: column;
        align-items: center;
        gap: var(--epm-spacing-md);
    }
    .epm-flash-sales-countdown {
        justify-content: center;
        flex-wrap: wrap;
    }
     .epm-timer-box { min-width: 5.5rem; }
     .epm-timer-box span { font-size: 1.8rem; }

     .epm-swiper-nav { display: none; } /* Simpler nav for mobile, rely on swipe & pagination */
}

@media (min-width: 769px) {
    .epm-category-grid {
        grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    }
    .epm-price-collections-grid {
         grid-template-columns: repeat(2, 1fr); /* Two columns for larger screens */
    }
    .epm-collection-banner__content {
        max-width: 50%;
    }
    .epm-hero { text-align: left; }
    .epm-hero .epm-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .epm-hero__content { max-width: 55rem; margin-right: var(--epm-spacing-xl); }
    .epm-hero__image-container { margin-top: 0; }
}

 @media (min-width: 992px) {
     .epm-swiper-nav { display: flex; } /* Show nav buttons on larger screens */
 }


