/* Theme Name: Laim
Description: Custom theme for Tated
Version: 1.0 */


/* Fix Menu Sidebar Close Button */
.menu-sidebar .btn-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #333;
    /* Dark color for visibility */
    font-size: 24px;
    z-index: 1000;
    display: block;
    cursor: pointer;
}

.menu-sidebar .btn-close:hover {
    color: #000;
}

/* Custom Icon Styling for Social Links */
.list-social__item .icon {
    display: inline-block;
    transition: all 0.3s ease;
}

.list-social__item:hover .icon {
    transform: translateY(-3px);
}

/* Hamburger Color - Dynamic Switching */
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    background-color: #fff !important;
    /* Base color White */
}

/* Sticky Hamburger Menu */
.hamburger {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 999;
    height: 56px;
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    mix-blend-mode: difference;
    /* Invert colors based on background */
    
    transition: all 0.3s ease; /* Added transition */
}

/* Fancy Sticky Logo - Dynamic Switching */
.laim-logo-element {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 999;

    /* Media Number Base Styles */
    height: 56px;
    min-width: 56px;
    padding: 0 25px;
    border: 1px solid #fff;
    /* Base color White */
    background: transparent;
    /* Transparent for blend mode */

    /* Text Centering */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Typography */
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff !important;
    /* Base color White */
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;

    transition: all 0.3s ease;
    box-sizing: border-box;
    mix-blend-mode: difference;
    /* Invert colors based on background */
}

/* Corner Lines Animation */
.laim-logo-element:before,
.laim-logo-element:after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    transition: all 0.5s ease;
    pointer-events: none;
}

/* Top-Left Corner */
.laim-logo-element:before {
    top: 3px;
    left: 3px;
    border-top: 1px solid #fff;
    /* Base color White */
    border-left: 1px solid #fff;
    /* Base color White */
}

/* Bottom-Right Corner */
.laim-logo-element:after {
    bottom: 3px;
    right: 3px;
    border-bottom: 1px solid #fff;
    /* Base color White */
    border-right: 1px solid #fff;
    /* Base color White */
}

/* Hover Effects */
.laim-logo-element:hover {
    color: #fff !important;
    text-decoration: none;
}

.laim-logo-element:hover:before,
.laim-logo-element:hover:after {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
}

/* Widget Categories Hierarchy Refined */
.widget_categories ul.custom-product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_categories ul.custom-product-categories .cat-parent .count {
    position: absolute;
    right: 0;
    top: 0;
}

.widget_categories ul.children {
    padding-left: 15px;
    margin-top: 5px;
}

.widget_categories li {
    margin-bottom: 8px;
    position: relative;
}

/* Parent Category Style */
.widget_categories>ul>li>a {
    font-weight: 600;
    color: #333;
    display: block;
}

/* Child Category Style */

.widget_categories ul.cat-children li {
    padding-left: 15px;
}

.widget_categories ul.cat-children li a {
    font-weight: 400;
    color: #666;
    font-size: 0.95em;
}

.widget_categories ul.cat-children li::before {
    content: "-";
    margin-right: 5px;
    color: #999;
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    border-radius: 3px;
    line-height: 1;
}

.badge--sale {
    background-color: #ff4d4f;
    /* Red for Sale */
}

.badge--popular {
    background-color: #52c41a;
    /* Green for Popular */
}

.badge--sold {
    background-color: #999;
    /* Grey for Sold */
}


.product-categories a {
    font-weight: 600;
    color: #333;
}

/* Fix Blockquote Icon */
.blog-detail-1 .entry-content blockquote:before {
    content: "\f122";
    font-family: "dashicons";
    font-size: 30px;
    color: #ccc;
    margin-right: 10px;
    vertical-align: top;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Instagram Widget Fixes */
.widget_instagram_list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
    padding: 0;
    list-style: none;
}

.widget_instagram_list li {
    width: 33.333%;
    padding: 5px;
    box-sizing: border-box;
}

.widget_instagram_list li a {
    display: block;
    position: relative;
    padding-bottom: 100%;
    /* Square aspect ratio */
    overflow: hidden;
}

.widget_instagram_list li img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fix for WordPress Gallery Widget in Sidebar */
.widget_instagram .wp-block-gallery {
    display: flex;
    margin: 0 -5px;
}

.widget_instagram .wp-block-gallery .wp-block-image {
    margin: 0;
    padding: 5px;
    width: 33.333%;
    /* Force 3 columns */
}

.widget_instagram .wp-block-gallery .wp-block-image {
    width: 100%;
    height: 100%;
    display: flex;
}

.widget_instagram .wp-block-gallery .wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.post-navigation .nav-previous a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

.post-navigation .nav-next a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #333;
}

/* --- ADDED FIXES BELOW --- */

/* 1. Website Speed & Transitions (Smooth Fade) */
body {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

a, button, input[type="submit"], input[type="button"], .btn {
    transition: all 0.3s ease;
}

/* 2. Mobile Styling Adjustments */
@media (max-width: 768px) {
    /* 1.1 Logo and Hamburger Spacing */
    .laim-logo-element,
    .hamburger {
        top: 15px !important; /* Reduced from 30px */
    }
    .hamburger {
        right: 15px !important;
    }
    .laim-logo-element {
        left: 15px !important;
    }

    /* 1.2 Footer Menu Mobile Styling */
    .minimal-footer .row {
        text-align: center;
    }
    .minimal-footer .col-md-3 {
        margin-bottom: 30px;
    }
    .minimal-footer .col-md-3:last-child {
        margin-bottom: 0;
    }
    
    /* Center align list items in footer */
    .minimal-footer ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Login/Logout link alignment */
    .minimal-footer .text-right {
        text-align: center !important;
        justify-content: center;
        display: flex;
    }
}