/* =================================================================
   FIXES DE ESPAÇAMENTO SIMPLES - SEM ALTERAR MENU ORIGINAL
   ================================================================= */

/* APENAS espaçamento básico do conteúdo, mantendo menu intacto */

/* Fix para espaçamento uniforme entre secções */
.section_gap {
    padding: 80px 0 !important;
}

/* Fix específico para features area */
/* Fix específico para features area */
body .features-area.section_gap {
    padding: 100px 0 100px 0 !important;
    /* Top 100px, Bottom 100px (Symmetrical Spacing) */
}

body .features-area .features-inner {
    padding: 0 !important;
    margin: 0 !important;
}

body .single-features {
    padding: 50px 0 40px 0 !important;
    /* Remove side padding, let Flexbox center */
    margin-bottom: 0 !important;
    height: 100% !important;
    /* Fix for "cut line" - stretches border to full height */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    /* Ensure children (icon/text) are centered */
    width: 85% !important;
    /* STRICT WIDTH: Force all cards to be identical size (178px) */
    max-width: 85% !important;
    margin: 0 auto !important;
    /* Center the narrowed card */
    position: relative !important;
    border: none !important;
    /* Remove standard border */
}

body .single-features>* {
    max-width: 100% !important;
    /* Allow content to fill the narrowed card */
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ROBUST DIVIDERS: Apply to the GRID COLUMN to ensure perfect geometric spacing */
body .features-inner .col-lg-3:not(:last-child) {
    border-right: 1px solid #eeeeee !important;
}

/* Remove old pseudo-element separators */
body .col-lg-3 .single-features::after {
    display: none !important;
}

/* Specific micro-adjustments if needed (currently reset to uniform center) */


/* Compensate for phantom space below features by pulling next section up */
body .features-area+.category-area {
    margin-top: 15px !important;
}

/* Fix para container principal */
.container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Fix para a categoria area */
.category-area {
    padding: 80px 0 !important;
    margin: 30px 0 !important;
}

/* Fix para product area */
.owl-carousel.section_gap {
    padding: 80px 0 !important;
}

/* Fix para exclusive deal area */
.exclusive-deal-area {
    padding: 80px 0 !important;
}

/* Fix para melhor respiração visual */
.single-product {
    margin-bottom: 30px !important;
    padding: 15px !important;
}

/* Fix para single features */
/* Fix para single features - REMOVED DUPLICATE */

/* Fix para melhor separação visual entre secções */
section:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Fix para hover effects */
.single-product:hover,
.single-features:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Fix para responsive spacing */
@media (max-width: 768px) {
    .section_gap {
        padding: 40px 0 !important;
    }

    .features-area.section_gap {
        padding: 30px 0 !important;
    }

    .category-area {
        padding: 40px 0 !important;
        margin: 15px 0 !important;
    }
}

/* =================================================================
   APENAS FIXES ESSENCIAIS DE PRODUTOS E CONTEÚDO
   ================================================================= */

/* Fix para os produtos terem melhor espaçamento - REDUCED PADDING */
.single-product {
    margin-bottom: 15px !important;
    padding: 10px !important;
    text-align: center !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}

.single-product:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Fix para as features terem melhor respiração */
/* Duplicate removed - Main rule is above */

/* Fix for Product Images to reduce whitespace */
.product-img {
    max-height: 200px !important;
    /* Reduced from 255px */
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    margin-bottom: 10px !important;
}

.single-features:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Tighten content inside feature cards */
.single-features h6 {
    margin-bottom: 15px !important;
    /* Visual breathing room between icon and text */
    margin-top: 15px !important;
}

.single-features p {
    margin-bottom: 0 !important;
    flex-grow: 1;
    /* Pushes content to fill if needed */
}

/* Fix para responsive */
@media (max-width: 768px) {
    .single-features {
        padding: 20px 15px !important;
    }

    .single-product {
        margin-bottom: 20px !important;
        padding: 15px !important;
    }
}

/* Fix para o container principal ter melhor padding */
.container-fluid {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Fix for Banner Spacing - Opaque Menu with Spacing */
.banner-area {
    margin-top: 0px !important;
}

.banner-area .fullscreen {
    min-height: 600px !important;
    /* Slightly reduced height to fit */
    padding-top: 120px !important;
    /* Push text down to clear the opaque menu */
    padding-bottom: 20px !important;
    /* Cut bottom spacing as requested */
}

.banner-area .banner-content {
    margin-top: 0px !important;
}

/* Footer Spacing Reduction - Aggressive */
.footer-area.section_gap {
    padding-top: 30px !important;
    padding-bottom: 5px !important;
    /* Minimal bottom padding */
    margin: 0 !important;
}

.footer-area .container {
    padding-bottom: 0 !important;
}

/* Tighten Copyright Section */
.footer-bottom {
    margin-top: 20px !important;
    padding-top: 15px !important;
    padding-bottom: 20px !important;
    /* Some breathing room at bottom */
    border-top: none !important;
}

/* Fix for copyright text padding from main.css */
.footer-text {
    padding-top: 0 !important;
    /* Remove the massive 80px padding */
}

/* Reduce single widget margins */
.single-footer-widget {
    margin-bottom: 15px !important;
}

.single-footer-widget h6 {
    margin-bottom: 10px !important;
}

.single-footer-widget p {
    margin-bottom: 10px !important;
}

.footer-social i {
    transition: all 0.3s ease;
}

.footer-social a:hover i {
    color: #a41219 !important;
}

/* =========================================
   BEST SELLERS (HOME) FIXES
   1. Remove Prices
   2. Equalize Card Heights (Title Fix)
   ========================================= */

/* Hide Price */
.single-product .price {
    display: none !important;
}

/* Enforce Minimum Height on Titles for Uniform Cards */
.single-product .product-details h6 {
    min-height: 60px !important;
    /* Forces enough space for 3 lines of text */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
}

/* =========================================
   BUDGET LIST / HISTORY FIXES
   1. Remove default black overlay
   2. Make hover red and sized to image
   ========================================= */

/* Constraint the card to match image size so overlay fits perfectly */
.categories_post {
    width: 250px !important;
    margin: 0 auto 30px auto !important;
    position: relative !important;
    display: block !important;
}

/* PRODUCT DETAILS QUANTITY SELECTOR FIXES */
.order_details_table .product_count {
    display: inline-block;
    position: relative;
    margin-bottom: 0px;
}

.order_details_table .product_count input {
    width: 100px;
    height: 40px;
    border: 1px solid #eeeeee;
    border-radius: 3px;
    padding-left: 10px;
}

.order_details_table .product_count button {
    display: block;
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
    position: absolute;
    right: 1px;
    /* Inside border */
    font-size: 14px;
    color: #cccccc;
    transition: all 0.3s ease 0s;
    width: 39px;
    /* Fit inside */
}

.order_details_table .product_count .increase {
    top: 1px;
    /* Inside border */
    height: 19px;
    /* Half of 38px inner height */
    line-height: 19px;
    border-left: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.order_details_table .product_count .reduced {
    bottom: 1px;
    /* Inside border */
    height: 19px;
    /* Half of 38px inner height */
    line-height: 19px;
    border-left: 1px solid #eeeeee;
}

/* Disable inherited pseudo-elements that cause sticking out line */
.order_details_table .product_count .increase::before,
.order_details_table .product_count .reduced::before,
.order_details_table .product_count .increase::after,
.order_details_table .product_count .reduced::after {
    display: none !important;
    content: none !important;
}

.order_details_table .product_count button:hover {
    color: #222;
}

/* Default State: Cover Text, Full Overlay, Light White */
.categories_post .categories_details {
    background: rgba(255, 255, 255, 0.85) !important;
    /* Increased opacity for legibility */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;

    /* Flex Center Content */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    /* Reset transforms */

    opacity: 1 !important;
    transition: all 0.3s ease;
    border-radius: 5px !important;
    padding: 10px !important;
    padding-bottom: 60px !important;
    /* Push text UP */
    box-shadow: none !important;
}

/* Hover State: Red Tint covering whole image */
.categories_post:hover .categories_details {
    background: rgba(164, 18, 25, 0.2) !important;
    /* Light red overlay */
}

/* Text Styling: Extra Bold & Dark Red */
.categories_post .categories_details h5 {
    color: #8a1015 !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 1);
    /* Stronger shadow for contrast */
}

.categories_post .categories_details p {
    color: #8a1015 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
}

/* =========================================
   CHECKOUT FIXES
   ========================================= */
.order_box {
    background: #e5ecee !important;
    /* Force gray background */
    padding: 30px !important;
}

/* SCROLLABLE CART LIST */
.scrollable-cart-items {
    max-height: 250px;
    /* Approx 5 items height */
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* Custom Scrollbar */
.scrollable-cart-items::-webkit-scrollbar {
    width: 6px;
}

.scrollable-cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.scrollable-cart-items::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.scrollable-cart-items::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}