/*
Theme Name: Barateiro dos Pisos
Theme URI: https://barateirodospisos.com
Author: Antigravity
Description: A custom theme for Barateiro dos Pisos inspired by Leroy Merlin style.
Version: 1.0
Text Domain: barateiro
*/

:root {
    --primary-red: #D32F2F; /* A slightly deeper red for better text contrast/UI */
    --primary-yellow: #FFD700; /* Barateiro Yellow */
    --primary-black: #1a1a1a;
    --primary-gray: #f5f5f5;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Functional Colors */
    --color-action: var(--primary-red);
    --color-highlight: var(--primary-yellow);
    --btn-text: #FFFFFF;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-black);
    margin-top: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    max-width: 1400px; /* Wide layout like Leroy */
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-red); /* Strong brand color */
    color: white;
    font-size: 0.85rem;
    padding: 10px 0;
    text-align: center;
    font-weight: 500;
}

/* ... existing code ... */

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem;
    color: #333;
    min-height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* Standard property */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Header Structure */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-black); /* Leroy uses dark for top bar */
    color: white;
    font-size: 0.75rem;
    padding: 8px 0;
    font-weight: 400;
}

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

.top-bar-right a {
    margin-left: 20px;
    color: white;
    opacity: 0.9;
}

.top-bar-right a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* Main Header */
.main-header {
    padding: 10px 0;
    background: white;
}

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

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

/* Search Form */
.search-form-wrapper {
    flex-grow: 1;
    max-width: 700px;
}

.search-form-wrapper form {
    display: flex;
    position: relative;
}

.search-form-wrapper input[type="search"] {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: none;
    background-color: #f0f0f0; /* Light grey background like reference */
    border-radius: 4px;
    font-size: 0.95rem;
    color: #666;
    height: 48px;
}

.search-form-wrapper input[type="search"]:focus {
    outline: 2px solid var(--primary-yellow); /* Branding focus */
    background-color: white;
}

.search-form-wrapper button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.search-form-wrapper button:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--primary-red);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--primary-black);
    position: relative;
    transition: color 0.2s;
}

.header-action-item:hover {
    color: var(--primary-red);
}


/* User Dropdown */
.user-dropdown-wrapper {
    position: relative;
    cursor: pointer;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: -10px;
    width: 250px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    cursor: default;
}

.user-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    box-shadow: -1px -1px 1px rgba(0,0,0,0.05);
}

.user-dropdown-wrapper.is-active .user-dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(15px); /* Spacing from icon */
}

.dropdown-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: 700;
    color: var(--primary-black);
}

.user-dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.user-dropdown-menu ul li {
    margin-bottom: 10px;
}

.user-dropdown-menu ul li:last-child {
    margin-bottom: 0;
}

.user-dropdown-menu ul li a {
    display: block;
    color: #555;
    font-size: 0.9rem;
    padding: 5px 0;
    transition: color 0.2s;
}

.user-dropdown-menu ul li a:hover {
    color: var(--primary-red);
}

/* Auth Buttons in Dropdown */
.btn-signin, .btn-register {
    text-align: center;
    border-radius: 4px;
    padding: 10px !important;
    font-weight: 700;
}

.btn-signin {
    background-color: var(--primary-red);
    color: white !important;
    margin-bottom: 10px;
}

.btn-signin:hover {
    background-color: #b71c1c;
}

.btn-register {
    border: 1px solid #ccc;
    color: var(--primary-black) !important;
}

.btn-register:hover {
    border-color: var(--primary-black);
}

/* Header Actions SVG adjustments */
.header-action-item .icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

.user-menu-trigger {
    color: inherit;
}

.user-menu-trigger:hover {
    color: var(--primary-red);
}

.header-action-item svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--primary-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Navigation Bar */
.main-navigation {
    border-top: 1px solid #eee;
    background: white;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.departments-btn {
    background: transparent;
    border: none;
    padding: 15px 0;
    font-weight: 700;
    color: var(--primary-black);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-right: 10px;
}

.departments-btn svg {
    width: 20px;
    height: 20px;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
    flex-grow: 1;
}

.main-navigation ul li a {
    display: block;
    padding: 15px 0;
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
    position: relative;
}

.main-navigation ul li a:hover {
    color: var(--primary-red);
}

/* Nav specific styling from reference */
.nav-right-item {
    margin-left: auto; /* Push to right */
    color: var(--text-color);
    /* Removed heavy border to look less 'weird' and disjointed */
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}

.nav-right-item:hover {
    color: var(--primary-red) !important;
    text-decoration: underline;
}

/* Adjust nav inner to be more compact if needed */
.nav-inner {
    display: flex;
    align-items: center;
    gap: 20px; /* Reduced gap slightly */
    padding: 0; /* Enhance alignment */
    height: 50px; /* Enforce height for vertical center */
}

.main-navigation ul li a {
    display: flex;
    align-items: center; /* Ensure vertical center */
    padding: 0 10px; /* Horizontal padding instead of vertical for better control */
    height: 100%;
    font-weight: 500;
    font-size: 0.9rem;
    color: #555;
    position: relative;
    line-height: 50px; /* match container height */
}

/* Specific fix for the departments button alignment */
.departments-btn {
    height: 50px;
    padding: 0 15px 0 0;
    margin-right: 15px;
    border-right: 1px solid #eee; /* separation line */
}

/* Hero Section */
.hero-section {
    padding: 40px 0;
    background-color: var(--bg-white);
    margin-bottom: 40px;
}

.hero-banner {
    background-color: var(--primary-gray);
    border-left: 10px solid var(--primary-yellow); /* Branding accent */
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-content {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    max-width: 500px;
    margin-left: 60px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--primary-gray);
}

.btn-primary {
    display: inline-block;
    background-color: var(--color-action);
    color: var(--btn-text);
    padding: 14px 35px;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 20px;
    text-transform: uppercase;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #b71c1c; /* Darker red */
}

/* Categories Grid */
.categories-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

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

.category-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.category-card h3 {
    padding: 15px;
    font-size: 1rem;
    margin: 0;
}

/* Product Grid (WooCommerce override style) */
.products-section {
    margin-bottom: 80px;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product {
    background: var(--bg-white);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    /* Reset WooCommerce default floats/widths */
    width: 100% !important; 
    float: none !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-color: #eee;
}

.woocommerce ul.products li.product img {
    margin-bottom: 20px;
    height: 200px;
    width: 100%;
    object-fit: contain; /* Changed to contain to show full product */
    mix-blend-mode: multiply; /* Helps if images have white bg */
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
    margin-bottom: 10px;
    min-height: 2.8em; /* Force height for 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.woocommerce ul.products li.product .price {
    color: var(--primary-black);
    font-weight: 800;
    font-size: 1.2rem;
    margin-top: auto; /* Push to bottom */
    margin-bottom: 15px;
    display: block;
}

.woocommerce ul.products li.product .price del {
    color: #999;
    font-size: 0.9rem;
    font-weight: 400;
    margin-right: 5px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
    color: var(--primary-red);
}

.woocommerce ul.products li.product .button {
    background-color: var(--primary-red);
    color: white;
    width: 100%;
    border-radius: 6px;
    padding: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: background 0.2s;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #b71c1c;
    color: white;
}

.woocommerce ul.products li.product .added_to_cart {
    display: block;
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Footer */
.site-footer {
    background-color: var(--primary-black);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-widget h4 {
    color: white;
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: inline-block;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #888;
}

/* 
   Add to existing style.css 
   Creative Redesign Styles 
*/

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Creative Hero */
.hero-creative {
    position: relative;
    height: 650px;
    padding-top: 40px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-creative-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: pulse 20s infinite alternate; /* Subtle zoom effect */
}

.hero-creative-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.hero-creative-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding-left: 40px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    color: var(--primary-yellow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
}

.hero-title .highlight {
    color: var(--primary-red);
    background: white;
    padding: 0 10px;
    transform: skewX(-10deg);
    display: inline-block;
}

.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

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

.btn-creative {
    padding: 15px 40px;
    border-radius: 50px; /* Modern rounded buttons */
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-red {
    background-color: var(--primary-red);
    color: white;
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.4);
}

.btn-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.6);
    background-color: #b71c1c;
}

.btn-outline {
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--primary-black);
}

.floating-badge {
    position: absolute;
    right: 50px;
    bottom: 50px;
    background: var(--primary-yellow);
    color: var(--primary-black);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 4;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: rotate(15deg);
    animation: pulse 2s infinite;
}

.floating-badge span {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
}

.floating-badge small {
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.2;
}

/* Creative Grid */
.creative-categories {
    margin-bottom: 80px;
}

.section-header {
    margin-bottom: 40px;
}

.section-badge {
    color: var(--primary-red);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 5px;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
}

.creative-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.grid-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-medium {
    grid-column: span 2;
    grid-row: span 1;
}

.item-standard {
    grid-column: span 1;
    grid-row: span 1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
    transition: opacity 0.3s;
}

/* Specific overlay for Hero Slider for better text readability */
.hero-slide .grid-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.2) 100%);
}

.hero-title, .hero-subtitle, .hero-desc {
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.grid-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    color: white;
}

.item-standard .grid-content {
    color: var(--primary-black); /* For non-image backgrounds */
    width: 100%;
}

.grid-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    font-weight: 700;
}

/* Features */
.features-creative {
    background: var(--primary-black);
    padding: 80px 0;
    color: white;
    margin-bottom: 80px;
    margin-left: calc(-50vw + 50%); /* Full width hack */
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-box {
    background: rgba(255,255,255,0.05); /* Glass dark */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: background 0.3s;
}

.feature-box:hover {
    background: rgba(255,255,255,0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-box h4 {
    color: var(--primary-yellow);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* Products adjustment */
.products-section .center {
    text-align: center;
    margin-bottom: 40px;
}

.products-section .divider {
    height: 4px;
    width: 60px;
    background: var(--primary-red);
    margin: 10px auto;
}

/* Hybrid Styles: Split Hero + Creative */
.hero-creative.split-layout {
    display: grid;
    grid-template-columns: 1fr 2.5fr; /* 1/3 - 2/3 ratio like reference */
    gap: 20px;
    height: 450px;
    margin-top: 20px;
}

.hero-service-card {
    background-color: var(--primary-yellow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: var(--primary-black);
    transition: transform 0.3s;
}

.hero-service-card:hover {
    transform: translateY(-5px);
}

.hero-service-card .service-content {
    z-index: 2;
    padding: 20px;
}

.hero-service-card .service-icon {
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
}

.hero-service-card h3 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 10px;
    font-weight: 800;
}

.btn-link {
    font-weight: 700;
    text-decoration: underline;
    color: var(--primary-black);
}

.hero-main-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* Adjust creative content for smaller container */
.hero-creative-content.small-padding {
    padding-left: 60px;
    max-width: 600px;
}

.hero-main-card .hero-title {
    font-size: 3rem; /* Slightly smaller than full width */
}

@media (max-width: 900px) {
    .hero-creative.split-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .hero-service-card {
        min-height: 200px;
    }
    .hero-main-card {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .site-logo img {
        height: 60px;
    }
    .main-header {
        padding: 10px 0;
    }
    .main-header-inner {
        flex-wrap: wrap;
        gap: 15px;
    }
    .search-form-wrapper {
        min-width: 100%;
        order: 3;
        margin-top: 10px;
    }
    .header-actions {
        margin-left: auto;
    }
}

/* Cart Drawer */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.drawer-overlay.is-active {
    visibility: visible;
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    max-width: 100%;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-drawer.is-active {
    right: 0;
}

.drawer-header {
    padding: 20px;
    background: var(--primary-black);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.drawer-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
}

.close-drawer {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.close-drawer:hover {
    color: var(--primary-red);
}

.drawer-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

/* WooCommerce Widget Styles in Drawer */
.cart-drawer .widget_shopping_cart_content ul.cart_list {
    margin: 0;
    padding: 0;
}

/* Improved Cart Drawer Item Layout via Grid */
.cart-drawer .widget_shopping_cart_content ul.cart_list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    display: grid;
    grid-template-columns: 24px 1fr auto; /* Remove | Product(Img+Title) | Price */
    gap: 15px;
    align-items: center;
    padding-left: 0;
}

.cart-drawer .widget_shopping_cart_content ul.cart_list li a.remove {
    position: static; /* Let grid handle it */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
    line-height: 1;
}

.cart-drawer .widget_shopping_cart_content ul.cart_list li a img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    float: none;
    margin: 0;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Product Title Link (Wraps Image + Text) */
.cart-drawer .widget_shopping_cart_content ul.cart_list li a:not(.remove) {
    color: var(--primary-black);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.3;
    display: flex; /* Image left, Text right */
    align-items: center;
    gap: 15px;
    text-align: left;
}

/* Quantity/Price Wrapper */
.cart-drawer .widget_shopping_cart_content ul.cart_list li .quantity {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Right align price */
    margin: 0;
    color: #666;
    font-size: 0.85rem;
    white-space: nowrap; /* Prevent wrapping */
}

.cart-drawer .widget_shopping_cart_content .total {
    border-top: 1px solid #eee;
    padding: 20px 0;
    margin-top: 20px;
    text-align: right;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-black);
}

.cart-drawer .widget_shopping_cart_content .buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
}

.cart-drawer .widget_shopping_cart_content .buttons .button {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Hide the "View Cart" button */
.cart-drawer .widget_shopping_cart_content .buttons .button:not(.checkout) {
    display: none;
}

.cart-drawer .widget_shopping_cart_content .buttons .button.checkout {
    background: var(--primary-red);
    color: white;
    border: none;
    flex: 1;
    width: 100%;
}

.cart-drawer .widget_shopping_cart_content .buttons .button:hover {
    opacity: 0.9;
}


/* Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    pointer-events: none; /* Let clicks pass through inactive slides */
    z-index: 1;
    display: flex;
    align-items: center; /* Vertically center content */
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-slide .hero-creative-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 0.3s; /* Delay for content */
}

.hero-slide.active .hero-creative-content {
    opacity: 1;
    transform: translateY(0);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 40px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--primary-red);
    transform: scale(1.2);
}

.slider-dot:hover {
    background: white;
}

/* Product Page Styles */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 60px;
}

.product-gallery-section img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Custom Tabs Styling */
.woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 5px;
}

.woocommerce-tabs ul.tabs li {
    display: inline-block;
}

.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 15px 25px;
    font-weight: 700;
    color: #666;
    border-radius: 8px 8px 0 0;
    background: #f9f9f9;
}

.woocommerce-tabs ul.tabs li.active a {
    background: white;
    color: var(--primary-black);
    border: 1px solid #eee;
    border-bottom: 1px solid white; /* Hide bottom border */
    margin-bottom: -1px; /* Overlap border */
}

/* Responsive Product Page */
@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr !important; /* Stack on mobile */
        gap: 20px !important;
    }
    
    .product-summary-section .summary {
        position: static !important; /* Remove sticky on mobile */
        margin-top: 20px;
        box-shadow: none !important;
        padding: 20px !important;
        border: 1px solid #eee;
    }
    
    .price-wrapper .price {
        font-size: 2rem !important;
    }
    
    .hero-creative {
        height: auto !important;
        min-height: 500px;
    }
}

/* --- FIXES FOR SINGLE PRODUCT PAGE --- */

/* Reset WooCommerce Floats/Widths because we are using CSS Grid */
.woocommerce div.product div.images,
.woocommerce div.product div.summary {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Adjust Grid Columns - Fixed width for buy box to prevent squishing */
.product-detail-grid {
    grid-template-columns: 1fr 450px !important;
    gap: 60px !important;
    align-items: start;
}

/* Fix Gallery Images */
.product-gallery-wrapper .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 8px;
}

.product-gallery-wrapper .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
}

/* Force Buy Button to Brand Red */
.woocommerce div.product form.cart .button {
    background-color: var(--primary-red) !important;
    color: white !important;
    width: 100%;
    border-radius: 6px;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    margin-top: 10px;
    transition: background 0.2s;
}

.woocommerce div.product form.cart .button:hover {
    background-color: #b71c1c !important;
}

/* Fix Input Quantity */
.woocommerce div.product form.cart div.quantity {
    float: none;
    margin: 0 0 15px 0;
    display: block;
    width: 100%;
}

.woocommerce div.product form.cart div.quantity input.qty {
    width: 80px;
    height: 45px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding-left: 10px;
    font-size: 1rem;
}

/* Price Adjustment */
.price-wrapper .price {
    font-size: 2.8rem !important;
    letter-spacing: -1px;
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1fr 350px !important;
        gap: 30px !important;
    }
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr !important;
    }
    .product-gallery-wrapper {
        margin-bottom: 20px;
    }
}

/* Shop Sidebar Layout */
@media (max-width: 900px) {
    .shop-grid-layout {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .shop-grid-layout #secondary {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}

/* Shop Sidebar Styling */
#secondary.icon-sidebar {
    padding-right: 20px;
    border: none; /* Removed internal border as grid handles separation */
}

/* Widget Styling */
.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-yellow);
    display: inline-block;
    color: var(--primary-black);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f4f4f4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.widget ul li a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.widget ul li a:hover {
    color: var(--primary-red);
}

.widget ul li .count {
    background: #f4f4f4;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #888;
}

/* Price Filter Widget specific styling */
.widget_price_filter .price_slider {
    margin-bottom: 1em;
}

.widget_price_filter .price_slider_amount {
    text-align: right;
    line-height: 2.4;
    font-size: 0.8751em;
}

.widget_price_filter .price_slider_amount .button {
    float: left;
    background: var(--primary-black);
    color: white;
    border: none;
    padding: 5px 15px;
    font-weight: 500;
    border-radius: 4px;
    font-size: 0.9rem;
}

.widget_price_filter .ui-slider .ui-slider-handle {
    background-color: var(--primary-red);
    border-radius: 50%;
    cursor: ew-resize;
}

.widget_price_filter .ui-slider .ui-slider-range {
    background-color: var(--primary-red);
}

/* Filter by Attribute Widget */
.widget_layered_nav ul li.chosen a:before {
    content: "×";
    margin-right: 5px;
    color: var(--primary-red);
}

.widget_layered_nav ul li.chosen a {
    color: var(--primary-red);
    font-weight: 700;
}

/* Style for Font Awesome Icons in Features */
.feature-icon i {
    color: var(--primary-red);
    font-size: 2.5rem;
}

/* Ensure Icons in Header search/cart are sized correctly if replaced (not replaced yet but good to have) */
.header-action-item i {
    font-size: 1.5rem;
}

/* Departments Dropdown */
.departments-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.departments-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 0 0 8px 8px;
    padding: 10px 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1002; /* Above user dropdown */
    border-top: 2px solid var(--primary-yellow);
}

.departments-wrapper.is-active .departments-dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.departments-dropdown-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block !important; /* Override main-nav flex */
}

.departments-dropdown-content ul li {
    width: 100%;
    margin: 0;
}

.departments-dropdown-content ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 25px;
    color: var(--primary-black);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 1px solid #f9f9f9;
    transition: all 0.2s;
    height: auto; /* Override main-nav height */
    line-height: normal; /* Override main-nav line-height */
}

.departments-dropdown-content ul li:last-child a {
    border-bottom: none;
}

.departments-dropdown-content ul li a:hover {
    background-color: #f9f9f9;
    color: var(--primary-red);
    padding-left: 30px; /* Slight movement */
}

/* Arrow indicator for dropdowns */
.departments-dropdown-content ul li.menu-item-has-children > a::after {
    content: '\f105'; /* FontAwesome chevron right */
    font-family: 'Font Awesome 6 Free'; 
    font-weight: 900;
    font-size: 0.8rem;
    color: #ccc;
}

/* Navigation Bar Elements (Moved Top Bar) */
.nav-bar-elements {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: auto; /* Push primary menu to right if needed, or stick next to dept */
    flex-wrap: wrap;
    font-size: 0.85rem; /* Slightly smaller than main nav */
}

.nav-bar-item {
    display: flex;
    align-items: center;
    color: #555;
}

/* Location */
.nav-location a, .nav-location span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    font-weight: 500;
}

.nav-location a::before, .nav-location span::before {
    content: '\f3c5'; /* FontAwesome Map Marker */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-red);
}

.nav-location a:hover {
    color: var(--primary-red);
    text-decoration: underline;
}

/* Phone */
.nav-phone span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-phone span::before {
    content: '\f095'; /* FontAwesome Phone */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-red);
}

/* Secondary Menu in Nav */
.nav-secondary-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.nav-secondary-menu ul li a {
    color: #555;
    transition: color 0.2s;
    font-weight: 500;
}

.nav-secondary-menu ul li a:hover {
    color: var(--primary-red);
}

/* Adjustments for Nav Inner */
.nav-inner {
    justify-content: flex-start; /* Align start */
}

/* Hide original top bar if still showing (redundant now but safe) - REMOVED */
/* .top-bar { display: none !important; } */

/* Product Card Enhancements & Placeholder (Added by Antigravity) */
.woocommerce ul.products li.product {
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: white; /* Ensure bg is white */
    overflow: hidden; /* For rounded corners */
    padding-bottom: 20px; /* Add padding at bottom since button is hidden */
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* Nicer shadow */
    border-color: transparent;
    z-index: 2;
}

.product-image-wrapper {
    height: 350px; /* Increased height for better product visibility */
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.product-image-wrapper img {
    height: 100% !important;
    width: 100% !important;
    object-fit: contain !important; /* Ensure product is fully visible */
    margin-bottom: 0 !important;
    mix-blend-mode: normal !important; /* Reset */
    transition: transform 0.6s ease;
    padding: 10px; /* Add padding around image for better presentation */
}

.woocommerce ul.products li.product:hover .product-image-wrapper img {
    transform: scale(1.05); /* Subtle zoom on hover */
}

/* Placeholder Styling */
.barateiro-product-placeholder {
    width: 100%;
    height: 100%;
    background-color: #f8f8f8;
    background-image: radial-gradient(#ddd 1px, transparent 1px); /* Dot pattern */
    background-size: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    flex-direction: column;
    border-radius: 4px;
}

.placeholder-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.placeholder-content i {
    font-size: 2.5rem;
    opacity: 0.6;
    color: #ccc;
}

.placeholder-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
}

/* Typography Enhancements */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem !important;
    padding: 0 15px;
    margin-bottom: 10px;
}

.woocommerce ul.products li.product .price {
    font-size: 1.3rem !important;
    color: var(--primary-red) !important;
    font-weight: 800;
    padding: 0 15px;
}

/* Button Refinement */
.woocommerce ul.products li.product .button {
    margin: 0 15px 15px; /* Add margin */
    width: calc(100% - 30px) !important; /* Adjust width */
    background-color: var(--primary-black) !important;
    border-radius: 8px !important; /* Less rounded, more modern */
    font-size: 0.95rem !important;
    padding: 14px 0 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--primary-red) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.3);
}

/* Responsive Shop Grid Layout */
.shop-grid-layout {
    display: block; /* Remove grid that forces sidebar */
}

.shop-grid-layout #secondary {
    display: none; /* Hide sidebar for now to improve visualization */
}

@media (max-width: 992px) {
    .shop-grid-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* 
   Sticky Header Transformations 
   Added via Antigravity
*/

/* 1. Base Sticky State */
.site-header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: none; /* Override any existing animation */
}

/* 2. Hide Top Bar */
.site-header.header-scrolled .top-bar {
    display: none;
}

/* 3. Main Header Adjustments */
.site-header.header-scrolled .main-header {
    padding: 5px 0;
    transition: padding 0.3s;
}

.site-header.header-scrolled .main-header-inner {
    height: 50px; /* Compact height */
    justify-content: space-between; /* Logo Left, Icons Right */
}

/* 4. Logo - Make it "fino" (thinner/smaller) */
.site-header.header-scrolled .site-logo img {
    height: 35px; /* Significantly smaller */
    width: auto;
    transition: height 0.3s;
}

/* 5. Hide Large Search Bar */
.site-header.header-scrolled .search-form-wrapper {
    display: none;
}

/* 6. Navigation - Center it */
.site-header.header-scrolled .main-navigation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: none;
    background: transparent;
    width: auto;
    z-index: 100;
    pointer-events: none; /* Pass clicks through mostly, re-enable for children */
}

.site-header.header-scrolled .main-navigation .container {
    width: auto;
    padding: 0;
    margin: 0;
}

.site-header.header-scrolled .nav-inner {
    gap: 15px;
    height: auto;
}

.site-header.header-scrolled .departments-btn,
.site-header.header-scrolled .main-navigation ul,
.site-header.header-scrolled .main-navigation a {
    pointer-events: auto;
}

/* Adjust Nav Items for Compactness */
.site-header.header-scrolled .departments-btn {
    padding: 0 10px 0 0;
    font-size: 0.8rem;
    height: 30px;
    border-right: 1px solid #ddd;
    margin-right: 10px;
}

.site-header.header-scrolled .departments-btn svg {
    width: 16px;
    height: 16px;
}

.site-header.header-scrolled .main-navigation ul li a {
    padding: 0 8px;
    font-size: 0.8rem;
    line-height: 30px;
}

.site-header.header-scrolled .nav-secondary-menu {
    border-right: 1px solid #eee;
    padding-right: 15px;
    margin-right: 5px;
}

/* 7. Header Actions (Right Side) */
.site-header.header-scrolled .header-actions {
    margin-left: 0; /* Was implicitly auto if flex logic applied differently */
    gap: 15px;
}

.site-header.header-scrolled .header-action-item svg {
    width: 22px;
    height: 22px;
}

/* Show the Search Icon in Scrolled State */
.site-header.header-scrolled .search-trigger-scrolled {
    display: flex !important;
}

/* 
   Admin Bar Compatibility 
   (Added via Antigravity)
*/
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px; /* WordPress admin bar is taller on mobile */
    }
}

/* 
   Search Overlay for Sticky Header
   (Added via Antigravity)
*/
.search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Matches header height */
    background: white;
    z-index: 2000;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    transform: translateY(-10px);
}

.search-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.search-overlay-inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.search-overlay-form {
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 2px solid var(--primary-gray);
}

.search-overlay-input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    padding: 10px 50px 10px 5px;
    color: var(--primary-black);
    outline: none;
    font-weight: 500;
}

.search-overlay-submit {
    position: absolute;
    right: 40px;
    background: none;
    border: none;
    color: var(--primary-red);
    cursor: pointer;
    padding: 5px;
    display: flex;
}

.search-overlay-close {
    position: absolute;
    right: 0;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    display: flex;
    transition: color 0.2s;
}

.search-overlay-close:hover {
    color: var(--primary-black);
}

/* Ensure sticky header allows overlay to render properly */
.site-header {
    perspective: 1000px; /* Helper for 3d transforms if needed */
}

/* Specific fix: When overlay is active, ensure it sits above everything inside header */
.site-header.header-scrolled .search-overlay {
    height: 60px; /* Match compact height + padding roughly */
    top: 0; 
}

/* Product Loop Customizations */
.products .product {
    display: flex;
    flex-direction: column;
}

.product-inner {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.product-inner:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.products .product img {
    border-radius: 4px;
    margin-bottom: 10px;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1;
}

.woocommerce-loop-product__title {
    font-size: 1.1em !important;
    font-weight: 600 !important;
    color: #333;
    margin-bottom: 5px;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.price {
    font-size: 1.2em;
    font-weight: 700;
    color: #cc0000;
    margin-bottom: 10px;
    display: block;
}

/* Meta & Calculator */
.barateiro-product-meta {
    margin-top: auto;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.box-size-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #333;
}

.meta-value {
    font-weight: 700;
    color: #000;
}

/* Open Calc Button */
.open-calculator-btn {
    width: 100%;
    padding: 6px 10px;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.open-calculator-btn:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}

.open-calculator-btn i {
    color: #ffde00; /* Yellow Icon */
    background: #000;
    padding: 4px;
    border-radius: 3px;
    font-size: 0.8em;
}

/* Modal Styles */
.fc-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.fc-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 25px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
}

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

.fc-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 0.8;
}

.fc-close:hover,
.fc-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#fc-modal-title {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 1.25em;
    padding-right: 20px;
}

.fc-modal-subtitle {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95em;
}

.fc-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#fc-modal-input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#fc-modal-calc-btn {
    padding: 8px 15px;
    background: #000;
    color: #ffde00;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

#fc-modal-calc-btn:hover {
    background: #333;
}

.fc-modal-result {
    padding: 10px;
    background: #fff9c4; /* Brand Yellow Light */
    border: 1px solid #fbc02d;
    border-radius: 4px;
    margin-bottom: 15px;
    color: #333;
    font-size: 0.95em;
}

.fc-btn-primary {
    width: 100%;
    padding: 12px;
    background: #4CAF50; /* Green for success action? Or Brand Red? */
    background: var(--primary-color, #cc0000); /* Use brand red */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.fc-btn-primary:hover {
    filter: brightness(0.9);
}

.add_to_cart_button {
    width: 100%;
    text-align: center;
    background-color: var(--primary-color, #e63946) !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 10px 0 !important;
    font-weight: 600 !important;
    margin-top: 10px !important;
}

.add_to_cart_button:hover {
    background-color: #c92a37 !important;
}

/* ========================================
   MODERN CATEGORY & SEARCH PAGES STYLES
   ======================================== */

/* Breadcrumbs */
.breadcrumb-wrapper {
    padding: 15px 0;
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: #666;
    transition: color 0.2s;
}

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

.breadcrumb-separator {
    color: #ccc;
    font-size: 0.7rem;
}

.breadcrumb-current {
    color: var(--primary-black);
    font-weight: 600;
}

/* Archive/Category Page Header */
.archive-page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.archive-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.archive-page-header .section-header {
    position: relative;
    z-index: 2;
}

.archive-page-header .section-badge {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.archive-page-header .section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 10px;
    line-height: 1.2;
}

.archive-page-header .divider {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-yellow) 100%);
    border-radius: 2px;
    margin: 20px auto;
}

.archive-page-header .archive-description {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: 1.05rem;
    color: #555;
    line-height: 1.6;
}

.archive-page-header .result-count {
    margin-top: 15px;
    font-size: 0.95rem;
    color: #777;
    font-weight: 500;
}

.archive-page-header .search-term {
    color: var(--primary-red);
    font-weight: 700;
    background: rgba(211, 47, 47, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Shop Grid Layout */
.shop-grid-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Sidebar Filters */
.shop-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filter-widget {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.filter-widget:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-color: #e0e0e0;
}

.filter-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-black);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-widget h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--primary-red);
    border-radius: 2px;
}

.filter-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.filter-widget ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    color: #555;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.filter-widget ul li a:hover {
    background: var(--primary-red);
    color: white;
    transform: translateX(5px);
}

.filter-widget ul li.current-cat > a {
    background: var(--primary-red);
    color: white;
    font-weight: 600;
}

.filter-widget .count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.filter-widget ul li a:hover .count {
    background: rgba(255,255,255,0.2);
}

/* Price Filter */
.price-filter-slider {
    margin: 20px 0;
}

.price-filter-values {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

/* Shop Content Area */
.shop-content {
    min-width: 0;
}

/* Toolbar */
.shop-toolbar {
    background: white;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    flex-wrap: wrap;
    gap: 15px;
}

.woocommerce-result-count {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select {
    padding: 10px 35px 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.woocommerce-ordering select:hover,
.woocommerce-ordering select:focus {
    border-color: var(--primary-red);
    outline: none;
}

/* Products Grid Enhancement */
.shop-content .woocommerce ul.products {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.shop-content .woocommerce ul.products li.product {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.shop-content .woocommerce ul.products li.product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.05) 0%, rgba(255, 215, 0, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.shop-content .woocommerce ul.products li.product:hover::before {
    opacity: 1;
}

/* No Results / Empty State */
.no-products-found {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.no-products-found .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-products-found h3 {
    font-size: 1.8rem;
    color: var(--primary-black);
    margin-bottom: 15px;
}

.no-products-found p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-products-found .btn-creative {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.no-products-found .btn-creative:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.3);
}

/* Pagination Enhancement */
.woocommerce-pagination {
    margin-top: 50px;
    text-align: center;
}

.woocommerce-pagination ul {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul li {
    margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 2px solid #e0e0e0;
    color: #333;
    background: white;
}

.woocommerce-pagination ul li a:hover {
    border-color: var(--primary-red);
    background: var(--primary-red);
    color: white;
    transform: translateY(-2px);
}

.woocommerce-pagination ul li span.current {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .shop-grid-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }
    
    .archive-page-header {
        padding: 30px;
    }
    
    .archive-page-header .section-heading {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .shop-grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .shop-sidebar {
        position: static;
        order: 2;
    }
    
    .shop-content {
        order: 1;
    }
    
    .archive-page-header {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .archive-page-header .section-heading {
        font-size: 1.75rem;
    }
    
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .woocommerce-ordering select {
        width: 100%;
    }
    
    .shop-content .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .filter-widget {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .archive-page-header .section-heading {
        font-size: 1.5rem;
    }
    
    .shop-content .woocommerce ul.products {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }
}

/* Animation Keyframes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shop-content .woocommerce ul.products li.product {
    animation: slideInUp 0.5s ease-out backwards;
}

.shop-content .woocommerce ul.products li.product:nth-child(1) { animation-delay: 0.05s; }
.shop-content .woocommerce ul.products li.product:nth-child(2) { animation-delay: 0.1s; }
.shop-content .woocommerce ul.products li.product:nth-child(3) { animation-delay: 0.15s; }
.shop-content .woocommerce ul.products li.product:nth-child(4) { animation-delay: 0.2s; }
.shop-content .woocommerce ul.products li.product:nth-child(5) { animation-delay: 0.25s; }
.shop-content .woocommerce ul.products li.product:nth-child(6) { animation-delay: 0.3s; }

/* ========================================
   PRODUCT TITLE HOVER - IMAGE TOOLTIP
   ======================================== */

/* Hide add to cart button when hovering over product title */
.woocommerce ul.products li.product .woocommerce-loop-product__title:hover ~ .button,
.woocommerce ul.products li.product:has(.woocommerce-loop-product__title:hover) .button {
    opacity: 0;
    pointer-events: none;
}

/* Product title tooltip container */
.woocommerce-loop-product__title {
    position: relative;
    cursor: pointer;
}

/* Product image tooltip */
.woocommerce-loop-product__title::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 250px;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-image: var(--product-image);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    pointer-events: none;
    border: 3px solid white;
    margin-bottom: 10px;
}

/* Show tooltip on hover */
.woocommerce-loop-product__title:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip arrow */
.woocommerce-loop-product__title::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1001;
    pointer-events: none;
    margin-bottom: 0;
}

/* Show arrow on hover */
.woocommerce-loop-product__title:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Responsive adjustments for tooltip */
@media (max-width: 768px) {
    .woocommerce-loop-product__title::before {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .woocommerce-loop-product__title::before {
        width: 150px;
        height: 150px;
        left: 0;
        transform: translateX(0) translateY(-10px);
    }
    
    .woocommerce-loop-product__title:hover::before {
        transform: translateX(0) translateY(0);
    }
    
    .woocommerce-loop-product__title::after {
        left: 75px;
    }
}

/* ========================================
   HIDE ADD TO CART BUTTON ON PRODUCT CARDS
   ======================================== */

/* Hide the add to cart button for cleaner product display */
.woocommerce ul.products li.product .button {
    display: none !important;
}

/* Footer Responsive Columns */
@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
