/*
Theme Name: Porto
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES & tomi500
Author URI: https://www.portotheme.com/
Description: Porto Responsive Wordpress Multi Purpose + eCommerce Theme.
Version: 7.8.3
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Tags: woocommerce, business, corporate, e-commerce, blog, news, education, food-and-drink, portfolio, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready, block-styles, custom-background, custom-colors, custom-header, custom-logo, footer-widgets, template-editing, grid-layout, one-column, wide-blocks
Text Domain: porto
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/

.bypostauthor { display: block; }

/* 1. Fix Mega Menu Elementor Block Width on Desktop */
.mega-menu .porto-wide-sub-menu > li.menu-block-item,
.mega-menu .porto-wide-sub-menu > li.menu-block-item[style] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.mega-menu .wide .popup > .inner > ul.sub-menu {
    width: 100% !important;
    max-width: 100% !important;
}

.mega-menu .menu-block-after,
.mega-menu .menu-block-after .porto-block,
.mega-menu .menu-block-after .porto-block > div.elementor {
    width: 100% !important;
}

/* 2. SIDEBAR FILTER CONTRAST OVERHAUL */
.sidebar .widget .widget-title,
.sidebar .widget-title,
.sidebar h3.widget-title {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 2px solid #e5e5e5;
    padding-bottom: 8px;
    margin-bottom: 15px;
}

.sidebar .widget ul li,
.sidebar .widget ul li a,
.sidebar .widget_product_categories ul li a,
.sidebar .widget_layered_nav ul li a,
.sidebar .widget_layered_nav_filters ul li a {
    color: #222222 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    line-height: 1.8 !important;
    transition: color 0.2s ease;
}

.sidebar .widget ul li a:hover,
.sidebar .widget_product_categories ul li.current-cat > a,
.sidebar .widget_layered_nav ul li.chosen a {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Active filter state highlight */
.sidebar .widget_product_categories ul li.current-cat > a {
    background: #f4eee9 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    display: inline-block !important;
}

/* WooCommerce Price Slider styling */
.sidebar .widget_price_filter .price_slider_amount {
    color: #222222 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.sidebar .widget_price_filter .ui-slider-horizontal {
    height: 6px !important;
    background-color: #e5e5e5 !important;
    border: none !important;
}

.sidebar .widget_price_filter .ui-slider .ui-slider-range {
    background-color: #222222 !important;
}

.sidebar .widget_price_filter .ui-slider .ui-slider-handle {
    background-color: #222222 !important;
    border: 2px solid #ffffff !important;
    width: 14px !important;
    height: 14px !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3) !important;
}

/* 3. PRODUCT CARD TYPOGRAPHY & SPACING HARMONIZATION */
ul.products li.product .woocommerce-loop-product__title,
.porto-products .product .woocommerce-loop-product__title,
.products .product-title,
.product-col .woocommerce-loop-product__title,
.cs54-product-type .product-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    color: #222222 !important;
    margin-bottom: 6px !important;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

ul.products li.product .price,
.porto-products .product .price,
.product-col .price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111111 !important;
    margin-top: 4px !important;
    display: block !important;
}

ul.products li.product .price del,
.porto-products .product .price del {
    color: #999999 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    margin-right: 6px !important;
}

ul.products li.product .price ins,
.porto-products .product .price ins {
    color: #b12704 !important;
    text-decoration: none !important;
}

.cs54-product-type,
.porto-tb-item {
    background-color: #ffffff !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    transition: all 0.3s ease !important;
}

.cs54-product-type:hover,
.porto-tb-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}

/* 4. PROMOTIONAL BANNER CARDS CONTRAST & LEGIBILITY EFFECTS */
.elementor-element-3c8fc8c .elementor-heading-title,
.elementor-element-6df90e3 .elementor-heading-title,
.elementor-element-44ea496 .elementor-heading-title {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    font-weight: 600 !important;
}

.elementor-element-3c8fc8c .elementor-element-3d23a49 .elementor-heading-title,
.elementor-element-6df90e3 .elementor-element-996ff7d .elementor-heading-title,
.elementor-element-44ea496 .elementor-element-e274c44 .elementor-heading-title {
    color: #FFF2E8 !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7) !important;
    letter-spacing: 0.12em !important;
    font-weight: 600 !important;
}

.elementor-element-3c8fc8c .elementor-element-e2db371 .elementor-heading-title,
.elementor-element-6df90e3 .elementor-element-d249f33 .elementor-heading-title,
.elementor-element-44ea496 .elementor-element-1510aa1 .elementor-heading-title {
    color: #FFFFFF !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.9) !important;
    font-weight: 700 !important;
}

.elementor-element-3c8fc8c .elementor-element-05e263d,
.elementor-element-44ea496 .elementor-element-d31ecf0 {
    background-color: rgba(26, 26, 26, 0.9) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(4px);
}

.elementor-element-3c8fc8c .elementor-element-05e263d .elementor-heading-title,
.elementor-element-44ea496 .elementor-element-d31ecf0 .elementor-heading-title {
    color: #FFFFFF !important;
    text-shadow: none !important;
}

.elementor-element-3c8fc8c,
.elementor-element-6df90e3,
.elementor-element-44ea496 {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.elementor-element-3c8fc8c::before,
.elementor-element-6df90e3::before,
.elementor-element-44ea496::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(to right, rgba(20, 15, 12, 0.45) 0%, rgba(20, 15, 12, 0.15) 70%, rgba(20, 15, 12, 0) 100%);
    pointer-events: none;
    z-index: 1;
    border-radius: 8px 0 0 8px;
}

.elementor-element-3c8fc8c > .elementor-element,
.elementor-element-6df90e3 > .elementor-element,
.elementor-element-44ea496 > .elementor-element {
    position: relative;
    z-index: 2;
}

/* 5. STICKY CATEGORY BANNER ENHANCEMENT */
.elementor-element-d9e429e img {
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    transition: transform 0.4s ease;
}

.elementor-element-d9e429e:hover img {
    transform: scale(1.02);
}

/* 6. REDESIGNED LUXURY ONPAGE CATEGORY PRODUCTS */
.porto-onepage-category {
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #f0e9e2 !important;
    overflow: hidden !important;
    margin-top: 15px !important;
    margin-bottom: 35px !important;
    display: flex !important;
}

/* Desktop Sidebar */
.porto-onepage-category > .category-list {
    background: #FAF7F2 !important;
    width: 140px !important;
    flex: 0 0 140px !important;
    padding: 25px 0 !important;
    border-right: 1px solid #EFE8E0 !important;
}

.porto-onepage-category .category-details {
    width: calc(100% - 140px) !important;
    flex: 1 !important;
    padding: 30px 2.5vw !important;
    background: #ffffff !important;
}

.porto-onepage-category .product-cats {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.porto-onepage-category .product-cats li {
    margin-bottom: 12px !important;
    padding: 0 10px !important;
}

.porto-onepage-category .product-cats a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 6px !important;
    border-radius: 12px !important;
    background: transparent !important;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
    text-decoration: none !important;
}

.porto-onepage-category .product-cats a:after {
    display: none !important;
}

/* Category Avatar Image */
.porto-onepage-category .product-cats .category-icon {
    width: 64px !important;
    height: 64px !important;
    line-height: 64px !important;
    border-radius: 50% !important;
    padding: 2px !important;
    background: linear-gradient(135deg, #d4af37 0%, #7b1e22 100%) !important;
    margin-bottom: 6px !important;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08) !important;
    transition: transform 0.3s ease !important;
    display: inline-block !important;
}

.porto-onepage-category .product-cats .category-icon img {
    border-radius: 50% !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border: 2px solid #ffffff !important;
    display: block !important;
}

/* Category Title - ALWAYS VISIBLE WITH HIGH SPECIFICITY */
.porto-onepage-category .product-cats .category-title,
.porto-onepage-category .product-cats a .category-title,
.porto-onepage-category .product-cats li a .category-title {
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    color: #333333 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
    line-height: 1.25 !important;
    padding: 0 !important;
    margin-top: 4px !important;
    white-space: normal !important;
    transition: color 0.25s ease !important;
}

/* Hover and Active Selected Tab State */
.porto-onepage-category .product-cats a:hover,
.porto-onepage-category .product-cats a.active {
    background: #ffffff !important;
    box-shadow: 0 4px 15px rgba(123, 30, 34, 0.08) !important;
    transform: translateY(-2px) !important;
}

.porto-onepage-category .product-cats a:hover .category-icon,
.porto-onepage-category .product-cats a.active .category-icon {
    transform: scale(1.08) !important;
    background: linear-gradient(135deg, #7b1e22 0%, #d4af37 100%) !important;
}

.porto-onepage-category .product-cats a:hover .category-title,
.porto-onepage-category .product-cats a.active .category-title {
    color: #7b1e22 !important;
    font-weight: 700 !important;
}

/* Header Section inside each category tab */
.porto-onepage-category .category-section .category-title {
    border-bottom: 2px solid #f4eee9 !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.porto-onepage-category .category-section .cat-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    letter-spacing: 0.02em !important;
    margin: 0 !important;
}

.porto-onepage-category .category-section .category-link .btn {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border-radius: 6px !important;
    padding: 7px 18px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: all 0.25s ease !important;
}

.porto-onepage-category .category-section .category-link .btn:hover {
    background-color: #7b1e22 !important;
    transform: translateY(-2px) !important;
}

/* 7. MOBILE RESPONSIVE OVERRIDES (< 992px) */
@media (max-width: 991px) {
    .porto-onepage-category {
        flex-direction: column !important;
    }
    
    .porto-onepage-category > .category-list {
        width: 100% !important;
        flex: 0 0 auto !important;
        border-right: none !important;
        border-bottom: 1px solid #EFE8E0 !important;
        padding: 14px 10px !important;
        background: #FAF7F2 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    
    .porto-onepage-category > .category-list::-webkit-scrollbar {
        display: none !important;
    }
    
    .porto-onepage-category .product-cats {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        gap: 12px !important;
        width: max-content !important;
        padding: 2px 4px !important;
    }
    
    .porto-onepage-category .product-cats li {
        width: 82px !important;
        flex: 0 0 82px !important;
        padding: 0 !important;
        margin-bottom: 0 !important;
        text-align: center !important;
    }
    
    .porto-onepage-category .product-cats a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        padding: 6px 4px !important;
    }
    
    .porto-onepage-category .product-cats .category-icon {
        width: 56px !important;
        height: 56px !important;
        line-height: 56px !important;
        margin-bottom: 5px !important;
    }
    
    .porto-onepage-category .product-cats .category-title,
    .porto-onepage-category .product-cats a .category-title,
    .porto-onepage-category .product-cats li a .category-title {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: 80px !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 auto !important;
        color: #222222 !important;
    }
    
    .porto-onepage-category .category-details {
        width: 100% !important;
        padding: 20px 14px !important;
    }
}

/* 8. SHOP BY CATEGORY PEACH/BEIGE BUTTONS -> DARK MAROON TEXT */
.porto-onepage-category .add-links .add_to_cart_button,
.porto-onepage-category .add-links .button,
.porto-onepage-category .add-links-wrap a,
.porto-onepage-category .wpcbn-btn,
.porto-onepage-category .wpcbn-btn-archive,
.porto-onepage-category a.wpcbn-btn,
.porto-onepage-category .button.wpcbn-btn,
.porto-products-shortcode-wrap .add-links .add_to_cart_button,
.porto-products-shortcode-wrap .add-links .button,
.porto-products-shortcode-wrap .wpcbn-btn,
.porto-products-shortcode-wrap .wpcbn-btn-archive,
.porto-products-shortcode-wrap a.wpcbn-btn {
    color: #5C1418 !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em !important;
}

.porto-onepage-category .add-links .add_to_cart_button:hover,
.porto-onepage-category .wpcbn-btn:hover,
.porto-products-shortcode-wrap .add-links .add_to_cart_button:hover,
.porto-products-shortcode-wrap .wpcbn-btn:hover {
    color: #FFFFFF !important;
    background-color: #5C1418 !important;
    border-color: #5C1418 !important;
}
