/*
Theme Name: FF Exclusive Pro 9.1.2
Theme URI: https://example.com
Author: Macrotech Media Consult
Author URI: https://example.com
Description: Custom WooCommerce theme with separate Fashion & Food sections, badges, WhatsApp ordering, carousels, and filtering.
Version: 9.1.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ff-shop-theme-9.1.2
Tags: woocommerce, responsive, custom, shop
*/

/* =========================================================
   GLOBAL
========================================================= */

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: #f9f9f9;
    color: #222;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.site-header,
.site-footer {
    background: #111;
    color: #ffd700;
    padding: 30px;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* =========================================================
   SECTION TITLES
========================================================= */

.ff-section {
    margin-bottom: 50px;
}

.ff-section-title {
    background: #d4af37;
    color: #ffffff;
    padding: 14px 22px;
    font-size: 24px;
    font-weight: 700;
    text-align: left;
    border-radius: 6px;
    margin-bottom: 25px;
    border: 2px solid goldenrod;
}

/* =========================================================
   PRODUCT GRID – EQUAL HEIGHT CARDS
========================================================= */

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.woocommerce ul.products li.product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 10px;
    position: relative;
    background: #fff;
    min-height: 360px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* =========================================================
   PRODUCT IMAGE – 208 × 208 (JUMIA STYLE)
========================================================= */

.woocommerce ul.products li.product img {
    width: 100%;
    height: 208px;
    object-fit: cover;
    display:block;
    margin-bottom: 12px;
}

/* =========================================================
   PRODUCT TITLE – FIX FONT SIZE
========================================================= */

.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 12px;
    line-height: 1.4;
    min-height: 34px;
    margin: 6px 0 8px;
    font-weight: 600;
}

/* =========================================================
   PRODUCT PRICE
========================================================= */

.woocommerce ul.products li.product .price {
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   PRODUCT BADGES
========================================================= */

.ff-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    color: #fff;
    z-index: 9;
    pointer-events: none;
}
.ff-badge-new{background:#25d366;}
.ff-badge-popular { background: #d4af37; }
.ff-badge-trending { background: #ff4d4d; }

/* =========================================================
   VIEW MORE / VIEW ALL BUTTONS
========================================================= */

.woocommerce ul.products li.product .button,
.ff-view-all-btn {
    background: #d4af37;
    color: #fff !important;
    border-radius: 25px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s ease;
    text-align: center;
    text-transform:none;
    display:inline-block;
}

.woocommerce ul.products li.product .button:hover,
.ff-view-all-btn:hover {
    background: #b8962e;
    color:#fff!important;
}

/* =========================================================
   WHATSAPP BUTTON (SINGLE PRODUCT)
========================================================= */

.ff-whatsapp-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: #25D366;
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    transition:0.3s ease;
}

.ff-whatsapp-btn:hover {
    background: #1ebe5d;
    transform:scale(1.05);
}

/* =========================================================
   CAROUSEL – ARROWS LEFT & RIGHT
========================================================= */

.ff-carousel {
    position: relative;
}

.ff-carousel img 
{ 
    height:208px;
    object-fit:cover; 
}

.ff-carousel .slick-prev,
.ff-carousel .slick-next {
    position: absolute;
    top: 45%;
    z-index: 10;
    width: 40px;
    height: 40px;
}

.ff-carousel .slick-prev {
    left: -45px;
}

.ff-carousel .slick-next {
    right: -45px;
}

.ff-carousel img {
    height: 208px;
    object-fit: contain;
}

/* =========================================================
   FILTER BUTTONS
========================================================= */

.ff-filter-buttons {
    margin-bottom: 30px;
    text-align: center;
}

.ff-filter-btn {
    margin: 0 8px;
    padding: 10px 25px;
    background: #ffd700;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    color:#111;
    transition:0.3s ease;
}

.ff-filter-btn.active,
.ff-filter-btn:hover {
    background: #ffcc00;
    color:#000;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr 1fr;
    }

    

    .woocommerce ul.products li.product {
        min-height: 330px;
    }

    .ff-products li.product{width:48%!important;}
}