/* ==========================================================================
   Grobo — Design System 2026 (v2 · estilo retail moderno)
   Mueblería Grobo · Navy #21205F + Rojo #ED1F24 (muestreados del logo real)
   Tipografía: Poppins (títulos/precios) + Inter (cuerpo/UI)

   Se carga DESPUÉS de master.css/header.css/icon-menu.css en _Layout.cshtml
   para ganar la cascada. No reescribe el grid de Bootstrap 3 — solo re-skinea
   colores, tipografía, espaciado, sombras y componentes para un look de tienda
   moderna (tarjetas limpias, precio rojo prominente, fondo elegante), 100%
   responsivo.
   ========================================================================== */

:root {
  /* Marca */
  --grobo-navy: #21205F;
  --grobo-navy-dark: #15143F;
  --grobo-navy-light: #3B3A82;
  --grobo-red: #ED1F24;
  --grobo-red-dark: #C4171B;
  --grobo-red-light: #F2494D;

  /* Neutrales */
  --grobo-ink: #22222E;
  --grobo-body: #55555F;
  --grobo-muted: #8A8A96;
  --grobo-surface: #FFFFFF;
  --grobo-border: #ECEDF2;
  --grobo-border-strong: #DADBE4;

  /* Semánticos */
  --grobo-success: #1E8A5F;
  --grobo-success-bg: #EAF7F1;
  --grobo-success-border: #BFE6D3;
  --grobo-danger: #D6262B;
  --grobo-danger-bg: #FDEDEE;
  --grobo-danger-border: #F5C6C8;
  --grobo-warning: #B8770A;
  --grobo-warning-bg: #FDF3E1;
  --grobo-warning-border: #F0DBA9;
  --grobo-info: var(--grobo-navy);
  --grobo-info-bg: #EEEEF7;
  --grobo-info-border: #D6D6EC;

  /* Tipografía */
  --grobo-font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --grobo-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Escala / forma */
  --grobo-radius-sm: 8px;
  --grobo-radius-md: 14px;
  --grobo-radius-lg: 22px;
  --grobo-shadow-xs: 0 1px 2px rgba(33, 32, 95, 0.06);
  --grobo-shadow-sm: 0 2px 10px rgba(33, 32, 95, 0.06);
  --grobo-shadow-md: 0 10px 30px rgba(33, 32, 95, 0.10);
  --grobo-shadow-lg: 0 24px 60px rgba(33, 32, 95, 0.18);
  --grobo-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------------------- */
/* Base / fondo elegante con tinte de marca                                */
/* ---------------------------------------------------------------------- */

/* El plugin de menú (Menuresp/defaults.min.css) fija html{font-size:62.5%},
   lo que encogía todo el diseño en rem a escala 0.625. Se restaura la base
   estándar (1rem = 16px) para que la tipografía y el espaciado se vean como
   fueron diseñados. Se carga en el body después de este archivo, por eso el
   !important. */
html {
  font-size: 100% !important;
}

html, body {
  font-family: var(--grobo-font-body);
  color: var(--grobo-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #F4F5F9;
  background-image:
    radial-gradient(1100px 520px at 12% -8%, rgba(33, 32, 95, 0.07), transparent 60%),
    radial-gradient(900px 460px at 100% 0%, rgba(237, 31, 36, 0.04), transparent 55%),
    linear-gradient(180deg, #FAFBFD 0%, #EFF0F5 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6,
.font-additional {
  font-family: var(--grobo-font-display);
  color: var(--grobo-navy);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.font-main {
  font-family: var(--grobo-font-body);
}

a {
  color: var(--grobo-navy);
  transition: color var(--grobo-transition);
}

a:hover, a:focus {
  color: var(--grobo-red);
  text-decoration: none;
}

.color-main { color: var(--grobo-ink); }
.color-additional { color: var(--grobo-muted); }
.color-third { color: var(--grobo-muted); }

.text-center { text-align: center; }
.text-right { text-align: right; }

/* ---------------------------------------------------------------------- */
/* Encabezados de página / breadcrumb                                      */
/* ---------------------------------------------------------------------- */

.pageTitleBox, .page-header {
  border: none;
  padding: 2.5rem 0 1.5rem;
  margin: 0 0 1.5rem;
}

.pageTitleBox h1, .pageTitleBox h2,
.page-header h1, .page-header h2 {
  font-size: 2rem;
  margin: 0;
}

/* Hero de breadcrumb en listados de Artículo — banda navy elegante y slim */
#pageTitleBox.breadcrumb-container {
  background-color: var(--grobo-navy) !important;
  background-image: linear-gradient(115deg, var(--grobo-navy-dark) 0%, var(--grobo-navy) 45%, var(--grobo-navy-light) 100%);
  padding: 2rem 0;
  margin-bottom: 2rem;
  box-shadow: var(--grobo-shadow-sm);
}

#pageTitleBox.breadcrumb-container .overlay {
  background: transparent;
}

#pageTitleBox .title {
  color: #fff !important;
  font-family: var(--grobo-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#pageTitleBox .breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

#pageTitleBox .breadcrumb-list li,
#pageTitleBox .breadcrumb-list a {
  display: inline-block;
  color: #C9C9E4 !important;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------- */
/* Barra de resultados del listado (estilo "N artículos")                  */
/* ---------------------------------------------------------------------- */

.category-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 0 1.25rem;
  margin-bottom: 0.5rem;
}

.category-pagination p,
.products-cat .category-pagination p {
  color: var(--grobo-ink);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--grobo-font-display);
  margin: 0;
  float: none !important;
}

.category-pagination nav {
  margin-left: auto;
}

/* ---------------------------------------------------------------------- */
/* Botones                                                                 */
/* ---------------------------------------------------------------------- */

.btn {
  font-family: var(--grobo-font-body);
  font-weight: 600;
  border-radius: var(--grobo-radius-sm);
  padding: 0.62rem 1.4rem;
  letter-spacing: 0.01em;
  transition: all var(--grobo-transition);
  border-width: 1px;
}

.btn-primary,
.btn-default,
.btn-success,
input[type="submit"].btn,
button[type="submit"].btn {
  background-color: var(--grobo-navy) !important;
  border-color: var(--grobo-navy) !important;
  color: #fff !important;
  box-shadow: var(--grobo-shadow-xs);
}

.btn-primary:hover, .btn-primary:focus,
.btn-default:hover, .btn-default:focus,
.btn-success:hover, .btn-success:focus {
  background-color: var(--grobo-navy-dark) !important;
  border-color: var(--grobo-navy-dark) !important;
  box-shadow: var(--grobo-shadow-md);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--grobo-red) !important;
  border-color: var(--grobo-red) !important;
  color: #fff !important;
}

.btn-danger:hover, .btn-danger:focus {
  background-color: var(--grobo-red-dark) !important;
  border-color: var(--grobo-red-dark) !important;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.button-border {
  background: transparent !important;
  border: 2px solid var(--grobo-navy) !important;
  color: var(--grobo-navy) !important;
}

.button-border:hover {
  background: var(--grobo-navy) !important;
  color: #fff !important;
}

/* ---------------------------------------------------------------------- */
/* Tarjetas de producto — estilo retail (Liverpool-like)                   */
/* Aplica tanto a .thumbnail (listados) como a .product-item (colección)   */
/* ---------------------------------------------------------------------- */

.thumbnail,
.product-item {
  position: relative;
  background: var(--grobo-surface);
  border: 1px solid var(--grobo-border);
  border-radius: var(--grobo-radius-md);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--grobo-shadow-xs);
  transition: box-shadow var(--grobo-transition), transform var(--grobo-transition), border-color var(--grobo-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.thumbnail:hover,
.product-item:hover {
  box-shadow: var(--grobo-shadow-md);
  transform: translateY(-4px);
  border-color: #E0E1EC;
}

.thumbnail > a,
.product-item > a,
.product-card_link {
  display: block;
  color: inherit;
  flex: 1;
}

/* Área de imagen — cuadrada, fondo blanco, imagen contenida con aire */
.product-card_media,
.product-item_body,
div.theme-center {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  overflow: hidden;
}

.product-card_media div.theme-center {
  padding: 0;
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
}

.thumbnail img,
.product-item_image,
img.theme-center {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  transition: transform var(--grobo-transition);
}

.thumbnail:hover img.theme-center,
.product-item:hover .product-item_image {
  transform: scale(1.04);
}

/* Bloque de texto de la tarjeta */
.product-card_content {
  padding: 0.9rem 1.1rem 0.25rem;
}

/* Código / clave del artículo (línea pequeña superior) */
.product-item_meta {
  color: var(--grobo-muted);
  font-family: var(--grobo-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

/* Título / descripción del producto — 2 líneas máx, limpio */
.product-item_title {
  font-family: var(--grobo-font-body);
  color: var(--grobo-ink);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}

.stock-tag {
  display: block;
  color: var(--grobo-muted);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

/* Precio — rojo, prominente, tipo retail */
.product-item_price {
  color: var(--grobo-red);
  font-family: var(--grobo-font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

/* Precio anterior (promoción) — tachado, gris, pequeño */
.product-item_price span {
  color: var(--grobo-muted);
  font-family: var(--grobo-font-body);
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: line-through;
  margin-left: 0.4rem;
  letter-spacing: 0;
}

/* Zona de acción / botón agregar */
.product-card_actions {
  padding: 0.5rem 1.1rem 1.1rem;
  margin-top: auto;
}

.btn-add,
.thumbnail .btn-default,
.product-item .btn-default {
  background: #fff !important;
  border: 1.5px solid var(--grobo-navy) !important;
  color: var(--grobo-navy) !important;
  border-radius: 999px !important;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.6rem 0.8rem;
  box-shadow: none !important;
  text-transform: none;
  white-space: normal;
  line-height: 1.2;
}

.btn-add:hover, .btn-add:focus,
.thumbnail .btn-default:hover,
.product-item .btn-default:hover {
  background: var(--grobo-navy) !important;
  border-color: var(--grobo-navy) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.btn-add .glyphicon,
.thumbnail .btn-default .glyphicon {
  margin-right: 0.25rem;
}

/* Badge de oferta / nuevo — pill pequeño, esquina superior */
.product-item_sale,
.product-item_new,
.product-item_outofstock {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: var(--grobo-red) !important;
  color: #fff;
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  font-family: var(--grobo-font-body);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: var(--grobo-shadow-xs);
}

.product-item_outofstock {
  background: var(--grobo-muted) !important;
}

/* Grid de productos (ListByColeccion) */
.products-grid {
  list-style: none;
  padding-left: 0;
}

.products-grid > li {
  margin-bottom: 1.75rem;
}

/* ---------------------------------------------------------------------- */
/* Tarjetas ".card" (Pago/FormaPago y Pago/PagoTarjeta)                    */
/* ---------------------------------------------------------------------- */

.card {
  background: var(--grobo-surface);
  border: 1px solid var(--grobo-border);
  border-radius: var(--grobo-radius-lg);
  box-shadow: var(--grobo-shadow-sm);
  overflow: hidden;
  padding: 0;
  margin-bottom: 1.5rem;
  transition: box-shadow var(--grobo-transition), transform var(--grobo-transition);
}

.card:hover {
  box-shadow: var(--grobo-shadow-md);
  transform: translateY(-2px);
}

.card-img-top {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
  padding: 1.5rem 1.5rem 0;
}

.card-body {
  padding: 1.25rem 1.5rem 1.75rem;
  text-align: center;
}

.card-title {
  font-family: var(--grobo-font-display);
  color: var(--grobo-navy);
  font-weight: 600;
  font-size: 1.15rem;
}

.card-text {
  color: var(--grobo-muted);
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
}

/* ---------------------------------------------------------------------- */
/* Tarjetas de contenido / paneles                                         */
/* ---------------------------------------------------------------------- */

.auth-card {
  max-width: 460px;
  margin: 2.5rem auto;
  background: var(--grobo-surface);
  border: 1px solid var(--grobo-border);
  border-radius: var(--grobo-radius-lg);
  box-shadow: var(--grobo-shadow-md);
  padding: 2.25rem 2.25rem 1.75rem;
}

.auth-card h2 {
  margin-top: 0;
}

.status-page {
  max-width: 640px;
  margin: 3rem auto;
  text-align: center;
}

.status-page .btn {
  margin-top: 1rem;
}

.ficha-pago {
  background: var(--grobo-surface);
  border: 1px solid var(--grobo-border);
  border-radius: var(--grobo-radius-lg);
  box-shadow: var(--grobo-shadow-md);
  padding: 2rem;
  margin: 2rem auto;
  float: none;
}

.ficha-pago h1 {
  color: var(--grobo-red);
  letter-spacing: 0.03em;
}

.ficha-deadline {
  color: var(--grobo-danger) !important;
  background: var(--grobo-danger-bg);
  border-radius: var(--grobo-radius-sm);
  padding: 0.6rem 1rem;
  display: inline-block;
}

.single_top .well {
  border-radius: var(--grobo-radius-lg);
  border: 1px solid var(--grobo-border);
  box-shadow: var(--grobo-shadow-sm);
  background: #fff;
  padding: 1.5rem;
  position: relative;
}

.single_top .well img.img-responsive,
.single_top .well img.responsive {
  border-radius: var(--grobo-radius-md);
}

.panel {
  border: 1px solid var(--grobo-border);
  border-radius: var(--grobo-radius-md);
  box-shadow: var(--grobo-shadow-sm);
  overflow: hidden;
  background: var(--grobo-surface);
}

.panel-heading {
  font-family: var(--grobo-font-display);
  font-weight: 600;
  background: var(--grobo-surface);
  border-bottom: 1px solid var(--grobo-border);
}

.panel-primary > .panel-heading {
  background: var(--grobo-navy);
  color: #fff;
  border-color: var(--grobo-navy);
}

.panel-warning > .panel-heading {
  background: var(--grobo-warning-bg);
  color: var(--grobo-warning);
  border-color: var(--grobo-warning-border);
}

.panel-default {
  background: var(--grobo-surface);
}

/* ---------------------------------------------------------------------- */
/* Tablas                                                                  */
/* ---------------------------------------------------------------------- */

.table {
  background: var(--grobo-surface);
  border-radius: var(--grobo-radius-md);
  overflow: hidden;
  box-shadow: var(--grobo-shadow-sm);
}

.table > thead > tr > th {
  font-family: var(--grobo-font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--grobo-muted);
  background: #F7F8FB;
  border-bottom: 2px solid var(--grobo-border);
}

.table > tbody > tr > td {
  border-color: var(--grobo-border);
  vertical-align: middle;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: #FCFCFE;
}

/* ---------------------------------------------------------------------- */
/* Formularios                                                             */
/* ---------------------------------------------------------------------- */

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
select,
textarea {
  border: 1px solid var(--grobo-border-strong);
  border-radius: var(--grobo-radius-sm);
  padding: 0.6rem 0.9rem;
  font-family: var(--grobo-font-body);
  color: var(--grobo-ink);
  transition: border-color var(--grobo-transition), box-shadow var(--grobo-transition);
  box-shadow: none;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--grobo-navy);
  box-shadow: 0 0 0 3px rgba(33, 32, 95, 0.12);
  outline: none;
}

label {
  font-weight: 600;
  color: var(--grobo-ink);
}

.required-mark {
  color: var(--grobo-red);
  font-weight: 700;
}

.required-note {
  color: var(--grobo-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.full-wigth {
  width: 100%;
  float: left;
  padding-bottom: 1.1rem;
}

.message-field {
  background-color: var(--grobo-surface);
  border: 1px solid var(--grobo-border-strong);
  border-radius: var(--grobo-radius-sm);
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  width: 100%;
  font-family: var(--grobo-font-body);
}

.message-field:focus {
  border-color: var(--grobo-navy);
  box-shadow: 0 0 0 3px rgba(33, 32, 95, 0.12);
  outline: none;
}

.send-button {
  color: #fff !important;
  background: var(--grobo-navy) !important;
  border: 1px solid var(--grobo-navy) !important;
  margin: 0.5rem 0 0;
  padding: 0.85rem 1.5rem;
  border-radius: var(--grobo-radius-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.send-button:hover {
  background: var(--grobo-navy-dark) !important;
  border-color: var(--grobo-navy-dark) !important;
}

.k-widget.k-combobox .k-dropdown-wrap,
.k-widget.k-combobox .k-input {
  border-radius: var(--grobo-radius-sm);
}

.k-state-focused {
  box-shadow: 0 0 0 3px rgba(33, 32, 95, 0.12) !important;
  border-color: var(--grobo-navy) !important;
}

/* ---------------------------------------------------------------------- */
/* Alertas / validación — lenguaje visual único                            */
/* ---------------------------------------------------------------------- */

.alert {
  position: relative;
  font-family: var(--grobo-font-body);
  border-radius: var(--grobo-radius-md);
  border: 1px solid transparent;
  padding: 1rem 1.25rem 1rem 3.25rem;
  box-shadow: var(--grobo-shadow-sm);
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert:before {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
}

.alert-danger, .alert-error {
  background: var(--grobo-danger-bg);
  border-color: var(--grobo-danger-border);
  color: var(--grobo-danger);
}

.alert-danger:before, .alert-error:before {
  content: "!";
  color: var(--grobo-danger);
}

.alert-success {
  background: var(--grobo-success-bg);
  border-color: var(--grobo-success-border);
  color: var(--grobo-success);
}

.alert-success:before {
  content: "\2713";
  color: var(--grobo-success);
}

.alert-warning {
  background: var(--grobo-warning-bg);
  border-color: var(--grobo-warning-border);
  color: var(--grobo-warning);
}

.alert-warning:before {
  content: "!";
  color: var(--grobo-warning);
}

.alert-info {
  background: var(--grobo-info-bg);
  border-color: var(--grobo-info-border);
  color: var(--grobo-info);
}

.alert-info:before {
  content: "i";
  color: var(--grobo-info);
}

.alert strong {
  font-weight: 700;
}

/* ---------------------------------------------------------------------- */
/* Bootbox — diálogos elegantes                                            */
/* ---------------------------------------------------------------------- */

.bootbox.modal .modal-content {
  border: none;
  border-radius: var(--grobo-radius-lg);
  box-shadow: var(--grobo-shadow-lg);
  overflow: hidden;
}

.bootbox .modal-body {
  padding: 1.75rem 1.75rem 0.5rem;
  font-family: var(--grobo-font-body);
}

.bootbox .modal-body .alert {
  margin: 0;
  box-shadow: none;
}

.bootbox .modal-footer {
  border-top: none;
  padding: 1.25rem 1.75rem 1.75rem;
}

.bootbox .btn {
  border-radius: var(--grobo-radius-sm);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 1.5rem;
}

/* ---------------------------------------------------------------------- */
/* Modal de avisos (#myModal) y banner principal                           */
/* ---------------------------------------------------------------------- */

.modal-content {
  border: none;
  border-radius: var(--grobo-radius-lg);
  box-shadow: var(--grobo-shadow-lg);
  overflow: hidden;
}

.modal-header {
  background: var(--grobo-navy);
  border-bottom: none;
  padding: 1.25rem 1.75rem;
}

.modal-title {
  font-family: var(--grobo-font-display);
  color: #fff;
  font-weight: 600;
}

.modal-header .close {
  color: #fff;
  opacity: 0.8;
  text-shadow: none;
}

.modal-header .close:hover {
  opacity: 1;
}

.modal-body {
  padding: 1.75rem;
  font-family: var(--grobo-font-body);
  color: var(--grobo-body);
}

.modal-footer {
  border-top: 1px solid var(--grobo-border);
  padding: 1rem 1.75rem 1.75rem;
}

#main-slider {
  border-radius: var(--grobo-radius-lg);
  overflow: hidden;
  box-shadow: var(--grobo-shadow-sm);
  margin-bottom: 0.5rem;
}

#main-slider .item img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------------------------------------------------------------------- */
/* Paginación                                                              */
/* ---------------------------------------------------------------------- */

.pagination {
  margin: 0;
}

.pagination > li > a,
.pagination > li > span {
  border-color: var(--grobo-border);
  color: var(--grobo-navy);
  font-weight: 600;
  font-size: 0.9rem;
}

.pagination > li > a:hover {
  background-color: var(--grobo-navy);
  border-color: var(--grobo-navy);
  color: #fff;
}

.pagination > .active > a,
.pagination > .active > span {
  background-color: var(--grobo-navy) !important;
  border-color: var(--grobo-navy) !important;
}

/* Los botones inline de paginado (.btn dentro de li) se ven como chips */
.pagination .btn-primary,
.pagination .btn-default {
  border-radius: var(--grobo-radius-sm) !important;
  padding: 0.35rem 0.7rem;
  min-width: 2.2rem;
}

/* ---------------------------------------------------------------------- */
/* Header / búsqueda / carrito                                             */
/* ---------------------------------------------------------------------- */

.header-middle {
  background: var(--grobo-surface);
  border-bottom: 1px solid var(--grobo-border);
  padding: 1.1rem 0;
  box-shadow: var(--grobo-shadow-xs);
}

.header-middle .logo {
  display: block;
  height: 54px;
  background-image: url('../images/logo.png');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  cursor: pointer;
}

.header-middle .form-inline .form-group {
  display: flex;
  width: 100%;
}

.header-middle #searchQuery {
  border-radius: 999px 0 0 999px;
  border-right: none;
  border-color: var(--grobo-border-strong);
  padding-left: 1.2rem;
  flex: 1;
  width: 100%;
}

.header-middle .form-inline .btn {
  border-radius: 0 999px 999px 0;
  border-left: none;
  background-color: var(--grobo-navy) !important;
  border-color: var(--grobo-navy) !important;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
}

.searchbox-icon a {
  color: var(--grobo-navy);
  font-size: 1.5rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.searchbox-icon a:hover {
  color: var(--grobo-red);
}

.searchbox-icon label {
  font-family: var(--grobo-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--grobo-red);
  color: #fff;
  border-radius: 999px;
  min-width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  cursor: pointer;
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */

.footer-top {
  background: var(--grobo-navy);
  color: #E7E7F2;
  padding: 3rem 0 2rem;
}

.footer-top_title {
  font-family: var(--grobo-font-display);
  color: #fff !important;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.footer-nav a, .footer-contact, .footer-contact a {
  color: #C7C7DE !important;
}

.footer-nav a:hover {
  color: var(--grobo-red-light) !important;
}

.footer-social-list a {
  color: #fff;
}

.footer-bottom {
  background: var(--grobo-navy-dark);
  padding: 1rem 0;
}

.footer-bottom .footer-payments img {
  height: 26px;
  width: auto;
  border-radius: 4px;
  background: #fff;
  padding: 2px 4px;
  margin-left: 0.4rem;
}

#footer .goToTop {
  background: var(--grobo-red);
  color: #fff;
}

/* ---------------------------------------------------------------------- */
/* Responsivo                                                              */
/* ---------------------------------------------------------------------- */

@media (max-width: 991px) {
  #pageTitleBox .title { font-size: 1.5rem; }
}

@media (max-width: 767px) {
  .pageTitleBox h1, .pageTitleBox h2,
  .page-header h1, .page-header h2 {
    font-size: 1.5rem;
  }

  /* Header compacto en móvil — elimina el hueco entre carrito y productos */
  .header-middle {
    padding-top: 0.8rem;
    padding-bottom: 0.3rem;
  }

  .header-middle .logo {
    height: 42px;
  }

  .header-middle .container > br {
    display: none;
  }

  .header-middle .col-sm-3,
  .header-middle .col-sm-5,
  .header-middle .col-sm-4 {
    margin-bottom: 0.6rem;
  }

  .header-middle .col-sm-4 {
    margin-bottom: 0;
  }

  /* Recorta el gran padding-top heredado del template (.page-content: 69px) */
  .page-content,
  #pageContent.page-content {
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;
  }

  .product-card_media,
  .product-item_body,
  div.theme-center {
    padding: 0.9rem;
  }

  .product-item_price {
    font-size: 1.1rem;
  }

  /* Botón agregar: cabe en tarjetas angostas (2 por fila) */
  .product-card_actions {
    padding: 0.4rem 0.6rem 0.9rem;
  }

  .btn-add,
  .thumbnail .btn-default,
  .product-item .btn-default {
    font-size: 0.72rem;
    padding: 0.5rem 0.5rem;
    border-radius: 12px !important;
  }

  .btn-add .glyphicon,
  .thumbnail .btn-default .glyphicon {
    display: none;
  }

  .category-pagination {
    padding-top: 0.25rem;
  }
}
