/* --- GLOBAL VARIABLES --- */
:root {
    --ec-beige: #fff8f0;
    /* Page Background */
    --ec-red: #d63638;
    --ec-card-bg: #fff;
    --ec-text: #2c2c2c;
}

/* --- EPICHEF FRONTEND DESIGN (Matches Reference Image) --- */

/* 1. Main Section Background */
.epichef-featured-hero {
    text-align: center;
}


/* 2. Section Title */
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #d63638;
    /* Epichef Red */
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    margin-top: 0;
}

section.epichef-featured-hero .hero-title {
    margin-bottom: 90px;

}

/* Red Underline */
.hero-title::after {
    content: '';
    width: 85%;
    display: block;
    background-image: url('https://ahura.xyz/epichef/wp-content/uploads/2025/12/underline-1.png');
    height: 4px;
    margin: 13px auto 15px;
    border-radius: 2px;
    background-repeat: no-repeat;
    background-size: 100% 50%;
}

/* 3. The Grid Layout (3 Columns) */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 50px;
    margin: 0 auto;
    padding: 0 3%;
}

/* 4. Product Card Styling */
.featured-item {
    display: grid;
    grid-template-columns: 30% 70%;
    /* Vertically center */
    text-align: left;
    border-radius: 4px;
    /* Slight rounding */
    transition: transform 0.3s ease;
    position: relative;
    overflow: visible;
    /* Allow images to pop out if needed */
}

/* Hover Effect */
/*.featured-item:hover {*/
/*    transform: translateY(-5px);*/
/*}*/
.category-image {
    /* width: 500px !important; */
    /* height: 416px !important; */
    display: block;
    object-fit: contain;
    transform: rotate(-13deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 235px;
}

.featured-item:hover .category-image {
    transform: rotate(0deg) scale(1.1);
    /* Straighten and pop on hover */
}

/* 6. Text Content */
.content-wrapper {
    z-index: -1;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #FEEED4;
    padding: 2% 5% 2% 28%;
    margin-top: 2%;
}

.category-title {
    font-size: 1.1rem;
    /* Compact title */
    font-weight: 900;
    margin: 0 0 5px 0;
    text-transform: uppercase;
    color: #222;
    line-height: 1.2;
}

.category-title a {
    text-decoration: none;
    color: inherit;
    font-family: 'Bayon';
    font-size: 28px;
}

.category-description {
    font-size: 18px;
    color: #404040;
    margin-bottom: 20px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-family: 'Open Sauce Sans';
    overflow: hidden;
    line-height: 150%;
}

/* 7. 'VIEW COLLECTION' Button */
.view-collection-btn {
    font-size: 0.75rem;
    font-weight: 800;
    color: #d63638;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.view-collection-btn:hover {
    color: #b01f21;
    border-bottom-color: #b01f21;
}

/* 8. Bottom 'VIEW ALL' Button */
.view-all-container {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-all-btn {
    background-color: #d63638;
    color: #fff;
    font-size: 24px;
    text-transform: uppercase;
    width: 119px;
    display: flex;
    height: 59px;
    border-radius: 0;
    font-family: 'Bayon';
    align-items: center;
    justify-content: center;
}

.view-all-btn:hover {
    background-color: #b01f21;
    color: #fff !important;
}


.content-wrapper>a {
    font-family: 'Bayon';
    font-weight: 400;
    font-size: 20px;
    text-decoration: underline;
}

.content-wrapper>a:hover,
.content-wrapper>a:focus {
    border-bottom-width: 0px;
}

img.category-image.chutney,
img.category-image.ketchups,
img.category-image.sauces {
    height: 320px !important;
}

.featured-item.ketchups,
.featured-item.sauces {
    margin-right: 8%;
}

.image-wrapper.chutney,
.image-wrapper.ketchups,
.image-wrapper.sauces {
    margin-left: 18%;
    margin-top: -18%;
}

.featured-item.chutney {
    margin-right: 7%;
}

.image-wrapper.chutney {
    margin-left: 0;
    margin-top: -20%;
}

.content-wrapper.chutney {
    padding: 2% 5% 2% 16%;
}

/* --- RESPONSIVE (Mobile) --- */

@media screen and (max-width: 1240px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media screen and (max-width: 900px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 0;
        row-gap: 0;
    }

    .featured-item.ketchups,
    .featured-item.sauces {
        margin-right: 0;
    }

    .image-wrapper.chutney,
    .image-wrapper.ketchups,
    .image-wrapper.sauces {
        margin-left: 18%;
        margin-top: -5%;
    }

    .category-image {
        min-width: 210px;
    }

    img.category-image.chutney,
    img.category-image.ketchups,
    img.category-image.sauces {
        height: 280px !important;
        margin-left: 15%;
    }

    .image-wrapper.mayonnaise a img,
    .image-wrapper.paste a img,
    .image-wrapper.jam a img {
        margin-left: 10%;
    }

    .featured-item.chutney {
        margin-right: 0;
    }

    .content-wrapper.chutney {
        padding: 2% 5% 2% 28%;
    }

    .category-title a {
        font-size: 24px;
    }

    .category-description {
        font-size: 16px;
    }

    .content-wrapper>a {
        font-size: 18px;
    }
}

@media screen and (max-width: 767px) {
    .featured-grid {
        grid-template-columns: repeat(1, 1fr);
        /* 2 Columns on Tablet */
        padding: 0 20%;
        row-gap: 0;
    }

    .featured-item {
        padding: 20px 20px 0 !important;
    }

    .crafted-withglobal-ins {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        padding: 0;
    }

    .featured-grid .featured-item:nth-child(odd) {
        grid-template-columns: 30% 70%;
        padding-left: 0 !important;
    }

    .featured-grid .featured-item:nth-child(even) {
        grid-template-columns: 30% 70%;
        padding-right: 0 !important;
    }

    .featured-grid .featured-item:nth-child(even) {
        direction: rtl;
    }

    .featured-grid .featured-item:nth-child(even)>* {
        direction: ltr;
        padding: 2% 20% 2% 10%;
    }

    img.category-image.chutney,
    img.category-image.ketchups,
    img.category-image.sauces {
        height: 200px !important;
        margin-left: 16%;
        min-width: 140px !important;
    }

    .featured-grid .featured-item:nth-child(odd) .content-wrapper {
        margin-left: -10%;
    }

    .content-wrapper {
        height: 145px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background: #FEEED4;
        padding: 2% 10% 2% 22%;
        margin-top: 0;
    }

    .featured-grid .featured-item:nth-child(even)>* a img {
        max-width: 145px;
        transform: rotate(13deg);
    }

    .image-wrapper.mayonnaise a img,
    .image-wrapper.paste a img,
    .image-wrapper.jam a img {
        margin-left: -50px;
        margin-top: 20%;
    }

    .category-title {
        margin: 0 0 3px 0;
    }

    .category-title a {
        font-size: 20px;
    }

    .category-description {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .content-wrapper>a {
        font-size: 18px;
    }

    .category-image {
        min-width: 150px;
    }

    .view-all-btn {
        background-color: #d63638;
        color: #fff;
        font-size: 20px;
        text-transform: uppercase;
        width: 96px;
        display: flex;
        height: 48px;
        border-radius: 0;
        font-family: 'Bayon';
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .featured-grid {
        grid-template-columns: 1fr;
        /* 1 Column on Mobile */
    }

    .featured-item {
        padding: 20px;
    }

    .featured-grid {
        padding: 0 10%;
    }
}

@media (max-width: 500px) {
    .featured-grid {
        padding: 0 2%;
    }
}





/* -------------------------------------------- Product Listing Page Css ----------------------------------------------------* /

/* --- WRAPPER --- */
.epichef-archive-wrapper {
    background-color: var(--ec-beige);
    min-height: 100vh;
    padding-bottom: 80px;
    font-family: 'Helvetica Neue', sans-serif;
}

/* --- HEADER --- */
.epichef-archive-header {
    text-align: center;
    padding: 80px 20px 40px;
    background-size: cover;
    background-position: center;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--ec-red);
    text-transform: uppercase;
    margin: 0;
}

.header-content p {
    max-width: 600px;
    margin: 10px auto 0;
    color: #666;
    line-height: 1.5;
}

/* --- CATALOG CTA STRIP --- */
.catalog-cta-strip {
    text-align: center;
    margin-bottom: 40px;
}

.btn-download {
    background: var(--ec-red);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    background: #b01f21;
}

/* --- FILTER TABS --- */
.epichef-filters-container {
    background: #ffeeda;
    /* Lighter beige strip */
    padding: 15px 0;
    margin-bottom: 50px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.tab-item {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
}

.tab-item.active,
.tab-item:hover {
    color: var(--ec-red);
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ec-red);
}

/* --- PRODUCT GRID --- */
.epichef-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
}

/* --- SCALLOPED CARD UI --- */
.epichef-card-item {
    position: relative;
    background: transparent;
    /* Drop shadow on the whole shape */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
    transition: transform 0.3s ease;
}

.epichef-card-item:hover {
    transform: translateY(-8px);
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.1));
}

.card-inner {
    background: #fff;
    padding: 20px 20px 40px 20px;
    /* Extra bottom padding for info */
    position: relative;
    z-index: 1;
}

/* SCALLOPED EDGE (Pure CSS) */
.card-scallop-edge {
    height: 15px;
    width: 100%;
    background: #fff;
    position: absolute;
    bottom: -15px;
    left: 0;
    /* Zigzag Pattern */
    background-image: linear-gradient(135deg, #fff 25%, transparent 25%),
        linear-gradient(225deg, #fff 25%, transparent 25%);
    background-position: 50% 0;
    background-size: 20px 20px;
    /* Size of zigzag */
    background-repeat: repeat-x;
}

/* Hover Animations */
.card-image-area {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Mask the scaling */
}

.card-image-area img {
    max-height: 180px;
    width: auto;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.epichef-card-item:hover .card-image-area img {
    transform: scale(1.15);
    /* Smooth Scale Up */
}

/* Card Text */
.card-info-area {
    text-align: left;
    margin-top: 15px;
}

.card-info-area h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
}

.card-info-area h3 a {
    text-decoration: none;
    color: #222;
}

.variant-text {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
}

/* Action Button (Arrow) */
.card-action-row {
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.action-btn {
    width: 35px;
    height: 35px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    border-radius: 2px;
    overflow: hidden;
    transition: background 0.2s;
}

.epichef-card-item:hover .action-btn {
    background: var(--ec-red);
}

/* Arrow Animation (Slide Out Right, In From Left) */
.arrow-icon {
    display: block;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.epichef-card-item:hover .arrow-icon {
    animation: arrowSlide 0.4s forwards;
}

@keyframes arrowSlide {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    49% {
        transform: translateX(20px);
        opacity: 0;
    }

    50% {
        transform: translateX(-20px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* --- POPUP MODAL --- */
.epichef-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.epichef-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.epichef-popup-content {
    background: #fff;
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.epichef-popup-overlay.active .epichef-popup-content {
    transform: scale(1);
    /* Grow effect */
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #999;
}

.popup-close:hover {
    color: var(--ec-red);
}