:root {
    color-scheme: light;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #17212b;
    background: #f1f4f7;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    --color-header: #131921;
    --color-nav: #232f3e;
    --color-accent: #f6a623;
    --color-border: #d9e0e7;
    --color-surface: #fff;
    --color-muted: #526171;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: #f1f4f7;
    color: #17212b;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #4c9ffe;
    outline-offset: 2px;
}

.header {
    flex: 0 0 auto;
    background: var(--color-header);
    color: #fff;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px clamp(16px, 3vw, 32px);
}

.logo {
    flex: 0 0 auto;
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.search-bar {
    display: flex;
    flex: 1 1 240px;
    min-width: 0;
}

.search-bar input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 6px 0 0 6px;
}

.search-bar button {
    min-width: 48px;
    padding: 0 14px;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: #ffd08a;
}

.search-bar button:hover {
    background: #ffc46b;
}

.cart-btn {
    flex: 0 0 auto;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.categorias {
    display: flex;
    gap: clamp(16px, 2.5vw, 28px);
    overflow-x: auto;
    padding: 12px clamp(16px, 3vw, 32px);
    background: var(--color-nav);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.categorias a {
    flex: 0 0 auto;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
}

.categorias a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.container {
    flex: 1 0 auto;
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: clamp(16px, 2.5vw, 32px);
}

h1 {
    margin: 0 0 20px;
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1.2;
}

h2,
h3,
h4 {
    line-height: 1.3;
}

.banner {
    margin-bottom: 24px;
}

.banner img {
    display: block;
    width: 100%;
    max-height: 360px;
    aspect-ratio: 10 / 3;
    border-radius: 12px;
    object-fit: cover;
}

.seccion-productos {
    margin: 20px 0;
    padding: clamp(16px, 2.5vw, 24px);
    border-radius: 12px;
    background: var(--color-surface);
}

.seccion-productos h2 {
    margin: 0;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.seccion-categorias {
    margin: 20px 0;
}

.seccion-categorias h2 {
    margin: 0 0 14px;
}

.grid-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.tarjeta-categoria {
    display: flex;
    min-height: 110px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tarjeta-categoria:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgb(15 23 42 / 10%);
}

.tarjeta-categoria span {
    font-size: 1.8rem;
}

.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
    gap: clamp(12px, 2vw, 20px);
    margin-top: 16px;
}

.producto {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface);
    transition: transform .2s ease, box-shadow .2s ease;
}

.producto:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgb(15 23 42 / 10%);
}

.producto img {
    display: block;
    width: 100%;
    height: clamp(140px, 18vw, 190px);
    object-fit: contain;
}

.producto-superior {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.etiqueta-stock,
.etiqueta-oferta {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.etiqueta-stock.disponible {
    background: #e8f6ed;
    color: #176b37;
}

.etiqueta-stock.agotado {
    background: #fbe9e7;
    color: #a52a16;
}

.etiqueta-oferta {
    background: #fff2d8;
    color: #8a4b00;
}

.boton-favorito {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    margin-left: auto;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: #fff;
    color: #536273;
    font-size: 1.25rem;
}

.boton-favorito.activo,
.btn-favorito-detalle[aria-pressed="true"] {
    color: #c1264b;
}

.producto-enlace {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.producto h3 {
    margin: 10px 0;
    font-size: 1rem;
}

.producto-descripcion {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    color: var(--color-muted);
    font-size: .88rem;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.precio {
    margin: 12px 0;
    color: #a52a16;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
    font-weight: 700;
}

.producto-categoria {
   margin: 8px 0 0;
   color: var(--color-muted);
   font-size: .82rem;
}

.calificacion {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   color: #526171;
   font-size: .82rem;
}

.estrellas {
   color: #e58a00;
   letter-spacing: 1px;
   white-space: nowrap;
}

.precios-producto {
   display: flex;
   flex-wrap: wrap;
   align-items: baseline;
   gap: 8px;
   margin-top: 12px;
}

.precios-producto strong {
   color: #a52a16;
   font-size: 1.25rem;
}

.precios-producto del,
.precio-detalle del {
   color: var(--color-muted);
   font-size: .9rem;
}

.unidades-stock,
.stock-producto {
   margin: 8px 0 0;
   color: #176b37;
   font-size: .86rem;
}

.stock-producto.agotado,
.unidades-stock.agotado {
   color: #a52a16;
}

.btn-agregar,
.btn-comprar {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.btn-agregar {
    background: #ffd814;
}

.btn-agregar:hover {
    background: #f7ca00;
}

.btn-agregar:disabled,
.btn-comprar:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.btn-comprar {
    background: var(--color-accent);
    color: #17212b;
}

.btn-comprar:hover {
    background: #e9910a;
}

.producto .btn-agregar {
    width: 100%;
    margin-top: 8px;
}

.detalle-producto {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
    padding: clamp(18px, 4vw, 40px);
    border-radius: 12px;
    background: var(--color-surface);
}

.detalle-producto > * {
    min-width: 0;
}

.detalle-producto img {
    display: block;
    width: 100%;
    max-height: 480px;
    border-radius: 10px;
    object-fit: contain;
}

.precio-detalle {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.precio-detalle .precio {
    margin: 10px 0;
}

.btn-favorito-detalle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: 0 0 8px;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: #fff;
    color: #344454;
    font-weight: 700;
}

.cantidad {
    margin: 20px 0;
}

.cantidad input {
    width: 90px;
    min-height: 44px;
    margin-left: 8px;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.detalle-producto .btn-agregar,
.detalle-producto .btn-comprar {
    margin: 0 8px 8px 0;
}

.filtros {
    display: grid;
    align-content: start;
    gap: 18px;
    padding: 18px;
    border-radius: 10px;
    background: var(--color-surface);
}

.catalogo-layout {
    display: grid;
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.catalogo-contenido {
    min-width: 0;
}

.filtros-cabecera,
.barra-catalogo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filtros-cabecera h2 {
    margin: 0;
    font-size: 1.1rem;
}

.filtros-cabecera button,
.btn-secundario {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: #344454;
    font-weight: 600;
}

.grupo-filtros {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.grupo-filtros legend {
    margin-bottom: 10px;
    font-weight: 700;
}

.grupo-filtros label,
.filtro-extra {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #344454;
}

.grupo-filtros input,
.filtro-extra input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #1769aa;
}

.precio-filtros {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.precio-filtros label {
    display: grid;
    gap: 6px;
    font-size: .84rem;
}

.precio-filtros input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.barra-catalogo {
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.barra-catalogo p {
    margin: 0;
    color: var(--color-muted);
}

.barra-catalogo label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-muted);
    font-size: .9rem;
}

.barra-catalogo select {
    min-height: 42px;
    max-width: 100%;
    padding: 8px 30px 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
}

.sin-resultados {
    grid-column: 1 / -1;
    padding: 32px 16px;
    border: 1px dashed var(--color-border);
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.sin-resultados h2 {
    margin: 0 0 8px;
}

.sin-resultados p {
    color: var(--color-muted);
}

.control-cantidad {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.control-cantidad button {
    width: 36px;
    height: 36px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: #fff;
    font-size: 1.2rem;
}

.control-cantidad span {
    min-width: 20px;
    text-align: center;
}

.tabla-carrito-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    background: var(--color-surface);
    -webkit-overflow-scrolling: touch;
}

.tabla-carrito {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: var(--color-surface);
}

.tabla-carrito th,
.tabla-carrito td {
    padding: 14px 16px;
    border-bottom: 1px solid #e7ebef;
    text-align: left;
    vertical-align: middle;
}

.tabla-carrito th {
    color: #344454;
    font-size: .9rem;
}

.tabla-carrito tbody tr:last-child td {
    border-bottom: 0;
}

.tabla-carrito td img {
    width: 60px;
    height: 60px;
    margin-right: 8px;
    border-radius: 6px;
    object-fit: contain;
    vertical-align: middle;
}

.btn-eliminar {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff0ef;
    color: #b42318;
    font-size: 1.25rem;
}

.btn-eliminar:hover {
    background: #ffe0dd;
}

.total-carrito {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 20px;
    margin-top: 20px;
}

.total-carrito h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    white-space: nowrap;
}

.mensaje-vacio {
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
    text-align: center;
}

.mensaje-vacio p {
    margin: 0 0 18px;
    color: var(--color-muted);
    font-size: 1.1rem;
}

.mensaje-vacio .btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--color-nav);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.form-checkout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 32px);
    padding: clamp(18px, 3vw, 32px);
    border-radius: 12px;
    background: var(--color-surface);
}

[hidden] {
    display: none !important;
}

.form-checkout .columna {
    min-width: 0;
}

.form-checkout h3 {
    margin: 0 0 12px;
}

.form-checkout input:not([type="radio"]) {
    width: 100%;
    min-height: 46px;
    margin: 7px 0;
    padding: 10px 12px;
    border: 1px solid #cbd3dc;
    border-radius: 6px;
}

.form-checkout select {
    width: 100%;
    min-height: 44px;
    margin: 7px 0;
    padding: 10px 12px;
    border: 1px solid #cbd3dc;
    border-radius: 6px;
    background: #fff;
}

.form-checkout label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.form-checkout input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.form-checkout .columna:first-child label {
    display: grid;
    align-items: start;
    gap: 2px;
}

.form-checkout .columna:first-child input,
.form-checkout textarea {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #cbd3dc;
    border-radius: 6px;
}

.checkout-total {
    margin: 22px 0 10px;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: right;
}

.checkout-success,
.catalogo-error {
    margin: 0 0 20px;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: var(--color-surface);
}

.checkout-success {
    border-color: #b8dfc6;
    background: #edf9f0;
}

.checkout-success h2 {
    margin-top: 0;
}

.checkout-success .btn {
    display: inline-flex;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 7px;
    background: var(--color-nav);
    color: #fff;
    text-decoration: none;
}

.account-entry {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.account-menu {
    position: relative;
    flex: 0 0 auto;
}

.account-menu summary {
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.account-menu summary::-webkit-details-marker {
    display: none;
}

.account-menu summary::after {
    content: "\25BE";
    margin-left: 8px;
}

.account-menu[open] summary {
    border-color: var(--color-accent);
}

.account-submenu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    min-width: 220px;
    padding: 6px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    box-shadow: 0 10px 28px rgb(19 25 33 / 18%);
}

.account-submenu a,
.account-submenu button {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #17212b;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

.account-submenu a:hover,
.account-submenu button:hover {
    background: rgb(19 25 33 / 7%);
    color: #17212b;
}

.account-submenu form {
    margin: 0;
    border-top: 1px solid var(--color-border);
}

.customer-panel {
    margin: 0 0 22px;
    padding: clamp(18px, 3vw, 30px);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    box-shadow: 0 8px 24px rgb(19 25 33 / 5%);
}

.customer-panel h1,
.customer-panel h2,
.customer-panel h3 {
    margin-top: 0;
}

.customer-eyebrow {
    margin: 0 0 6px;
    color: var(--color-muted);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.customer-auth-panel {
    width: min(100%, 560px);
    margin: 28px auto;
}

.customer-auth-panel > p:not(.customer-eyebrow):not(.customer-auth-switch) {
    color: var(--color-muted);
}

.customer-form {
    display: grid;
    gap: 14px;
}

.customer-form label {
    display: grid;
    gap: 6px;
    font-weight: 650;
}

.customer-form input:not([type="checkbox"]),
.customer-form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd3dc;
    border-radius: 7px;
    background: #fff;
}

.customer-form input:focus,
.customer-form select:focus {
    border-color: var(--color-nav);
}

.customer-form button,
.customer-form .btn,
.customer-account-actions .btn,
.customer-section-heading .btn {
    min-height: 42px;
}

.customer-auth-panel .customer-form .btn,
.customer-form-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.customer-alert {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid #e5a6a6;
    border-radius: 8px;
    background: #fff1f1;
    color: #8d2020;
}

.customer-alert.success {
    border-color: #b8dfc6;
    background: #edf9f0;
    color: #246a36;
}

.customer-auth-switch {
    margin: 18px 0 0;
    text-align: center;
}

.customer-auth-switch a,
.customer-address-actions a,
.customer-address-actions button {
    color: #075ca8;
    font-weight: 700;
}

.customer-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--color-muted);
    font-size: .9rem;
}

.customer-auth-divider::before,
.customer-auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--color-border);
    content: "";
}

#customer-google-button {
    display: flex;
    justify-content: center;
    width: 100%;
}

.customer-google-unavailable {
    width: 100%;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-surface);
    color: #344454;
    font: inherit;
    font-weight: 600;
}

.customer-google-unavailable:disabled {
    cursor: not-allowed;
    opacity: .7;
}

.customer-account-heading,
.customer-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.customer-account-heading h1,
.customer-section-heading h1,
.customer-section-heading h2 {
    margin-bottom: 6px;
}

.customer-account-heading p,
.customer-section-heading p {
    margin: 0;
    color: var(--color-muted);
}

.customer-account-actions,
.customer-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.customer-account-actions form {
    margin: 0;
}

.customer-account-actions .btn,
.customer-account-actions .btn-secundario,
.customer-form-actions .btn-secundario,
.customer-section-heading .btn-secundario,
.customer-empty + .btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    background: #fff;
    color: #17212b;
    font-weight: 700;
    text-decoration: none;
}

.customer-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
    margin: 18px 0 26px;
}

.customer-address-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
}

.customer-address-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.customer-address-card h3 {
    margin: 0 0 10px;
}

.customer-address-card p {
    overflow-wrap: anywhere;
}

.customer-default-badge {
    flex: 0 0 auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eaf5ec;
    color: #246a36;
    font-size: .75rem;
    font-weight: 750;
}

.customer-address-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 14px;
}

.customer-address-actions form {
    margin: 0;
}

.customer-address-actions button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
}

.customer-address-form {
    padding-top: 22px;
    border-top: 1px solid var(--color-border);
}

.customer-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.customer-form .customer-checkbox,
.customer-checkbox {
    display: flex;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 9px;
    font-weight: 500;
}

.customer-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.customer-empty {
    padding: 14px;
    border: 1px dashed var(--color-border);
    border-radius: 8px;
    color: var(--color-muted);
}

.customer-order-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.customer-order {
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #fff;
}

.customer-order summary {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    cursor: pointer;
    list-style-position: inside;
}

.customer-order summary span {
    display: grid;
    gap: 5px;
}

.customer-order summary span:last-child {
    text-align: right;
}

.customer-order summary small {
    color: var(--color-muted);
}

.customer-order-details {
    padding: 0 18px 14px;
    border-top: 1px solid var(--color-border);
}

.customer-order-details li {
    margin: 6px 0;
}

.catalogo-error,
#checkout-error {
    border-color: #f0b8b8;
    background: #fff1f1;
    color: #8d2020;
}

.form-checkout button {
    margin-top: 12px;
}

.footer {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 32px;
    padding: 32px clamp(16px, 3vw, 32px);
    background: var(--color-nav);
    color: #fff;
}

.footer-col h4 {
    margin: 0 0 10px;
}

.footer a {
    display: block;
    margin: 8px 0;
    color: #e0e6ed;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.copyright {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid rgb(255 255 255 / 18%);
    text-align: center;
}

.swal2-popup {
    border-radius: 16px;
}

@media (max-width: 760px) {
    .header-top {
        flex-wrap: wrap;
        gap: 12px 16px;
    }

    .search-bar {
        order: 3;
        flex: 1 0 100%;
    }

    .cart-btn {
        margin-left: auto;
    }

    .detalle-producto,
    .form-checkout,
    .customer-form-grid,
    .catalogo-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .customer-account-heading,
    .customer-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .detalle-producto img {
        max-height: 340px;
    }

    .footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .container {
        padding: 16px 12px;
    }

    .header-top {
        padding: 12px;
    }

    .categorias {
        padding: 12px;
    }

    .grid-productos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .producto {
        padding: 10px;
    }

    .producto img {
        height: 135px;
    }

    .precios-producto strong {
        font-size: 1.1rem;
    }

    .producto .btn-agregar {
        padding: 9px 6px;
        font-size: .9rem;
    }

    .total-carrito {
        flex-direction: column;
        align-items: stretch;
    }

    .total-carrito h3 {
        text-align: right;
    }

    .total-carrito .btn-comprar {
        width: 100%;
    }

    .footer {
        gap: 20px 12px;
        padding: 24px 16px;
    }

    .copyright {
        font-size: .9rem;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 1rem;
    }

    .grid-productos {
        grid-template-columns: minmax(0, 1fr);
    }
}