/*
Theme Name: Nieion Theme
Theme URI: https://nieion.com.mx/
Author: Trae Assistant
Author URI: https://nieion.com.mx/
Description: A custom WooCommerce theme inspired by nieion.com.mx (Minimalist White)
Version: 1.1.0
Text Domain: nieion
*/

:root {
    --primary-color: #000000; /* Black */
    --secondary-color: #333333; /* Dark Gray */
    --accent-color: #00a651; /* Green for chat/ask buttons */
    --reward-color: #1a237e; /* Dark Blue for rewards */
    --bg-color: #ffffff; /* White Background */
    --text-color: #000000;
    --text-light: #666666;
    --card-bg: #ffffff;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --border-color: #e5e5e5;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--text-light);
}

.container {
    max-width: 1400px; /* Wider container */
    margin: 0 auto;
    padding: 0 40px;
}

/* Top Banner */
.top-bar {
    background-color: #222;
    color: #fff;
    font-size: 12px;
    padding: 8px 0;
}

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

.top-bar-left {
    display: flex;
    gap: 15px;
}

.brand-link {
    font-weight: bold;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-bar-center {
    color: #fff;
}

.top-bar-right {
    display: flex;
    gap: 10px;
}

.top-bar-right a {
    color: #fff;
    font-weight: bold;
}

.top-bar-right .separator {
    color: #666;
}

/* Header */
.site-header {
    background-color: var(--bg-color);
    padding: 20px 0;
    box-shadow: none;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

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

/* Left: Logo */
.site-branding {
    flex: 0 0 auto;
}

.site-title {
    margin: 0;
    line-height: 1;
}

.site-logo-img {
    height: 40px;
    width: auto;
    display: block;
}

/* Center: Navigation */
.main-navigation {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.menu-item {
    position: static; /* For full-width mega menu */
}

.menu-item > a {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    padding-bottom: 5px;
    position: relative;
}

.menu-item > a.active,
.menu-item > a:hover {
    color: #000;
    border-bottom: 2px solid #000;
}

/* Right: Icons */
.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    color: var(--text-color);
    display: flex;
    align-items: center;
    position: relative;
}

.header-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.5;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #000;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mega Menu */
.mega-menu-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 40px 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.menu-item:hover .mega-menu-container {
    opacity: 1;
    visibility: visible;
}

.mega-menu-inner {
    display: flex;
    justify-content: space-between; /* Spread columns */
}

.mega-menu-column {
    flex: 1;
    padding-right: 20px;
    border-right: 1px solid #f0f0f0;
    margin-right: 20px;
}

.mega-menu-column:last-child {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    flex: 1.5; /* Featured column wider */
}

.mega-menu-title {
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 20px;
    color: #000;
}

.mega-sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mega-sub-menu li {
    margin-bottom: 10px;
}

.mega-sub-menu a {
    font-size: 14px;
    color: #333;
    font-weight: 400;
}

.mega-sub-menu a:hover {
    text-decoration: underline;
}

/* Featured Column */
.mega-menu-featured .mega-menu-title {
    font-weight: 500;
    margin-bottom: 5px;
}

.mega-menu-subtitle {
    color: #666;
    font-size: 18px;
    margin: 0 0 15px;
}

.mega-menu-link {
    font-size: 14px;
    text-decoration: underline;
    font-weight: bold;
    margin-bottom: 20px;
    display: inline-block;
}

.mega-menu-image {
    width: 100%;
    height: auto;
    overflow: hidden;
}

.mega-menu-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .main-navigation {
        display: none; /* Hide nav on mobile/tablet for now or use hamburger */
    }
    
    .header-inner {
        justify-content: space-between;
    }
    
    .site-branding {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .top-bar-inner {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
    
    .top-bar-left, .top-bar-right {
        justify-content: center;
    }
}

/* Restored Front Page Styles */
.top-banner-section {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.top-banner-image-wrapper {
    width: 100%;
    max-height: 400px;
}

.top-banner__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
}

.banner-title {
    color: #fff;
    font-size: 60px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-section {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 80px);
    overflow: hidden;
}

.hero-image-wrapper {
    flex: 1;
    overflow: hidden;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #f9f9f9;
}

.hero-title {
    font-size: 48px;
    margin-bottom: 30px;
    line-height: 1.2;
}

.hero-text {
    font-size: 18px;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background-color: #000;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: #333;
    color: #fff;
}

/* Floating Elements */
.floating-chat, .floating-ask, .floating-reward {
    position: fixed;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.floating-chat {
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
}

.floating-ask {
    bottom: 100px;
    right: 30px;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: white;
    color: var(--text-color);
    font-weight: bold;
}

.floating-reward {
    bottom: 30px;
    left: 30px;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: var(--reward-color);
    color: white;
    font-weight: bold;
}

.floating-chat:hover, .floating-ask:hover, .floating-reward:hover {
    transform: translateY(-5px);
}

/* Updated Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 80vh; /* Large height */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to the left */
}

/* Overlay to ensure text readability if needed, though screenshot looks clean */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); /* Slight overlay */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    max-width: 600px;
    padding: 0;
    background: none; /* Remove previous background */
    text-align: left;
}

.hero-title {
    color: #fff;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-transform: none; /* Screenshot shows "Shop Men" not "SHOP MEN" */
    min-width: 160px;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

.btn-arrow {
    margin-left: 10px;
    font-size: 18px;
    line-height: 1;
}

/* Remove old hero styles to avoid conflict */
.hero-image-wrapper, .hero-text {
    display: none;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-hero {
        width: 100%;
    }
}

/* Product Carousel Styles */
.product-carousel-section {
    padding: 60px 0;
    background-color: #f5f5f5; /* Light gray background */
}

.carousel-wrapper {
    position: relative;
    padding: 0 50px; /* Space for arrows */
}

.product-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 30px;
    padding-bottom: 20px;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

.product-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.carousel-item {
    flex: 0 0 300px; /* Fixed width for cards */
    max-width: 300px;
}

.product-card {
    background: transparent; /* Card itself is transparent, content sits on section bg */
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-rating {
    margin-bottom: 10px;
    color: #333;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.2;
}

.product-title a {
    color: #000;
    text-decoration: none;
}

.product-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.product-excerpt {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
}

.product-image {
    margin-top: auto; /* Push image to bottom */
    text-align: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    mix-blend-mode: multiply; /* Helps integrate image if it has white bg */
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%; /* Circle shape as per modern trends, though screenshot has square-ish arrow */
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: #000;
    color: #fff;
    border-color: #000;
}

.carousel-nav.prev {
    left: 0;
}

.carousel-nav.next {
    right: 0;
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 30px;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

/* Left Column */
.footer-left {
    flex: 0 0 25%;
    padding-right: 40px;
}

.footer-block {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #333;
}

.footer-block:last-child {
    border-bottom: none;
}

.footer-link-large {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.phone-number {
    display: block;
    margin-top: 5px;
    font-weight: 400;
    color: #ccc;
}

/* Middle/Right Column Area */
.footer-middle {
    flex: 1;
}

.footer-links-grid {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-links-col {
    flex: 1;
    min-width: 150px;
    margin-bottom: 30px;
}

.footer-heading {
    font-size: 12px;
    text-transform: uppercase;
    color: #ccc;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-list li {
    margin-bottom: 15px;
}

.footer-links-list a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.footer-links-list a:hover {
    text-decoration: underline;
}

/* Newsletter */
.footer-newsletter {
    max-width: 600px;
}

.newsletter-intro {
    font-size: 16px;
    margin-bottom: 20px;
}

.newsletter-label {
    display: block;
    font-size: 12px;
    color: #ccc;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.newsletter-input-group {
    display: flex;
    border: 1px solid #fff;
}

.newsletter-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    padding: 15px;
    outline: none;
}

.newsletter-input-group button {
    background: transparent;
    border: none;
    border-left: 1px solid #fff;
    color: #fff;
    padding: 0 30px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 14px;
}

.newsletter-input-group button span {
    margin-left: 10px;
}

.newsletter-disclaimer {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
}

.newsletter-disclaimer a {
    color: #ccc;
    text-decoration: underline;
}

/* Bottom Info */
.footer-bottom {
    text-align: left;
    color: #999;
    font-size: 12px;
}

.footer-bottom p {
    margin-bottom: 15px;
}

.footer-bottom a {
    color: #ccc;
}

.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-legal-links a {
    color: #ccc;
    text-decoration: none;
    text-transform: capitalize;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
    }
    
    .footer-left {
        flex: 0 0 100%;
        margin-bottom: 40px;
        padding-right: 0;
    }
    
    .footer-links-grid {
        flex-direction: column;
    }
    
    .footer-links-col {
        margin-bottom: 30px;
    }
}

/* Updated Product Card Styles - Matching Screenshot */

/* Apply to both carousel and shop loop */
.product-card {
    background: #f9f9f9; /* Light background for the card */
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left; /* Align text to left */
    position: relative;
    min-height: 450px; /* Ensure consistent height */
    box-sizing: border-box;
}

/* Shop Loop Grid Layout */
ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

ul.products li.product {
    margin: 0; /* Reset default margins */
    width: auto; /* Grid handles width */
}

/* Rating */
.product-rating {
    margin-bottom: 15px;
    color: #000;
    min-height: 20px;
}

.star-rating {
    float: none; /* Reset float if any */
    color: #000;
}

/* Title */
.product-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px;
    line-height: 1.2;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Clean sans-serif */
}

.product-title a {
    color: #000;
    text-decoration: none;
}

/* Subtitle (SKU) */
.product-subtitle {
    font-size: 20px;
    color: #888; /* Gray color */
    margin-bottom: 10px;
    font-weight: 500;
}

/* Excerpt/Description */
.product-excerpt {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 400;
}

/* Price */
.product-price {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px; /* Space before image */
}

.product-price .woocommerce-Price-amount {
    color: #000;
}

.product-price .woocommerce-Price-currencySymbol {
    font-size: 0.8em;
    vertical-align: top;
}

/* Suffix "USD" simulation if not present */
.product-price::after {
    content: " USD";
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-left: 5px;
}

/* Image */
.product-image {
    margin-top: auto; /* Push to bottom */
    text-align: center;
    width: 100%;
}

.product-image img {
    max-width: 100%;
    height: auto;
    max-height: 200px; /* Limit height */
    object-fit: contain;
    mix-blend-mode: multiply; /* Blend with background */
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Hide default add to cart button in shop loop if it appears outside our card */
ul.products li.product .add_to_cart_button {
    display: none;
}

/* FORCE OVERRIDE FOR WOOCOMMERCE DEFAULT STYLES */
/* This fixes the issue where products are squashed into narrow columns */

.woocommerce ul.products, 
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 30px !important;
    margin-right: 0 !important; /* Reset woo margins */
}

/* Reset individual product item styles */
.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
    width: 100% !important; /* Force full width within grid cell */
    float: none !important; /* Disable float */
    margin: 0 !important; /* Reset margins */
    box-sizing: border-box !important;
    clear: none !important; /* Prevent clearing behavior */
}

/* Ensure the anchor inside doesn't behave strangely */
.woocommerce ul.products li.product a {
    display: block;
}

/* Ensure images take up space correctly */
.woocommerce ul.products li.product img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Remove default WooCommerce "Add to cart" button if it's appearing outside our card */
.woocommerce ul.products li.product .button {
    display: none; 
}

/* =========================================
   Shop Filter & Sorting Styles
   ========================================= */

/* Filter Bar Container */
.nieion-shop-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0 40px;
    justify-content: center; /* Center tabs */
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

/* Filter Items (Tabs) */
.filter-item {
    font-size: 16px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.3s ease;
    position: relative;
}

.filter-item:hover,
.filter-item.active {
    color: #000;
}

/* Underline indicator for active state */
.filter-item.active::after {
    content: '';
    position: absolute;
    bottom: -16px; /* Align with border-bottom of container */
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

/* Clean up WooCommerce default Result Count & Ordering */
.woocommerce .woocommerce-result-count {
    float: left;
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
}

.woocommerce .woocommerce-ordering {
    float: right;
    margin: 0 0 20px;
}

/* Custom Select Style for Ordering */
.woocommerce .woocommerce-ordering select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #000;
    padding: 5px 30px 5px 0; /* Space for arrow */
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 16px;
    border-radius: 0;
    outline: none;
    min-width: 180px;
    text-align: left;
}

/* Hide default select arrow in IE */
.woocommerce .woocommerce-ordering select::-ms-expand {
    display: none;
}

/* Responsive adjustments for filter bar */
@media (max-width: 768px) {
    .nieion-shop-filter {
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px; /* Adjust for scrollbar */
        border-bottom: none; /* Remove border on mobile if scrolling */
    }
    
    .filter-item {
        flex: 0 0 auto;
    }

    .woocommerce .woocommerce-result-count,
    .woocommerce .woocommerce-ordering {
        float: none;
        width: 100%;
        text-align: left;
    }
    
    .woocommerce .woocommerce-ordering select {
        width: 100%;
        margin-top: 10px;
    }
}

/* =========================================
   New Shop Sidebar Layout
   ========================================= */

.shop-flex-layout {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-top: 40px;
    position: relative;
}

.shop-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: 100px; /* Adjust based on header height */
    align-self: flex-start;
}

.shop-products-area {
    flex-grow: 1;
    min-width: 0; /* Prevent flex overflow */
}

/* Sidebar Header (Close + Sort) */
.shop-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.btn-close-filters {
    display: none; /* Hidden on desktop */
    background: transparent;
    border: 1px solid #000;
    padding: 8px 15px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Filter Sections */
.filter-section {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Checklist Style */
.filter-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-checklist li {
    margin-bottom: 12px;
}

.filter-checklist a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: color 0.2s;
}

.filter-checklist a:hover {
    color: #000;
}

.checkbox-box {
    width: 18px;
    height: 18px;
    border: 1px solid #ccc;
    margin-right: 12px;
    position: relative;
    display: inline-block;
    transition: all 0.2s;
}

/* Checked State */
.filter-checklist li.checked .checkbox-box {
    background-color: #000;
    border-color: #000;
}

.filter-checklist li.checked .checkbox-box::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 4px;
    height: 8px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
}

.filter-checklist li.checked .filter-name {
    font-weight: 600;
}

/* Move Sorting to Sidebar Header override */
.shop-sidebar .woocommerce-ordering {
    float: none;
    margin: 0;
    width: 100%;
}

.shop-sidebar .woocommerce-ordering select {
    border: 1px solid #ddd;
    padding: 10px;
    width: 100%;
    background-position: 95% center;
}

/* Responsive */
@media (max-width: 992px) {
    .shop-flex-layout {
        display: block;
    }
    
    .shop-sidebar {
        display: none; /* Hide sidebar initially on mobile */
        /* You might want to implement a slide-out drawer or simple toggle here later */
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 30px;
    }
    
    /* When active class added via JS (if implemented) */
    .shop-sidebar.active {
        display: block;
    }
}

/* HIDE DEFAULT WORDPRESS SIDEBAR WIDGETS */
/* In case unregistering doesn't catch hardcoded outputs or other plugins */

.widget_search,
.widget_pages,
.widget_archive,
.widget_categories,
.widget_meta,
.widget_recent_comments,
.widget_recent_entries,
#secondary, /* Common ID for sidebars */
.sidebar-main {
    display: none !important;
}

/* Ensure our custom sidebar remains visible */
.shop-sidebar {
    display: block !important;
}

/* Hide screen-reader-text properly but keep accessible if needed (or just hide visual clutter) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* =========================================
   Header User Icon
   ========================================= */

.top-bar-right .account-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: color 0.2s;
    vertical-align: middle;
}

.top-bar-right .account-link:hover {
    color: #ccc;
}

.top-bar-right .account-link svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* =========================================
   My Account Page Styles
   ========================================= */

/* Reduce Header Height/Spacing for My Account Page */
.woocommerce-account .entry-header {
    margin-bottom: 20px;
    margin-top: 10px;
}

.woocommerce-account .entry-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 32px; /* Consistent with other headings */
}

/* Layout Container */
.woocommerce-account .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 10px; /* Reduced from 40px */
    margin-bottom: 80px;
}

/* Login/Register Form (when not logged in) */
.woocommerce-form-login-toggle,
.woocommerce-form-register-toggle {
    text-align: center;
}

.woocommerce-account h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

#customer_login {
    display: flex;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.u-column1, .u-column2 {
    flex: 1;
    background: #f9f9f9;
    padding: 40px;
    border-radius: 4px;
}

.woocommerce-form-row {
    margin-bottom: 20px;
}

.woocommerce-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.woocommerce-Input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s;
}

.woocommerce-Input:focus {
    border-color: #000;
}

.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
    width: 100%;
    padding: 15px;
    background-color: #000;
    color: #fff;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.woocommerce-form-login__submit:hover,
.woocommerce-form-register__submit:hover {
    background-color: #333;
}

/* Dashboard Navigation (Sidebar) */
.woocommerce-MyAccount-navigation {
    flex: 0 0 250px;
    background-color: #f9f9f9;
    padding: 30px 0;
    border-radius: 4px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 12px 30px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.woocommerce-MyAccount-navigation li a:hover {
    background-color: #eee;
    color: #000;
}

.woocommerce-MyAccount-navigation li.is-active a {
    background-color: #fff;
    color: #000;
    font-weight: 700;
    border-left-color: #000;
}

/* Dashboard Content */
.woocommerce-MyAccount-content {
    flex: 1;
    padding: 0 20px;
}

.woocommerce-MyAccount-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.woocommerce-MyAccount-content a {
    color: #000;
    text-decoration: underline;
}

/* Orders Table */
.woocommerce-orders-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.woocommerce-orders-table th,
.woocommerce-orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.woocommerce-orders-table th {
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.woocommerce-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #000;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 2px;
}

.woocommerce-button:hover {
    background-color: #333;
}

/* Addresses */
.u-columns.woocommerce-Addresses {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.woocommerce-Address-title h3 {
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

address {
    font-style: normal;
    line-height: 1.6;
    color: #555;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce {
        flex-direction: column;
    }

    .woocommerce-MyAccount-navigation {
        flex: auto;
        width: 100%;
        margin-bottom: 30px;
    }

    #customer_login {
        flex-direction: column;
        gap: 30px;
    }
}

/* =========================================
   Hide Search on My Account Page
   ========================================= */
.woocommerce-account .header-actions .dgwt-wcas-search-wrapp,
.woocommerce-account .header-actions form.search-form {
    display: none !important;
}
