    /* {{-- header --}} */

    .topbar {
        background: #f5f5f5;
        font-size: 0.85rem;
        color: #333;
        padding: 6px 2rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #e1e1e1;
    }

    .topbar a {
        margin-right: 15px;
        color: #333;
        text-decoration: none;
        transition: color 0.2s;
    }

    .topbar a:hover {
        color: #e4002b;
    }

    .topbar-left a:first-child {
        font-weight: 500;
    }

    .topbar-right {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .location {
        margin-right: 10px;
        color: #555;
    }

    .blue-text {
        color: #0064d2;
        /* Azul estilo eBay */
        font-weight: 600;
    }

    .login-highlight {
        text-decoration: none;
    }

    .login-highlight:hover .blue-text {
        text-decoration: underline;
    }

    .header {
        display: flex;
        align-items: center;
        padding: 10px 20px;
        background: #fff;
        border-bottom: 1px solid #ddd;
    }

    .logo {
        display: flex;
        align-items: center;
        text-decoration: none;
        margin-right: 20px;
    }

    .logo-img {
        height: 40px;
        margin-right: 10px;
    }

    .logo-text {
        font-size: 20px;
        font-weight: bold;
        color: #333;
    }

    .search-container {
        display: flex;
        align-items: center;
        flex: 1;
    }

    .category-select button {
        background: none;
        border: none;
        font-size: 14px;
        margin-right: 15px;
        cursor: pointer;
    }

    .search-input {
        flex: 1;
        padding: 10px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 25px 0 0 25px;
        outline: none;
    }

    .category-dropdown {
        padding: 10px;
        border: 1px solid #ccc;
        border-left: none;
        border-radius: 0;
        font-size: 14px;
    }

    .search-btn {
        background: #0064d2;
        /* azul estilo eBay */
        color: #fff;
        font-weight: bold;
        border: none;
        padding: 10px 20px;
        border-radius: 0 25px 25px 0;
        cursor: pointer;
        margin-left: -5px;
    }

    .search-btn:hover {
        background: #0052a3;
    }

    .advanced-link {
        margin-left: 10px;
        font-size: 13px;
        color: #555;
        text-decoration: none;
    }

    .advanced-link:hover {
        text-decoration: underline;
    }

    /* {{-- fin header --}}
    {{-- Main Content --}} */

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    body {
        background-color: #ffffff;
        /* Blanco */
        color: #333;
        line-height: 1.6;
    }

    /* Header */
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
        background: white;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .logo {
        display: flex;
        /* coloca logo + texto en fila */
        align-items: center;
        /* centra verticalmente */
        font-size: 1.5rem;
        font-weight: bold;
        color: #e4002b;
        text-decoration: none;
    }

    .logo-img {
        height: 45px;
        /* ajusta tamaño */
        width: auto;
        margin-right: 1px;
        /* espacio entre logo y texto */
    }


    .location {
        font-size: 0.9rem;
        color: #666;
    }

    .search-bar {
        flex: 1;
        max-width: 600px;
        margin: 0 2rem;
        position: relative;
    }

    .search-bar input {
        width: 100%;
        padding: 0.7rem;
        border: 1px solid #ddd;
        border-radius: 20px;
        outline: none;
        font-size: 0.9rem;
    }

    .search-bar button {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: #e4002b;
        color: white;
        border: none;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
        font-size: 1rem;
    }

    .profile {
        font-size: 0.9rem;
        color: #666;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .profile i {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        color: #333;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* {{-- fin Main Content --}}
    {{-- Footer --}} */

    /* Para que el footer se mantenga al final */
    html,
    body {
        height: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
    }

    /* Contenido principal que empuja el footer */
    /* Footer */
    footer {
        background: #ff4d4d;
        /* rojo suavito */
        color: white;
        width: 100%;
        padding: 2rem 0;
    }

    /* El contenido queda centrado */
    .footer-content {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        max-width: 1200px;
        /* limite del contenido */
        margin: 0 auto;
        padding: 0 2rem;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        font-weight: bold;
    }

    .footer-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-section li {
        margin-bottom: 0.3rem;
    }

    .footer-section a {
        color: white;
        text-decoration: none;
        font-size: 0.85rem;
    }

    .footer-section a:hover {
        text-decoration: underline;
    }

    /* Responsive para móviles */
    @media (max-width: 768px) {
        .footer-content {
            flex-direction: column;
            gap: 1.5rem;
            text-align: center;
        }
    }

    /* {{-- Fin Footer --}}
    {{-- cart --}} */

    .cart-link {
        font-size: 1.5rem;
        /* hace crecer el ícono */
        padding: 0.5rem;
        /* más espacio alrededor */
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* {{-- mini carrito --}} */

    /* Contenedor del carrito */
    .cart-container {
        position: relative;
        display: inline-block;
    }

    /* Ícono carrito */
    .cart-link {
        font-size: 1.8rem;
        /* más grande */
        color: #333;
        text-decoration: none;
        position: relative;
    }

    .cart-link:hover {
        color: #ff4d4d;
    }

    /* Contador carrito */
    .cart-count {
        background: #ff4d4d;
        color: white;
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
        border-radius: 50%;
        position: absolute;
        top: -8px;
        right: -10px;
    }

    /* Mini carrito oculto por defecto */
    .cart-dropdown {
        display: none;
        position: absolute;
        right: 0;
        top: 120%;
        width: 260px;
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        padding: 1rem;
        z-index: 100;
    }

    /* Mostrar cuando se hace hover */
    .cart-container:hover .cart-dropdown {
        display: block;
        animation: fadeIn 0.3s ease-in-out;
    }

    /* Estilo del contenido */
    .cart-dropdown h4 {
        margin: 0 0 0.5rem 0;
        font-size: 1rem;
        font-weight: bold;
        border-bottom: 1px solid #eee;
        padding-bottom: 0.3rem;
    }

    .cart-dropdown ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .cart-dropdown li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .cart-dropdown li img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 4px;
        margin-right: 8px;
    }

    .cart-dropdown .price {
        font-weight: bold;
        color: #333;
    }

    .cart-actions {
        margin-top: 1rem;
        display: flex;
        justify-content: space-between;
    }

    .cart-actions .btn {
        background: #eee;
        padding: 0.4rem 0.8rem;
        border-radius: 6px;
        text-decoration: none;
        color: #333;
        font-size: 0.85rem;
        transition: background 0.2s;
    }

    .cart-actions .btn.checkout {
        background: #ff4d4d;
        color: white;
    }

    .cart-actions .btn:hover {
        background: #ddd;
    }

    .cart-actions .btn.checkout:hover {
        background: #e63e3e;
    }

    .cart-container {
        position: relative;
        display: inline-block;
        z-index: 1000;
        /* asegura que esté sobre el header */
    }

    .cart-dropdown {
        display: none;
        position: absolute;
        right: 0;
        top: 130%;
        width: 260px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        padding: 1rem;
        z-index: 2000;
        /* más alto que el header */
    }


    /* Animación */
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* {{-- fin cart --}} */