* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f8;
    color: #222;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* =========================
   AUTENTICACIÓN
========================= */

#auth-section {
    width: 100%;
    max-width: 430px;
    margin: 60px auto;
    padding: 35px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

.logo {
    margin: 0 0 30px;
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: 5px;
}

#login-form,
#register-form {
    display: flex;
    flex-direction: column;
}

#login-form h3,
#register-form h3 {
    text-align: center;
    margin-bottom: 25px;
}

input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border: 1px solid #d9dce1;
    border-radius: 9px;
    font-size: 15px;
    outline: none;
}

input:focus {
    border-color: #111;
}

button {
    border: none;
    border-radius: 9px;
    padding: 11px 17px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    background: #111;
    color: white;
    transition: .2s ease;
}

button:hover {
    transform: translateY(-1px);
    opacity: .9;
}

.switch-text {
    text-align: center;
    font-size: 14px;
    margin-top: 18px;
}

.switch-text a {
    color: #111;
    font-weight: bold;
    text-decoration: none;
}

/* =========================
   MENSAJES
========================= */

.message-box {
    min-height: 25px;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
}

.message-box.success {
    background: #e7f7ed;
    color: #16733a;
}

.message-box.error {
    background: #fdeaea;
    color: #b42318;
}

/* =========================
   MARKETPLACE
========================= */

#marketplace-section {
    width: 100%;
}

#marketplace-section h2 {
    margin: 0;
    padding: 25px;
    background: #111;
    color: white;
    border-radius: 16px;
    font-size: 30px;
}

/* =========================
   BOTÓN CERRAR SESIÓN
========================= */

.logout-btn {
    float: right;
    margin-top: -58px;
    margin-right: 20px;
    background: #444;
}

/* =========================
   CARRITO
========================= */

#marketplace-section > div:first-of-type {
    margin: 20px 0 !important;
}

button[onclick="toggleCart()"] {
    font-size: 16px;
    padding: 13px 20px;
    background: #111;
}

#cart-section {
    margin-top: 25px !important;
    padding: 25px !important;
    background: #171717 !important;
    color: white;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

#cart-section h3 {
    margin-top: 0;
}

#cart-items {
    margin: 15px 0;
}

#cart-items > div {
    background: #252525 !important;
    border-radius: 10px;
    padding: 12px !important;
    margin: 8px 0 !important;
}

#cart-total {
    font-size: 21px;
    margin: 20px 0;
}

/* =========================
   CREAR PRODUCTO
========================= */

.product-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    padding: 20px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

.product-form input {
    margin-bottom: 0;
}

/* =========================
   BUSCADOR DE PRODUCTOS
========================= */

.product-search {
    width: 100%;
    margin: 15px 0 20px;
}

.product-search input {
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid #d9dce1;
    border-radius: 12px;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
}

.product-search input:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.product-search input::placeholder {
    color: #888;
}

/* =========================
   LISTA PRODUCTOS
========================= */

#product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

/* =========================
   TARJETA PRODUCTO
========================= */

.product-item {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    padding: 20px;
    min-height: 255px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.11);
}

/* Etiqueta superior */

.product-item::before {
    content: "PRODUCTO";
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 9px;
    border-radius: 7px;
    background: #f1f1f1;
    color: #666;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .5px;
}

/* Nombre */

.product-item h4 {
    margin: 0;
    padding-right: 75px;
    font-size: 20px;
    line-height: 1.3;
    color: #111;
}

/* Información */

.product-item p {
    margin: 9px 0;
    color: #555;
    font-size: 14px;
}

/* Precio + stock */

.product-item p:first-of-type {
    margin-top: 18px;
    color: #111;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

/* Acciones */

.product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
}

/* Selector cantidad */

.product-actions input {
    width: 62px;
    height: 42px;
    margin: 0;
    padding: 8px;
    text-align: center;
    border: 1px solid #d5d8dc;
    border-radius: 9px;
    font-size: 14px;
}

/* Botón agregar */

.product-actions button {
    flex: 1;
    height: 42px;
    background: #111;
    color: #fff;
    border-radius: 9px;
    font-weight: 700;
}

.product-actions button:hover {
    background: #333;
}

/* Sin stock */

.product-item p[style*="color"] {
    margin-top: auto;
    padding: 12px 0 0;
    color: #e53935 !important;
    font-weight: 700;
    font-size: 14px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {

    .product-form {
        grid-template-columns: 1fr;
    }

    .logout-btn {
        float: none;
        margin: 15px 0;
    }

    #marketplace-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 500px) {

    .container {
        padding: 15px;
    }

    #auth-section {
        margin: 20px auto;
        padding: 25px;
    }

    .logo {
        font-size: 34px;
    }

    #product-list {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   BUSCADOR Y FILTROS
   ========================================================= */

.product-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 10px;
    margin: 20px 0;
    padding: 18px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.product-filters input {
    margin: 0;
}

.product-filters button {
    white-space: nowrap;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 800px) {

    .product-filters {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   CARRITO — FASE 3.4
   ========================================================= */

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background: #252525;
    padding: 14px;
    margin: 8px 0;
    border-radius: 10px;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-item-info span {
    color: #aaa;
    font-size: 13px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-controls button {
    padding: 6px 10px;
    min-width: 32px;
}

.cart-qty {
    min-width: 25px;
    text-align: center;
    font-weight: bold;
}

.cart-subtotal {
    min-width: 90px;
    text-align: right;
    font-weight: bold;
}

.cart-remove {
    background: #a00000 !important;
}

.cart-empty {
    text-align: center;
    padding: 20px;
    color: #aaa;
}


/* MÓVIL */

@media (max-width: 600px) {

    .cart-item {
        flex-direction: column;
        align-items: stretch;
    }

    .cart-item-controls {
        justify-content: space-between;
    }

    .cart-subtotal {
        min-width: auto;
    }

}
/* =========================================================
   FASE 4 — FICHA DE PRODUCTO
   ========================================================= */

.product-item {
    cursor: pointer;
    position: relative;
}

.product-item:hover {
    transform: translateY(-3px);
}

.product-card-content {
    cursor: pointer;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
}

.product-stock {
    color: #666;
}

.no-stock {
    color: #d00000;
    font-weight: bold;
}


/* =========================================================
   MODAL
   ========================================================= */

.product-detail-modal {
    position: fixed;
    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 9999;

    padding: 20px;
}


/* =========================================================
   FICHA
   ========================================================= */

.product-detail-card {
    position: relative;

    width: 100%;
    max-width: 500px;

    background: white;

    border-radius: 20px;

    padding: 35px;

    box-shadow:
        0 20px 60px
        rgba(0, 0, 0, 0.25);
}


.product-detail-card h2 {
    margin-top: 0;
    margin-bottom: 20px;

    font-size: 28px;
}


.detail-product-price {
    font-size: 28px;
    font-weight: 800;

    margin-bottom: 12px;
}


.detail-product-stock {
    font-size: 16px;

    margin-bottom: 25px;
}


.detail-product-description {
    border-top: 1px solid #eee;

    padding-top: 20px;

    margin-top: 20px;
}


.detail-product-description h3 {
    margin-top: 0;
}


.product-detail-close {
    position: absolute;

    right: 15px;
    top: 15px;

    width: 35px;
    height: 35px;

    border-radius: 50%;

    padding: 0;

    background: #eee;
    color: #222;

    font-size: 18px;
}


.detail-close-button {
    width: 100%;

    margin-top: 25px;
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .product-detail-card {
        padding: 25px;

        border-radius: 16px;
    }

    .product-detail-card h2 {
        font-size: 23px;
    }

    .detail-product-price {
        font-size: 24px;
    }

}
.order-item,
.order-detail-card {
    margin: 15px 0;
    padding: 15px;
    background: #1f1f1f;
    color: #f5f6f8;
    border-radius: 10px;
}

.order-summary {
    display: grid;
    gap: 10px;
}

.order-summary div {
    display: grid;
    gap: 3px;
}

.order-summary dt {
    font-weight: 700;
}

.order-summary dd {
    margin: 0;
}

.order-detail-items {
    display: grid;
    gap: 10px;
}

.order-detail-item {
    display: grid;
    gap: 6px;
    padding: 12px;
    background: #292929;
    border-radius: 8px;
}

.order-total {
    margin-bottom: 0;
}

/* FASE 5C - DATOS DE ENTREGA */
.delivery-form {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    padding: 20px;
    background: #202020;
    border-radius: 12px;
}

.delivery-form h3 {
    margin: 0 0 8px;
}

.delivery-form label {
    font-weight: 600;
}

.delivery-form input,
.delivery-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #111;
    color: white;
    font: inherit;
}

.delivery-form textarea {
    resize: vertical;
}

.delivery-error {
    min-height: 20px;
    margin: 2px 0 0;
    color: #ff8a8a;
    font-weight: 600;
}

/* FASE 5D - CONFIRMACION DE COMPRA */
.checkout-confirmation-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
}

.checkout-confirmation-card {
    box-sizing: border-box;
    width: min(680px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    border-radius: 16px;
    background: #171717;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.checkout-confirmation-card h2 {
    margin-top: 0;
}

.checkout-confirmation-items {
    display: grid;
    gap: 10px;
}

.checkout-confirmation-item {
    display: grid;
    gap: 5px;
    padding: 12px;
    border-radius: 8px;
    background: #292929;
}

.checkout-confirmation-delivery {
    margin-top: 18px;
    padding: 14px;
    border-radius: 8px;
    background: #202020;
}

.checkout-confirmation-delivery p {
    margin: 7px 0;
}

.checkout-confirmation-error {
    min-height: 20px;
    color: #ff8a8a;
    font-weight: 600;
}

.checkout-confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.checkout-confirmation-actions button:disabled {
    cursor: wait;
    opacity: 0.65;
}

/* FASE 5D - METODOS DE ENTREGA */
.delivery-method-options {
    display: grid;
    gap: 10px;
    margin-bottom: 8px;
}

.delivery-method-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 8px;
    background: #181818;
    cursor: pointer;
}

.delivery-method-options input {
    width: auto;
    margin: 0;
}

.delivery-address-fields {
    display: grid;
    gap: 10px;
}

.pickup-information {
    margin: 4px 0 8px;
    padding: 12px;
    border-radius: 8px;
    background: #292929;
    color: #f2f2f2;
}

/* FASE 5F - RESULTADO DE LA COMPRA */
.order-success-card {
    max-width: 720px;
    margin: 20px auto;
    padding: 28px;
    border-radius: 16px;
    background: #1f1f1f;
    color: #f5f6f8;
    text-align: center;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.28);
}

.order-success-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 50%;
    background: #1f9d61;
    color: white;
    font-size: 34px;
    font-weight: 800;
}

.order-success-card h2 {
    margin: 0 0 10px;
}

.order-success-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
    text-align: left;
}

.order-success-summary div {
    padding: 14px;
    border-radius: 9px;
    background: #292929;
}

.order-success-summary dt {
    margin-bottom: 5px;
    color: #bdbdbd;
    font-size: 13px;
}

.order-success-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.order-success-note {
    padding: 13px;
    border-radius: 9px;
    background: #292929;
}

.order-success-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

@media (max-width: 600px) {
    .order-success-summary {
        grid-template-columns: 1fr;
    }
}

/* FASE 5G - MIS PEDIDOS */
.orders-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.order-card {
    display: grid;
    gap: 18px;
    padding: 20px;
}

.order-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.order-card-header h3 {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.order-card-label,
.order-card-summary span {
    color: #bdbdbd;
    font-size: 13px;
}

.order-status {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.order-status-pending {
    background: #5a4819;
    color: #ffe49a;
}

.order-status-paid,
.order-status-shipped {
    background: #193f5a;
    color: #a9ddff;
}

.order-status-delivered {
    background: #194d35;
    color: #a6f0ca;
}

.order-status-cancelled {
    background: #5a2222;
    color: #ffb2b2;
}

.order-status-unknown {
    background: #3d3d3d;
    color: #e2e2e2;
}

.order-card-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.order-card-summary div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border-radius: 8px;
    background: #292929;
}

.orders-state-card {
    margin-top: 18px;
    padding: 24px;
    border-radius: 12px;
    background: #1f1f1f;
    text-align: center;
}

.orders-state-card h3 {
    margin-top: 0;
}

.orders-error {
    border: 1px solid #703434;
}

@media (max-width: 720px) {
    .order-card-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .order-card-header {
        flex-direction: column;
    }

    .order-card-summary {
        grid-template-columns: 1fr;
    }
}

/* FASE 5I - CANCELACION DE PEDIDOS PENDIENTES */
.order-cancel-actions {
    display: grid;
    justify-items: start;
    gap: 8px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #3b3b3b;
}

.order-cancel-actions p {
    margin: 0;
    color: #bdbdbd;
    font-size: 13px;
}

.order-cancel-button {
    border: 1px solid #a84747;
    background: #5a2222;
    color: #ffd0d0;
}

.order-cancel-button:hover {
    background: #733030;
}

/* FASE 5J - PEDIDOS RECIBIDOS */
.sales-orders-intro {
    color: #bdbdbd;
}

.sales-orders-list,
.sales-order-items {
    display: grid;
    gap: 14px;
}

.sales-order-card {
    margin-top: 18px;
}

.sales-buyer-data {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sales-buyer-data div,
.sales-order-item,
.sales-delivery-data {
    display: grid;
    gap: 5px;
    padding: 12px;
    border-radius: 8px;
    background: #292929;
}

.sales-buyer-data span,
.sales-delivery-data span,
.sales-order-item span {
    color: #bdbdbd;
    font-size: 13px;
}

.sales-buyer-data strong,
.sales-delivery-data p {
    overflow-wrap: anywhere;
}

.sales-delivery-data p {
    margin: 0;
}

@media (max-width: 800px) {
    .sales-buyer-data {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .sales-buyer-data {
        grid-template-columns: 1fr;
    }
}

/* FASE 5J PASO 2 - RESULTADO POR VENDEDOR */
.checkout-created-orders {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.checkout-created-order {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 9px;
    background: #292929;
    text-align: left;
}

.checkout-created-order span {
    color: #bdbdbd;
    font-size: 13px;
}

.checkout-created-order strong {
    overflow-wrap: anywhere;
}

.checkout-created-order button {
    justify-self: start;
}

/* FASE 5J PASO 3 - ACCIONES DEL VENDEDOR */
.seller-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #3b3b3b;
}

.seller-cancel-button {
    border: 1px solid #a84747;
    background: #5a2222;
    color: #ffd0d0;
}

.seller-cancel-button:hover {
    background: #733030;
}

/* CORRECCION VISUAL FASE 5J - CONTRASTE DE PEDIDOS RECIBIDOS */
.sales-order-card .sales-buyer-data strong,
.sales-order-card .sales-order-item strong,
.sales-order-card .sales-delivery-data p {
    color: #f5f5f5;
}

.sales-order-card .sales-order-item,
.sales-order-card .sales-delivery-data {
    color: #f5f5f5;
}

/* FASE 5J PASO 4 - BUSQUEDA DE VENTAS */
.sales-orders-filters {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin: 20px 0 10px;
    padding: 14px;
    border-radius: 10px;
    background: #242424;
}

.sales-orders-filters label {
    display: grid;
    gap: 6px;
}

.sales-orders-filters label span,
.sales-orders-results-count {
    color: #bdbdbd;
    font-size: 13px;
}

.sales-orders-filters input,
.sales-orders-filters select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #111;
    color: #f5f5f5;
}

.sales-orders-results-count {
    margin: 0 0 10px;
}

@media (max-width: 760px) {
    .sales-orders-filters {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

/* CORRECCION FASE 5J PASO 4 - MENSAJES Y CODIGOS */
#sales-orders-content .orders-state-card,
#sales-orders-content .orders-state-card h3,
#sales-orders-content .orders-state-card p {
    color: #f5f5f5;
}

/* FASE 5K PASO 1 - MIS PRODUCTOS */
.my-products-intro,
.my-products-results-count,
.my-product-code {
    color: #555;
}

.my-products-filters {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(160px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin: 20px 0 10px;
    padding: 14px;
    border-radius: 10px;
    background: #242424;
}

.my-products-filters label {
    display: grid;
    gap: 6px;
    color: #f5f5f5;
}

.my-products-filters input,
.my-products-filters select {
    width: 100%;
    min-height: 42px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #111;
    color: #f5f5f5;
}

.my-products-list {
    display: grid;
    gap: 14px;
}

.my-product-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 12px;
    background: #1f1f1f;
    color: #f5f5f5;
}

.my-product-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.my-product-card h3 {
    margin: 4px 0 0;
}

.my-product-card-header > div > span,
.my-product-summary span {
    color: #bdbdbd;
    font-size: 13px;
}

.my-product-state {
    align-self: start;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.my-product-state.active {
    background: #194d35;
    color: #a6f0ca;
}

.my-product-state.paused {
    background: #5a4819;
    color: #ffe49a;
}

.my-product-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.my-product-summary div {
    display: grid;
    gap: 5px;
    padding: 12px;
    border-radius: 8px;
    background: #292929;
}

.my-product-code {
    margin: 0;
    overflow-wrap: anywhere;
    color: #bdbdbd;
    font-size: 13px;
}

@media (max-width: 760px) {
    .my-products-filters,
    .my-product-summary {
        grid-template-columns: 1fr;
    }
}

/* FASE 5K PASO 2 - EDITAR PRODUCTOS */
.my-product-actions,
.my-product-editor-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.my-product-editor {
    display: grid;
    grid-template-columns: minmax(200px, 2fr) minmax(130px, 1fr) minmax(120px, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #3b3b3b;
}

.my-product-editor label {
    display: grid;
    gap: 6px;
}

.my-product-editor label span {
    color: #bdbdbd;
    font-size: 13px;
}

.my-product-editor input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #111;
    color: #f5f5f5;
}

.my-product-editor-actions {
    grid-column: 1 / -1;
}

@media (max-width: 700px) {
    .my-product-editor {
        grid-template-columns: 1fr;
    }
}


/* FASE 5K PASO 3 - PAUSAR Y REACTIVAR PRODUCTOS */
.pause-product-button {
    background: #6b4c12;
    color: #fff3c4;
}

.reactivate-product-button {
    background: #17613d;
    color: #d2f8e4;
}

.pause-product-button:hover,
.reactivate-product-button:hover {
    filter: brightness(1.12);
}

/* FASE 5K PASO 4 - DATOS COMPLETOS DEL PRODUCTO */
.product-form textarea {
    min-height: 84px;
    resize: vertical;
}

.my-product-description-field {
    grid-column: 1 / -1;
}

.my-product-editor textarea {
    width: 100%;
    min-height: 90px;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #111;
    color: #f5f5f5;
    resize: vertical;
}

#detail-product-category {
    font-weight: 700;
}

/* FASE 5K PASO 5 - IMAGENES DE PRODUCTOS */
.product-card-image,
.product-image-placeholder {
    width: 100%;
    height: 170px;
    border-radius: 10px;
    object-fit: cover;
    background: #ededed;
}

.product-image-placeholder {
    display: grid;
    place-items: center;
    color: #666;
}

.detail-product-image-container {
    margin-bottom: 16px;
}

.detail-product-image {
    width: 100%;
    max-height: 360px;
    border-radius: 12px;
    object-fit: contain;
    background: #f1f1f1;
}

.my-product-image {
    width: 120px;
    height: 120px;
    border-radius: 10px;
    object-fit: cover;
    background: #292929;
}

.my-product-card > .product-image-placeholder {
    width: 120px;
    height: 120px;
    background: #292929;
    color: #bdbdbd;
}

/* FASE 5K PASO 6 - CONTROL DE STOCK */
.my-products-stock-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(100px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.my-products-stock-summary button {
    display: grid;
    gap: 5px;
    min-height: 72px;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 10px;
    background: #242424;
    color: #f5f5f5;
    text-align: left;
}

.my-products-stock-summary button span {
    color: #bdbdbd;
    font-size: 13px;
}

.my-products-stock-summary button strong {
    font-size: 22px;
}

.my-products-stock-summary .low-stock {
    border-color: #9b751a;
}

.my-products-stock-summary .out-of-stock {
    border-color: #9d3737;
}

.my-product-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.my-product-stock-state {
    align-self: start;
    padding: 7px 10px;
    border-radius: 999px;
    font-weight: 700;
}

.my-product-stock-state.low {
    background: #624d18;
    color: #ffe49a;
}

.my-product-stock-state.out {
    background: #652626;
    color: #ffc0c0;
}

@media (max-width: 760px) {
    .my-products-stock-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* FASE 5L PASO 2 - OFERTAS */
.product-price,
.detail-product-price,
.my-product-price-display {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.product-normal-price {
    color: #777;
    font-size: 0.78em;
    font-weight: 500;
    text-decoration: line-through;
}

.product-offer-price {
    color: #b42318;
    font-weight: 800;
}

.product-offer-badge {
    padding: 4px 7px;
    border-radius: 999px;
    background: #b42318;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.my-product-offer-toggle {
    display: flex !important;
    align-items: center;
    align-self: end;
    grid-template-columns: auto 1fr;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #292929;
}

.my-product-offer-toggle input {
    width: 20px;
    min-height: 20px;
}

/* CORRECCION FASE 5L - CARRITO SIEMPRE VISIBLE */
body.cart-panel-open {
    overflow: hidden;
}

#cart-section {
    position: fixed !important;
    top: 0;
    right: 0;
    z-index: 3000;
    width: min(520px, 100%);
    height: 100vh;
    margin: 0 !important;
    padding: 22px !important;
    overflow-y: auto;
    border-radius: 0 !important;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45) !important;
}

.cart-panel-header {
    position: sticky;
    top: -22px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: -22px -22px 18px;
    padding: 18px 22px;
    background: #171717;
    border-bottom: 1px solid #3b3b3b;
}

.cart-panel-header h3 {
    margin: 0 !important;
}

.cart-panel-header button {
    padding: 9px 13px;
    background: #444;
}

@media (max-width: 600px) {
    #cart-section {
        width: 100%;
        padding: 16px !important;
    }

    .cart-panel-header {
        top: -16px;
        margin: -16px -16px 16px;
        padding: 14px 16px;
    }
}

/* CORRECCION FASE 5L - CARRITO FLOTANTE SIEMPRE VISIBLE */
.cart-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2500;
    min-height: 54px;
    padding: 13px 18px !important;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.cart-button:hover {
    transform: translateY(-2px);
}

body.cart-panel-open .cart-button {
    display: none;
}

@media (max-width: 600px) {
    .cart-button {
        right: 14px;
        bottom: 14px;
    }
}

/* FASE 5M PASO 3 - BANNERS */
.marketplace-banners {
    gap: 18px;
    margin: 22px 0;
}

.marketplace-banner-card {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: 18px;
    background: #151515;
    color: #fff;
}

.marketplace-banner-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    opacity: 0.72;
}

.marketplace-banner-copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: clamp(24px, 6vw, 70px);
    background: linear-gradient(90deg, rgba(0,0,0,.8), rgba(0,0,0,.12));
}

.marketplace-banner-copy h2 {
    max-width: 700px;
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(28px, 5vw, 52px);
}

.marketplace-banner-copy p {
    max-width: 620px;
    color: #f2f2f2;
    font-size: 18px;
}

.marketplace-banner-copy a {
    margin-top: 10px;
    padding: 12px 18px;
    border-radius: 9px;
    background: #fff;
    color: #111;
    font-weight: 800;
    text-decoration: none;
}

.banner-admin-section {
    margin-top: 30px;
}

.banner-admin-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0;
    padding: 20px;
    border-radius: 14px;
    background: #242424;
    color: #f5f5f5;
}

.banner-admin-form label {
    display: grid;
    gap: 6px;
}

.banner-admin-form input,
.banner-admin-form textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #111;
    color: #f5f5f5;
}

.banner-admin-form textarea {
    min-height: 90px;
    resize: vertical;
}

.banner-active-option {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
}

.banner-active-option input {
    width: 20px;
    min-height: 20px;
}

.banner-admin-list {
    display: grid;
    gap: 14px;
}

.banner-admin-card {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #202020;
    color: #f5f5f5;
}

.banner-admin-image {
    width: 180px;
    height: 110px;
    border-radius: 9px;
    object-fit: cover;
}

@media (max-width: 700px) {
    .banner-admin-form,
    .banner-admin-card {
        grid-template-columns: 1fr;
    }

    .banner-admin-image {
        width: 100%;
        height: 180px;
    }
}

/* CORRECCION FASE 5M - CARRITO SIN TAPAR PUBLICIDAD */
.cart-button {
    right: auto;
    left: 24px;
}

@media (max-width: 600px) {
    .cart-button {
        right: auto;
        left: 14px;
    }
}

/* FASE 5M PASO 4 - CARRUSEL COMPACTO */
.marketplace-banners {
    margin: 16px 0;
}

.marketplace-banner-card {
    min-height: 220px;
}

.marketplace-banner-image {
    height: 220px;
}

.marketplace-banner-copy {
    padding: clamp(20px, 4vw, 42px);
}

.marketplace-banner-copy h2 {
    margin: 6px 0;
    font-size: clamp(24px, 4vw, 38px);
}

.marketplace-banner-copy p {
    margin: 4px 0;
    font-size: 16px;
}

.marketplace-banner-label {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: #222;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.banner-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 38px;
    height: 38px;
    padding: 0;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
}

.banner-carousel-arrow.previous {
    left: 10px;
}

.banner-carousel-arrow.next {
    right: 10px;
}

.banner-carousel-dots {
    position: absolute;
    right: 0;
    bottom: 10px;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.banner-carousel-dots button {
    width: 10px;
    height: 10px;
    min-width: 10px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.banner-carousel-dots button.active {
    background: #fff;
    transform: scale(1.25);
}

@media (max-width: 600px) {
    .marketplace-banner-card,
    .marketplace-banner-image {
        height: 170px;
        min-height: 170px;
    }

    .marketplace-banner-copy {
        padding: 18px 48px;
    }

    .marketplace-banner-copy p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* FASE 5M - FRANJA INFERIOR DE NOVEDADES */
body.has-walz-news-bar {
    padding-bottom: 52px;
}

.walz-news-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2400;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    min-height: 44px;
    padding: 8px 18px;
    background: #111;
    color: #fff;
    border-top: 1px solid #3d3d3d;
    box-shadow: 0 -5px 18px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    text-align: center;
}

.walz-news-bar button {
    flex: 0 0 auto;
    padding: 5px 9px;
    background: #3a3a3a;
    font-size: 12px;
}

body.has-walz-news-bar .cart-button {
    bottom: 62px;
}

@media (max-width: 600px) {
    .walz-news-bar {
        justify-content: space-between;
        gap: 8px;
        padding: 7px 10px;
        font-size: 12px;
        text-align: left;
    }

    body.has-walz-news-bar .cart-button {
        bottom: 66px;
    }
}
/* FASE 5M PASO 6 - PROPUESTAS DE PUBLICIDAD */
.banner-proposal-open {
    margin: 0 0 18px;
    background: #1e5c35;
}

.banner-proposal-form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    color: #f7f7f7;
    background: #151515;
    border: 1px solid #555;
    border-radius: 8px;
}

.banner-review-state {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.banner-review-state.pending { background: #fff0b8; color: #684d00; }
.banner-review-state.approved { background: #cdeed9; color: #155b32; }
.banner-review-state.rejected { background: #f5cccc; color: #792525; }

.banner-review-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.marketplace-banner-copy button {
    width: max-content;
    padding: 9px 14px;
    border-radius: 8px;
    background: #176b3a;
    color: white;
}
/* MOVIMIENTO SUAVE DE PUBLICIDAD Y NOVEDADES */
.marketplace-banner-card {
    animation: walz-banner-enter 420ms ease-out;
}

@keyframes walz-banner-enter {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}

.walz-news-bar {
    justify-content: stretch;
    overflow: hidden;
}

.walz-news-viewport {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

.walz-news-track {
    display: flex;
    width: max-content;
    animation: walz-news-scroll 20s linear infinite;
    will-change: transform;
}

.walz-news-track span {
    min-width: 100vw;
    padding: 0 50px;
    text-align: center;
    white-space: nowrap;
}

.walz-news-bar:hover .walz-news-track,
.walz-news-bar:focus-within .walz-news-track {
    animation-play-state: paused;
}

@keyframes walz-news-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marketplace-banner-card { animation: none; }
    .walz-news-track { animation: none; }
}

@media (max-width: 600px) {
    .walz-news-track span {
        padding: 0 24px;
    }
}
/* FASE 5N - PERFIL DE TIENDA */
.store-profile-section {
    max-width: 1180px;
    margin: 28px auto 90px;
    padding: 0 18px;
}

.store-profile-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    gap: 22px;
    align-items: start;
}

.store-profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
    border-radius: 14px;
    background: #242424;
    color: #f7f7f7;
}

.store-profile-form label { display: grid; gap: 7px; }
.store-profile-form .store-profile-wide { grid-column: 1 / -1; }
.store-profile-form input,
.store-profile-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #151515;
    color: #fff;
}
.store-profile-form textarea { min-height: 115px; resize: vertical; }
.store-profile-form button { grid-column: 1 / -1; }

.store-preview-panel {
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: #fff;
}
.store-preview-panel > span { color: #666; font-size: 0.85rem; }
.store-preview-brand { display: grid; gap: 14px; margin-top: 14px; }
.store-preview-logo {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: contain;
    border-radius: 12px;
    background: #f4f4f4;
}
.store-preview-brand h3 { margin: 0 0 7px; font-size: 1.35rem; }
.store-preview-brand p { margin: 0; color: #555; line-height: 1.5; }

@media (max-width: 760px) {
    .store-profile-layout,
    .store-profile-form { grid-template-columns: 1fr; }
    .store-profile-form .store-profile-wide { grid-column: auto; }
    .store-profile-form button { grid-column: auto; }
}
.store-profile-success-message {
    display: block;
    margin-top: 14px;
    padding: 11px 14px;
    border: 1px solid #8bd3a6;
    border-radius: 8px;
    background: #dff5e7;
    color: #155b32;
    font-weight: 700;
}
/* FASE 5N - TIENDA PUBLICA */
.public-store-section {
    max-width: 1180px;
    margin: 28px auto 90px;
    padding: 0 18px;
}

.public-store-header {
    display: grid;
    grid-template-columns: minmax(180px, 300px) 1fr;
    gap: 28px;
    align-items: center;
    margin: 20px 0 30px;
    padding: 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    border: 1px solid #ddd;
}

.public-store-logo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
}

.public-store-copy > span { color: #176b3a; font-weight: 700; }
.public-store-copy h1 { margin: 8px 0; font-size: clamp(2rem, 5vw, 3.4rem); }
.public-store-copy > p { color: #555; line-height: 1.6; }
.public-store-contact { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 16px; }
.public-store-contact span { padding: 7px 10px; border-radius: 8px; background: #e9eee9; }

.public-store-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.public-store-product {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}
.public-store-product-image { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 10px; background: #f3f3f3; }
.public-store-product h3 { margin: 0; }
.product-store-link { background: #244c36; }

@media (max-width: 700px) {
    .public-store-header { grid-template-columns: 1fr; text-align: center; }
    .public-store-logo { max-width: 240px; margin: auto; }
    .public-store-contact { justify-content: center; }
}
/* FASE 5O - SOLICITUDES DE VENDEDORES */
.seller-application-section {
    max-width: 1000px;
    margin: 28px auto 90px;
    padding: 0 18px;
}
.seller-application-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
    border-radius: 14px;
    background: #242424;
    color: #fff;
}
.seller-application-form label { display: grid; gap: 7px; }
.seller-application-form .seller-application-wide { grid-column: 1 / -1; }
.seller-application-form input,
.seller-application-form textarea,
.seller-application-card textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #555;
    border-radius: 8px;
    background: #151515;
    color: #fff;
}
.seller-application-form textarea,
.seller-application-card textarea { min-height: 110px; resize: vertical; }
.seller-application-form button { grid-column: 1 / -1; }
.seller-applications-list { display: grid; gap: 16px; }
.seller-application-card {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: #fff;
}
.seller-application-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.seller-application-heading h3 { margin: 4px 0; }
.seller-application-heading p { margin: 0; color: #555; }
.seller-application-card .banner-review-actions { margin-top: 12px; }
.seller-application-approved { border-color: #8bd3a6; background: #effaf3; }
.seller-application-rejected { border-color: #e2aaaa; background: #fff3f3; margin-bottom: 14px; }

@media (max-width: 650px) {
    .seller-application-form { grid-template-columns: 1fr; }
    .seller-application-form .seller-application-wide,
    .seller-application-form button { grid-column: auto; }
    .seller-application-heading { display: grid; }
}
/* CONTRASTE SOLICITUDES 5O */
.seller-application-section .orders-state-card {
    background: #242424;
    color: #f7f7f7;
}

.seller-application-section .orders-state-card h3,
.seller-application-section .orders-state-card p {
    color: #f7f7f7;
}
/* AVISOS ADMINISTRATIVOS PENDIENTES */
#seller-applications-admin-button,
#banner-admin-button {
    position: relative;
}

.admin-pending-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #d62828;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
}
/* AVISO DE PEDIDOS RECIBIDOS */
#sales-orders-button {
    position: relative;
}
/* FASE 5P - CARGA MASIVA DE PRODUCTOS */
.bulk-products-panel {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #d9d9d9;
    border-radius: 14px;
    background: #fff;
    color: #171717;
}
.bulk-products-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.bulk-products-heading h3 { margin: 4px 0 6px; }
.bulk-products-heading p { margin: 0; color: #555; }
.bulk-products-kicker { color: #315f45; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.bulk-template-button { flex: 0 0 auto; }
.bulk-file-label { display: grid; gap: 8px; margin-top: 18px; font-weight: 700; }
.bulk-file-label input { padding: 12px; border: 1px dashed #777; border-radius: 9px; background: #f7f7f7; color: #171717; }
.bulk-products-help { color: #555; font-size: 14px; }
.bulk-products-preview { margin-top: 16px; }
.bulk-preview-summary { display: flex; justify-content: space-between; gap: 12px; padding: 13px; border-radius: 9px; }
.bulk-preview-success { background: #e9f8ee; border: 1px solid #79bd91; }
.bulk-preview-warning { background: #fff7df; border: 1px solid #d8ad39; }
.bulk-preview-table-wrap { margin-top: 14px; overflow-x: auto; }
.bulk-preview-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.bulk-preview-table th, .bulk-preview-table td { padding: 10px; border-bottom: 1px solid #ddd; text-align: left; }
.bulk-preview-table th { background: #242424; color: #fff; }
.bulk-preview-errors { margin-top: 14px; padding: 14px; border: 1px solid #c96b6b; border-radius: 9px; background: #fff0f0; color: #731d1d; }
.bulk-preview-errors ul { margin-bottom: 0; }
.bulk-preview-notice { margin-bottom: 0; font-weight: 700; color: #555; }
@media (max-width: 650px) {
    .bulk-products-heading, .bulk-preview-summary { display: grid; }
    .bulk-template-button { width: 100%; }
}
/* FASE 5P PASO 2 - CONFIRMACION DE CARGA MASIVA */
.bulk-products-publish-button { width: 100%; margin-top: 14px; padding: 13px 18px; background: #176b3a; color: #fff; font-weight: 800; }
.bulk-products-publish-button:hover { background: #10542d; }
.bulk-products-publish-button:disabled { opacity: .65; cursor: wait; }
.bulk-import-complete { display: grid; gap: 5px; padding: 16px; border: 1px solid #6eb587; border-radius: 10px; background: #e8f7ed; color: #174d29; }
/* FASE 5Q - RECUPERACION DE CONTRASENA */
.auth-alternate-form { flex-direction: column; }
.auth-alternate-form h3 { text-align: center; margin-bottom: 10px; }
.auth-alternate-form > p:not(.switch-text) { margin: 0 0 18px; color: #555; line-height: 1.45; text-align: center; }
.auth-alternate-form button:disabled { opacity: .65; cursor: wait; }
.auth-recovery-link { margin-top: 14px; margin-bottom: 0; }
/* FASE 5Q - CAMBIO SEGURO DE CORREO */
.account-settings-section{max-width:760px;margin:28px auto 90px;padding:0 18px}.account-settings-card{display:grid;gap:14px;margin-top:18px;padding:22px;border-radius:14px;background:#242424;color:#fff}.account-settings-card label{display:grid;gap:7px}.account-settings-card input{background:#151515;color:#fff;border-color:#555}.account-settings-card button:disabled,#confirm-email-change-button:disabled{opacity:.65;cursor:wait}.account-success-message{color:#9ee2b5!important}
/* FASE 5Q - CIERRE VOLUNTARIO DE CUENTA */
.account-danger-zone{display:grid;gap:12px;margin-top:20px;padding-top:20px;border-top:1px solid #666}.account-danger-zone h3{margin:0;color:#ffb6b6}.account-danger-zone p{margin:0;color:#eee;line-height:1.45}.close-account-button{background:#8b2323}.close-account-button:hover{background:#6f1919}.close-account-button:disabled{opacity:.65;cursor:wait}
/* FASE 5Q - TERMINOS OBLIGATORIOS */
.terms-acceptance-label{display:flex;align-items:flex-start;gap:10px;margin:4px 0 14px;font-size:14px;line-height:1.4}.terms-acceptance-label input{width:auto;margin:3px 0 0;flex:0 0 auto}.terms-acceptance-label a{color:#174d2d;font-weight:700}.terms-modal{position:fixed;inset:0;z-index:5000;align-items:center;justify-content:center;padding:20px;background:rgba(0,0,0,.72)}.terms-modal-card{width:min(760px,100%);max-height:88vh;overflow:auto;padding:24px;border-radius:16px;background:#fff;color:#222;box-shadow:0 18px 60px rgba(0,0,0,.4)}.terms-modal-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.terms-modal-heading h2{margin:0}.terms-modal-card li{margin-bottom:10px;line-height:1.45}.terms-provisional-note{padding:12px;border-radius:8px;background:#fff6d8}.terms-accept-button{width:100%;background:#176b3a}@media(max-width:600px){.terms-modal{padding:10px}.terms-modal-card{padding:18px}.terms-modal-heading{align-items:flex-start}}
/* FASE 5R - PERFIL Y SEGURIDAD DE CUENTA */
.account-profile-block,.account-security-block,.account-email-block{margin-bottom:20px;padding:18px;border:1px solid #3f3f3f;border-radius:12px;background:#292929;color:#fff}.account-profile-block h3,.account-security-block h3,.account-email-block h3{margin-top:0;color:#fff}.account-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.account-profile-block label,.account-security-block label,.account-email-block label{color:#fff}.account-profile-block input,.account-security-block input,.account-email-block input{color:#fff;background:#171717;border:1px solid #666}.account-profile-block button,.account-security-block button,.account-email-block button{margin-top:10px}.account-success-message{color:#9be5ad!important}.account-danger-zone{margin-top:28px}@media(max-width:650px){.account-profile-grid{grid-template-columns:1fr}}
/* CORRECCION CONTRASTE GLOBAL 5R */
.orders-state-card,
.orders-state-card h3,
.orders-state-card p {
    color: #f7f7f7;
}

.orders-state-card button {
    color: #ffffff;
}
/* FASE 5S - CARGA AUTOMATICA DE IMAGENES */
.product-image-upload-box{display:grid;gap:10px;padding:14px;border:1px dashed #777;border-radius:10px;background:#292929;color:#fff}.product-image-upload-box label{display:grid;gap:3px;color:#fff}.product-image-upload-box label span{font-size:13px;color:#ddd}.product-upload-preview{display:flex;align-items:center;justify-content:center;min-height:110px;border-radius:8px;background:#eee;color:#555;overflow:hidden}.product-upload-preview img{display:block;max-width:100%;max-height:190px;object-fit:contain}
/* FASE 5S - REEMPLAZO DE IMAGEN AL EDITAR */
.edit-product-file-label{padding:12px;border:1px dashed #777;border-radius:9px;background:#202020}.edit-product-file-label small{display:block;margin-top:5px;color:#ddd}
/* MEJORA FASE 5S - NAVEGACION EN CARRITO Y LISTAS LARGAS */
.cart-bottom-navigation,
.section-bottom-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #444;
}

.cart-bottom-navigation button,
.section-bottom-navigation button {
    flex: 1 1 190px;
}

.walz-back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2400;
    display: none;
    min-height: 48px;
    padding: 11px 16px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.walz-back-to-top.visible {
    display: block;
}

body.cart-panel-open .walz-back-to-top {
    display: none;
}

@media (max-width: 600px) {
    .walz-back-to-top {
        right: 14px;
        bottom: 76px;
    }
}
/* CORRECCION FASE 5S - BOTON ARRIBA CENTRADO */
.walz-back-to-top {
    left: 50% !important;
    right: auto !important;
    bottom: 70px !important;
    transform: translateX(-50%);
    padding: 12px 22px;
    font-size: 15px;
}

.walz-back-to-top:hover {
    transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 600px) {
    .walz-back-to-top {
        left: 50% !important;
        right: auto !important;
        bottom: 76px !important;
    }
}
/* IDENTIDAD VISUAL WALZ ONE - PASO 1 */
:root {
    --walz-petrol: #123b45;
    --walz-petrol-dark: #0b2931;
    --walz-turquoise: #18a6a6;
    --walz-turquoise-light: #dff7f5;
    --walz-gold: #e7a23b;
    --walz-surface: #f5f7f8;
    --walz-ink: #172126;
}

body {
    background: var(--walz-surface);
    color: var(--walz-ink);
}

.walz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin-bottom: 20px;
    padding: 18px 22px;
    background: linear-gradient(135deg, var(--walz-petrol-dark), var(--walz-petrol));
    border-bottom: 4px solid var(--walz-turquoise);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 28px rgba(11, 41, 49, 0.2);
}

.walz-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    flex: 0 0 auto;
    color: #fff;
}

.walz-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #fff;
    background: linear-gradient(145deg, var(--walz-turquoise), #0d7f85);
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 17px 17px 17px 5px;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -3px;
}

.walz-brand-copy {
    line-height: 1.05;
}

.walz-logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.walz-logo strong {
    color: #67ded7;
    font-weight: 800;
}

.walz-subtitle {
    margin-top: 3px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.walz-brand-tagline {
    margin-top: 5px;
    color: #bfe7e5;
    font-size: 11px;
}

.walz-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.walz-header .orders-button,
.walz-header .logout-btn {
    float: none;
    margin: 0;
    padding: 10px 13px;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.walz-header .orders-button:hover,
.walz-header .logout-btn:hover {
    background: var(--walz-turquoise);
    border-color: var(--walz-turquoise);
    opacity: 1;
}

.marketplace-title {
    margin: 18px 0 24px;
    padding: 26px 30px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(120deg, var(--walz-petrol), #17636d);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(18, 59, 69, 0.16);
}

.marketplace-title::after {
    content: "W";
    position: absolute;
    right: 25px;
    top: 50%;
    color: rgba(255, 255, 255, 0.08);
    font-size: 105px;
    font-weight: 900;
    transform: translateY(-51%);
}

#marketplace-section .marketplace-title h2 {
    position: relative;
    z-index: 1;
    margin: 5px 0 8px;
    padding: 0;
    background: transparent;
    color: #fff;
    border-radius: 0;
    font-size: clamp(25px, 4vw, 36px);
}

.marketplace-welcome-copy p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #d9eeee;
    font-size: 16px;
}

.marketplace-welcome-kicker {
    position: relative;
    z-index: 1;
    color: #79e0db;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.logo {
    color: var(--walz-petrol);
}

input:focus,
.product-search input:focus {
    border-color: var(--walz-turquoise);
    box-shadow: 0 0 0 3px rgba(24, 166, 166, 0.13);
}

.walz-news-bar {
    background: var(--walz-petrol-dark);
    border-top-color: var(--walz-turquoise);
}

.walz-news-bar button {
    background: var(--walz-turquoise);
}

@media (max-width: 900px) {
    .walz-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .walz-actions {
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .walz-header {
        padding: 15px;
        border-radius: 0 0 16px 16px;
    }

    .walz-mark {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .walz-logo {
        font-size: 22px;
    }

    .walz-brand-tagline {
        display: none;
    }

    .walz-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .walz-header .orders-button,
    .walz-header .logout-btn {
        width: 100%;
        min-height: 44px;
    }

    .marketplace-title {
        padding: 22px 18px;
    }
}
/* IDENTIDAD VISUAL WALZ ONE - PASO 2: LOGO Y TARJETAS CLARAS */
.walz-mark {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    width: 86px;
    height: 58px;
    padding: 6px 13px 6px 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #20b7b2, #0b7e86);
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 29px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: 0;
}

.walz-mark-w {
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -4px;
}

.walz-mark-one {
    display: grid;
    gap: 0;
    padding-left: 7px;
    border-left: 1px solid rgba(255, 255, 255, 0.65);
    color: #eafffd;
    font-size: 10px;
    font-weight: 900;
    line-height: 0.95;
}

.walz-mark-one i {
    font-style: normal;
}

.my-products-filters {
    background: #ffffff;
    border: 1px solid #d8e5e7;
    box-shadow: 0 5px 18px rgba(18, 59, 69, 0.07);
}

.my-products-filters label {
    color: var(--walz-petrol);
}

.my-products-filters input,
.my-products-filters select {
    background: #f8fbfb;
    border-color: #cbdadd;
    color: var(--walz-ink);
}

.my-products-stock-summary button {
    background: #ffffff;
    border-color: #d7e4e6;
    color: var(--walz-petrol);
    box-shadow: 0 4px 14px rgba(18, 59, 69, 0.06);
}

.my-products-stock-summary button span {
    color: #5f7378;
}

.my-product-card {
    position: relative;
    background: #ffffff;
    color: var(--walz-ink);
    border: 1px solid #d8e5e7;
    border-left: 5px solid var(--walz-turquoise);
    box-shadow: 0 8px 24px rgba(18, 59, 69, 0.08);
}

.my-product-card-header > div > span,
.my-product-summary span,
.my-product-code {
    color: #60757a;
}

.my-product-summary div {
    background: #edf6f6;
    border: 1px solid #dbeaea;
}

.my-product-card > .product-image-placeholder {
    background: #edf3f4;
    color: #62767b;
    border: 1px dashed #bfd0d3;
}

.my-product-state.active {
    background: #dff7ed;
    color: #11613f;
}

.my-product-state.paused {
    background: #fff2cd;
    color: #785b0c;
}

.my-product-stock-state.low {
    background: #fff2cd;
    color: #785b0c;
}

.my-product-stock-state.out {
    background: #fde5e5;
    color: #8d2929;
}

.my-product-actions button:first-child {
    background: var(--walz-petrol);
}

.my-product-actions button:first-child:hover {
    background: var(--walz-turquoise);
}

@media (max-width: 600px) {
    .walz-mark {
        width: 78px;
        height: 52px;
        border-radius: 26px;
    }

    .walz-mark-w {
        font-size: 30px;
    }
}
/* IDENTIDAD VISUAL WALZ ONE - PASO 3 */
body {
    background:
        radial-gradient(circle at 8% 12%, rgba(24, 166, 166, 0.11), transparent 28%),
        radial-gradient(circle at 92% 24%, rgba(231, 162, 59, 0.09), transparent 25%),
        linear-gradient(180deg, #f3f8f7 0%, #edf4f3 55%, #f7f5ef 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1260px;
}

.walz-header .orders-button,
.walz-header .logout-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    border-bottom-width: 3px;
    white-space: nowrap;
}

.walz-header .orders-button > span:first-child,
.walz-header .logout-btn > span:first-child {
    font-size: 16px;
}

.walz-header .sales-orders-button {
    border-bottom-color: #70c8df;
}

.walz-header .my-products-button {
    border-bottom-color: #67ded7;
}

.walz-header .seller-application-button,
.walz-header .seller-applications-admin-button {
    border-bottom-color: #edbd67;
}

.walz-header .store-profile-button {
    border-bottom-color: #efa7b8;
}

.walz-header .banner-admin-button {
    border-bottom-color: #c2a8ed;
}

.walz-header .account-settings-button {
    border-bottom-color: #a8c2ed;
}

.walz-header .logout-btn {
    border-bottom-color: #ef9e9e;
}

.product-item {
    background: rgba(255, 255, 255, 0.94);
    border-color: #d8e7e7;
    box-shadow: 0 8px 24px rgba(18, 59, 69, 0.08);
}

.product-item:nth-child(3n + 2) {
    background: #f4fbf9;
}

.product-item:nth-child(3n) {
    background: #fffaf1;
}

.product-item::before {
    background: #e3f4f2;
    color: #17666b;
}

.product-item:nth-child(3n)::before {
    background: #f8e8c8;
    color: #7b5814;
}

.my-product-card:nth-child(even) {
    background: #f2faf8;
}

.my-product-card:nth-child(3n) {
    background: #fffaf1;
    border-left-color: var(--walz-gold);
}

.my-product-summary div:nth-child(2) {
    background: #f7f5eb;
    border-color: #e9e2c9;
}

.my-products-stock-summary button:nth-child(2) {
    background: #eefaf5;
}

.my-products-stock-summary button:nth-child(3) {
    background: #fff9eb;
}

.my-products-stock-summary button:nth-child(4) {
    background: #fff5dc;
}

.my-products-stock-summary button:nth-child(5) {
    background: #fff0f0;
}

.bulk-products-panel {
    background: linear-gradient(135deg, #ffffff, #edf8f6);
    border-color: #cfe2e2;
    box-shadow: 0 6px 20px rgba(18, 59, 69, 0.06);
}

#my-products-section > h2,
#orders-section > h2,
#sales-orders-section > h2 {
    color: var(--walz-petrol);
}

@media (max-width: 600px) {
    .walz-header .orders-button,
    .walz-header .logout-btn {
        white-space: normal;
    }
}
/* IDENTIDAD VISUAL WALZ ONE - PASO 4: TIENDAS EN PRODUCTOS */
.product-store-identity {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    width: 100%;
    margin: 10px 0 12px;
    padding: 8px 10px;
    background: rgba(223, 247, 245, 0.8);
    border: 1px solid #c8e6e3;
    border-radius: 12px;
    color: var(--walz-petrol);
    text-align: left;
}

.product-store-identity:hover {
    background: #d5f2ef;
    border-color: var(--walz-turquoise);
    opacity: 1;
}

.product-store-logo {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    overflow: hidden;
    background: var(--walz-petrol);
    border-radius: 50%;
}

.product-store-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-store-initial {
    color: #fff;
    font-size: 17px;
    font-weight: 900;
}

.product-store-copy {
    display: grid;
    min-width: 0;
}

.product-store-copy strong,
.product-store-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-store-copy strong {
    font-size: 13px;
}

.product-store-copy small {
    margin-top: 2px;
    color: #5b7277;
    font-size: 11px;
}

.product-store-arrow {
    color: var(--walz-turquoise);
    font-size: 24px;
    line-height: 1;
}

.product-actions .product-store-link {
    display: none;
}
/* CARGA AUTOMATICA DEL LOGO DE TIENDA */
.store-logo-upload-label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
    padding: 14px;
    background: #edf8f6;
    border: 1px dashed #8acac7;
    border-radius: 12px;
}

.store-logo-upload-label > span:first-child,
.store-logo-upload-label > small {
    grid-column: 1 / -1;
}

.store-logo-upload-label small {
    color: #567176;
}

.store-logo-upload-label input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.store-logo-file-button {
    display: inline-flex;
    justify-content: center;
    padding: 10px 14px;
    background: var(--walz-petrol);
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.store-logo-file-name {
    overflow: hidden;
    color: #476267;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* FORMAS DE ENTREGA CONFIGURABLES POR TIENDA */
.store-delivery-settings {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 15px;
    background: #f0f8f7;
    border: 1px solid #c9e2df;
    border-radius: 12px;
}

.store-delivery-settings legend {
    padding: 0 7px;
    color: var(--walz-petrol);
    font-weight: 800;
}

.store-delivery-settings > p {
    margin: 0 0 3px;
    color: #587075;
    font-size: 13px;
}

.store-delivery-settings label {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 11px;
    background: #fff;
    border: 1px solid #d9e7e6;
    border-radius: 10px;
}

.store-delivery-settings input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--walz-turquoise);
}

.store-delivery-settings label span {
    display: grid;
    gap: 3px;
}

.store-delivery-settings small {
    color: #63767b;
}

.store-preview-delivery {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.store-preview-delivery span {
    padding: 6px 9px;
    background: #dff7f5;
    border-radius: 999px;
    color: #17666b;
    font-size: 12px;
    font-weight: 700;
}

.store-preview-delivery strong {
    color: #a23a34;
    font-size: 12px;
}
/* CORRECCION VISUAL DEL TITULO FORMAS DE ENTREGA */
.store-delivery-settings {
    padding-top: 18px;
}

.store-delivery-title {
    margin: 0 0 2px;
    color: var(--walz-petrol);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}
/* CHECKOUT CON ENTREGA POR CADA TIENDA */
.seller-delivery-methods { display: grid; gap: 12px; margin-bottom: 18px; }
.seller-delivery-card { padding: 13px; background: #28383b; border: 1px solid #446166; border-radius: 12px; }
.seller-delivery-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.seller-delivery-heading strong { color: #fff; }
.seller-delivery-heading span { color: #b8d5d7; font-size: 12px; }
.seller-delivery-card .delivery-method-options { margin: 0; }
.checkout-store-delivery-summary { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; padding: 10px; background: #edf8f6; border-radius: 9px; color: #173f47; }
.checkout-store-delivery-summary span { font-weight: 700; }
@media(max-width:600px){.checkout-store-delivery-summary,.seller-delivery-heading{flex-direction:column;}}
/* FLUJO SEGURO DE RETIRO EN EL LOCAL */
.pickup-progress-card { display: grid; gap: 12px; margin-top: 16px; padding: 15px; background: #e9f7f5; border: 1px solid #9bcfca; border-radius: 12px; color: #173f47; }
.pickup-progress-card strong { color: #173f47; }
.pickup-progress-card .seller-order-actions { margin-top: 0; }

/* CRONOLOGIA Y HORARIOS DE PEDIDOS */
.order-timeline { margin-top: 16px; padding: 16px; background: #f5fbfa; border: 1px solid #c6dfdc; border-radius: 12px; color: #173f47; }
.order-timeline h4 { margin: 0 0 13px; color: #173f47; }
.order-timeline-step { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; padding-bottom: 13px; }
.order-timeline-step:last-child { padding-bottom: 0; }
.order-timeline-step > span { width: 11px; height: 11px; margin-top: 4px; border: 3px solid #fff; border-radius: 50%; background: #159b92; box-shadow: 0 0 0 2px #159b92; }
.order-timeline-step:not(:last-child)::after { content: ""; position: absolute; left: 5px; top: 18px; bottom: 2px; width: 2px; background: #9bcfca; }
.order-timeline-step div { display: grid; gap: 3px; }
.order-timeline-step strong { color: #173f47; }
.order-timeline-step time { color: #536d72; font-size: 13px; }


/* PROGRAMACION DE ENVIOS A DOMICILIO */
.delivery-plan-card, .delivery-plan-form { display: grid; gap: 11px; margin-top: 16px; padding: 16px; background: #eef8f6; border: 1px solid #afd6d1; border-radius: 12px; color: #173f47; }
.delivery-plan-card h4, .delivery-plan-form h4 { margin: 0; color: #173f47; }
.delivery-plan-card > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 8px 0; border-bottom: 1px solid #d4e7e4; }
.delivery-plan-card > div:last-child { border-bottom: 0; }
.delivery-plan-card strong { color: #173f47; }
.delivery-plan-form p { margin: 0; color: #526d71; }
.delivery-plan-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.delivery-plan-fields label { display: grid; gap: 6px; color: #173f47; font-weight: 700; }
.delivery-plan-fields input, .delivery-plan-fields select { width: 100%; min-width: 0; padding: 11px; border: 1px solid #9fb8b8; border-radius: 8px; background: #fff; color: #17272b; }
@media (max-width: 760px) { .delivery-plan-fields { grid-template-columns: 1fr; } }

/* MENSAJE VISIBLE DE PROGRAMACION */
.delivery-plan-inline-message { min-height: 20px; margin: 0; color: #a32620 !important; font-weight: 700; }


/* COORDINACION DE HORARIOS DE ENVIO */
.buyer-delivery-preference { display: grid; gap: 9px; margin-top: 12px; padding: 13px; background: #eef8f6; border: 1px solid #8fc9c3; border-radius: 10px; color: #173f47; }
.buyer-delivery-preference p { margin: 0; color: #526d71; font-size: 13px; }
.buyer-delivery-preference > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buyer-delivery-preference label { display: grid; gap: 5px; color: #173f47; }
.buyer-delivery-preference input, .buyer-delivery-preference select { width: 100%; min-width: 0; padding: 10px; border: 1px solid #9fb8b8; border-radius: 8px; background: #fff; color: #17272b; }
.buyer-request-card { display: grid; gap: 8px; padding: 13px; background: #fff8df; border: 1px solid #e4c970; border-radius: 10px; color: #493c10; }
.buyer-request-card h4 { margin: 0; color: #493c10; }
.buyer-request-card > div { display: flex; justify-content: space-between; gap: 12px; }
.delivery-decision-actions { display: flex !important; flex-wrap: wrap; justify-content: flex-start !important; gap: 9px !important; padding-top: 12px !important; }
.delivery-decision-actions .secondary { background: #53686b; }
@media (max-width: 620px) { .buyer-delivery-preference > div { grid-template-columns: 1fr; } }


/* IDENTIFICACION DEL RESPONSABLE DEL ENVIO */
.delivery-responsible-form, .delivery-responsible-card, .delivery-waiting-card { margin-top: 14px; padding: 15px; border: 1px solid #b8d5d2; border-radius: 12px; background: #f4fbfa; color: #173f47; }
.delivery-responsible-form { display: grid; gap: 11px; }
.delivery-responsible-form h4, .delivery-responsible-card h4 { margin: 0; color: #173f47; }
.delivery-responsible-form p { margin: 0; }
.delivery-responsible-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.delivery-responsible-fields label { display: grid; gap: 5px; font-weight: 700; }
.delivery-responsible-fields input { width: 100%; min-width: 0; padding: 10px; border: 1px solid #9fb8b8; border-radius: 8px; background: #fff; color: #17272b; }
.delivery-responsible-card { display: flex; align-items: center; gap: 14px; }
.delivery-responsible-card > img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 2px 10px #0002; }
.delivery-responsible-data { display: grid; gap: 4px; }
.delivery-responsible-card > div:not(.delivery-responsible-data) { display: flex; justify-content: space-between; width: 100%; gap: 12px; }
.delivery-waiting-card { background: #fff8df; border-color: #e4c970; font-weight: 800; }
@media (max-width: 620px) { .delivery-responsible-fields { grid-template-columns: 1fr; } .delivery-responsible-card { align-items: flex-start; } }

/* WALZ_OFFICIAL_LOGO_V1 */
.walz-header {
    background: linear-gradient(135deg, #f7f6f3, #eef8f7);
    border: 1px solid rgba(13, 76, 95, 0.14);
    border-bottom: 4px solid var(--walz-turquoise);
}

.walz-brand {
    min-width: 280px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: var(--walz-petrol-dark);
}

.walz-brand-image {
    display: block;
    width: clamp(235px, 25vw, 365px);
    height: auto;
    max-height: 105px;
    object-fit: contain;
    object-position: left center;
    border-radius: 12px;
}

.walz-brand-marketplace {
    margin-left: 12px;
    color: #17636d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.walz-header .orders-button,
.walz-header .logout-btn,
.walz-header .cart-button {
    background: #ffffff;
    border: 1px solid rgba(13, 76, 95, 0.24);
    color: #103f50;
    box-shadow: 0 4px 11px rgba(15, 64, 78, 0.08);
}

.walz-header .orders-button:hover,
.walz-header .logout-btn:hover,
.walz-header .cart-button:hover {
    background: var(--walz-turquoise);
    border-color: var(--walz-turquoise);
    color: #ffffff;
}

@media (max-width: 760px) {
    .walz-brand { min-width: 0; width: 100%; align-items: center; }
    .walz-brand-image { width: min(100%, 330px); max-height: 90px; object-position: center; }
    .walz-brand-marketplace { margin-left: 0; }
}

/* WALZ_LIGHT_BANNERS_V1 */
.marketplace-banner-card {
    background: #eef5f4;
}

.marketplace-banner-image {
    opacity: 1;
}

.marketplace-banner-copy {
    background: linear-gradient(90deg, rgba(8, 48, 64, 0.30) 0%, rgba(8, 48, 64, 0.10) 48%, rgba(8, 48, 64, 0) 78%);
}

.marketplace-banner-copy h2,
.marketplace-banner-copy p {
    text-shadow: 0 2px 7px rgba(0, 24, 34, 0.72);
}

/* WALZ_LOGO_FINAL_CENTERED_V2 */
.walz-brand {
    align-items: center;
}

.walz-brand-image {
    width: clamp(270px, 29vw, 420px);
    max-height: 120px;
    object-position: center;
}

@media (max-width: 760px) {
    .walz-brand-image {
        width: min(100%, 360px);
        max-height: 100px;
    }
}
