﻿/*
Theme Name: RedeMaiorShop
Theme URI: https://redemaiorshop.com.br
Author: RedeMaiorShop
Author URI: https://redemaiorshop.com.br
Description: Tema exclusivo para o marketplace RedeMaiorShop.
Version: 25.2
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: redemaiorshop
*/

:root {
    --primary-color: #e63946;
    --primary-hover: #d62828;
    --secondary-color: #1d3557;
    --text-color: #333;
    --light-text: #666;
    --bg-color: #f8f9fa;
    --border-color: #e1e1e1;
    --success-color: #2a9d8f;
    --warning-color: #e9c46a;
    --danger-color: #e76f51;
    --white: #ffffff;
    --shadow-sm: 0 2px 5px rgba(0,0,0,0.05);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --container-width: 1280px;
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   1. HEADER
   ========================================================================== */
.site-header {
    background: var(--header-main-bg);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1000;
}

.top-bar {
    background: var(--header-topbar-bg);
    color: var(--header-topbar-text);
    font-size: 0.85rem;
    padding: 8px 0;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-item {
    margin-right: 20px;
}

.top-bar-item i {
    margin-right: 5px;
    color: var(--warning-color);
}

.top-bar-social a {
    color: var(--header-topbar-text);
    margin-left: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.top-bar-social a:hover {
    opacity: 1;
}

.main-header {
    padding: 20px 0;
    transition: all 0.3s;
}

.main-header.scrolled {
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--header-main-bg);
    box-shadow: var(--shadow-md);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-branding {
    flex-shrink: 0;
}

/* Logo Fix */
.site-branding img {
    max-height: 66px; /* Increased by 20% */
    max-width: 295px; /* Increased by 20% */
    width: auto;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .site-branding img {
        max-width: 198px; /* Increased by 20% */
        max-height: 54px; /* Increased by 20% */
    }
}

.header-search {
    flex-grow: 1;
    max-width: 600px;
    position: relative;
}

.header-search form {
    display: flex;
    align-items: center; /* Vertically center items */
    width: 100%;
}

.header-search input {
    flex: 1; /* Take remaining space */
    height: 45px; 
    padding: 0 20px;
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 50px 0 0 50px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s;
    box-sizing: border-box; /* Ensure border is included in height */
    font-size: 0.95rem;
    line-height: normal;
    margin: 0; /* Fix alignment */
    vertical-align: middle;
}

.header-search input:focus {
    border-color: var(--primary-color);
}

.header-search button {
    height: 45px;
    width: 60px; /* Slightly wider */
    background: var(--primary-color);
    color: #fff;
    border: 2px solid var(--primary-color); /* Add border to match input size calculation */
    border-left: none; /* Merge with input */
    padding: 0; /* Remove padding, use flex centering */
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-size: 1.2rem; /* Slightly larger icon */
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box; /* Ensure border is included in height */
    line-height: normal;
    margin: 0; /* Fix alignment */
    vertical-align: middle;
}

.header-search button:hover {
    background: var(--primary-hover);
}

/* Hide mobile close button on desktop */
.header-search .close-search-mobile {
    display: none !important;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--secondary-color);
    font-size: 0.8rem;
    position: relative;
}

.header-action-btn i {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.cart-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.btn-shop-fixed {
    background: var(--secondary-color);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-shop-fixed:hover {
    background: var(--primary-color);
}

/* Header User & Cart Actions */
.cart-link {
    position: relative;
}

.account-link a,
.cart-link a.cart-contents {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
}

.account-link i,
.cart-link i {
    font-size: 1.4rem;
    color: var(--text-color);
}

.action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.action-sub {
    font-size: 0.7rem;
    color: #666;
    font-weight: 400;
}

.action-main {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* Header Logic Update - Mobile First (Grid Layout) */
.header-flex {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px; /* Reduced from 15px */
}

.header-left-mobile {
    display: flex;
    align-items: center;
    gap: 10px; /* Reduced from 15px */
    justify-self: start;
}

.menu-toggle, .mobile-search-toggle {
    background: none;
    border: none;
    font-size: 1.2rem; /* Reduced from 1.4rem */
    color: var(--text-color);
    cursor: pointer;
    padding: 0 5px; /* Ensure touch target but reduce visual space */
}

/* On mobile, branding is center */
.site-branding {
    margin: 0; 
    justify-self: center;
    line-height: 1; /* Prevent extra height */
}

/* ... */

.header-actions {
    display: flex;
    gap: 10px; /* Reduced from 15px */
    justify-self: end;
}

.header-search {
    display: none; /* Mobile default */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 15px;
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.header-search.active {
    display: block;
    animation: fadeIn 0.3s;
}

.header-actions {
    display: flex;
    gap: 15px; /* Mobile Gap */
    justify-self: end;
}

/* Hide Desktop Elements on Mobile */
.top-bar, 
.main-navigation, 
.btn-shop-fixed span, 
.account-link .action-text, 
.cart-link .action-text {
    display: none;
}

@media (min-width: 992px) {
    .header-left-mobile {
        display: none; /* Hide toggle container on desktop */
    }

    .site-branding {
        margin: 0; /* Reset margin */
    }

    .header-search {
        display: block; /* Show search on desktop */
        position: relative;
        top: auto;
        left: auto;
        width: auto;
        padding: 0;
        box-shadow: none;
        background: transparent;
        flex-grow: 1;
        max-width: 600px;
    }

    .header-flex {
        display: flex;
        justify-content: space-between;
        gap: 30px;
    }

    .header-actions {
        gap: 20px; /* Desktop Gap */
    }

    .top-bar {
        display: block;
    }
    
    .main-navigation {
        display: block;
    }

    .btn-shop-fixed span {
        display: inline;
    }
    
    .account-link .action-text, 
    .cart-link .action-text {
        display: flex;
    }
}

/* Navigation */
.main-navigation {
    background: var(--header-nav-bg);
    border-top: 1px solid var(--border-color);
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation ul li {
    position: relative;
}

.main-navigation ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--header-nav-text);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-navigation ul li a:hover {
    color: var(--primary-color);
    background: rgba(0,0,0,0.02);
}

/* OFF CANVAS MENU FIX */
.off-canvas-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.off-canvas-menu.active {
    transform: translateX(0);
}

.off-canvas-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: none;
    backdrop-filter: blur(2px);
}

.off-canvas-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
}

.off-canvas-logo img {
    max-width: 140px;
    height: auto;
    display: block;
}

.close-off-canvas {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-color);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-off-canvas:hover {
    background: rgba(0,0,0,0.05);
    color: var(--primary-color);
}

.off-canvas-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Mobile Nav Styling */
.mobile-nav-container {
    padding: 20px;
    flex: 1;
}

/* Shop Button Mobile */
.mobile-menu-cta {
    margin-bottom: 25px;
}

.btn-shop-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    gap: 10px;
    transition: all 0.3s;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(230, 57, 70, 0.2);
    text-decoration: none;
}

.btn-shop-mobile:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 57, 70, 0.3);
}

/* Mobile Vertical Menu */
.mobile-vertical-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-vertical-menu > li {
    border-bottom: 1px solid var(--border-color);
}

.mobile-vertical-menu > li:last-child {
    border-bottom: none;
}

.mobile-vertical-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 5px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
}

.mobile-vertical-menu > li > a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

/* Dropdown Arrow */
.mobile-vertical-menu li.menu-item-has-children > a {
    padding-right: 40px;
}

.mobile-vertical-menu li.menu-item-has-children > a::after {
    content: '\f107'; /* FontAwesome angle-down */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    color: #999;
}

.mobile-vertical-menu li.menu-item-has-children > a.submenu-open::after {
    transform: translateY(-50%) rotate(180deg);
    color: var(--primary-color);
}

/* Submenu Styling */
.mobile-vertical-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    background: #f8f9fa;
    border-radius: 8px;
    display: none; /* JS Toggles this */
    overflow: hidden;
}

.mobile-vertical-menu .sub-menu li {
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.mobile-vertical-menu .sub-menu li:last-child {
    border-bottom: none;
}

.mobile-vertical-menu .sub-menu li a {
    display: block;
    padding: 10px 15px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s;
}

.mobile-vertical-menu .sub-menu li a:hover {
    color: var(--primary-color);
    background: rgba(0,0,0,0.02);
    padding-left: 20px;
}

/* Account Links Footer */
.off-canvas-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.mobile-account-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-account-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
    text-decoration: none;
}

.mobile-account-links a:hover {
    color: var(--primary-color);
}

.mobile-account-links a i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

/* ==========================================================================
   2. SLIDER & HOME
   ========================================================================== */
.home-slider-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

/* Fallback Height for Slider */
.slide-inner {
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .slide-inner {
        min-height: 300px;
    }
}

/* Categories - Minimalist Horizontal Scroll */
.categories-grid {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 10px; /* Space for scroll */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
    justify-content: flex-start; /* Start from left */
}

.categories-grid::-webkit-scrollbar { 
    display: none; /* WebKit */
}

.category-item {
    flex: 0 0 auto; /* Don't shrink, don't grow */
    width: 100px; /* Fixed small width */
    background: transparent; /* Minimalist: remove white box background */
    box-shadow: none; /* Minimalist: remove shadow */
    padding: 0; /* Minimalist: remove padding */
    text-align: center;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: none; /* No shadow on hover */
}

.category-item img {
    width: 70px; /* Slightly larger for impact without box */
    height: 70px;
    object-fit: cover;
    margin-bottom: 8px;
    background: #fff; /* White bg for image only */
    border-radius: 50%;
    box-shadow: var(--shadow-sm); /* Shadow on image instead of box */
    border: 2px solid #fff; /* White border for clean look */
}

/* Shape Support - Legacy overrides */
.category-item.circles img {
    border-radius: 50%;
}
.category-item.squares img {
    border-radius: 50%; /* Force round */
}

.category-item h3 {
    font-size: 0.8rem;
    margin: 0;
    color: var(--text-color);
    line-height: 1.2;
    font-weight: 500;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap; /* Keep on one line for horizontal flow */
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 columns */
    gap: 10px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr); /* Desktop: 4 columns */
        gap: 30px;
        margin-bottom: 50px;
    }
}

.feature-item {
    background: #fff;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 1.5rem; /* Reduced icon size */
    color: var(--primary-color);
    margin-bottom: 10px; /* Reduced margin */
}

.feature-item h3 {
    font-size: 0.95rem; /* Reduced font size */
    margin-bottom: 5px;
}

/* ==========================================================================
   3. SHOP & WOOCOMMERCE
   ========================================================================== */
.shop-layout-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 30px 20px; /* Reduced padding */
}

@media (max-width: 768px) {
    .shop-layout-container {
        padding: 20px 10px; /* Tighter padding for mobile */
    }
}

/* Force Grid even if List View is active on Mobile */
@media (max-width: 768px) {
    .products.list-view {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .products.list-view li.product {
        flex-direction: column !important;
        text-align: center !important;
        padding: 10px !important;
        align-items: stretch !important;
    }
    .products.list-view li.product img {
        width: 100% !important;
        height: 160px !important;
        margin-bottom: 10px !important;
    }
    .products.list-view li.product .woocommerce-loop-product__title {
        font-size: 0.95rem !important;
        margin-bottom: 5px !important;
    }
    .products.list-view li.product .price {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }

    body.woocommerce-shop ul.products.products,
    body.post-type-archive-product ul.products.products,
    body.tax-product_cat ul.products.products,
    body.tax-product_tag ul.products.products,
    body.woocommerce-shop .woocommerce ul.products.products,
    body.post-type-archive-product .woocommerce ul.products.products,
    body.tax-product_cat .woocommerce ul.products.products,
    body.tax-product_tag .woocommerce ul.products.products {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.woocommerce-shop ul.products.products li.product,
    body.post-type-archive-product ul.products.products li.product,
    body.tax-product_cat ul.products.products li.product,
    body.tax-product_tag ul.products.products li.product,
    body.woocommerce-shop .woocommerce ul.products.products li.product,
    body.post-type-archive-product .woocommerce ul.products.products li.product,
    body.tax-product_cat .woocommerce ul.products.products li.product,
    body.tax-product_tag .woocommerce ul.products.products li.product {
        width: auto !important;
    }

    body.woocommerce-shop ul.products.products li.product .button,
    body.post-type-archive-product ul.products.products li.product .button,
    body.tax-product_cat ul.products.products li.product .button,
    body.tax-product_tag ul.products.products li.product .button,
    body.woocommerce-shop .woocommerce ul.products.products li.product .button,
    body.post-type-archive-product .woocommerce ul.products.products li.product .button,
    body.tax-product_cat .woocommerce ul.products.products li.product .button,
    body.tax-product_tag .woocommerce ul.products.products li.product .button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 1.1 !important;
        min-height: 44px !important;
        padding: 10px 10px !important;
        text-align: center !important;
        white-space: normal !important;
    }
}

.woocommerce-page-main {
    padding-bottom: 40px;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns on mobile */
    gap: 10px !important; /* Smaller gap for mobile */
}

@media (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

.woocommerce ul.products li.product {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: none; /* Minimalist: Remove default shadow */
    border: 1px solid #f0f0f0; /* Minimalist: Subtle border */
    transition: all 0.3s;
    position: relative;
    padding-bottom: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: transparent;
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: 160px; /* Mobile height */
    object-fit: cover;
    margin-bottom: 10px;
    transition: transform 0.5s;
}

@media (min-width: 768px) {
    .woocommerce ul.products li.product a img {
        height: 200px; /* Desktop height */
    }
}

.woocommerce ul.products li.product:hover a img {
    transform: scale(1.05);
}

.woocommerce ul.products li.product h2 {
    font-size: 0.95rem; /* Smaller font */
    padding: 0 10px;
    margin-bottom: 5px;
    line-height: 1.3;
}

.woocommerce ul.products li.product .price {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: bold;
    padding: 0 10px;
    margin-bottom: 10px;
    display: block;
    margin-top: auto; /* Push to bottom */
}

.woocommerce ul.products li.product .button {
    margin: 0 10px 10px;
    background: #fff; /* Minimalist: White background */
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    text-align: center;
    padding: 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    display: block;
    z-index: 2;
    position: relative;
    transition: all 0.3s;
}

.woocommerce ul.products li.product .button:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Shop Sidebar */
.woocommerce-sidebar {
    margin-top: 30px;
}

/* ==========================================================================
   4. BLOG (Minimalist Style)
   ========================================================================== */
.blog-item {
    background: #fff;
    border-radius: 8px; /* Softer radius */
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0; /* Subtle border instead of shadow */
}

.blog-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

.post-thumbnail {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-meta {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.post-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--secondary-color);
}

.post-excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.read-more-link {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    position: relative;
}

.read-more-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.read-more-link:hover::after {
    width: 100%;
}

/* ==========================================================================
   5. EXTRAS (Newsletter, Promo, etc)
   ========================================================================== */
.newsletter-section {
    background: var(--secondary-color);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 50px;
}

.newsletter-content h2 {
    color: #fff;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 30px auto 0;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border-radius: 4px;
    border: none;
}

.newsletter-form button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.promo-banner {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 40px;
    background-size: cover;
    background-position: center;
    height: 300px;
    display: flex;
    align-items: center;
}

.promo-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 50%;
    background: rgba(255,255,255,0.9);
    margin-left: 50px;
    border-radius: var(--border-radius);
}

/* ==========================================================================
   6. FOOTER FIXES
   ========================================================================== */
.site-footer {
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 40px; /* Reduced padding */
    color: #fff;
    font-size: 0.9rem; /* Smaller global font size */
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.site-footer .container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 18px;
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* 
.footer-grid.layout-3-columns {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
} 
*/

.footer-logo {
    max-width: 220px; /* Larger logo */
    height: auto;
    margin-bottom: 20px;
    filter: none !important;
    background: transparent !important;
}

.footer-desc {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 15px;
    line-height: 1.5;
}

.footer-title {
    color: #fff;
    font-size: 1rem; /* Smaller title */
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
    font-weight: 600;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px; /* Smaller line */
    height: 2px;
    background: var(--warning-color);
}

.footer-menu li {
    margin-bottom: 8px; /* Tighter spacing */
}

.footer-menu li a {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    transition: all 0.3s;
}

.footer-menu li a:hover {
    color: #fff;
    padding-left: 3px;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px; /* Tighter spacing */
    font-size: 0.85rem;
    color: rgba(255,255,255,0.8);
}

.footer-contact-list li i {
    color: var(--warning-color);
    margin-right: 8px;
    margin-top: 4px;
    font-size: 0.9rem;
}

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 768px) {
    .footer-column {
        min-width: 0;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.12);
        margin-top: 20px;
    }

    .payment-methods {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        line-height: 1;
    }
}

/* Footer Widget Styling Fixes */
.footer-column .widget {
    background: transparent !important;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
    border: none !important;
    box-shadow: none !important;
}

.footer-column .widget h2.widget-title,
.footer-column .widget h3.widget-title {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
    font-weight: 600;
    border-bottom: none;
}

.footer-column .widget h2.widget-title::after,
.footer-column .widget h3.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--warning-color);
}

.footer-column .widget ul li {
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
}

.footer-column .widget ul li a {
    color: rgba(255,255,255,0.8);
    transition: all 0.3s;
    text-decoration: none;
}

.footer-column .widget ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

/* Fix for specific widgets that might have white backgrounds */
.footer-column .widget select,
.footer-column .widget input[type="text"],
.footer-column .widget input[type="email"],
.footer-column .widget input[type="search"] {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.footer-column .widget .tagcloud a {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin: 0 5px 5px 0;
    font-size: 0.8rem !important;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}

.footer-column .widget .tagcloud a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ==========================================================================
   7. BRANDS SECTION
   ========================================================================== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    .brand-item {
        padding: 10px;
    }
    .brand-logo {
        max-width: 100px;
    }
}

.brand-item {
    padding: 15px;
    transition: transform 0.3s;
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-item:hover {
    transform: translateY(-5px);
}

.brand-logo {
    max-width: 150px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Grayscale Effect */
.grayscale-effect .brand-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.grayscale-effect .brand-item:hover .brand-logo {
    filter: grayscale(0%);
    opacity: 1;
}

/* ==========================================================================
   8. BLOG SECTION
   ========================================================================== */
.blog-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: stretch;
}

@media (min-width: 520px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (min-width: 992px) {
    .blog-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
    .blog-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
    .blog-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
}

.blog-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.blog-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 60%; /* Aspect Ratio 5:3 */
}

.blog-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-card:hover .blog-thumbnail img {
    transform: scale(1.1);
}

.blog-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    line-height: 1.2;
    z-index: 2;
}

.blog-date-badge .day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.blog-date-badge .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #666;
}

.blog-content {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-size: 1rem;
    margin-bottom: 10px;
    line-height: 1.35;
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: calc(1.35em * 2);
}

.blog-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    font-size: 0.92rem;
    color: #666;
    margin-bottom: 12px;
    flex-grow: 1;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: calc(1.6em * 3);
}

.blog-excerpt p { margin: 0; }

.blog-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: auto;
}

.blog-read-more i {
    margin-left: 5px;
    transition: margin-left 0.3s;
}

.blog-read-more:hover i {
    margin-left: 10px;
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .blog-thumbnail { padding-top: 62%; }
    .blog-read-more { font-size: 0.85rem; }
}

/* ==========================================================================
   9. BANNERS SECTION
   ========================================================================== */
.promo-banner-section {
    padding: 30px 0;
}

.promo-grid {
    display: grid;
    gap: 30px;
    width: 100%;
}

.promo-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    padding-top: 40%; /* Aspect Ratio control - adjust as needed */
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.promo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.promo-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Responsive adjustments for banners */
@media (max-width: 768px) {
    .promo-grid {
        grid-template-columns: 1fr !important; /* Stack banners on mobile */
    }
    
    .promo-item {
        padding-top: 50%; /* Taller on mobile for better visibility */
    }
}

/* ==========================================================================
   9. FLOATING ELEMENTS (WhatsApp - Minimalist & Fixed)
   ========================================================================== */
.whatsapp-float {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 2147483647 !important;
    display: flex !important;
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 0.5s ease-out;
    transform: translateZ(0);
}

.whatsapp-link {
    width: 45px !important;
    height: 45px !important;
    background-color: #25d366 !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.whatsapp-link:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 14px rgba(0,0,0,0.3) !important;
}

.close-whatsapp {
    background: rgba(0,0,0,0.6) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    width: 18px !important;
    height: 18px !important;
    font-size: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.whatsapp-float:hover .close-whatsapp {
    opacity: 1;
    pointer-events: auto;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: calc(20px + 65px + env(safe-area-inset-bottom)) !important;
        right: calc(20px + env(safe-area-inset-right)) !important;
    }
    
    .whatsapp-link {
        width: 40px !important;
        height: 40px !important;
        font-size: 22px !important;
    }

    .close-whatsapp {
        opacity: 1;
        pointer-events: auto;
    }
}
