/* T-FAIR Branding Colors */
:root {
    --tfair-green: #006B2D;
    --tfair-gold: #FFC107;
    --tfair-white: #FFFFFF;
    --tfair-bg: #F4F6F8;
    --tfair-text: #333333;
}

/* Shop Container */
.tfair-shop-container {
    background: var(--tfair-bg);
    padding: 20px;
    font-family: sans-serif;
    color: var(--tfair-text);
}

.tfair-search-bar {
    display: flex;
    background: var(--tfair-white);
    border-radius: 25px;
    padding: 5px 15px;
    align-items: center;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}
.tfair-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px;
    background: transparent;
}
.tfair-search-bar button {
    background: var(--tfair-green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.tfair-categories {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 20px;
    scrollbar-width: none; /* Firefox */
}
.tfair-categories::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.tfair-categories button {
    background: white;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}
.tfair-categories button.active {
    background: var(--tfair-green);
    color: white;
    border-color: var(--tfair-green);
}

.tfair-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    margin-bottom: 15px;
}
.tfair-section-title .see-all {
    color: var(--tfair-green);
    font-size: 14px;
    text-decoration: none;
}

.tfair-product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}
@media (min-width: 768px) {
    .tfair-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1024px) {
    .tfair-product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tfair-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tfair-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.tfair-card-image {
    height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.tfair-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #888;
}
.tfair-fav-btn:hover {
    color: #e74c3c;
}
.tfair-card-body {
    padding: 12px;
}
.tfair-product-title {
    font-size: 14px;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tfair-product-price {
    color: var(--tfair-green);
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}
.tfair-product-price del {
    color: #999;
    font-size: 12px;
    font-weight: normal;
    margin-right: 5px;
}
.tfair-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #777;
}
.tfair-cart-btn {
    background: transparent;
    border: none;
    color: var(--tfair-green);
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

/* =========================================================
   FOOTER LAYOUT FIX (Targeted carefully)
   Fixes the 4-column footer to display properly on web/iPad
   ========================================================= */
.elementor-location-footer .elementor-element-c7vh5w2pw {
    display: flex !important;
    flex-wrap: wrap !important;
    flex-direction: row !important;
    width: 100% !important;
}

.elementor-location-footer .elementor-element-c7vh5w2pw > .e-con,
.elementor-location-footer .elementor-element-0uevveg1v,
.elementor-location-footer .elementor-element-dcc7027,
.elementor-location-footer .elementor-element-tnvddlqyu,
.elementor-location-footer .elementor-element-ty0fdun5m {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    padding: 10px;
    box-sizing: border-box;
}

/* Tablet / iPad Layout */
@media (max-width: 1024px) {
    .elementor-location-footer .elementor-element-c7vh5w2pw > .e-con,
    .elementor-location-footer .elementor-element-0uevveg1v,
    .elementor-location-footer .elementor-element-dcc7027,
    .elementor-location-footer .elementor-element-tnvddlqyu,
    .elementor-location-footer .elementor-element-ty0fdun5m {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Mobile Layout */
@media (max-width: 767px) {
    .elementor-location-footer .elementor-element-c7vh5w2pw > .e-con,
    .elementor-location-footer .elementor-element-0uevveg1v,
    .elementor-location-footer .elementor-element-dcc7027,
    .elementor-location-footer .elementor-element-tnvddlqyu,
    .elementor-location-footer .elementor-element-ty0fdun5m {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}
