/* --- VARIABLES Y RESET GENERAL --- */
:root {
    --bg-main: #f9f4ee;
    --brown-dark: #803333;
    --brown-light: #b35959;
    --gold: #cfa85e;
    --gold-light: #e6ca85;
    --text-color: #4a231a;
    --card-bg: #edd3d8;
    --cart-bg: #dbd3ca;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif, system-ui;
}

body {
    background-color: var(--bg-main);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- HEADER --- */
.header-bar {
    background-color: var(--brown-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
    border-radius: 0 0 15px 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: var(--brown-dark);
    text-align: center;
}

.brand-title {
    color: var(--white);
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 15px;
}

.nav-btn {
    background-color: var(--gold-light);
    color: var(--brown-dark);
    text-decoration: none;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.header-icons {
    display: flex;
    gap: 10px;
}

.icon-circle {
    width: 25px;
    height: 25px;
    background-color: var(--gold-light);
    border-radius: 50%;
}

/* --- HERO SECTION --- */
.hero-section {
    text-align: center;
    padding: 40px 20px 20px 20px;
}

.hero-title {
    font-size: 2.5rem;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.hero-subtitle {
    color: var(--gold);
    font-style: italic;
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* BÚSQUEDA Y FILTRADO */
.search-filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.search-box {
    position: relative;
    width: 350px;
}

.search-input {
    width: 100%;
    padding: 8px 35px 8px 15px;
    border-radius: 20px;
    border: 1px solid #c2b2a3;
    background-color: #ebdcd0;
    text-align: center;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--brown-dark);
}

.filter-btn {
    background-color: #ebdcd0;
    border: 1px solid #c2b2a3;
    padding: 8px 18px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--brown-dark);
    cursor: pointer;
}

/* BOTONES DE CATEGORÍA */
.categories-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.cat-btn {
    background-color: #dedede;
    border: 1px solid #ccc;
    padding: 8px 35px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #444;
}

/* BANNER DE PASO */
.step-banner {
    background-color: var(--brown-dark);
    color: var(--white);
    text-align: center;
    padding: 12px;
    font-size: 1.1rem;
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
}

/* --- MAIN / TIENDA Y PRODUCTOS --- */
.shop-container {
    display: flex;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 40px;
    flex-grow: 1;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    flex: 1;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.product-image-container {
    background-color: var(--card-bg);
    width: 200px;
    height: 200px;
    border-radius: 30px;
    border: 2px solid var(--gold);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image-container::before {
    content: '';
    position: absolute;
    top: 10px;
    width: 140px;
    height: 100px;
    background-color: var(--white);
    border-radius: 70px 70px 0 0;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.product-description {
    font-size: 0.75rem;
    margin: 10px 0;
    max-width: 180px;
    line-height: 1.2;
}

.add-cart-btn {
    background-color: var(--gold-light);
    border: none;
    padding: 8px 25px;
    border-radius: 15px;
    color: var(--brown-dark);
    font-weight: bold;
    font-size: 0.8rem;
    cursor: pointer;
}

/* BARRA LATERAL CARRITO */
.cart-sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cart-icon-main {
    font-size: 2rem;
    color: var(--brown-dark);
    margin-bottom: 10px;
}

.cart-box {
    background-color: var(--cart-bg);
    border: 2px solid var(--gold);
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-checkbox {
    width: 35px;
    height: 35px;
    border: 1px solid #777;
    position: relative;
    background-color: #d1c7bc;
    flex-shrink: 0;
}

.cart-item-checkbox::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--brown-dark);
}

.cart-item-text {
    font-size: 0.7rem;
    line-height: 1.1;
}

.checkout-btn {
    background-color: var(--brown-dark);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 15px;
    width: 100%;
    margin-top: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    text-transform: uppercase;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--brown-light);
    color: var(--white);
    padding: 40px 20px 20px 20px;
    text-align: center;
    border-radius: 20px 20px 0 0;
    margin-top: 40px;
}

.footer-logo-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.footer-logo-title h2 {
    font-size: 2.2rem;
    letter-spacing: 2px;
}

.footer-subtitle {
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.footer-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-icon-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
}

.user-icon {
    width: 25px;
    height: 25px;
    background-color: #4a231a;
    border-radius: 50%;
    display: inline-block;
}

/* --- CONTENEDOR FLOTANTE DEL HEADER --- */
.header-container {
    padding: 15px 30px 0 30px; /* Margen alrededor para darle el efecto 'flotante' */
    width: 100%;
}

.header-bar {
    background-color: #8b3838; /* Rojo granate / café rojizo */
    border-radius: 50px; /* Bordes completamente redondeados estilo píldora */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px 10px 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* --- LOGO Y SELLO CIRCULAR --- */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Sello circular con bordes festoneados/dentados */
.logo-seal {
    width: 58px;
    height: 58px;
    background-color: #8b3838;
    border: 2px dashed #e2caa2; /* Simula los bordes decorativos del logo */
    outline: 2px solid #8b3838;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ebdcd0;
    font-size: 6px;
    text-align: center;
    font-weight: bold;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 14px;
    margin: 1px 0;
}

.brand-title {
    color: #ebdcd0;
    font-family: 'Times New Roman', serif;
    font-size: 1.6rem;
    letter-spacing: 3px;
    font-weight: normal;
}

/* --- NAVEGACIÓN (BOTONES CENTRALES) --- */
.nav-links {
    display: flex;
    gap: 12px;
}

.nav-btn {
    background-color: #a44848; /* Fondo un poco más claro que el header */
    color: #ebdcd0;
    text-decoration: none;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.nav-btn:hover {
    background-color: #b85454;
}

/* --- ICONOS DE LA DERECHA --- */
.header-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-circle {
    width: 22px;
    height: 22px;
    background-color: #c09e53; /* Dorado verdoso/ocre de la imagen */
    border-radius: 50%;
    cursor: pointer;
}