/* Add tight margin above WooCommerce breadcrumbs on shop page */
body.woocommerce .woocommerce-breadcrumb {
    margin-top: 16px !important;
    margin-bottom: 12px !important;
    font-size: 12px;
}

/* Hide all page titles site-wide */
.page-title,
.entry-title,
.page-header {
    display: none !important;
}

/* Tighter top margin on WooCommerce shop (loja) page container */
body.woocommerce main.site-main.site-content > div.container,
body.woocommerce.page main.site-main.site-content > div.container,
body.woocommerce.archive main.site-main.site-content > div.container,
body.woocommerce.post-type-archive-product main.site-main.site-content > div.container {
    margin-top: 16px !important;
    padding: 0 12px;
}

/* My Account page - full width override */
body.woocommerce-account main.site-main.site-content > div.container {
    max-width: none !important;
    margin-top: 0 !important;
    padding: 0 3rem !important;
}
/* Remove top margin only for homepage hero section */
.site-main.site-content > .container > .content-area > section.hero:first-child {
    margin-top: 0 !important;
}
.content-area > section.hero:first-child {
    margin-top: 0 !important;
}
/*
Theme Name: ALLCP
Theme URI: https://allcomputerspro.com
Author: AllComputersPro
Author URI: https://allcomputerspro.com
Description: Clean, minimal, fast WordPress theme for WooCommerce catalog store
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: allcp
Tags: e-commerce, woocommerce, minimal, clean, mobile-first
*/

/* ===============================================
   RESET & BASE STYLES
   =============================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #B4173B;
    --secondary-color: #2E4463;
    --accent-white: #fafbfc;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f8f8f8;
    --border-color: #e0e0e0;
    --font-family: 'Maven Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
    --spacing: 1rem;
    --radius: 4px;
    --transition: all 0.3s ease;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    font-weight: 600;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1rem;
}

button, .button, input[type="submit"] {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-family);
    font-size: 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

button:hover, .button:hover, input[type="submit"]:hover {
    opacity: 0.9;
    color: #fff;
}

button.secondary, .button.secondary, input[type="submit"].secondary {
    background: var(--secondary-color);
    color: #fff;
}

button.secondary:hover, .button.secondary:hover, input[type="submit"].secondary:hover {
    opacity: 0.85;
    color: #fff;
}

/* 3D Button Style */
button.button-3d, .button.button-3d, a.button.button-3d {
    background: var(--primary-color);
    color: #fff;
    border: none;
    position: relative;
    box-shadow: 0 6px 0 rgba(46, 68, 99, 0.3), 0 8px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(0);
    transition: all 0.2s ease;
}

button.button-3d:hover, .button.button-3d:hover, a.button.button-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 rgba(46, 68, 99, 0.3), 0 12px 16px rgba(0, 0, 0, 0.16);
}

button.button-3d:active, .button.button-3d:active, a.button.button-3d:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 rgba(46, 68, 99, 0.3), 0 4px 8px rgba(0, 0, 0, 0.08);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ===============================================
   LAYOUT
   =============================================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
        padding: 0;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.content-area {
    margin: 0 auto;
}

/* ===============================================
   HEADER
   =============================================== */

.site-header {
    background: linear-gradient(90deg, #fff 80%, var(--accent-white) 100%);
    border-bottom: 3px solid var(--secondary-color);
    padding: 1.2rem var(--spacing);
    min-height: 70px;
    position: sticky;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(46, 68, 99, 0.08);
}

.site-header > .container {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
    max-width: none;
    margin: 0;
    padding: 0;
}

.site-branding {
    flex: 0 0 auto;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.site-branding img {
    max-height: 56px !important;
    margin-right: 0;
    display: block;
    transition: filter 0.2s;
    filter: drop-shadow(0 1px 2px rgba(46, 68, 99, 0.08));
}

.site-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.site-title a {
    color: var(--primary-color);
}

.site-description {
    margin: 0;
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===============================================
   NAVIGATION
   =============================================== */

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    overflow: visible !important;
}

 .main-navigation > ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #B4173B;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 0.15rem 0;
    display: block;
    letter-spacing: 0.01em;
    transition: color 0.2s, border-bottom 0.2s;
    border-bottom: 2px solid transparent;
    position: relative;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #8a1230;
    border-bottom: 2px solid #B4173B;
}

/* Header actions (cart + login) */
.header-actions {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    gap: 0.6rem;
}
.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    transition: background 0.15s, transform 0.08s, box-shadow 0.15s;
}
.cart-btn .cart-icon {
    font-size: 1.1rem;
    color: var(--primary-color);
}
.cart-count {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    border-radius: 999px;
    padding: 0.12rem 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}
.cart-btn:hover {
    background: rgba(180,23,59,0.06);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(180,23,59,0.08);
}
.login-btn {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, transform 0.08s, box-shadow 0.15s;
}
.login-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(180,23,59,0.12);
}

/* Header Contacto Button */
.header-contacto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #8a1230 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 0 rgba(46, 68, 99, 0.35), 0 8px 16px rgba(0, 0, 0, 0.14);
    transform: translateY(0);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-left: 1.2rem;
}

.header-contacto-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 rgba(46, 68, 99, 0.4), 0 12px 20px rgba(0, 0, 0, 0.18);
}

.header-contacto-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 rgba(46, 68, 99, 0.3), 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .header-contacto-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-actions { display: none; }
    
    /* Header search and contacto area on mobile */
    .header-search-contacto {
        flex-wrap: wrap;
        width: 100%;
        gap: 0.5rem !important;
        margin-top: 0.8rem;
        order: 3;
    }
    
    .header-search-form {
        flex: 1;
        min-width: 100%;
        gap: 0.3rem !important;
    }
    
    .header-search-form input[type="text"] {
        flex: 1;
        min-width: 120px;
        padding: 0.5rem 0.8rem !important;
        font-size: 0.9rem !important;
    }
    
    .header-search-form button {
        padding: 0.5rem 0.8rem !important;
        font-size: 1rem;
    }
    
    .header-contacto-btn {
        display: inline-block !important;
        flex: 1;
        min-width: 120px;
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 999px) {
    .header-search-contacto {
        flex-wrap: wrap;
    }
    
    .header-search-form input[type="text"] {
        min-width: 140px;
    }
    
    .header-contacto-btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.9rem !important;
    }
}


/* ===============================================
   NAVIGATION & MENU (Replaced with Responsive System)
   =============================================== */

/* Dropdown Menu */
.menu-item-has-children {
    position: relative;
    z-index: 1001;
}
.menu-item-has-children > a::after {
    content: " ▼";
    font-size: 0.7em;
    margin-left: 0.2em;
}
.main-navigation .sub-menu {
    z-index: 99999 !important;
    display: none;
    position: absolute;
    left: -80px;
    top: calc(100% - 5px);
    background: #fff;
    min-width: 280px;
    box-shadow: 0 4px 16px rgba(46,68,99,0.12);
    border-radius: 0 0 1rem 1rem;
    border-top: 3px solid var(--secondary-color);
    padding: 0.7rem 0;
}
.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu {
    display: block;
    left: -80px;
    right: auto;
}
/* Prevent global nav rules from affecting nested ULs */
.main-navigation > ul > li > .sub-menu { left: -80px; }
.sub-menu li {
    padding: 0;
    list-style: none;
}
.sub-menu a {
    color: #B4173B;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.7rem 2rem;
    display: block;
    border-bottom: none;
    background: none;
    transition: background 0.2s, color 0.2s;
    white-space: normal;
}
.sub-menu a:hover {
    background: #f8f8f8;
    color: #8a1230;
}
@media (max-width: 900px) {
    .sub-menu {
        position: static;
        min-width: 0;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
    }
    .sub-menu a {
        padding: 0.7rem 1rem;
    }
}

/* ===============================================
   FOOTER
   =============================================== */

.site-footer {
    position: relative;
    background: var(--secondary-color);
    border-top: 2px solid rgba(180, 23, 59, 0.3);
    margin-top: 2rem;
    padding: 0;
    overflow: hidden;
    color: #fff;
}
.footer-gradient {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.08) 60%, rgba(180,23,59,0.06) 100%);
    opacity: 1;
    pointer-events: none;
}
.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0 1.5rem 0;
    position: relative;
    z-index: 1;
}
.footer-section {
    display: flex;
    flex-direction: column;
}
.footer-brand-section {
    grid-column: 1;
}
.footer-section h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-section ul a:hover,
.footer-section ul a:focus {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}
.footer-section a:hover,
.footer-section a:focus {
    color: var(--primary-color);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.1);
}
.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
}
.footer-bottom p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.footer-bottom p a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1.5rem 0 1rem 0;
    }
    .footer-brand-section {
        grid-column: 1 / -1;
    }
    .footer-section h4 {
        font-size: 0.95rem;
    }
}

/* ===============================================
   CONTENT
   =============================================== */

.page-header {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--border-color);
}

.page-title {
    margin: 0;
    color: var(--text-color);
}

/* Services page styles */
.services-intro .lead {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 900px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.service-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
    margin-top: 1.5rem;
}
.service-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.08); }
.service-media img { width:100%; height:160px; object-fit:cover; border-radius:0.6rem 0.6rem 0 0; margin-bottom:1rem; }
.service-card h3 { color: var(--primary-color); margin: 0 0 0.6rem; font-size:1.1rem; }
.service-card p { color: var(--text-light); margin: 0 0 1rem; flex:1 1 auto; }
.service-card .button { margin-top: auto; }

.service-benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap:1rem; margin:1rem 0; }
.benefit { display:flex; gap:0.8rem; align-items:flex-start; background:transparent; padding:0.4rem 0; }
.benefit .icon { font-size:1.5rem; color:var(--primary-color); }
.benefit h4 { margin:0 0 0.2rem; font-size:0.95rem; }
.benefit p { margin:0; color:var(--text-light); font-size:0.9rem; }

.services-faq { margin-top:1rem; }
.services-faq details { background:#fff; border:1px solid var(--border-color); border-radius:0.6rem; padding:0.8rem 1rem; margin-bottom:0.8rem; }
.services-faq summary { cursor:pointer; font-weight:700; outline:none; }
.services-faq p { margin:0.5rem 0 0; color:var(--text-light); font-size:13px; }

@media (max-width:600px) {
    .service-media img { height:120px; }
    .service-card { padding:0.85rem; }
}


.entry-content {
    margin: 1rem 0;
}

.entry-content > * {
    margin-bottom: 0.8rem;
}

/* ===============================================
   WOOCOMMERCE OVERRIDES
   =============================================== */

/* Product Grid */
.woocommerce ul.products,
ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    grid-auto-rows: 1fr;
}

.woocommerce ul.products li.product,
ul.products li.product {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.75rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 360px;
    box-sizing: border-box;
}

.woocommerce ul.products li.product:hover,
ul.products li.product:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.woocommerce ul.products li.product img,
ul.products li.product img {
    margin: 0 auto 0.8rem;
    border-radius: calc(var(--radius));
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem;
    margin: 0.4rem 0;
    color: var(--text-color);
    line-height: 1.3;
}

.woocommerce ul.products li.product .price,
ul.products li.product .price {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
    margin: 0.3rem 0;
}

.woocommerce ul.products li.product .button,
ul.products li.product .button {
    margin-top: auto;
    width: 100%;
    border-radius: 2rem;
    padding: 6px 12px;
    font-size: 13px;
}

/* Responsive column counts */
@media (max-width: 1200px) {
    .woocommerce ul.products,
    ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .woocommerce ul.products,
    ul.products { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .woocommerce ul.products,
    ul.products { grid-template-columns: 1fr; }
    .woocommerce ul.products li.product,
    ul.products li.product { min-height: auto; }
}

/* Single Product */
.woocommerce div.product,
div.product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 1rem 0;
}

.woocommerce div.product div.images,
div.product div.images {
    position: relative;
}

.woocommerce div.product div.images img,
div.product div.images img {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.woocommerce div.product div.summary,
div.product div.summary {
    padding: 0.5rem 0;
}

.woocommerce div.product .product_title,
div.product .product_title {
    font-size: 1.75rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.woocommerce div.product p.price,
div.product p.price {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.woocommerce div.product .woocommerce-product-details__short-description,
div.product .woocommerce-product-details__short-description {
    margin: 0.8rem 0;
    line-height: 1.6;
    font-size: 14px;
}

/* Tabs */
.woocommerce-tabs {
    margin-top: 1.5rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 2px solid var(--border-color);
    gap: 0.5rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.woocommerce-Tabs-panel {
    padding: 1rem 0;
    font-size: 14px;
    line-height: 1.6;
    max-height: none !important;
    overflow: visible !important;
}

/* Description tab content */
.woocommerce-Tabs-panel#tab-description {
    padding: 1.5rem 0;
}

.woocommerce-Tabs-panel#tab-description p {
    margin-bottom: 1rem;
}

.woocommerce-Tabs-panel#tab-description ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.woocommerce-Tabs-panel#tab-description li {
    margin-bottom: 0.5rem;
}

/* Product short description in summary */
.product-short-description {
    margin: 0.5rem 0 1.5rem 0;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Hide cart elements in catalog mode */
.woocommerce .cart,
.woocommerce .product .cart,
.woocommerce .quantity,
.add_to_cart_button,
.single_add_to_cart_button {
    display: none !important;
}

/* Breadcrumbs */
.woocommerce-breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.woocommerce-breadcrumb a {
    color: var(--text-light);
}

.woocommerce-breadcrumb a:hover {
    color: var(--primary-color);
}

/* Pagination */
.woocommerce-pagination,
.pagination {
    margin: 1.5rem 0;
    text-align: center;
}

.woocommerce-pagination ul,
.pagination ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 0.5rem;
}

.woocommerce-pagination ul li,
.pagination ul li {
    display: inline-block;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span,
.pagination ul li a,
.pagination ul li span {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-color);
}

.woocommerce-pagination ul li span.current,
.pagination ul li span.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Messages & Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid;
    border-radius: var(--radius);
}

.woocommerce-message {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 0;
    color: #78350f;
/* Remove top margin from first element after header */
#page > main,
#page > .site-main,
#page > .site-content,
#page > main > .container,
#page > .site-main > .container,
#page > .site-content > .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
}

.woocommerce-error {
    background: #fef2f2;
    border-color: #dc2626;
    color: #7f1d1d;
}

/* ===============================================
   RESPONSIVE
   =============================================== */

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .woocommerce div.product,
    div.product {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: 1fr;
    }
}

/* ===============================================
   UTILITY CLASSES
   =============================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ===============================================
   REPARAÇÕES PAGE
   =============================================== */

.repair-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.repair-option-card {
    background: #fff;
    border: 2px solid var(--secondary-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(46, 68, 99, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.repair-option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(46, 68, 99, 0.15);
}

.repair-option-card h3 {
    color: var(--secondary-color);
    margin: 0 0 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.repair-option-card p {
    color: var(--text-light);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.repair-option-card .button {
    background-color: var(--secondary-color);
    color: #fff;
    display: inline-block;
}

.repair-option-card .button:hover {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .repair-options {
        gap: 1.5rem;
    }
    
    .repair-option-card {
        padding: 1.5rem;
    }
    
    .repair-option-card h3 {
        font-size: 1.15rem;
    }
}

.align-center {
    text-align: center;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

#page.site {
    margin: 0 !important;
    padding: 0 !important;
}

/* Add 30px top margin to all pages except the homepage and force it on shop (loja) page */
body:not(.home):not(.woocommerce) .site-main.site-content > .container {
    margin-top: 30px !important;
}
body.woocommerce main.site-main.site-content > div.container {
    margin-top: 30px !important;
}

#page.site > *:not(.site-header) {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.site-header {
    margin-bottom: 0 !important;
}

/* Full-width product description section - Compact & tight */
.acp-fullwidth-desc {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 16px 12px;
    background: var(--bg-light);
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 4px;
}

.acp-fullwidth-desc * {
    margin-bottom: 0.6rem;
    line-height: 1.5;
}

.acp-fullwidth-desc p {
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.acp-fullwidth-desc h2, .acp-fullwidth-desc h3, .acp-fullwidth-desc h4 {
    font-size: 16px;
    margin-bottom: 0.8rem;
    margin-top: 0.8rem;
}

.acp-fullwidth-desc *:last-child {
    margin-bottom: 0;
}

/* Compact pricing & cart section */
.woocommerce div.product .price {
    font-size: 18px;
    margin: 0.8rem 0;
}

.woocommerce div.product .woocommerce-product-rating {
    margin-bottom: 0.8rem;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    margin: 0.8rem 0;
    font-size: 14px;
    line-height: 1.5;
}

.woocommerce div.product form.cart {
    margin: 1rem 0;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.woocommerce div.product form.cart .quantity {
    margin: 0;
}

.woocommerce div.product form.cart .quantity input.qty {
    padding: 8px;
    min-height: auto;
    height: 40px;
}

.woocommerce div.product form.cart button {
    padding: 8px 16px;
    min-height: auto;
    margin: 0;
}

/* Compact related products */
.related.products {
    margin-top: 1.5rem;
}

.related.products h2 {
    font-size: 18px;
    margin-bottom: 1rem;
}

/* Tighter product meta */
.woocommerce-product-meta {
    margin-top: 0.8rem;
    font-size: 13px;
}

.woocommerce-product-meta .product-meta-line {
    margin: 0.4rem 0;
}

/* CSV Import Form - Compact Layout */
#allcp-csv-import-form {
    max-width: 600px;
    margin: 1rem 0;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#allcp-csv-import-form .form-group {
    margin-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

#allcp-csv-import-form label {
    font-weight: 500;
    font-size: 13px;
    color: #333;
}

#allcp-csv-import-form input[type="file"],
#allcp-csv-import-form input[type="checkbox"],
#allcp-csv-import-form button {
    padding: 8px;
    font-size: 13px;
    line-height: 1.4;
}

#allcp-csv-import-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    width: 100%;
    margin-top: 0.4rem;
}

#import-result {
    margin-top: 0.8rem;
    padding: 8px;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.4;
}

#import-result.success {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

#import-result.error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

/* ===============================================
   MY ACCOUNT PAGE STYLING
   =============================================== */

/* My Account Page Title */
.woocommerce-account .entry-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #8b1024 100%);
    color: #fff;
    padding: 2.5rem var(--spacing);
    margin: 0 auto 2rem auto;
    border-radius: 0.8rem;
    box-shadow: 0 8px 20px rgba(180, 23, 59, 0.15);
    max-width: var(--max-width);
    width: 100%;
}

.woocommerce-account .entry-header h1,
.woocommerce-account .entry-title {
    color: #fff;
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.woocommerce-myaccount-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    padding: 3rem var(--spacing);
    background: var(--accent-white);
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

.woocommerce-myaccount-sidebar {
    min-width: 0;
}

.woocommerce-myaccount-main {
    min-width: 0;
}

.woocommerce-account {
    background: var(--accent-white);
    padding: 0;
}

.woocommerce-account main.site-main {
    padding: 0;
    background: var(--accent-white);
}

.woocommerce-account .container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* My Account Navigation Sidebar */
.woocommerce-MyAccount-navigation {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 90px;
    z-index: 50;
    height: fit-content;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.woocommerce-MyAccount-navigation li {
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-MyAccount-navigation li:hover {
    background: var(--accent-white);
}

.woocommerce-MyAccount-navigation li.is-active {
    background: var(--primary-color);
}

.woocommerce-MyAccount-navigation li.is-active a {
    color: #fff;
}

.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-navigation a:hover {
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.woocommerce-MyAccount-navigation li.is-active a:hover {
    color: #fff;
    padding-left: 1.25rem;
}

/* My Account Content Area */
.woocommerce-MyAccount-content {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.woocommerce-MyAccount-content h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-white);
}

.woocommerce-MyAccount-content h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
}

.woocommerce-MyAccount-content p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Tables in My Account */
.woocommerce-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.shop_table thead tr {
    background: linear-gradient(90deg, var(--accent-white) 0%, #f5f7fa 100%);
    border-bottom: 2px solid var(--primary-color);
}

.shop_table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.shop_table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.shop_table tbody tr:hover {
    background: var(--accent-white);
}

.shop_table td {
    padding: 1rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

/* Order Status Badges */
.woocommerce-orders-table .order-status,
.order-status {
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 0.4rem;
    display: inline-block;
    font-size: 0.85rem;
}

.order-status.completed,
.order-status.wc-completed {
    background: #d4edda;
    color: #155724;
}

.order-status.processing,
.order-status.wc-processing {
    background: #fff3cd;
    color: #856404;
}

.order-status.pending,
.order-status.wc-pending {
    background: #e7e7e7;
    color: #383838;
}

.order-status.cancelled,
.order-status.wc-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-status.refunded,
.order-status.wc-refunded {
    background: #e2e3e5;
    color: #383838;
}

.order-status.failed,
.order-status.wc-failed {
    background: #f8d7da;
    color: #721c24;
}

/* Links in tables */
.shop_table a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.shop_table a:hover {
    color: #8b1024;
    text-decoration: underline;
}

/* Forms in My Account */
.woocommerce-form-row {
    margin-bottom: 1.5rem;
}

.form-fieldset {
    background: linear-gradient(135deg, var(--accent-white) 0%, #f5f7fa 100%);
    padding: 2rem;
    border-radius: 0.8rem;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

.form-fieldset h3 {
    color: var(--primary-color);
    margin: 0 0 1.5rem 0;
    font-size: 1.15rem;
}

.form-fieldset:last-of-type {
    margin-bottom: 1.5rem;
}

.woocommerce-form-row input[type="text"],
.woocommerce-form-row input[type="email"],
.woocommerce-form-row input[type="password"],
.woocommerce-form-row input[type="tel"],
.woocommerce-form-row input[type="number"],
.woocommerce-form-row select,
.woocommerce-form-row textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

/* Extra padding for password fields to accommodate eye icon */
.woocommerce-form-row input[type="password"],
p.woocommerce-form-row input[type="password"] {
    padding-right: 45px;
}

.woocommerce-form-row input:focus,
.woocommerce-form-row select:focus,
.woocommerce-form-row textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(180, 23, 59, 0.1);
}

.woocommerce-form-row label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
}

.woocommerce-form-row .required {
    color: var(--primary-color);
    font-weight: 700;
}

/* Remove validation error backgrounds under password fields */
.woocommerce-form-row input[type="password"] + .woocommerce-password-strength {
    display: none;
}

.woocommerce-form-row ul.woocommerce-error {
    display: none;
}

/* Remove error styling from input fields */
.woocommerce-form-row input.woocommerce-Input--text.has-error,
.woocommerce-form-row input.woocommerce-Input--password.has-error,
.form-row.woocommerce-form-row--wide input[aria-invalid="true"] {
    border-color: var(--border-color) !important;
    background: #fff !important;
}

/* Hide error/validation messages */
.form-row .woocommerce-error,
.woocommerce-form-row .woocommerce-error,
li.woocommerce-error,
ul.woocommerce-error {
    display: none !important;
}

/* Style password visibility toggle buttons as eye icons */
.show-password-input,
button.show-password-input,
[class*="password"][class*="toggle"],
.woocommerce-form-row .show-password-input {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    right: 12px !important;
    top: 38% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    border: none !important;
    color: var(--text-light) !important;
    cursor: pointer !important;
    font-size: 1.1rem !important;
    padding: 0.5rem 0.75rem !important;
    transition: color 0.2s ease !important;
    z-index: 10 !important;
    line-height: 1 !important;
    min-width: auto !important;
    height: auto !important;
    width: auto !important;
    box-shadow: none !important;
}

.show-password-input:hover,
button.show-password-input:hover,
.woocommerce-form-row .show-password-input:hover {
    color: var(--primary-color) !important;
    background: transparent !important;
}

/* Custom password toggle button */
.password-toggle-btn:hover {
    color: var(--primary-color) !important;
}

.password-toggle-btn:focus {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 2px !important;
}

/* Buttons in My Account */
.woocommerce-MyAccount-content .button,
.woocommerce-address-fields .button,
.edit-account .button {
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-address-fields .button:hover,
.edit-account .button:hover {
    background: #8b1024;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Hide password strength hint */
.woocommerce-password-hint,
.edit-account .form-row small,
.password-strength-hint {
    display: none !important;
}

.woocommerce-MyAccount-content .button.secondary {
    background: var(--secondary-color);
}

.woocommerce-MyAccount-content .button.secondary:hover {
    background: #1e2f42;
}

/* Address Fields Wrapper */
.woocommerce-address-fields {
    background: linear-gradient(135deg, var(--accent-white) 0%, #f5f7fa 100%);
    padding: 2rem;
    border-radius: 0.8rem;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 2rem;
}

.woocommerce-address-fields h3 {
    color: var(--primary-color);
    margin-top: 0;
}

/* No orders / downloads message */
.woocommerce-MyAccount-content > p {
    background: linear-gradient(135deg, rgba(180, 23, 59, 0.05) 0%, rgba(46, 68, 99, 0.05) 100%);
    padding: 2rem;
    border-radius: 0.8rem;
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .woocommerce-myaccount-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .woocommerce-MyAccount-navigation {
        position: static;
    }

    .woocommerce-MyAccount-navigation ul {
        flex-direction: row;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .woocommerce-MyAccount-navigation li {
        border: 1px solid var(--border-color);
        border-radius: 0.5rem;
        flex-shrink: 0;
    }

    .woocommerce-MyAccount-navigation a {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    .woocommerce-MyAccount-content {
        padding: 1.5rem;
    }

    .shop_table th,
    .shop_table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }

    .woocommerce-address-fields {
        padding: 1.5rem;
    }
}

/* ===============================================
   ARTICLE CATALOG - ORGANIC/CREATIVE DESIGN
   =============================================== */

.article-catalog {
    background: linear-gradient(180deg, #fafbfc 0%, #f5f7fa 100%);
    padding-bottom: 4rem;
}

/* Hero Section */
.catalog-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: 3rem;
}

.catalog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 1rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

/* Catalog Filters */
.catalog-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #fff;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 23, 59, 0.15);
}

.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(180, 23, 59, 0.25);
}

.filter-icon {
    font-size: 1.1em;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Article Cards - Organic Design */
.article-card {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    opacity: 1;
    animation: fadeInScale 0.6s ease-out;
}

.article-card.hidden {
    display: none;
    opacity: 0;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.card-wrapper {
    background: #fff;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    border: 1px solid rgba(180, 23, 59, 0.08);
}

.article-card:hover .card-wrapper {
    box-shadow: 0 12px 32px rgba(180, 23, 59, 0.2);
    transform: translateY(-8px);
    border-color: rgba(180, 23, 59, 0.15);
}

/* Card Image */
.card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.article-card:hover .card-image img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.article-card:hover .card-overlay {
    opacity: 1;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f3f7 0%, #e4e8f0 100%);
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.5;
}

/* Card Content */
.card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.post-date,
.card-category {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.article-card:hover .post-date,
.article-card:hover .card-category {
    color: var(--primary-color);
}

.date-icon,
.cat-icon {
    font-size: 0.95em;
}

.card-category {
    background: rgba(180, 23, 59, 0.08);
    color: var(--primary-color);
    padding: 0.3rem 0.75rem;
    border-radius: 1rem;
    font-weight: 500;
}

.article-card:hover .card-category {
    background: rgba(180, 23, 59, 0.12);
}

.card-title {
    font-size: 1.35rem;
    line-height: 1.4;
    margin: 0 0 0.75rem;
    transition: color 0.3s ease;
}

.card-title a {
    color: var(--text-color);
    text-decoration: none;
}

.article-card:hover .card-title a {
    color: var(--primary-color);
}

.card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(180, 23, 59, 0.08);
    margin-top: auto;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.read-more-btn::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.read-more-btn:hover::after {
    width: 100%;
}

.read-more-btn:hover {
    color: var(--secondary-color);
}

.read-more-btn:hover::after {
    background: var(--secondary-color);
}

.arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.read-more-btn:hover .arrow {
    transform: translateX(4px);
}

.read-time {
    color: var(--text-light);
    font-size: 0.85rem;
    background: rgba(180, 23, 59, 0.05);
    padding: 0.4rem 0.75rem;
    border-radius: 0.8rem;
    white-space: nowrap;
    font-weight: 500;
}

/* No Articles Message */
.no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-articles p {
    font-size: 1.1rem;
    margin: 0;
}

/* Page Content */
.page-content {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-top: 2rem;
}

.entry-content {
    max-width: 100%;
}

.entry-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .catalog-hero {
        padding: 2.5rem 1.5rem;
        clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
        margin-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .articles-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .catalog-filters {
        margin-bottom: 2rem;
        gap: 0.3rem;
    }

    .filter-group {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .card-wrapper {
        border-radius: 1rem;
    }

    .card-image {
        height: 200px;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-title {
        font-size: 1.15rem;
    }

    .card-meta {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .page-content {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .catalog-hero {
        padding: 2rem 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        padding: 1.25rem;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .read-time {
        width: 100%;
        text-align: center;
    }
}

/* ===============================================
   COMPREHENSIVE MOBILE & TABLET OPTIMIZATION
   =============================================== */

/* MOBILE: Extra Small (320px - 479px) - Updated Responsive System */
@media (max-width: 479px) {
    /* Typography */
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    h4 { font-size: 1rem; }
    h5 { font-size: 0.95rem; }
    h6 { font-size: 0.9rem; }
    
    p, body { font-size: 0.95rem; }
    
    /* NOTE: Header & Navigation now handled by new responsive system above */
    
    /* Products Grid */
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    /* WooCommerce Product Grid */
    .woocommerce ul.products li.product {
        margin: 0 !important;
    }
    
    /* Section Spacing */
    .site-main > * {
        margin-top: 1.5rem;
    }
    
    /* Product Sections */
    .allcp-section {
        padding: 1.5rem;
    }
    
    .allcp-section__title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
}

/* MOBILE: Small (480px - 599px) */
@media (min-width: 480px) and (max-width: 599px) {
    html {
        font-size: 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .site-header {
        padding: 1rem var(--spacing);
        min-height: 65px;
    }
    
    .site-branding img {
        max-height: 44px !important;
    }
    
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
}

/* TABLET: Medium (600px - 899px) */
@media (min-width: 600px) and (max-width: 899px) {
    html {
        font-size: 15px;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.4rem; }
    
    /* Header Adjustments */
    .site-header {
        padding: 1rem var(--spacing);
    }
    
    .site-branding img {
        max-height: 48px !important;
    }
    
    .main-navigation > ul {
        gap: 1rem;
    }
    
    .main-navigation a {
        font-size: 0.9rem;
        padding: 0.1rem 0;
    }
    
    .header-contacto-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin-left: 0.8rem;
    }
    
    /* Products Grid */
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.2rem;
    }
    
    /* Product Page */
    .allcp-product__main-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .allcp-product__buybox {
        position: sticky;
        top: 80px;
    }
    
    /* Footer */
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem 0 1rem 0;
    }
    
    /* Forms */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    input[type="number"],
    textarea,
    select {
        padding: 0.7rem;
        font-size: 1rem;
    }
    
    button, .button, input[type="submit"],
    button.button-3d, .button.button-3d {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
    }
}

/* TABLET: Large (900px - 1023px) */
@media (min-width: 900px) and (max-width: 1023px) {
    .site-header > .container {
        gap: 1.2rem;
    }
    
    .main-navigation > ul {
        gap: 1.2rem;
    }
    
    .main-navigation a {
        font-size: 0.95rem;
    }
    
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.5rem;
    }
    
    .allcp-product__main-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-main {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* DESKTOP: Large (1024px+) */
@media (min-width: 1024px) {
    .main-navigation > ul {
        gap: 1.5rem;
    }
    
    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 2rem;
    }
}

/* ===============================================
   RESPONSIVE HEADER & FOOTER SYSTEM
   =============================================== */

/* Base Header & Footer Container (Mobile First) */
.header-wrapper,
.footer-wrapper {
    width: 100%;
    padding: 0;
}

.site-header {
    position: relative;
    z-index: 1001;
    overflow: visible;
}

.header-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 var(--spacing);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.footer-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 2rem var(--spacing);
}

/* ===============================================
   MOBILE: Extra Small (max-width: 640px)
   =============================================== */

@media (max-width: 640px) {
    /* Header Mobile Base */
    .site-header {
        padding: 0.75rem var(--spacing);
        min-height: 56px;
    }
    
    .header-wrapper {
        width: 100%;
    }
    
    .header-container {
        width: 100%;
        flex-wrap: nowrap;
        gap: 0;
        position: relative;
        overflow: visible;
    }
    
    /* Mobile Branding - Left Aligned */
    .site-branding {
        flex: 0 0 auto;
        margin-left: 0;
        margin-right: auto;
        padding: 0.5rem 0;
        z-index: 1002;
    }
    
    .site-branding img {
        max-height: 36px !important;
    }
    
    /* Mobile Menu Toggle - Right Aligned */
    .menu-toggle {
        display: flex !important;
        flex: 0 0 auto;
        background: transparent;
        border: none;
        padding: 0.4rem 0.6rem;
        margin: 0;
        margin-left: auto;
        font-size: 1.5rem;
        color: var(--text-color);
        cursor: pointer;
        z-index: 1001;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }
    
    .menu-toggle:hover,
    .menu-toggle:focus {
        color: var(--primary-color);
    }
    
    /* Mobile Navigation - Hidden by Default */
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        overflow-y: auto;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        max-height: calc(100vh - 56px);
    }
    
    .main-navigation.toggled {
        display: flex !important;
        flex-direction: column;
    }
    
    .main-navigation > ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        margin: 0;
        list-style: none;
    }
    
    .main-navigation li {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem var(--spacing);
        font-size: 0.95rem;
        border-bottom: none;
        color: var(--text-color);
    }
    
    .main-navigation a:hover {
        color: var(--primary-color);
        background: rgba(180, 23, 59, 0.04);
        border-bottom: none;
    }
    
    /* Dropdown Menus on Mobile */
    .sub-menu {
        display: none !important;
        position: static !important;
        background: rgba(0, 0, 0, 0.02) !important;
        box-shadow: none !important;
        border: none !important;
        min-width: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .menu-item-has-children > a::after {
        content: " ▼";
        font-size: 0.65em;
        transition: transform 0.3s ease;
    }
    
    .menu-item-has-children.expanded > a::after {
        transform: rotate(180deg);
    }
    
    .menu-item-has-children.expanded > .sub-menu {
        display: flex !important;
        flex-direction: column;
        gap: 0;
    }
    
    .sub-menu a {
        padding: 0.75rem var(--spacing) 0.75rem calc(var(--spacing) * 2) !important;
        font-size: 0.9rem;
        border: none;
    }
    
    /* Header Actions Hidden on Mobile */
    .header-search-contacto {
        display: none !important;
    }
    
    .header-actions {
        display: none !important;
    }
    
    /* Footer Mobile - Single Column */
    .footer-wrapper {
        padding: 0;
    }
    
    .footer-container {
        padding: 1.5rem var(--spacing);
    }
    
    .footer-main {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        padding: 0;
    }
    
    .footer-brand-section {
        grid-column: auto;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-brand-section img {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-section ul {
        list-style: none;
        padding: 0;
    }
    
    .footer-section li {
        margin-bottom: 0.6rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .footer-bottom {
        padding: 1rem var(--spacing);
        margin-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    /* Hide Desktop-Only Items on Mobile */
    .desktop-only {
        display: none !important;
    }
}

/* ===============================================
   TABLET: Medium (641px – 1024px)
   =============================================== */

@media (min-width: 641px) and (max-width: 1024px) {
    /* Header Tablet - Logo Left, Navigation Visible */
    .site-header {
        padding: 0.9rem var(--spacing);
        min-height: 64px;
    }
    
    .header-container {
        width: 100%;
        flex-wrap: nowrap;
        gap: 1rem;
    }
    
    /* Branding */
    .site-branding {
        order: 1;
        flex: 0 0 auto;
        margin-right: 0;
    }
    
    .site-branding img {
        max-height: 44px !important;
    }
    
    /* Navigation Visible on Tablet */
    .menu-toggle {
        display: none !important;
    }
    
    .main-navigation {
        order: 2;
        flex: 1;
        display: flex !important;
        position: static !important;
        top: auto;
        left: auto;
        right: auto;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        max-height: none;
        z-index: auto;
        overflow: visible;
    }
    
    .main-navigation > ul {
        gap: 0.8rem;
        padding: 0;
        flex-wrap: wrap;
    }
    
    .main-navigation li {
        border-bottom: none;
    }
    
    .main-navigation a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        border-bottom: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .main-navigation a:hover,
    .main-navigation .current-menu-item > a {
        border-bottom-color: var(--primary-color);
        color: var(--primary-color);
    }
    
    /* Show Desktop-Only Items on Tablet and up */
    .desktop-only {
        display: list-item !important;
    }
    
    /* Dropdown Menus on Tablet */
    .sub-menu {
        display: none !important;
        position: absolute !important;
        top: calc(100% - 5px) !important;
        left: 0 !important;
        min-width: 200px !important;
        background: #fff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
        border: none !important;
        border-top: 3px solid var(--primary-color) !important;
        border-radius: 0 0 0.5rem 0.5rem !important;
        padding: 0.5rem 0 !important;
        margin: 0 !important;
        z-index: 999;
    }
    
    .menu-item-has-children:hover > .sub-menu,
    .menu-item-has-children:focus-within > .sub-menu {
        display: flex !important;
        flex-direction: column;
    }
    
    .sub-menu a {
        padding: 0.75rem 1.2rem !important;
        color: var(--text-color) !important;
        border: none;
        font-size: 0.9rem;
        background: transparent;
    }
    
    .sub-menu a:hover {
        background: rgba(180, 23, 59, 0.06) !important;
        color: var(--primary-color) !important;
    }
    
    /* Header Actions on Tablet */
    .header-search-contacto {
        order: 3;
        display: flex !important;
        gap: 0.6rem;
        margin-left: auto;
        align-items: center;
    }
    
    .header-contacto-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin-left: 0;
    }
    
    /* Footer Tablet - 2 Columns */
    .footer-main {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer-brand-section {
        grid-column: 1 / -1;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .footer-section {
        text-align: left;
    }
}

/* ===============================================
   DESKTOP: Standard (1025px – 1440px)
   =============================================== */

@media (min-width: 1025px) and (max-width: 1440px) {
    /* Header Desktop - Full Horizontal Layout */
    .site-header {
        padding: 1.2rem var(--spacing);
        min-height: 70px;
    }
    
    .header-container {
        width: 100%;
        flex-wrap: nowrap;
        gap: 1.5rem;
    }
    
    /* Branding */
    .site-branding {
        flex: 0 0 auto;
        margin-right: 1rem;
    }
    
    .site-branding img {
        max-height: 50px !important;
    }
    
    /* Navigation Full Width */
    .menu-toggle {
        display: none !important;
    }
    
    .main-navigation {
        flex: 1;
        display: flex !important;
        position: static;
        background: transparent;
        border: none;
        padding: 0;
        max-height: none;
    }
    
    .main-navigation > ul {
        gap: 1.5rem;
        padding: 0;
    }
    
    .main-navigation a {
        font-size: 0.98rem;
        padding: 0.2rem 0;
        border-bottom: 2px solid transparent;
    }
    
    .main-navigation a:hover,
    .main-navigation .current-menu-item > a {
        border-bottom-color: var(--primary-color);
        color: var(--primary-color);
    }
    
    /* Dropdown Menus */
    .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: #fff;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        border-top: 3px solid var(--primary-color);
        border-radius: 0 0 0.6rem 0.6rem;
        padding: 0.6rem 0;
        margin: 0.2rem 0 0 0;
        z-index: 999;
    }
    
    .menu-item-has-children:hover > .sub-menu,
    .menu-item-has-children:focus-within > .sub-menu {
        display: flex;
        flex-direction: column;
    }
    
    .sub-menu a {
        padding: 0.8rem 1.4rem;
        font-size: 0.95rem;
        color: var(--text-color);
        border: none;
    }
    
    .sub-menu a:hover {
        background: rgba(180, 23, 59, 0.05);
        color: var(--primary-color);
    }
    
    /* Header Actions */
    .header-search-contacto {
        display: flex !important;
        gap: 1rem;
        margin-left: auto;
        align-items: center;
    }
    
    .header-actions {
        display: flex;
        gap: 0.8rem;
    }
    
    .header-contacto-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.98rem;
        margin-left: 0;
    }
    
    /* Footer Desktop - 3-4 Columns */
    .footer-main {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem;
        padding: 2rem 0 1.5rem 0;
    }
    
    .footer-brand-section {
        grid-column: 1;
        text-align: left;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
}

/* ===============================================
   DESKTOP: Wide (1441px+)
   =============================================== */

@media (min-width: 1441px) {
    /* Constrain Content Width */
    .header-wrapper,
    .footer-wrapper {
        max-width: 1500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .header-container,
    .footer-container {
        max-width: 1500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Header Wide - Premium Spacing */
    .site-header {
        padding: 1.3rem var(--spacing);
        min-height: 75px;
    }
    
    .header-container {
        gap: 2rem;
    }
    
    /* Branding */
    .site-branding {
        flex: 0 0 auto;
        margin-right: 2rem;
    }
    
    .site-branding img {
        max-height: 56px !important;
    }
    
    /* Hide Menu Toggle on Ultra-Wide Screens */
    .menu-toggle {
        display: none !important;
    }
    
    /* Navigation Wide */
    .main-navigation > ul {
        gap: 2rem;
    }
    
    .main-navigation a {
        font-size: 1rem;
        padding: 0.25rem 0;
    }
    
    /* Dropdown Menus */
    .sub-menu {
        min-width: 240px;
        padding: 0.8rem 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
    
    .sub-menu a {
        padding: 0.9rem 1.6rem;
        font-size: 0.98rem;
    }
    
    /* Header Actions */
    .header-search-contacto {
        gap: 1.2rem;
    }
    
    .header-contacto-btn {
        padding: 0.8rem 1.8rem;
        font-size: 1rem;
    }
    
    /* Footer Wide - 4 Columns with Increased Spacing */
    .footer-main {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 2.5rem;
        padding: 2.5rem 0 2rem 0;
    }
    
    .footer-brand-section {
        grid-column: 1;
    }
    
    .footer-section {
        text-align: left;
    }
    
    .footer-section h4 {
        font-size: 1.05rem;
    }
    
    .footer-bottom {
        padding: 2rem var(--spacing);
    }
}

/* ===============================================
   ACCESSIBILITY & INTERACTIONS
   =============================================== */

/* Focus States for Keyboard Navigation */
.menu-toggle:focus,
.main-navigation a:focus,
.header-contacto-btn:focus,
.footer-section a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .menu-toggle,
    .main-navigation,
    .header-contacto-btn,
    .site-header,
    .site-footer,
    .footer-section a {
        transition: none !important;
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: more) {
    .main-navigation a {
        font-weight: 700;
    }
    
    .header-contacto-btn {
        border: 2px solid #fff;
    }
    
    .footer-section a {
        text-decoration: underline;
    }
}
    
    .allcp-product__main-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* ===============================================
   MOBILE-SPECIFIC IMPROVEMENTS
   =============================================== */

/* Touch-friendly spacing for mobile */
@media (max-width: 768px) {
    /* Increase touch target sizes */
    button, .button, input[type="submit"], a.button,
    .menu-item-has-children > a,
    .add-to-cart {
        min-height: 44px;
        min-width: 44px;
    }
    
    .single_add_to_cart_button {
        width: 100% !important;
        min-height: 48px;
        font-size: 1rem !important;
    }
    
    /* Better spacing for form elements */
    form {
        margin-bottom: 1.5rem;
    }
    
    input, textarea, select {
        margin-bottom: 1rem;
    }
    
    /* Better WooCommerce product cards */
    .woocommerce ul.products li.product {
        padding: 0 !important;
    }
    
    .woocommerce-LoopProduct-link {
        display: flex;
        flex-direction: column;
    }
    
    /* Improve product grid images */
    .woocommerce ul.products li.product img,
    .woocommerce-placeholder {
        height: auto;
        min-height: 140px;
    }
    
    /* Better gallery layout */
    .allcp-gallery__main {
        min-height: 300px;
    }
    
    .allcp-gallery__thumbnails {
        margin-top: 1rem;
    }
    
    .allcp-gallery__thumb {
        max-width: 70px;
    }
    
    /* Better related products grid */
    .allcp-related-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Improve footer on mobile */
    .footer-main {
        gap: 1.2rem;
    }
    
    .footer-column:not(:last-child) {
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Better table scrolling */
    .allcp-specs-table {
        font-size: 0.9rem;
    }
    
    .allcp-specs-table td {
        padding: 0.8rem 0.5rem !important;
    }
    
    /* Better filter layout */
    .allcp-filters-sidebar {
        position: static;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .allcp-filter-btn {
        width: 100%;
    }
    
    /* Better product details */
    .allcp-buybox {
        position: static;
    }
    
    .allcp-buybox__price {
        font-size: 1.3rem;
    }
    
    /* Repair cards responsive */
    .repair-options {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .repair-option-card {
        padding: 1.2rem;
    }
    
    .repair-option-card h3 {
        font-size: 1.1rem;
    }
}

/* ===============================================
   TABLET-SPECIFIC IMPROVEMENTS (600px - 768px)
   =============================================== */

@media (min-width: 600px) and (max-width: 768px) {
    .allcp-related-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.2rem !important;
    }
    
    .allcp-gallery__main {
        min-height: 350px;
    }
    
    .repair-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ===============================================
   LANDSCAPE MOBILE (max-width: 768px and landscape)
   =============================================== */

@media (max-width: 768px) and (orientation: landscape) {
    .site-header {
        min-height: 55px;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    h3 { font-size: 1rem; }
    
    .allcp-gallery__main {
        min-height: 250px;
    }
    
    .allcp-product__main-wrapper {
        gap: 1.5rem;
    }

    .allcp-shop-search form {
        max-width: 400px;
    }

    .allcp-shop-search input[type="search"] {
        padding: 8px 12px;
        font-size: 14px;
    }
}

/* Shop Search Bar */
.allcp-shop-search {
    max-width: 800px;
    margin: 1.5rem auto;
    position: relative;
    z-index: 100;
}

.allcp-shop-search-inner {
    position: relative;
    display: flex;
    align-items: center;
}

.allcp-shop-search-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

.allcp-shop-search input[type="text"] {
    width: 100%;
    padding: 1rem 1.2rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 0.8rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background: #fff;
}

.allcp-shop-search input[type="text"]:focus {
    border-color: var(--secondary-color);
}

#shopNoResults {
    text-align: center;
    color: #999;
    padding: 1rem;
    font-size: 0.95rem;
}

/* Live Search Results Container */
.allcp-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: white;
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 0.8rem 0.8rem;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.allcp-search-results.active {
    display: block;
}

.allcp-search-results .result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.allcp-search-results .result-item:hover {
    background-color: rgba(46, 68, 99, 0.05);
}

.allcp-search-results .result-item:last-child {
    border-bottom: none;
}

.allcp-search-results .result-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 0.4rem;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.allcp-search-results .result-content {
    flex: 1;
}

.allcp-search-results .result-title {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 14px;
    margin: 0 0 4px;
}

.allcp-search-results .result-title strong {
    color: var(--primary-color);
}

.allcp-search-results .result-price {
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .allcp-shop-search {
        margin: 1rem auto;
    }

    .allcp-shop-search input[type="text"] {
        font-size: 0.9rem;
        padding: 0.8rem 1rem 0.8rem 2.8rem;
    }

    .allcp-search-results {
        max-height: 300px;
    }

    .allcp-search-results .result-image {
        width: 40px;
        height: 40px;
    }

    .allcp-search-results .result-title {
        font-size: 13px;
    }
}


