.elementor-2167 .elementor-element.elementor-element-2480c2c5{--display:flex;}body.elementor-page-2167:not(.elementor-motion-effects-element-type-background), body.elementor-page-2167 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:var( --e-global-color-secondary );}:root{--page-title-display:none;}@media(min-width:768px){.elementor-2167 .elementor-element.elementor-element-2480c2c5{--content-width:1600px;}}/* Start custom CSS for shortcode, class: .elementor-element-4033a85 *//* 🌟 General Section Style */
.km-section {
    background-color: #eed9c4;
    padding: 10px 0px;
    text-align: center;
    font-family: "Tajawal", sans-serif;
}

.km-title {
    font-size: 28px;
    color: #473c3a;
    font-weight: 600;
    margin-bottom: 30px;
    position: relative;
}

.km-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background-color: #473c3a;
    margin: 10px auto 0;
    border-radius: 3px;
}

/* 🔹 Grid Layout */
.km-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    justify-content: center;
}

/* 🔸 Product Card */
.km-product {
    background: #F2E2D1;
    border: 1px solid #fff;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.km-product:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

/* ✅ Square/Consistent Images */
.km-image {
    width: 100%;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f8f8;
}

.km-image::before {
    content: "";
    display: block;
    padding-top: 100%; /* Square Ratio */
}

.km-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* 🏷️ Text Styling */
.km-name {
    font-size: 20px;
    font-weight: 600;
    color: #473c3a;
    margin: 12px 0 5px;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.km-price {
    color: #473c3a;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: auto 0 10px 0;
}

/* 🔘 Button */
.km-btn {
    display: inline-block;
    width: 100%;
    background: #cfb095; /* Deep coffee brown */
    color: #ffffff;
    padding: 10px 0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-top: auto;
}

.km-btn:hover {
    color: #fff;  
    background: #473c3a;
}
  
/* 🔢 Pagination Styling */
.km-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* 🔧 FIXED: Prevents layout from breaking on small screens */
}

.km-pagination .page-numbers {
    padding: 10px 18px;
    border: 1px solid rgba(71, 60, 58, 0.4);
    color: #473c3a;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; /* 🔧 FIXED: Keeps buttons from collapsing */
}

.km-pagination .page-numbers:hover {
    background-color: #ffffff;
    color: #7a7670;
}

.km-pagination .page-numbers.current {
    background-color: #e2c08d; /* Active page in gold */
    border-color: #e2c08d;
    color: #42342B;
}

/* 📱 Mobile & Tablet Responsive */
@media (max-width: 1024px) {
    .km-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 600px) {
    .km-grid { 
        gap: 15px; 
    }
    
    .km-title { 
        font-size: 22px; 
    }
    
    .km-name { 
        font-size: 16px; 
    }
    
    .km-image::before { 
        padding-top: 110%; /* Slightly taller for mobile */
    }
    
    .km-btn {
        background: #42342B;
        padding: 8px 16px;
        border-radius: 8px;
    }

    .km-btn:hover {
        color: #473c3a;  
        background: #cfb095;
    }
    
    /* 🔧 FIXED: Scales down pagination padding and gap on mobile */
    .km-pagination {
        gap: 6px;
    }
    
    .km-pagination .page-numbers {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 35px;
    }
}

/* Out of Stock Variation */
.km-btn.out-of-stock,
.woocommerce ul.products li.product .button.disabled {
    background-color: #a8a8a8 !important;
    cursor: not-allowed !important;
}

/* brand filter styles */

  /* 🏷️ Elegant Brand Filter Container */
.km-brand-filter-wrapper {
    margin: 40px auto;
    padding: 0 20px;
    max-width: 1100px;
}

.km-brand-filter-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px; /* Spacing between buttons */
}

/* 🔘 The Individual Filter Buttons */
.km-brand-link {
    display: inline-block;
    background-color: #ffffff;
    border: 1.5px solid #eed9c4; /* Your accent color */
    color: #473c3a;
    padding: 10px 22px;
    border-radius: 50px; /* Pill shape */
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 600;
    font-family: "Tajawal", sans-serif;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    cursor: pointer;
}

/* 🌟 Hover State */
.km-brand-link:hover {
    background-color: #eed9c4;
    color: #42342B !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(238, 217, 196, 0.4);
}

/* ✨ The "Active" Selected State */
.km-brand-link.active {
    background-color: #42342B !important; /* Deep coffee brown */
    color: #ffffff !important;
    border-color: #42342B;
    box-shadow: 0 4px 12px rgba(66, 52, 43, 0.3);
}

/* 📱 Mobile Responsiveness */
@media (max-width: 768px) {
    .km-brand-filter-wrapper {
        margin: 25px auto;
    }
    .km-brand-link {
        padding: 8px 16px;
        font-size: 13px;
    }
    .km-brand-filter-grid {
        gap: 8px;
    }
}/* End custom CSS */