 /* # Archivo 3: `tienda.css`

**Ubicación:**

```text
milugarfavorito/assets/tienda.css
```

```css */
/* =========================================================
   COLORES Y ESTRUCTURA
   ========================================================= */

.mlf-app {
    --mlf-red: #a52a22;
    --mlf-red-dark: #7b1e19;
    --mlf-yellow: #f9ca58;
    --mlf-cream: #fff8ed;
    --mlf-border: #eadfce;
    --mlf-text: #34291f;

    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 110px;
    color: var(--mlf-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    line-height: 1.5;
}

.mlf-app,
.mlf-app * {
    box-sizing: border-box;
}

.mlf-app h1,
.mlf-app h2,
.mlf-app h3,
.mlf-app p {
    margin-top: 0;
}

.mlf-app button,
.mlf-app input,
.mlf-app textarea {
    font: inherit;
}

.mlf-app button,
.mlf-app a,
.mlf-app input,
.mlf-app textarea {
    touch-action: manipulation;
}

.mlf-app button:focus-visible,
.mlf-app a:focus-visible,
.mlf-app input:focus-visible,
.mlf-app textarea:focus-visible {
    outline: 3px solid #1769aa;
    outline-offset: 3px;
}

/* =========================================================
   CABECERA Y MENÚ
   ========================================================= */

.mlf-header {
    margin-bottom: 24px;
}

.mlf-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 0 22px;
    color: var(--mlf-red);
    text-decoration: none;
}

.mlf-brand img {
    width: 90px;
    height: 80px;
    object-fit: contain;
}

.mlf-brand strong {
    display: block;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.15;
    letter-spacing: -1px;
}

.mlf-brand small {
    display: block;
    margin-top: 5px;
    color: #6e5e4e;
}

.mlf-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px;
    border-radius: 16px;
    background: var(--mlf-red);
}

.mlf-nav a {
    padding: 10px 16px;
    border-radius: 9px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.mlf-nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* =========================================================
   PORTADA
   ========================================================= */

.mlf-hero {
    margin-bottom: 26px;
    padding: 34px 24px;
    border: 1px solid #f3d796;
    border-radius: 20px;
    background: linear-gradient(125deg, #fff1c6, #fff9ed);
    text-align: center;
}

.mlf-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 30px;
    background: #f7d67e;
    color: #7a431d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.mlf-hero h1 {
    margin-bottom: 12px;
    color: var(--mlf-red);
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.2;
}

/* =========================================================
   CATÁLOGO
   Diez productos iniciales = dos filas de cinco columnas.
   ========================================================= */

.mlf-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.mlf-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px;
    border: 1px solid var(--mlf-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(66, 42, 20, 0.05);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mlf-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 25px rgba(66, 42, 20, 0.1);
}

.mlf-photo {
    display: block;
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    flex: 0 0 100px;
    border-radius: 14px;
    background: var(--mlf-cream);
    object-fit: cover;
}

.mlf-product .mlf-photo {
    margin-bottom: 14px;
}

.mlf-product h2 {
    margin-bottom: 9px;
    font-size: 17px;
    line-height: 1.3;
}

.mlf-product-description {
    flex: 1;
    color: #756658;
    font-size: 13px;
}

.mlf-price {
    margin: 4px 0 12px;
    color: var(--mlf-red);
    font-size: 21px;
}

.mlf-product-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.mlf-app input,
.mlf-app textarea {
    padding: 9px;
    border: 1px solid #cbbda9;
    border-radius: 8px;
    background: #fff;
    color: var(--mlf-text);
}

.mlf-product-quantity input {
    width: 64px;
}

/* =========================================================
   BOTONES
   ========================================================= */

.mlf-app .mlf-button {
    display: inline-block;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--mlf-red);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.mlf-app .mlf-button:hover {
    background: var(--mlf-red-dark);
    color: #fff;
}

.mlf-product .mlf-button {
    width: 100%;
    padding: 10px 8px;
    font-size: 13px;
}

.mlf-app button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.mlf-secondary {
    margin-left: 10px;
    padding: 10px 14px;
    border: 1px solid var(--mlf-border);
    border-radius: 8px;
    background: var(--mlf-cream);
    color: var(--mlf-text);
    cursor: pointer;
}

/* =========================================================
   PANELES
   ========================================================= */

.mlf-panel {
    margin-bottom: 22px;
    padding: 24px;
    border: 1px solid var(--mlf-border);
    border-radius: 16px;
    background: #fff;
}

/* =========================================================
   CARRITO FLOTANTE
   ========================================================= */

.mlf-cart-button {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 16px 22px;
    border: 0;
    border-radius: 50px;
    background: var(--mlf-yellow);
    color: #392711;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-weight: 700;
}

.mlf-dialog {
    width: min(850px, calc(100vw - 28px));
    max-height: 85vh;
    overflow-y: auto;
    padding: 24px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: var(--mlf-text);
}

.mlf-dialog::backdrop {
    background: rgba(25, 15, 9, 0.6);
}

.mlf-dialog-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mlf-dialog-heading button {
    padding: 8px 12px;
    border: 0;
    border-radius: 8px;
    background: #f2eee8;
    color: #34291f;
    cursor: pointer;
}

/* =========================================================
   DETALLE DE PRODUCTOS Y PEDIDOS
   ========================================================= */

.mlf-line {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--mlf-border);
}

.mlf-line-info {
    flex: 1;
    min-width: 0;
}

.mlf-line-info h3 {
    margin-bottom: 6px;
    font-size: 17px;
}

.mlf-line-info p {
    margin-bottom: 6px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.mlf-line-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mlf-quantity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.mlf-quantity input {
    width: 65px;
    text-align: center;
}

.mlf-quantity button {
    padding: 8px 11px;
    border: 1px solid var(--mlf-border);
    border-radius: 8px;
    background: var(--mlf-cream);
    color: var(--mlf-text);
    cursor: pointer;
}

.mlf-quantity .mlf-remove {
    background: #fff0ee;
    color: #9d211b;
    font-size: 12px;
}

.mlf-total {
    margin: 20px 0;
    color: var(--mlf-red);
    font-size: 21px;
    font-weight: 700;
}

/* =========================================================
   FORMULARIO DEL CLIENTE
   ========================================================= */

.mlf-checkout-form {
    display: grid;
    gap: 14px;
    max-width: 650px;
}

.mlf-field {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.mlf-field input,
.mlf-field textarea {
    width: 100%;
}

.mlf-field textarea {
    min-height: 90px;
    resize: vertical;
}

.mlf-muted {
    color: #756658;
    font-size: 14px;
}

/* =========================================================
   MENSAJES Y PIE
   ========================================================= */

.mlf-notice {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #edf8ed;
    color: #21552b;
}

#mlf-notice:empty {
    display: none;
}

.mlf-error {
    padding: 12px;
    border-radius: 8px;
    background: #fff0ef;
    color: #9c2525;
}

.mlf-footer {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--mlf-border);
    color: #887867;
    text-align: center;
}

/* =========================================================
   TABLET Y MÓVIL
   ========================================================= */

@media (max-width: 1000px) {
    .mlf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .mlf-line {
        flex-wrap: wrap;
    }

    .mlf-line-actions {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .mlf-app {
        padding: 12px 10px 100px;
    }

    .mlf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mlf-brand {
        gap: 4px;
    }

    .mlf-brand img {
        width: 65px;
        height: 65px;
    }

    .mlf-brand small {
        font-size: 11px;
    }

    .mlf-nav a {
        padding: 8px 9px;
        font-size: 13px;
    }

    .mlf-panel,
    .mlf-dialog {
        padding: 16px;
    }

    .mlf-cart-button {
        right: 12px;
        bottom: 12px;
        padding: 13px 17px;
        font-size: 14px;
    }

    .mlf-secondary {
        margin: 10px 0 0;
    }
}

@media (max-width: 360px) {
    .mlf-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mlf-product {
        transition: none;
    }

    .mlf-product:hover {
        transform: none;
    }
}