@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

/*
 * FoodiePress - LIGHT THEME (Final with Shadow)
 */

/* === GLOBAL & CONTAINER === */
#foodiepress-plugin-wrapper body {
    font-family: 'Rubik', sans-serif;
    overflow-x: hidden;
}

#foodiepress-plugin-wrapper .fp-container {
    width: 100%;
    padding-right: 0px;
    padding-left: 0px;
    margin-right: auto;
    margin-left: auto;
    box-sizing: border-box;
}

@media (min-width: 576px) { #foodiepress-plugin-wrapper .fp-container { max-width: 540px; } }
@media (min-width: 768px) { #foodiepress-plugin-wrapper .fp-container { max-width: 720px; } }
@media (min-width: 992px) { #foodiepress-plugin-wrapper .fp-container { max-width: 960px;width: 960px; } }
@media (min-width: 1200px) { #foodiepress-plugin-wrapper .fp-container { max-width: 1140px;width: 1140px; } }

/* === ROW & COLUMNS === */
#foodiepress-plugin-wrapper .fp-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -25px;
    margin-left: -25px;
    box-sizing: border-box;
}

@media (min-width: 992px) {
#foodiepress-plugin-wrapper .fp-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: 25px;
    margin-left: -25px;
    box-sizing: border-box;
}
}


#foodiepress-plugin-wrapper .fp-product-grid {
    margin-bottom: 50px;
}

#foodiepress-plugin-wrapper .fp-col-12, 
#foodiepress-plugin-wrapper .fp-col-md-6, 
#foodiepress-plugin-wrapper .fp-col-lg-4, 
#foodiepress-plugin-wrapper .fp-col-xl-3 {
    position: relative;
    width: 100%;
    padding-right: 4px;
    padding-left: 4px;
    box-sizing: border-box;
    margin-bottom: 50px;
}

#foodiepress-plugin-wrapper .fp-col-12 { flex: 0 0 100%; max-width: 100%; }

#foodiepress-plugin-wrapper .fp-col-xl-3, 
#foodiepress-plugin-wrapper .fp-col-lg-4, 
#foodiepress-plugin-wrapper .fp-col-md-6 {
    flex: 1 0 50%;
    max-width: 50%;
}
@media (min-width: 768px) {
    #foodiepress-plugin-wrapper .fp-col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
    #foodiepress-plugin-wrapper .fp-col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
}
@media (min-width: 1200px) {
    #foodiepress-plugin-wrapper .fp-col-xl-3 { flex: 0 0 25%; max-width: 25%; }
}

/* === CATEGORY & CARD STYLING === */
#foodiepress-plugin-wrapper .fp-category-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    font-size: 24px;
    font-weight: 900;
    margin: 30px 0 25px 0;
    text-transform: uppercase;
    font-family: "National2CondensedBold", sans-serif;
    color: #000000;
}

#foodiepress-plugin-wrapper .fp-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 90px;
    background-color: #ff0030;
}

#foodiepress-plugin-wrapper .fp-category-title span {
    color: inherit;
}

#foodiepress-plugin-wrapper .fp-product-card {
    background-color: #ffffff;
    border: 1px solid #9d9d9d;
    border-radius: 18px;
    color: #222222;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    padding-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

#foodiepress-plugin-wrapper .fp-product-card:hover { 
    transform: translateY(-8px); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); 
}

#foodiepress-plugin-wrapper .fp-wishlist-btn { position: absolute; top: 15px; right: 15px; background: #f0f0f0; border: none; border-radius: 50%; cursor: pointer; padding: 6px; z-index: 5; transition: background-color 0.3s ease; }
#foodiepress-plugin-wrapper .fp-wishlist-btn:hover { background: rgba(228, 0, 43, 0.1); }
#foodiepress-plugin-wrapper .fp-wishlist-btn svg { width: 24px; height: 24px; display: block; }
#foodiepress-plugin-wrapper .fp-wishlist-btn svg path { stroke: #222222; transition: all 0.3s ease; }
#foodiepress-plugin-wrapper .fp-wishlist-btn:hover svg path { fill: #e4002b; stroke: #e4002b; }
#foodiepress-plugin-wrapper a.fp-card-img-link { display: contents; }

#foodiepress-plugin-wrapper .fp-product-card:hover .fp-card-top-section img {
    transform: scale(1.08);
}

/* --- RESPONSIVE IMAGE SIZING --- */
#foodiepress-plugin-wrapper .fp-card-top-section {
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
}
#foodiepress-plugin-wrapper .fp-card-top-section img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    transition: transform 0.4s ease;
}
@media (min-width: 768px) {
    #foodiepress-plugin-wrapper .fp-card-top-section {
        height: 180px;
    }
    #foodiepress-plugin-wrapper .fp-card-top-section img {
        width: 150px;
        height: 150px;
    }
}
@media (min-width: 992px) {
    #foodiepress-plugin-wrapper .fp-card-top-section {
        height: 220px;
    }
    #foodiepress-plugin-wrapper .fp-card-top-section img {
        width: 200px;
        height: 200px;
    }
}

#foodiepress-plugin-wrapper .fp-card-content {padding: 0px 6px 7px;flex-grow: 1;}
#foodiepress-plugin-wrapper a.fp-card-title-link { text-decoration: none; color: inherit; }

#foodiepress-plugin-wrapper h3.fp-card-title {
    font-family: Rubik;
    font-size: 19px;
    font-weight: 700;
    margin: 0px 0 2px 0;
    color: #222222;
    text-align: center; /* Default center for mobile */
}
@media (min-width: 992px) {
    /* MODIFIED: This is now centered for PC */
    #foodiepress-plugin-wrapper h3.fp-card-title {
        text-align: center;
    }
}

/* NEW: Styles for the product description */
#foodiepress-plugin-wrapper p.fp-card-description {
    font-size: 13px;
    line-height: 1.4;
    color: #6c757d;
    height: 39.2px; /* fallback for height (14px * 1.4 * 2 lines) */
    margin: 3px 5px -8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    cursor: pointer; /* Indicate it's clickable */
    text-align: center;
}


#foodiepress-plugin-wrapper .fp-card-price {
  margin-bottom: 0px;
  text-align: left; /* Default for mobile */
}

@media (max-width: 768px) {
  #foodiepress-plugin-wrapper .fp-card-price {
    text-align: center; /* Center for phones */
  }
}
/* MODIFIED: Added center alignment for larger screens */
@media (min-width: 769px) {
  #foodiepress-plugin-wrapper .fp-card-price {
    text-align: center; /* Center for tablet and PC */
  }
}

#foodiepress-plugin-wrapper .fp-card-price del {display: inline-block;opacity: 0.7;margin-right: 5px;font-size: 1.2rem;}
#foodiepress-plugin-wrapper .fp-card-price .woocommerce-Price-amount.amount {font-size: 15px !important;font-weight: 500 !important;line-height: 15px;color: #222222 !important;}
#foodiepress-plugin-wrapper .fp-card-price .woocommerce-Price-currencySymbol {color: #222222 !important;font-weight: 900 !important;font-size: 15px;position: relative;top: -1px;}

#foodiepress-plugin-wrapper .fp-card-action {
    position: absolute;
    z-index: 2;
    padding: 0;
    width: 100%;
    text-align: center;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
}

#foodiepress-plugin-wrapper .fp-card-button {
    background-color: #e4002b;
    color: #ffffff;
    font-family: 'Rubik', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 5px rgba(0,0,0,0.15);
    font-size: 14px;
    border-radius: 8px;
    padding: 6px 7px;
}

#foodiepress-plugin-wrapper .fp-card-button:hover {
    background-color: #c40812;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    #foodiepress-plugin-wrapper .fp-card-button {
        font-size: 13px;
        padding: 6px 14px;
        border-radius: 10px;
    }
}

@media (min-width: 992px) {
    #foodiepress-plugin-wrapper .fp-card-button {
        font-size: 12px;
        font-weight: 800;
        border-radius: 12px;
        padding: 8px 18px;
    }
}

/* === NEW: v3.5.0 - Card Overlays === */
.fp-card-inner-content { position: relative; display: flex; flex-direction: column; flex-grow: 1; transition: filter 0.3s ease; }
.fp-product-card.is-unavailable .fp-card-inner-content { filter: blur(4px); pointer-events: none; }
.fp-card-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.fp-card-overlay-text { background-color: rgba(0, 0, 0, 0.6); color: white; padding: 8px 16px; border-radius: 8px; font-size: 16px; font-weight: 700; text-align: center; max-width: 80%; }