/**
 * Epichef Single Product Styles
 */

:root {
    --epichef-red: #D73135;
    --epichef-cream: #fff9f0;
    /* Background for info section */
    --epichef-dark: #323232;
    --epichef-gray: #404040;
}

.epichef-single-wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2% 0;
}

.epichef-breadcrumbs a {
    font-weight: 500;
    font-family: 'Open Sauce Sans';
}

.epichef-breadcrumbs svg {
    height: 25px;
    width: 25px;
}

/* Breadcrumbs */
.epichef-breadcrumbs {
    font-size: 18px;
    color: #40404069;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.epichef-breadcrumbs a {
    color: #888;
    text-decoration: none;
}

.epichef-breadcrumbs span {
    color: var(--epichef-red);
    font-family: 'Open Sauce Sans';
    font-weight: 500;
    text-transform: capitalize !important;
}

/* Top Detail Section */
.epichef-product-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 0;
}

/* Gallery (Left) */
.epichef-gallery-col {
    flex: 1;
    min-width: 705px;
}

.epichef-main-wrapper {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    background: #feeed4;
}

.epichef-main-image {
    width: 100%;
    /* object-fit: contain; */
    display: block;
    height: 530px;
    cursor: zoom-in;
    margin-bottom: 0;
    background: #feeed4;
    border-radius: 20px;
}

/* Nav Arrows */
.epichef-g-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--epichef-cream);
    border-radius: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Hidden by default */
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    color: #fff;
    font-size: 20px;
    z-index: 20;
}

.epichef-g-arrow>svg {
    color: var(--epichef-dark);
}

.epichef-g-arrow:hover {
    background: var(--epichef-cream);
    transform: translateY(-50%) scale(1.1);
}

.epichef-g-arrow:hover>svg {
    color: var(--epichef-red);
}

/* Initial positions (pushed out slightly) */
.epichef-g-prev {
    left: -20px;
}

.epichef-g-next {
    right: -20px;
}

/* Hover State (Slide in) */
.epichef-main-wrapper:hover .epichef-g-arrow {
    opacity: 1;
}

.epichef-main-wrapper:hover .epichef-g-prev {
    left: 20px;
}

.epichef-main-wrapper:hover .epichef-g-next {
    right: 20px;
}

/* Mobile: Always Visible */
@media (max-width: 768px) {
    .epichef-g-arrow {
        opacity: 1;
    }

    .epichef-g-prev {
        left: 10px;
    }

    .epichef-g-next {
        right: 10px;
    }
}

.epichef-thumbs {
    position: relative;
    /* Ensure offsets are relative to this */
    display: flex;
    gap: 15px;
    padding-top: 15px;
    overflow-x: hidden;
    padding-bottom: 0;
    scroll-behavior: smooth;
    width: 100%;
}

.epichef-thumbs::-webkit-scrollbar {
    display: none;
}

.epichef-thumb {
    /* (100% - (3 gaps * 15px)) / 4 items */
    min-width: calc((100% - 45px) / 4);
    width: calc((100% - 45px) / 4);
    height: 140px;
    border-radius: 0px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
    flex-shrink: 0;
}

.epichef-thumb.active,
.epichef-thumb:hover {
    border-color: var(--epichef-red);
    opacity: 1;
    transform: scale(0.98);
}

.epichef-thumb img {
    width: 170px;
    height: 140px;
    background: #feeed4;
}

/* Info (Right) */
.epichef-info-col {
    flex: 1;
    min-width: 300px;
}

.epichef-product-title {
    font-size: 56px !important;
    font-weight: 400 !important;
    margin: 0;
    text-transform: uppercase !important;
    font-family: 'Bayon';
    color: var(--epichef-dark) !important;
}

.epichef-product-tagline {
    font-size: 18px;
    color: var(--epichef-gray) !important;
    font-weight: 400;
    font-family: 'Open Sauce Sans';
    margin-bottom: 0;
    padding: 8px 0 35px;
}

/* Variant Selector */
.epichef-variant-label {
    font-size: 16px;
    color: var(--epichef-gray);
    margin-bottom: 10px;
    font-weight: 400;
    font-family: 'Open Sauce Sans';
}

.epichef-variant-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    padding: 5px 0 40px;
    flex-wrap: wrap;
}

.epichef-v-btn {
    font-family: 'Open Sauce Sans' !important;
    padding: 10px 20px;
    border: 1px solid #404040;
    background: #ffffff00;
    font-size: 20px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    color: #000;
    text-transform: unset !important;
    border-radius: 0;
    transition: all 0.2s;
}

.epichef-v-btn:hover,
.epichef-v-btn.active {
    border-color: #000;
    background: #000;
    color: #fff;
}

/* Action Buttons */
.epichef-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
    padding-bottom: 35px;
}

.epichef-btn {
    flex: 1;
    padding: 10px 14px;
    text-align: center;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 24px;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    font-family: 'Bayon';
}

.epichef-btn-primary {
    background: var(--epichef-red);
    color: #fff;
}

.epichef-btn-primary:hover {
    background: #b32d2e;
    color: #fff;
}

.epichef-btn-outline {
    border-color: var(--epichef-red);
    color: var(--epichef-red);
    background: transparent;
}

.epichef-btn-outline:hover {
    background: #fff0f0;
}

/* Collapsible Desc */
.epichef-desc-toggle {
    border-top: 0;
    border-bottom: 0;
    padding: 15px 0 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 18px;
    color: #323232;
    font-family: 'Open Sauce Sans';
}

.epichef-desc-content p {
    margin: 0;
}

.epichef-desc-content {
    padding: 15px 0 30px;
    font-size: 18px;
    line-height: 150%;
    color: var(--epichef-gray);
    margin: 0;
    font-family: 'Open Sauce Sans';
    border-bottom: 1px solid #7878787a;
}

/* Share */
.epichef-share {
    margin-top: 20px;
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 18px;
}

/* === Info Grid Section ("What you need to know") === */
.epichef-info-section {
    text-align: center;
}

.epichef-section-title {
    font-size: 28px;
    text-transform: uppercase;
    color: var(--epichef-red);
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.epichef-section-subtitle {
    margin: 0 auto 50px;
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    padding: 0 21%;
}

.epichef-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 0 auto;
    text-align: left;
    justify-content: center;
    align-items: center;
    padding-bottom: 10%;
}

.epichef-info-grid>.epichef-info-card:nth-child(even) {
    height: 345px;
    margin-bottom: -35%;
}

.epichef-info-card h4 {
    font-size: 20px !important;
    margin: 0 0 5px;
    color: #404040 !important;
    font-family: 'Open Sauce Sans' !important;
    text-transform: none !important;
    font-style: normal !important;
    font-weight: 500 !important;
}

.epichef-info-card {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 345px;
}

.epichef-info-icon {
    object-fit: contain;
    margin-bottom: 0;
    align-self: flex-end;
}

/* Revert icon to top-right based on typical modern inputs? 
   Actually user said "based on image". 
   Let's stick to standard card: Icon top, Text bottom. 
*/
.epichef-info-card h4 {
    font-size: 16px;
    margin: 0 0 5px;
    color: #333;
}

.epichef-info-card p {
    font-size: 16px;
    color: #000000;
    margin: 0;
    line-height: 150%;
    font-family: 'Open Sauce Sans';
    font-weight: 300;
}

/* Lightbox */
.epichef-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.epichef-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.epichef-lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 2px solid #fff;
    background: #feeed4;
}

.epichef-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.epichef-share a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.epichef-share a svg {
    height: 13px;
}

.epichef-share span {
    font-size: 18px;
    color: #323232;
    font-weight: 500;
    font-family: 'Open Sauce Sans';
}

.epichef-desc-toggle .toggle-icon svg {
    transition: transform 0.3s ease;
    transform-origin: center;
    transform: rotate(180deg);
}

.epichef-desc-toggle.open .toggle-icon svg {
    transform: rotate(0deg);
}


.epichef-info-section.product-info-grid {
    padding: 4% 0 2%;
    background: #feeed4;
    margin: -5px 0;
}

.epichef-info-section.product-info-grid .epichef-single-wrapper {
    padding: 0;
}

.epichef-single-wrapper .connect-with-us-wrapper p {
    font-family: 'Open Sauce Sans';
    font-size: 18px;
    line-height: 150%;
    padding-bottom: 0.5rem;
}

.single-product-background-element-wrapper img.single-mobile-background-element {
    display: none;
}

.single-product-background-element-wrapper img.single-desktop-background-element {
    display: block;
}

.epichef-single-wrapper.epichef-product-details {
    padding-bottom: 10%;
}

.epichef-info-section.product-explore .epichef-single-wrapper {
    padding: 0;
}

.epichef-info-section.product-explore {
    padding: 5% 0 4%;
}


.hero-title::after {
    margin-bottom: 2% !important;
}

/* Responsive */
@media (max-width: 900px) {
    .epichef-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .epichef-product-details {
        flex-direction: column;
    }

    .epichef-info-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 1024px) {
    .epichef-info-grid>.epichef-info-card:nth-child(even) {
        height: 300px;
        margin-bottom: 0;
    }

    .epichef-gallery-col {
        flex: 1;
        min-width: 100%;
    }

    .epichef-main-image {
        height: 100%;
    }

    .epichef-single-wrapper.epichef-product-details {
        padding-bottom: 10%;
        padding: 5% 5% 10% 5%;
        gap: 15px;
    }

    .epichef-main-image {
        height: 100%;
    }

    .epichef-thumb {
        height: 130px;
    }

    .epichef-thumb img {
        width: 210px;
        height: 130px;
    }

    .epichef-info-col {
        flex: 1;
        min-width: 100%;
        padding-top: 5%;
        border-top: 1px solid #00000014;
    }

    .epichef-product-title {
        font-size: 35px !important;
    }

    .epichef-product-tagline {
        font-size: 16px;
        padding: 5px 0 30px;
    }

    .epichef-btn {
        padding: 10px 20px 10px 20px;
        font-size: 18px;
    }

    .epichef-actions {
        display: flex;
        gap: 15px;
        margin-bottom: 0;
        padding-bottom: 30px;
    }

    .epichef-info-section.product-info-grid {
        padding: 8% 5% 3% 5%;
        background: #feeed4;
    }

    .epichef-section-subtitle {
        padding: 3% 0 0;
        font-size: 14px !important;
    }

    .epichef-info-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
        overflow-x: scroll;
        justify-content: flex-start;
        gap: 20px;
    }

    .epichef-info-card {
        background: #fff;
        padding: 30px;
        border-radius: 4px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 300px;
        width: 300px;
    }

    .epichef-info-card h4 {
        font-size: 18px !important;
    }

    .epichef-info-card p {
        font-size: 14px;
    }

    .epichef-info-icon {
        width: 35%;
    }

    .hero-title::after {
        margin: 10px auto 0;
        height: 3px;
    }

    .epichef-info-section.connect-with-us-cta {
        padding: 0 5%;
    }

    .epichef-single-wrapper .connect-with-us-wrapper p {
        font-size: 14px;
    }

    a.epichef-btn.epichef-btn-primary {
        padding: 10px 30px !important;
    }

}

@media screen and (max-width: 768px) {
    .single-product-background-element-wrapper img.single-desktop-background-element {
        display: none;
    }

    .single-product-background-element-wrapper img.single-mobile-background-element {
        display: block;
    }

    .epichef-variant-label {
        font-size: 14px;
    }

    .epichef-v-btn {
        font-size: 16px !important;
    }

    .epichef-desc-toggle {
        font-size: 16px;
        padding: 10px 0 0;
    }

    .epichef-desc-content {
        padding: 10px 0 30px;
    }

    .epichef-desc-content p {
        margin: 0;
        font-size: 14px;
        line-height: 150%;
    }

    .epichef-share span {
        font-size: 16px;
    }

    .epichef-thumb {
        height: 80px;
    }

    .epichef-thumb img {
        height: 80px;
    }

    .epichef-share a svg {
        height: 13px;
    }

    .epichef-g-arrow {
        width: 25px;
        height: 25px;
    }

    .epichef-g-arrow>svg {
        width: 15px;
    }


    .epichef-variant-buttons {
        padding: 5px 0 35px;
    }

    .epichef-product-tagline {
        font-size: 14px;
        padding: 5px 0 25px;
    }

    .epichef-breadcrumbs {
        font-size: 12px;
    }

    .epichef-section-title,
    .hero-title {
        font-size: 28px !important;
    }

    .hero-title::after {
        margin: 10px auto 0;
        height: 3px;
    }

    .epichef-info-section.product-info-grid {
        padding: 3% 5% 0% 5%;
        background: #feeed4;
    }

    .epichef-info-section.product-explore {
        padding: 10% 0;
    }

    .epichef-info-section.product-explore .epichef-single-wrapper>div {
        padding: 0 5% 5% !important;
    }
}