/**
 * Lovitex Theme - Main Stylesheet
 * @package Lovitex
 * @version 1.7.0
 */

/* =========================================
   Variables
   ========================================= */
:root {
    --primary: #1E3A5F;
    --primary-dark: #162d4a;
    --secondary: #2C5282;
    --accent: #FF6B35;
    --accent-hover: #e55a28;
    --highlight: #FFA500;
    --text: #4a5568;
    --text-dark: #1a202c;
    --gray-50: #f9fafb;
    --gray-100: #f7fafc;
    --gray-200: #e2e8f0;
    --gray-600: #718096;
    --white: #ffffff;
}

/* =========================================
   Reset
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); line-height: 1.6; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* =========================================
   Container
   ========================================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   Top Bar
   ========================================= */
.top-bar { background: var(--primary); color: var(--white); padding: 8px 0; font-size: 14px; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-bar-contact { display: flex; gap: 20px; }
.top-bar-contact a { color: var(--white); transition: color 0.3s; }
.top-bar-contact a:hover { color: var(--highlight); }
.top-bar-tagline { display: none; font-size: 13px; opacity: 0.9; }
@media (min-width: 768px) { .top-bar-tagline { display: block; } }

/* =========================================
   Header
   ========================================= */
.site-header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; gap: 20px; }
.site-logo a { font-size: 24px; font-weight: bold; color: var(--primary); }
.site-logo img { max-height: 50px; width: auto; }
.main-nav { display: none; }
@media (min-width: 768px) { .main-nav { display: block; } }
.primary-menu { display: flex; gap: 30px; }
.primary-menu li a { color: var(--text); font-weight: 500; transition: color 0.3s; }
.primary-menu li a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* =========================================
   Search Panel (Modal/Overlay)
   ========================================= */
.header-search-wrapper { position: relative; }

.search-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
}

.search-panel-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.search-panel-modal {
    width: 100%;
    max-width: 600px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.search-panel-overlay.is-open .search-panel-modal {
    transform: translateY(0);
}

.search-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.search-panel-header svg {
    flex-shrink: 0;
    color: var(--gray-600);
}

.search-panel-header input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    color: var(--text-dark);
    background: transparent;
}

.search-panel-header input::placeholder {
    color: var(--gray-600);
}

.search-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gray-600);
    transition: all 0.2s;
    flex-shrink: 0;
}

.search-close:hover {
    background: var(--gray-200);
    color: var(--text-dark);
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
}

.search-placeholder,
.search-loading,
.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: var(--gray-600);
    font-size: 14px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: var(--gray-50);
}

.search-result-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-info h5 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* =========================================
   Header Icon Wrapper (Cart, User)
   ========================================= */
.header-icon-wrapper { position: relative; }
.header-icon-btn { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gray-100); color: var(--primary); position: relative; transition: background 0.3s; }
.header-icon-btn:hover { background: var(--gray-200); }
.header-icon-badge { position: absolute; top: -2px; right: -2px; background: var(--accent); color: var(--white); font-size: 10px; font-weight: bold; min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* =========================================
   Cart Panel (Modal/Overlay)
   ========================================= */
.cart-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
}

.cart-panel-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cart-panel-modal {
    width: 100%;
    max-width: 400px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s;
    max-height: calc(100vh - 120px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cart-panel-overlay.is-open .cart-panel-modal {
    transform: translateY(0);
}

.mini-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.mini-cart-header h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.mini-cart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gray-600);
    transition: all 0.2s;
}

.mini-cart-close:hover {
    background: var(--gray-200);
    color: var(--text-dark);
}

.mini-cart-body {
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

/* Cart Items */
.mini-cart-items {
    padding: 10px 0;
    max-height: 300px;
    overflow-y: auto;
}

/* Hide ugly scrollbar */
.mini-cart-items::-webkit-scrollbar {
    width: 4px;
}
.mini-cart-items::-webkit-scrollbar-track {
    background: transparent;
}
.mini-cart-items::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 4px;
}

.mini-cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    transition: background 0.2s;
}

.mini-cart-item:hover {
    background: var(--gray-50);
}

.mini-cart-item-image {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}

.mini-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-cart-item-details {
    flex: 1;
    min-width: 0;
}

.mini-cart-item-details h5 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-cart-item-qty {
    font-size: 13px;
    color: var(--gray-600);
}

.mini-cart-item-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--gray-600);
    transition: all 0.2s;
    flex-shrink: 0;
}

.mini-cart-item-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Subtotal */
.mini-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid var(--gray-200);
    font-size: 15px;
}

.mini-cart-subtotal span {
    color: var(--gray-600);
}

.mini-cart-subtotal strong {
    font-size: 18px;
    color: var(--primary);
}

/* Buttons */
.mini-cart-buttons {
    padding: 15px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-cart-btn {
    display: block;
    text-align: center;
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.mini-cart-btn-primary {
    background: var(--accent);
    color: var(--white);
}

.mini-cart-btn-primary:hover {
    background: var(--accent-hover);
}

.mini-cart-btn-secondary {
    background: var(--gray-100);
    color: var(--text-dark);
}

.mini-cart-btn-secondary:hover {
    background: var(--gray-200);
}

/* Empty Cart */
.mini-cart-empty {
    padding: 40px 20px;
    text-align: center;
}

.mini-cart-empty-icon {
    font-size: 50px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.8;
}

.mini-cart-empty p {
    color: var(--gray-600);
    margin-bottom: 20px;
    font-size: 15px;
}

/* =========================================
   User Panel (Modal/Overlay)
   ========================================= */
.user-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 20px;
}

.user-panel-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.user-panel-modal {
    width: 100%;
    max-width: 320px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    transition: transform 0.3s;
}

.user-panel-overlay.is-open .user-panel-modal {
    transform: translateY(0);
}

.user-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-dark);
}

.user-panel-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--gray-600);
    transition: all 0.2s;
}

.user-panel-close:hover {
    background: var(--gray-200);
    color: var(--text-dark);
}

.user-panel-menu {
    padding: 10px 0;
}

.user-panel-menu li a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text);
    transition: all 0.2s;
}

.user-panel-menu li a:hover {
    background: var(--gray-50);
    color: var(--accent);
}

.user-panel-menu li.divider {
    height: 1px;
    background: var(--gray-200);
    margin: 6px 0;
}

.user-panel-menu li a.logout {
    color: var(--accent);
}

/* =========================================
   OLD HEADER DROPDOWN - KEEPING FOR COMPATIBILITY
   ========================================= */
.header-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.header-dropdown.is-open {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-dropdown-narrow { width: 220px; }
.header-dropdown-title { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--gray-200); font-weight: 600; color: var(--text-dark); font-size: 14px; }
.header-dropdown-close { font-size: 22px; color: var(--gray-600); line-height: 1; padding: 0; }
.header-dropdown-close:hover { color: var(--text-dark); }
.header-dropdown-content { max-height: 350px; overflow-y: auto; }

/* Dropdown Menu */
.header-dropdown-menu { padding: 10px 0; }
.header-dropdown-menu li a { display: block; padding: 10px 20px; color: var(--text); font-size: 14px; transition: all 0.2s; }
.header-dropdown-menu li a:hover { background: var(--gray-50); color: var(--accent); }
.header-dropdown-menu .menu-divider { height: 1px; background: var(--gray-200); margin: 8px 0; }
.header-dropdown-menu .logout-link { color: var(--accent); }

/* WooCommerce Mini Cart in Dropdown */
.header-dropdown .woocommerce-mini-cart { padding: 0; margin: 0; }
.header-dropdown .woocommerce-mini-cart__empty-message { padding: 40px 20px; text-align: center; color: var(--gray-600); }
.header-dropdown .woocommerce-mini-cart__empty-message::before { content: "🛒"; display: block; font-size: 40px; margin-bottom: 10px; }
.header-dropdown .woocommerce-mini-cart-item { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--gray-100); gap: 12px; }
.header-dropdown .woocommerce-mini-cart-item img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.header-dropdown .woocommerce-mini-cart-item > a { flex: 1; font-size: 14px; color: var(--text-dark); }
.header-dropdown .woocommerce-mini-cart-item .remove { color: var(--accent) !important; font-size: 18px; }
.header-dropdown .woocommerce-mini-cart__total { padding: 15px 20px; display: flex; justify-content: space-between; font-weight: 600; border-top: 1px solid var(--gray-200); }
.header-dropdown .woocommerce-mini-cart__buttons { padding: 15px 20px; display: flex; flex-direction: column; gap: 10px; }
.header-dropdown .woocommerce-mini-cart__buttons .button { display: block; text-align: center; padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.header-dropdown .woocommerce-mini-cart__buttons .button.checkout { background: var(--accent); color: var(--white); }
.header-dropdown .woocommerce-mini-cart__buttons .button:not(.checkout) { background: var(--gray-100); color: var(--text-dark); }

/* Mobile Menu Button */
.mobile-menu-btn { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: var(--primary); }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* Mobile Navigation Sidebar */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-nav-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    box-shadow: -5px 0 30px rgba(0,0,0,0.2);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.mobile-nav-sidebar.is-open {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    background: var(--primary);
    color: var(--white);
}

.mobile-nav-title {
    font-size: 18px;
    font-weight: 600;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    transition: all 0.2s;
}

.mobile-nav-close:hover {
    background: rgba(255,255,255,0.3);
}

.mobile-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.mobile-menu-list {
    padding: 0;
    margin: 0;
}

.mobile-menu-list li {
    border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-list li a {
    display: block;
    padding: 16px 20px;
    color: var(--text);
    font-weight: 500;
    font-size: 16px;
    transition: all 0.2s;
}

.mobile-menu-list li a:hover {
    background: var(--gray-50);
    color: var(--accent);
    padding-left: 25px;
}

.mobile-user-links {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
}

.mobile-user-links a {
    display: block;
    padding: 12px 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
}

/* =========================================
   Buttons
   ========================================= */
.btn { display: inline-block; padding: 14px 28px; border-radius: 8px; font-weight: 600; font-size: 16px; text-align: center; transition: all 0.3s; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--gray-100); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* =========================================
   Hero Section
   ========================================= */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: var(--white); padding: 80px 0; }
@media (min-width: 768px) { .hero { padding: 120px 0; } }
.hero-content { max-width: 700px; }
.hero h1 { font-size: 36px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; }
@media (min-width: 768px) { .hero h1 { font-size: 52px; } }
.hero p { font-size: 18px; opacity: 0.9; margin-bottom: 30px; line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 15px; }

/* =========================================
   Features Section
   ========================================= */
.features { padding: 60px 0; background: var(--white); }
.features-row { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 480px) { .features-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-row { grid-template-columns: repeat(4, 1fr); } }
.feature-item { text-align: center; padding: 30px 20px; }
.feature-icon { font-size: 48px; margin-bottom: 15px; display: inline-block; background: rgba(255, 165, 0, 0.1); width: 80px; height: 80px; line-height: 80px; border-radius: 50%; }
.feature-item h3 { font-size: 18px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.feature-item p { font-size: 14px; color: var(--gray-600); }

/* =========================================
   Section Titles
   ========================================= */
.section-title { font-size: 32px; font-weight: 700; color: var(--primary); text-align: center; margin-bottom: 40px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.section-header h2 { font-size: 28px; font-weight: 700; color: var(--primary); }
.view-all { color: var(--accent); font-weight: 600; }
.view-all:hover { color: var(--accent-hover); }

/* =========================================
   Categories Section
   ========================================= */
.categories { padding: 80px 0; background: var(--gray-50); }
.categories-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 480px) { .categories-row { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .categories-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .categories-row { grid-template-columns: repeat(5, 1fr); } }
.category-card { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; display: block; }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.category-card:hover img { transform: scale(1.1); }
.category-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); }
.category-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px; color: var(--white); }
.category-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.category-info span { font-size: 13px; opacity: 0.8; }

/* =========================================
   Products Section
   ========================================= */
.products-home { padding: 80px 0; background: var(--white); }
.products-row, .products-grid { display: grid; grid-template-columns: 1fr; gap: 25px; }
@media (min-width: 480px) { .products-row, .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .products-row, .products-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); transition: all 0.3s; }
.product-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.12); transform: translateY(-5px); }
.product-image { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--gray-100); }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.sale-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: var(--white); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.product-info { padding: 15px; }
.product-info h3 { font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 8px; }
.product-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.product-price del { color: var(--gray-600); font-size: 14px; font-weight: 400; margin-right: 8px; }
.product-price ins { text-decoration: none; }
.product-action { padding: 0 15px 15px; }
.product-action .button, .product-action a.button { display: block; width: 100%; text-align: center; background: var(--accent); color: var(--white); padding: 12px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; border: none; cursor: pointer; transition: background 0.3s; }
.product-action .button:hover { background: var(--accent-hover); }

/* =========================================
   CTA Section
   ========================================= */
.cta { padding: 80px 0; background: linear-gradient(135deg, var(--accent) 0%, var(--highlight) 100%); color: var(--white); text-align: center; }
.cta h2 { font-size: 36px; font-weight: 700; margin-bottom: 15px; }
.cta p { font-size: 18px; max-width: 600px; margin: 0 auto 30px; opacity: 0.95; }

/* =========================================
   Footer
   ========================================= */
.site-footer { background: var(--primary); color: var(--white); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-col h3 { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.footer-col p, .footer-col a { font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.8; }
.footer-col a:hover { color: var(--highlight); }
.footer-col ul li { margin-bottom: 10px; }
.footer-icon { margin-right: 5px; }

/* Footer Legal Links - FIXED */
.footer-legal {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 25px;
}

.footer-legal a {
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--highlight);
}

.footer-legal .legal-sep {
    color: rgba(255,255,255,0.3);
    margin: 0 15px;
}

.footer-bottom { text-align: center; font-size: 14px; color: rgba(255,255,255,0.7); }

/* =========================================
   Cookie Banner
   ========================================= */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.15);
    z-index: 9999;
    padding: 20px;
}

.cookie-banner-bottom { bottom: 0; }
.cookie-banner-top { top: 0; box-shadow: 0 5px 30px rgba(0,0,0,0.15); }

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 768px) {
    .cookie-banner-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-text strong {
    display: block;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-size: 16px;
}

.cookie-banner-text p {
    color: var(--text);
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.cookie-link {
    color: var(--accent);
    font-size: 14px;
    text-decoration: underline;
}

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.cookie-btn-primary {
    background: var(--accent);
    color: var(--white);
}

.cookie-btn-primary:hover {
    background: var(--accent-hover);
}

.cookie-btn-secondary {
    background: var(--gray-200);
    color: var(--text-dark);
}

.cookie-btn-secondary:hover {
    background: var(--gray-100);
}

/* =========================================
   Page Content
   ========================================= */
.page-content { padding: 60px 0; }
.page-content h1 { font-size: 36px; font-weight: 700; color: var(--primary); margin-bottom: 30px; }
.no-items-msg { grid-column: 1 / -1; text-align: center; padding: 40px; background: var(--gray-50); border-radius: 12px; color: var(--gray-600); }

/* =========================================
   WooCommerce Archive
   ========================================= */
.archive-header { background: var(--gray-50); padding: 40px 0; border-bottom: 1px solid var(--gray-200); }
.archive-title { font-size: 36px; font-weight: 700; color: var(--primary); margin-bottom: 10px; }
.archive-description { color: var(--text); font-size: 16px; }
.products-archive { padding: 50px 0; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 0 !important; padding: 0 !important; }
@media (min-width: 768px) { .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .woocommerce ul.products { grid-template-columns: repeat(4, 1fr); } }
.woocommerce ul.products li.product { margin: 0 !important; padding: 0 !important; width: auto !important; float: none !important; }
.no-products { text-align: center; padding: 60px 30px; background: var(--gray-50); border-radius: 12px; }
.no-products-icon { font-size: 60px; margin-bottom: 15px; }
.no-products h2 { font-size: 24px; color: var(--text-dark); margin-bottom: 10px; }
.no-products p { color: var(--gray-600); margin-bottom: 20px; }
.woocommerce-page .widget-area, .woocommerce-page aside, .woocommerce-page #secondary { display: none !important; }
.woocommerce-page #primary { width: 100% !important; float: none !important; }

/* =========================================
   Single Product
   ========================================= */
.single-product-page { padding: 40px 0 80px; }
.product-single { display: grid; grid-template-columns: 1fr; gap: 40px; margin-top: 30px; }
@media (min-width: 768px) { .product-single { grid-template-columns: 1fr 1fr; } }
.product-gallery { background: var(--gray-50); border-radius: 12px; overflow: hidden; }
.product-gallery .main-image { width: 100%; height: auto; display: block; }
.product-details { padding: 20px 0; }
.product-title { font-size: 32px; font-weight: 700; color: var(--primary); margin-bottom: 15px; line-height: 1.3; }
.product-price-single { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.product-price-single del { color: var(--gray-600); font-size: 20px; font-weight: 400; margin-right: 10px; }
.product-price-single ins { text-decoration: none; color: var(--accent); }
.product-short-desc { color: var(--text); font-size: 16px; line-height: 1.7; margin-bottom: 25px; padding-bottom: 25px; border-bottom: 1px solid var(--gray-200); }
.product-short-desc p { margin-bottom: 10px; }
.product-add-to-cart { margin-bottom: 25px; }
.product-add-to-cart form.cart { display: flex; gap: 15px; flex-wrap: wrap; align-items: center; }
.product-add-to-cart .quantity input { width: 70px; padding: 12px; text-align: center; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 16px; }
.product-add-to-cart button.single_add_to_cart_button { flex: 1; min-width: 200px; }
.out-of-stock { background: #fee2e2; color: #dc2626; padding: 12px 20px; border-radius: 8px; font-weight: 600; margin-bottom: 25px; }
.product-meta { padding-top: 20px; border-top: 1px solid var(--gray-200); font-size: 14px; color: var(--gray-600); }
.product-meta p { margin-bottom: 8px; }
.product-meta strong { color: var(--text-dark); }
.product-meta a { color: var(--accent); }
.product-full-desc { margin-top: 50px; padding-top: 40px; border-top: 1px solid var(--gray-200); }
.product-full-desc h2 { font-size: 24px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.product-full-desc p { color: var(--text); line-height: 1.8; margin-bottom: 15px; }

/* WooCommerce General */
.woocommerce-ordering select { padding: 10px 15px; border: 1px solid var(--gray-200); border-radius: 8px; font-size: 14px; background: var(--white); }
.woocommerce-result-count { color: var(--gray-600); font-size: 14px; }
.woocommerce-pagination { margin-top: 40px; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: 8px; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; background: var(--white); border: 1px solid var(--gray-200); color: var(--text); font-weight: 500; transition: all 0.3s; }
.woocommerce-pagination ul li a:hover, .woocommerce-pagination ul li span.current { background: var(--primary); border-color: var(--primary); color: var(--white); }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button { background: var(--accent) !important; color: var(--white) !important; border: none !important; border-radius: 8px !important; padding: 12px 24px !important; font-weight: 600 !important; }
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--accent-hover) !important; }
.woocommerce-breadcrumb { margin-bottom: 20px; font-size: 14px; }
.woocommerce-breadcrumb a { color: var(--accent); }


/* =========================================
   WooCommerce - My Account Pages
   ========================================= */

/* My Account Container */
.lovitex-my-account {
    min-height: 60vh;
}

.my-account-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .my-account-wrapper {
        grid-template-columns: 280px 1fr;
        gap: 40px;
    }
}

/* Account Sidebar/Navigation */
.my-account-sidebar {
    background: var(--white);
}

.woocommerce-MyAccount-navigation {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.account-nav-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.account-nav-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
}

.account-nav-info {
    flex: 1;
    min-width: 0;
}

.account-nav-info strong {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
}

.account-nav-info span {
    display: block;
    font-size: 13px;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.woocommerce-MyAccount-navigation ul li.is-active {
    background: rgba(30, 58, 95, 0.05);
    border-left-color: var(--accent);
}

.woocommerce-MyAccount-navigation ul li.is-active a {
    color: var(--primary);
    font-weight: 600;
}

.woocommerce-MyAccount-navigation .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--gray-600);
}

.woocommerce-MyAccount-navigation ul li.is-active .nav-icon,
.woocommerce-MyAccount-navigation ul li a:hover .nav-icon {
    color: var(--accent);
}

/* Account Content Area */
.my-account-content {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
}

@media (min-width: 768px) {
    .my-account-content {
        padding: 40px;
    }
}

/* Dashboard Welcome Message */
.woocommerce-MyAccount-content > p:first-child {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--gray-200);
}

.woocommerce-MyAccount-content > p:first-child a {
    color: var(--accent);
    font-weight: 600;
}

.woocommerce-MyAccount-content > p:first-child strong {
    color: var(--primary);
}

/* =========================================
   Auth Forms (Login/Register)
   ========================================= */

.my-account-auth {
    max-width: 480px;
    margin: 0 auto;
}

.auth-container {
    width: 100%;
}

.auth-forms-wrapper {
    width: 100%;
}

.auth-form-box {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 40px;
}

@media (min-width: 480px) {
    .auth-form-box {
        padding: 50px;
    }
}

.auth-form-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 10px 0;
}

.auth-form-header p {
    color: var(--gray-600);
    font-size: 15px;
    margin: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--accent);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select,
.woocommerce-Input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.woocommerce-Input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-600);
}

/* Checkbox styling */
.form-row-remember {
    display: flex;
    align-items: center;
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* Submit Button */
.btn-auth-submit {
    width: 100%;
    padding: 16px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    background: var(--accent) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.3s !important;
    margin-top: 10px;
}

.btn-auth-submit:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

/* Form Links */
.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a,
.lost-password-link {
    color: var(--gray-600);
    font-size: 14px;
    transition: color 0.2s;
}

.form-links a:hover,
.lost-password-link:hover {
    color: var(--accent);
}

/* Auth Switch */
.auth-switch {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid var(--gray-200);
}

.auth-switch p {
    color: var(--text);
    font-size: 15px;
    margin: 0;
}

.auth-switch a {
    color: var(--accent);
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Password Notice */
.password-notice {
    color: var(--gray-600);
    font-size: 14px;
    font-style: italic;
    margin-bottom: 20px;
    padding: 12px 15px;
    background: var(--gray-50);
    border-radius: 8px;
}

/* =========================================
   WooCommerce Forms & Tables (Account Pages)
   ========================================= */

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

.woocommerce-orders-table th,
.woocommerce-orders-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.woocommerce-orders-table th {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-50);
}

.woocommerce-orders-table td {
    font-size: 14px;
    color: var(--text);
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
    font-weight: 600;
    color: var(--primary);
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-status {
    font-weight: 500;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--text-dark);
    border-radius: 6px;
    margin-right: 5px;
    transition: all 0.2s;
}

.woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a:hover {
    background: var(--primary);
    color: var(--white);
}

/* No Orders Message */
.woocommerce-message--info,
.woocommerce-info {
    padding: 20px 25px;
    background: rgba(30, 58, 95, 0.08);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    color: var(--text);
    font-size: 15px;
    margin-bottom: 20px;
}

.woocommerce-message--info a,
.woocommerce-info a {
    color: var(--accent);
    font-weight: 600;
}

/* Address Cards */
.woocommerce-Addresses {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 600px) {
    .woocommerce-Addresses {
        grid-template-columns: repeat(2, 1fr);
    }
}

.woocommerce-Address {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 25px;
    position: relative;
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gray-200);
}

.woocommerce-Address-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.woocommerce-Address-title a {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.woocommerce-Address address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
}

/* Edit Account Form */
.woocommerce-EditAccountForm {
    max-width: 600px;
}

.woocommerce-EditAccountForm fieldset {
    border: none;
    padding: 0;
    margin: 30px 0 0 0;
}

.woocommerce-EditAccountForm legend {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
    width: 100%;
}

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

.woocommerce-EditAccountForm .form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.woocommerce-EditAccountForm .form-row input {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s;
}

.woocommerce-EditAccountForm .form-row input:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

.woocommerce-EditAccountForm .form-row-first,
.woocommerce-EditAccountForm .form-row-last {
    width: 100%;
}

@media (min-width: 600px) {
    .woocommerce-EditAccountForm .form-row-first,
    .woocommerce-EditAccountForm .form-row-last {
        width: 48%;
        display: inline-block;
        vertical-align: top;
    }
    .woocommerce-EditAccountForm .form-row-first {
        margin-right: 4%;
    }
}

/* Address Form */
.woocommerce-address-fields .form-row {
    margin-bottom: 20px;
}

.woocommerce-address-fields .form-row label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.woocommerce-address-fields input,
.woocommerce-address-fields select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s;
}

.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
}

/* Downloads Table */
.woocommerce-table--order-downloads {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-table--order-downloads th,
.woocommerce-table--order-downloads td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.woocommerce-table--order-downloads th {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    background: var(--gray-50);
}

/* WooCommerce Notices */
.woocommerce-error,
.woocommerce-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 14px;
}

.woocommerce-error {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
}

.woocommerce-message {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    color: #166534;
}

.woocommerce-error li,
.woocommerce-message li {
    list-style: none;
}

/* Responsive Tables */
@media (max-width: 767px) {
    .woocommerce-orders-table,
    .woocommerce-orders-table thead,
    .woocommerce-orders-table tbody,
    .woocommerce-orders-table th,
    .woocommerce-orders-table td,
    .woocommerce-orders-table tr {
        display: block;
    }
    
    .woocommerce-orders-table thead {
        display: none;
    }
    
    .woocommerce-orders-table tr {
        margin-bottom: 20px;
        background: var(--gray-50);
        border-radius: 12px;
        padding: 15px;
    }
    
    .woocommerce-orders-table td {
        padding: 10px 0;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .woocommerce-orders-table td::before {
        content: attr(data-title);
        font-weight: 600;
        color: var(--gray-600);
        font-size: 13px;
        text-transform: uppercase;
    }
}

/* Lost Password Form */
.woocommerce-ResetPassword {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 50px;
}

.woocommerce-ResetPassword p {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 15px;
}

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

.woocommerce-ResetPassword label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.woocommerce-ResetPassword input[type="text"] {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
}

.woocommerce-ResetPassword button {
    width: 100%;
    margin-top: 10px;
}


/* =========================================
   Trabajos (Portfolio) Section
   ========================================= */

/* Home Carousel */
.trabajos-home {
    padding: 80px 0;
    background: var(--gray-50);
}

.trabajos-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.trabajos-carousel {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.trabajo-slide {
    flex: 0 0 calc(25% - 15px);
    min-width: 280px;
}

@media (max-width: 1024px) {
    .trabajo-slide {
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .trabajo-slide {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .trabajo-slide {
        flex: 0 0 100%;
    }
}

.trabajo-card-home,
.trabajo-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.trabajo-card-home:hover,
.trabajo-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    transform: translateY(-5px);
}

.trabajo-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-100);
}

.trabajo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.trabajo-card-home:hover .trabajo-image img,
.trabajo-card:hover .trabajo-image img {
    transform: scale(1.08);
}

.trabajo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.95) 0%, rgba(30, 58, 95, 0.7) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.trabajo-card-home:hover .trabajo-overlay,
.trabajo-card:hover .trabajo-overlay {
    opacity: 1;
}

.trabajo-descripcion {
    color: var(--white);
    transform: translateY(10px);
    transition: transform 0.3s;
}

.trabajo-card-home:hover .trabajo-descripcion,
.trabajo-card:hover .trabajo-descripcion {
    transform: translateY(0);
}

.trabajo-descripcion h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.trabajo-descripcion p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.trabajo-title {
    padding: 15px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    text-align: center;
}

.trabajo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s;
    z-index: 10;
}

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

.carousel-prev {
    left: -24px;
}

.carousel-next {
    right: -24px;
}

@media (max-width: 768px) {
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
}

/* =========================================
   Trabajos Page
   ========================================= */
.trabajos-page {
    padding: 60px 0 80px;
}

.trabajos-header {
    text-align: center;
    margin-bottom: 40px;
}

.trabajos-header .page-title {
    margin-bottom: 15px;
}

.trabajos-header .page-subtitle {
    color: var(--gray-600);
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

/* Category Tabs */
.trabajos-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.trabajo-tab {
    padding: 12px 24px;
    border-radius: 30px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.trabajo-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.trabajo-tab.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Trabajos Grid */
.trabajos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

@media (min-width: 768px) {
    .trabajos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .trabajos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trabajo-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s, box-shadow 0.3s;
}

.trabajo-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Auth Info Box (Login page)
   ========================================= */
.auth-info-box {
    margin-top: 25px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 12px;
    text-align: center;
}

.auth-info-box p {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: var(--text);
}

.auth-info-box p:first-child {
    color: var(--text-dark);
    margin-bottom: 8px;
}

.btn-browse-products {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: var(--gray-200);
    color: var(--text-dark);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-browse-products:hover {
    background: var(--primary);
    color: var(--white);
}

