/* ============================================
   AMAZON-STYLE MARKETPLACE FULL WIDTH
   Estilanza - Marketplace Full Width
   ============================================ */

:root {
    --amazon-orange: #F1641E;
    --amazon-dark: #131921;
    --amazon-light: #232f3e;
    --amazon-gray: #eaeded;
    --amazon-text: #111;
    --site-max-width: 1650px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #fff;
    color: var(--amazon-text);
    line-height: 1.5;
}

/* ========== HEADER ESTILO AMAZON ========== */
.amazon-header {
    background-color: var(--amazon-dark);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.logo a {
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo a span {
    color: var(--amazon-orange);
}

.search-bar {
    flex: 1;
    max-width: 800px;
}

.search-bar form {
    display: flex;
    width: 100%;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 14px;
    outline: none;
}

.search-bar button {
    background: var(--amazon-orange);
    border: none;
    padding: 0 20px;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    color: white;
    font-size: 18px;
    transition: background 0.2s;
}

.search-bar button:hover {
    background: #d95618;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a,
.nav-links .user-menu {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover,
.user-menu:hover {
    color: var(--amazon-orange);
}

.cart-icon {
    color: white;
    font-size: 22px;
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--amazon-orange);
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    text-align: center;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 100;
    overflow: hidden;
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.user-dropdown a:hover {
    background: #f9f9f9;
    color: var(--amazon-orange);
}

/* ========== BARRA DE CATEGORÍAS ========== */
.category-bar {
    background: var(--amazon-light);
    padding: 8px 0;
}

.category-list {
    max-width: var(--site-max-width);
    margin: 0 auto;
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0 20px;
    overflow-x: auto;
}

.category-list a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    transition: color 0.2s;
}

.category-list a:hover {
    text-decoration: underline;
    color: var(--amazon-orange);
}

/* ========== HERO BANNER ========== */
.hero-banner {
    background: linear-gradient(135deg, #232f3e, #131921);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 30px;
}

.hero-banner h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-banner p {
    font-size: 20px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.hero-banner .btn {
    background: var(--amazon-orange);
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.hero-banner .btn:hover {
    background: #d95618;
}

/* ========== SECCIÓN DE OFERTAS ========== */
.offer-section {
    max-width: var(--site-max-width);
    margin: 30px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.offer-card {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.offer-text h2 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #222;
}

.offer-text p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
}

.offer-btn {
    background: var(--amazon-orange);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: background 0.2s;
}

.offer-btn:hover {
    background: #d95618;
}

.offer-icon i {
    font-size: 80px;
    color: var(--amazon-orange);
}

/* ========== GRID DE PRODUCTOS ========== */
.products-grid {
    max-width: var(--site-max-width);
    margin: 40px auto;
    padding: 0 20px;
}

.products-grid h2 {
    font-size: 28px;
    margin-bottom: 20px;
    border-left: 5px solid var(--amazon-orange);
    padding-left: 15px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f5f5f5;
}

.product-card h3 {
    font-size: 15px;
    padding: 12px 12px 0;
    line-height: 1.4;
    height: 60px;
    overflow: hidden;
}

.product-card .price {
    font-weight: bold;
    color: var(--amazon-orange);
    font-size: 18px;
    padding: 8px 12px 5px;
}

.product-card .add-to-cart {
    background: var(--amazon-orange);
    color: white;
    border: none;
    width: calc(100% - 24px);
    margin: 8px 12px 15px;
    padding: 8px 0;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.product-card .add-to-cart:hover {
    background: #d95618;
}

/* ========== FOOTER ESTILO AMAZON ========== */
.footer {
    background: #232f3e;
    color: #ddd;
    padding: 40px 0;
    margin-top: 60px;
}

.footer .container {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer a {
    color: #ddd;
    text-decoration: none;
}

.footer a:hover {
    color: var(--amazon-orange);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1400px) {
    .product-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1100px) {
    .product-list {
        grid-template-columns: repeat(3, 1fr);
    }
    .offer-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .header-container {
        flex-direction: column;
        align-items: stretch;
    }
    .search-bar {
        max-width: 100%;
    }
    .product-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .hero-banner h1 {
        font-size: 32px;
    }
    .offer-text h2 {
        font-size: 22px;
    }
    .offer-icon i {
        font-size: 50px;
    }
}

@media (max-width: 550px) {
    .product-list {
        grid-template-columns: 1fr;
    }
    .category-list {
        gap: 15px;
    }
}