/*
 Theme Name:   Astra Child
 Description:  Astra Child Theme
 Template:     astra
 Version:      1.2.0 (Final Fixed)
 Text Domain:  astra-child
*/

/* =========================================================
   1. GLOBAL FIXES & WHITESPACE REMOVAL
   ========================================================= */
.ast-article-single, .ast-content-main, .site-content, #content, .ast-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
.entry-header, .ast-archive-description {
    display: none !important;
}

/* Force removal of default top gaps */
.site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

#content .ast-container {
    padding-top: 5px !important; /* Small breathing room only */
    margin-top: 0 !important;
}

/* =========================================================
   2. CUSTOM HEADER SEARCH (With Categories - Wide)
   ========================================================= */
.kitchen-search-wrap {
    width: 100%;
    position: relative;
    z-index: 1000;
}

/* Force Wider Width on Desktop */
@media (min-width: 769px) {
    .kitchen-search-wrap {
        min-width: 700px !important; /* Wider to fit categories */
        max-width: 100%;
        margin: 0 auto;
    }
}

.ast-header-widget-area {
    width: 100%;
    flex-grow: 1;
    display: block; 
}

/* The Container Form */
.kitchen-search-form {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    height: 50px !important; /* Slightly taller */
    background: #fff;
    border: 2px solid #D32F2F !important;
    border-radius: 4px;
    box-sizing: border-box;
}

/* 1. Input Field */
.search-input-wrap {
    flex-grow: 1;
    position: relative;
}

.kitchen-input {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    padding: 0 20px !important; 
    font-size: 16px !important;
    outline: none !important;
    background: #fff !important;
    color: #333 !important;
    border-radius: 4px 0 0 4px !important;
}

/* 2. Category Dropdown Area */
.search-cat-wrap {
    display: flex;
    align-items: center;
    border-left: 1px solid #eee; /* Divider line */
    background: #f8f8f8;
    position: relative;
    min-width: 160px; /* Space for text */
}

/* The actual select element */
select.kitchen-cat-select {
    width: 100%;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    font-size: 14px !important;
    color: #555 !important;
    padding: 0 15px !important;
    cursor: pointer;
    outline: none !important;
    font-weight: 500;
    -webkit-appearance: none; /* Remove default arrow to custom style if needed, but keeping simple for now */
    -moz-appearance: none;
}

/* Add custom arrow for the dropdown */
.search-cat-wrap::after {
    content: '▼';
    font-size: 10px;
    color: #888;
    position: absolute;
    right: 15px;
    pointer-events: none;
}

/* 3. Search Button (Black or Red - Red based on your theme) */
.kitchen-submit-btn {
    width: 70px !important;
    min-width: 70px !important;
    background-color: #D32F2F !important; /* Or #000 for black */
    border: none !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.kitchen-submit-btn svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff !important;
    fill: none;
}
.kitchen-submit-btn:hover {
    background-color: #b71c1c !important;
}

/* AJAX Dropdown */
.kitchen-results-box {
    position: absolute;
    top: 50px;
    left: -2px;
    width: calc(100% + 4px);
    background: #fff;
    border: 1px solid #ddd;
    border-top: 2px solid #D32F2F;
    z-index: 99999;
    display: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}
.kitchen-result-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
}
.kitchen-result-item:hover { background: #f9f9f9; }
.k-thumb img { width: 40px; height: 40px; border-radius: 3px; margin-right: 12px; }
.k-title { font-size: 14px; color: #333; font-weight: 600; }
.k-price { font-size: 13px; color: #D32F2F; font-weight: bold; }

/* Mobile: Hide category dropdown on small screens to save space */
@media (max-width: 600px) {
    .search-cat-wrap { display: none !important; }
}


/* =========================================================
   3. HERO SECTION
   ========================================================= */
.custom-hero-section, .custom-hero-container {
    margin-top: -5px !important; 
    position: relative;
    width: 100vw !important;
    height: 550px;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}

.hero-bg-blur {
    position: absolute;
    top: -20px; left: -20px; right: -20px; bottom: -20px;
    background-image: url('https://topkitchenbuy.com/wp-content/uploads/2026/01/Kitchen.png'); 
    background-size: cover;
    background-position: center;
    filter: blur(3px); 
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 20px;
    text-align: center;
}

.hero-content h1 {
    color: #ffffff !important; 
    font-weight: 700 !important; 
    font-size: 38px !important; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.7); 
    margin-bottom: 25px;
}

.hero-content .custom-search-wrapper {
    display: flex;
    width: 100%;
    max-width: 700px;
    margin: 30px auto 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.hero-content input.search-field {
    flex-grow: 1;
    height: 60px;
    border: none;
    padding-left: 20px;
    font-size: 18px;
    border-radius: 4px 0 0 4px;
    background: #fff;
}
.hero-content button.search-submit {
    width: 150px;
    background-color: #D32F2F !important;
    color: white !important;
    font-weight: bold;
    border: none;
    height: 60px;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-size: 16px;
    text-transform: uppercase;
}

/* Site Branding Logo Fix */
.site-branding {
    margin-top: -15px !important; 
    position: relative;
    z-index: 100;
}


/* =========================================================
   4. PRODUCT PAGE DESIGN (High-End & Clean)
   ========================================================= */

/* --- A. Clean Header (Title & Price) --- */
.product_title {
    font-size: 32px !important; 
    font-weight: 800 !important;
    color: #111 !important;
    line-height: 1.2;
    margin-bottom: 5px !important;
    letter-spacing: -0.5px;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.price {
    font-size: 26px !important;
    color: #D32F2F !important; /* Kitchen Red */
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    display: block;
}

/* --- B. Button Layout Container --- */
form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 12px !important; 
}

/* --- C. Quantity Selector (White Pill) --- */
.quantity {
    display: inline-flex !important;
    align-items: center;
    border: 1px solid #e0e0e0; 
    border-radius: 50px;    /* Pill Shape */
    padding: 0;
    height: 52px;
    background: #fff;
    min-width: 130px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.quantity input.qty {
    border: none !important;
    background: transparent !important;
    width: 40px !important;
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    margin: 0 !important;
    padding: 0 !important;
    color: #333;
}

/* +/- Buttons */
.k-qty-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    padding: 0 18px;
    font-weight: 400;
    line-height: 1;
    height: 100%;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.k-qty-btn:hover { color: #D32F2F; }

/* --- D. Add To Cart Button (Red Pill) --- */
.single_add_to_cart_button {
    background-color: #D32F2F !important; /* RED */
    color: #fff !important;
    flex-grow: 1;          
    border-radius: 50px !important;
    font-weight: 800 !important; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 40px !important;
    height: 52px !important; 
    font-size: 15px !important;
    border: none !important;
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.3); 
    transition: transform 0.2s;
}
.single_add_to_cart_button:hover {
    background-color: #b71c1c !important;
    transform: translateY(-2px);
}

/* --- E. Buy It Now Button (Black Pill) --- */
.kitchen-buy-now-btn {
    background-color: #111 !important; /* BLACK */
    color: #fff !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 52px !important;
    padding: 0 40px !important;
    font-size: 15px !important;
    border: none !important;
    cursor: pointer;
    display: inline-block; 
    flex-grow: 1;
    min-width: 220px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
    transition: transform 0.2s;
}
.kitchen-buy-now-btn:hover {
    background-color: #000 !important;
    transform: translateY(-2px);
}

/* --- F. Swatches Cleanup --- */
.swatch-type-image .image-variable-item, 
.swatch-type-color .color-variable-item {
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border: 3px solid #fff !important;
    outline: 1px solid #ddd;
    margin: 0 10px 10px 0 !important;
    transition: transform 0.2s;
}
.swatch-type-image .image-variable-item:hover,
.swatch-type-color .color-variable-item:hover {
    transform: scale(1.1);
}
.swatch-type-image .image-variable-item.selected, 
.swatch-type-color .color-variable-item.selected {
    outline: 2px solid #D32F2F !important;
}
td.label { display: none; } 

/* =========================================================
   5. BREADCRUMBS & META FIXES (NO DUPLICATE, NO GAP)
   ========================================================= */

/* 1. HIDE THE DUPLICATE (The one inside the summary/title area) */
.entry-summary .woocommerce-breadcrumb, 
.entry-summary .ast-breadcrumbs {
    display: none !important;
}

/* 2. SHOW THE TOP ONE (The one in the white void) */
.kitchen-breadcrumb-bar .woocommerce-breadcrumb,
.kitchen-breadcrumb-bar .ast-breadcrumbs {
    display: block !important;
    margin-bottom: 0 !important;
}

/* 3. Reduce spacing of the Top Breadcrumb Bar itself */
.kitchen-breadcrumb-bar {
    padding-top: 0 !important;
    padding-bottom: 10px !important;
    margin-top: 5px !important;
    border-bottom: 1px solid #eee;
}

/* 4. Ensure Product columns start aligned */
.product, .woocommerce-product-gallery, .summary {
    margin-top: 15px !important;
    padding-top: 0 !important;
}

/* 5. Hide SKU & Category */
.product_meta {
    display: none !important;
}




/* =========================================================
   7. CUSTOM FOOTER DESIGN
   ========================================================= */
.kitchen-footer-wrapper {
    background-color: #D32F2F; 
    color: #ffffff;
    padding: 60px 20px 40px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.kitchen-footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.k-footer-col h3, .k-footer-col h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
}

.k-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}
.k-contact-item .k-icon { margin-right: 12px; font-size: 18px; }
.k-contact-item a { color: #ffffff; text-decoration: none; }

.k-footer-links { list-style: none; padding: 0; margin: 0; }
.k-footer-links li { margin-bottom: 12px; }
.k-footer-links a { color: #f1f1f1; text-decoration: none; font-size: 15px; }

.k-newsletter-form {
    display: flex;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 50px;
    padding: 5px;
    width: 100%;
}
.k-newsletter-form input {
    flex-grow: 1;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 10px 15px !important;
    outline: none !important;
}
.k-newsletter-form button {
    background: #ffffff !important;
    color: #D32F2F !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 25px !important;
    font-weight: 700 !important;
    cursor: pointer;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile */
@media (max-width: 900px) {
    .kitchen-footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .k-contact-item { justify-content: center; }
}





/* =========================================================
   13. PRO PRODUCT GRID (4-Column Layout & Extra Spacing)
   ========================================================= */

.k-pro-grid-wrapper {
    max-width: 1300px; /* Slightly Wider to fit 4 nicely */
    margin: 60px auto;
    padding: 0 50px;   /* ADDED SPACE LEFT & RIGHT */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* 1. Header Styling */
.k-section-header {
    text-align: center;
    margin-bottom: 50px;
}
.k-section-title {
    font-size: 36px;
    font-weight: 800;
    color: #111;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}
.k-section-subtitle {
    font-size: 16px;
    color: #777;
    margin-top: 5px;
    display: block;
}

/* 2. Grid Layout (4 Columns) */
.k-pro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* CHANGED TO 4 */
    gap: 30px; /* Increased Gap for breathing room */
}

/* 3. Card Styling */
.k-pro-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none !important;
}

/* Hover: Lift Up */
.k-pro-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #fff;
}

/* 4. Link Cleanup */
.k-pro-link, .k-pro-link:hover, .k-pro-card a {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* 5. Image Area */
.k-pro-img-wrap {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f9f9f9;
}

.k-pro-img-wrap img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.k-pro-card:hover .k-pro-img-wrap img {
    transform: scale(1.1);
}

/* 6. Sale Badge */
.k-pro-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: #D32F2F;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* 7. Content Area */
.k-pro-content {
    padding: 20px 15px; /* More padding top/bottom */
    text-align: center;
    flex-grow: 1;
}

.k-pro-title {
    font-size: 16px; /* Slightly larger */
    font-weight: 700;
    color: #222;
    margin: 0 0 10px;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    text-decoration: none !important;
}
.k-pro-card:hover .k-pro-title {
    color: #D32F2F;
}

/* Price Font Fix */
.k-pro-price {
    font-size: 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.k-new-price {
    font-weight: 800;
    color: #D32F2F;
}

.k-old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
}

/* 8. Add to Cart Button */
.k-pro-actions {
    padding: 0 20px 20px;
}

.k-pro-add-btn {
    display: block;
    width: 100%;
    background: #222 !important;
    color: #fff !important;
    text-align: center;
    padding: 14px 0; /* Taller button */
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
    text-decoration: none !important;
    border: none !important;
}

.k-pro-add-btn:hover {
    background: #D32F2F !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .k-pro-grid-wrapper { padding: 0 20px; }
    .k-pro-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
    .k-pro-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .k-pro-title { font-size: 13px; height: 38px; }
    .k-pro-add-btn { padding: 10px 0; font-size: 11px; }
    .k-section-title { font-size: 28px; }
}

/* =========================================================
   14. DUAL BANNER STYLES
   ========================================================= */

.k-banner-section {
    width: 100%;
    max-width: 1250px;
    margin: 50px auto;
    padding: 0 20px;
}

.k-banner-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two Equal Columns */
    gap: 30px;
}

.k-banner-item {
    position: relative;
    height: 350px; /* Professional Height */
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Background Image with Zoom Effect */
.k-banner-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.k-banner-item:hover .k-banner-bg {
    transform: scale(1.08); /* Zoom in */
}

/* Dark Overlay for text readability */
.k-banner-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
    z-index: 2;
}

/* Text Content */
.k-banner-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 50px; /* Left align like reference */
}

.k-banner-content h3 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Link / Button Style */
.k-banner-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: margin-left 0.3s;
}

.k-banner-link svg {
    margin-left: 10px;
    transition: transform 0.3s;
}

.k-banner-item:hover .k-banner-link {
    margin-left: 10px; /* Slide text */
}

.k-banner-item:hover .k-banner-link svg {
    transform: translateX(5px); /* Arrow animation */
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .k-banner-wrapper {
        grid-template-columns: 1fr; /* Stack on mobile */
    }
    .k-banner-item {
        height: 250px; /* Smaller height on phone */
    }
    .k-banner-content {
        padding-left: 30px;
    }
}



/* =========================================================
   15. PROFESSIONAL BLOG LIST (Improved Layout)
   ========================================================= */

.k-blog-list-wrapper {
    max-width: 1100px; /* Slightly wider overall */
    margin: 60px auto;
    padding: 0 40px;   /* ADDED SPACE LEFT & RIGHT */
}

.k-section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    color: #111;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.k-blog-list {
    display: flex;
    flex-direction: column;
    gap: 30px; /* More space between cards */
}

/* The Card Container */
.k-blog-card {
    display: flex;
    background: #fff;
    border: 1px solid #f0f0f0; /* Softer border */
    border-radius: 12px;       /* Softer corners */
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

/* Hover Effect */
.k-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #fff;
}

/* Left Image (Wider: 40%) */
.k-blog-img-link {
    width: 40%; 
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    min-height: 260px; /* Taller image */
}

.k-blog-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

/* Image Zoom */
.k-blog-card:hover .k-blog-img {
    transform: scale(1.08);
}

/* Right Content (More Padding) */
.k-blog-content {
    padding: 40px 50px; /* MORE SPACE INSIDE */
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

/* Title */
.k-blog-title {
    font-size: 22px; /* Bigger Title */
    font-weight: 800;
    color: #222;
    margin: 0 0 15px;
    line-height: 1.3;
    transition: color 0.2s;
}
.k-blog-title-link { text-decoration: none !important; }
.k-blog-card:hover .k-blog-title { color: #D32F2F; }

/* Excerpt */
.k-blog-excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.7; /* Better readability */
    margin-bottom: 25px;
}

/* Read More Button (Outlined Style) */
.k-read-more-btn {
    align-self: flex-start;
    padding: 10px 25px;
    border: 2px solid #222; /* Thicker border */
    border-radius: 4px;
    color: #222;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.2s;
}

.k-read-more-btn:hover {
    background: #D32F2F;
    border-color: #D32F2F;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 800px) {
    .k-blog-list-wrapper { padding: 0 20px; } /* Less side space on mobile */
    .k-blog-card { flex-direction: column; }
    .k-blog-img-link { width: 100%; height: 220px; }
    .k-blog-content { padding: 30px; }
    .k-blog-title { font-size: 18px; }
}



/* =========================================================
   16. TRENDING CATEGORIES (Improved - Uniform Cards)
   ========================================================= */

.k-trending-wrapper {
    max-width: 1250px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.k-section-title {
    font-size: 34px;
    font-weight: 800;
    color: #111;
    margin-bottom: 40px;
    text-transform: capitalize;
    letter-spacing: -0.5px;
}

/* Grid Layout (4 Columns) */
.k-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px; /* Consistent gap */
}

/* Category Card - UNIFORM LOOK */
.k-cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    padding: 30px 20px;
    background: #ffffff; /* Always White */
    border: 1px solid #eee; /* Clean Border */
    border-radius: 12px; /* Smooth Corners */
    transition: all 0.3s ease;
    height: 100%; /* Ensures equal height */
}

/* Hover Effect: Border turns Red + Lift */
.k-cat-card:hover {
    transform: translateY(-8px);
    border-color: #D32F2F; /* Kitchen Red Border */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Image Area - FIXED HEIGHT for alignment */
.k-cat-img {
    width: 100%;
    height: 160px; /* Forces all images to occupy same space */
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.k-cat-img img {
    max-width: 140px;
    max-height: 140px;
    object-fit: contain; /* Prevents stretching */
    transition: transform 0.3s ease;
}

/* Zoom Image on Hover */
.k-cat-card:hover .k-cat-img img {
    transform: scale(1.1);
}

/* Text Info */
.k-cat-name {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    margin: 0 0 5px;
    text-transform: lowercase; /* #hashtag style */
}

.k-cat-count {
    font-size: 13px;
    color: #888;
    font-weight: 500;
    background: #f5f5f5;
    padding: 4px 12px;
    border-radius: 20px; /* Pill shape for count */
    display: inline-block;
}

/* Hover Color Change */
.k-cat-card:hover .k-cat-name {
    color: #D32F2F;
}
.k-cat-card:hover .k-cat-count {
    background: #D32F2F;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .k-cat-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 on Mobile */
        gap: 15px;
    }
    .k-cat-card {
        padding: 20px 10px;
    }
    .k-cat-img {
        height: 120px;
    }
    .k-cat-img img {
        max-width: 100px;
        max-height: 100px;
    }
}



/* =========================================================
   17. HOW TO BUY STYLES (Fixed Red Colors)
   ========================================================= */

.k-htb-wrapper {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

/* Grid System */
.k-htb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    position: relative;
}

/* Connecting Dashed Line (Background) */
.k-htb-grid::before {
    content: '';
    position: absolute;
    top: 40px; /* Centers line with icons */
    left: 10%;
    right: 10%;
    height: 1px;
    border-top: 2px dashed #e0e0e0; /* Dashed Line */
    z-index: 0;
}

/* Individual Item */
.k-htb-item {
    position: relative;
    background: transparent;
    padding: 0 10px;
    z-index: 1;
}

/* Icon Wrapper (To hide line behind it) */
.k-htb-icon-wrap {
    background: #fff; /* Masks the line */
    display: inline-block;
    padding: 0 15px;
    margin-bottom: 15px;
}

/* Icon Circle - RED FILLED or RED BORDER */
.k-htb-icon {
    width: 80px;
    height: 80px;
    background: #fff;
    border: 2px solid #D32F2F; /* Kitchen Red Border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D32F2F; /* Red Icon */
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.1);
    transition: all 0.3s ease;
}

/* Hover Effect: Fill Red */
.k-htb-item:hover .k-htb-icon {
    background: #D32F2F;
    color: #fff; /* Icon turns white */
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

/* Big Step Number (01, 02...) - RED COLOR */
.k-htb-step {
    font-size: 28px;
    font-weight: 800;
    color: #D32F2F; /* RED NUMBERS */
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'Helvetica Neue', sans-serif;
    opacity: 0.8;
}

/* Title */
.k-htb-title {
    font-size: 16px;
    font-weight: 800;
    color: #222;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Description */
.k-htb-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.5;
    max-width: 200px;
    margin: 0 auto;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .k-htb-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 on Tablet */
        gap: 40px;
    }
    .k-htb-grid::before { display: none; } /* Hide line on mobile */
}

@media (max-width: 600px) {
    .k-htb-grid {
        grid-template-columns: 1fr; /* Stack vertically on Phone */
        gap: 30px;
    }
}



/* =========================================================
   18. CUSTOMER REVIEWS STYLES (Premium Look)
   ========================================================= */

.k-reviews-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
}

.k-reviews-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Grid Layout (Standard 3-Column) */
.k-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 Columns */
    gap: 25px;
}

/* Individual Card */
.k-review-card {
    background: #fff9e6; /* Soft Cream */
    border: 1px solid #f2e6c2;
    border-radius: 12px;
    padding: 25px;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.k-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    background: #fff; /* Turns white on hover */
    border-color: #eee;
}

/* User Profile Area */
.k-review-top {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding-bottom: 15px;
}

.k-user-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.k-user-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

/* Flag & Location */
.k-flag {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-left: 5px;
    display: block;
    margin-top: 2px;
}

/* Star Ratings */
.k-stars {
    color: #f1c40f; /* Gold */
    font-size: 14px;
    margin-top: 3px;
    letter-spacing: 1px;
}

/* Review Text */
.k-review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    margin-bottom: 15px;
    flex-grow: 1; /* Pushes date to bottom */
}

/* Date */
.k-review-date {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .k-reviews-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 Columns */
    }
}

@media (max-width: 600px) {
    .k-reviews-grid {
        grid-template-columns: 1fr; /* 1 Column */
    }
}


/* =========================================================
   19. FOOTER COPYRIGHT BAR (Tightened Spacing)
   ========================================================= */

.k-footer-copyright {
    width: 100%;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.2); /* Divider Line */
    
    /* Reduced Spacing Above */
    margin-top: 20px !important;    /* Space between links and line */
    padding-top: 15px !important;   /* Space between line and text */
    
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.k-footer-copyright p {
    margin: 0;
}

/* Reduced Spacing Below (Bottom of the Red Box) */
.kitchen-footer-wrapper {
    padding-bottom: 20px !important; /* Reduced from 40px */
}



/* =========================================================
   20. FIX: RESTORE BLOG & PAGE TITLES (EXCLUDING HOME)
   ========================================================= */

/* 1. Force Show Title on Blog Posts & Standard Pages (BUT NOT HOME) */
body.single-post .entry-header,
body.blog .entry-header,
body.archive .entry-header,
body.page:not(.home) .entry-header {   /* <--- :not(.home) fixes the gap! */
    display: block !important;
    margin-bottom: 20px !important;
}

/* 2. Force Show Breadcrumbs on Blog Posts (BUT NOT HOME) */
body.single-post .ast-breadcrumbs,
body.blog .ast-breadcrumbs,
body.archive .ast-breadcrumbs,
body.page:not(.home) .ast-breadcrumbs {
    display: block !important;
    margin-bottom: 10px !important;
    padding-bottom: 10px;
}

/* 3. Ensure the spacing is correct for Blogs (BUT NOT HOME) */
body.single-post #content .ast-container,
body.blog #content .ast-container,
body.page:not(.home) #content .ast-container {
    padding-top: 30px !important; 
}


