/* Logo MYBODY */
/* Logo MYBODY - mismo tamaño para MY y BODY, círculo cubre bien */
.logo-default,
.logo-dark {
  font-size: 1.7rem !important;
  /* Más chico */
  letter-spacing: 0.02em !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* Compactar nav en pantallas md (992px–1199px) para evitar salto de línea */
@media (min-width: 992px) and (max-width: 1199px) {
  #mainMenu nav > ul > li { margin: 0 2px !important; }
  #mainMenu nav > ul > li > a { padding: 0 8px !important; font-size: 12px !important; }
  /* disminuir ancho del buscador abierto en este rango */
  .nav-search.open .header-search-form { width: 580px !important; }
  /* Asegurar ancho del dropdown de sugerencias en este rango */
  .nav-search .search-suggestions { left: auto; right: 0; width: 580px; }
}

.my-circle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #CA0027 !important;
  color: #fff !important;
  border-radius: 50% !important;
  width: 2em !important;
  height: 2em !important;
  line-height: 2em !important;
  text-align: center !important;
  font-weight: 700 !important;
  font-size: 1em !important;
  margin-right: 0.15em !important;
  vertical-align: middle !important;
  letter-spacing: 0.02em !important;
}

#logo {
  display: flex !important;
  align-items: center !important;

}

button.btn:not(.btn-creative):not(.btn-slide).btn-sm, .btn:not(.close):not(.mfp-close):not(.btn-creative):not(.btn-slide).btn-sm, a.btn:not([href]):not([tabindex]):not(.btn-creative):not(.btn-slide).btn-sm {
    font-size: 11px;
    height: auto;
    line-height: 28px;
    padding: 0 12px;
}

.site-subheader-alert {
  background-color: #f8f8f8 !important;
  padding: 20px !important;
  border-radius: 5px !important;
  text-align: center !important;
  margin-bottom: 40px !important;
}


/* Tamaño fijo para la tarjeta y la imagen */
.product-image {
  width: 100% !important;
  height: 240px !important;
  /* Ajusta la altura según tu preferencia */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f8f8f800 !important;
  position: relative !important;
  overflow: hidden !important;
}

.product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  /* Usa 'contain' si prefieres que no recorte nada */
  object-position: center !important;
  display: block !important;
}

.product .product-new {
  background: #CA0027;
  font-weight: 800;
  font-size: 1rem;
}

.product-overlay {
  background: rgba(234, 234, 234, 0.8);
  /* Rojo con opacidad */
}

.product-overlay a {
  background-color: #ca0027 !important;
}

.product-overlay a,
.product-overlay a:visited {
  color: #fff !important;
}

.product-overlay a:hover,
.product-overlay a:active,
.product-overlay a:focus {
  color: #fff !important;
  text-decoration: underline;
  /* Opcional, si quieres subrayado en hover */
}

.product-description .product-title h3.product-title-custom {
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.product-title-custom a:hover {
  color: #CA0027 !important;
}

.product-category {
  font-size: 0.875rem !important;
  font-weight: 500 !important;

  /* Espacio entre título e imagen */
  margin-bottom: 0.5rem !important;
  /* Espacio entre categoría y titulo */
  line-height: 1.1;
  padding: 2px;
  color: rgb(120, 120, 120) !important;
  background-color: #ffffff !important;
  opacity: 1 !important;
  border-radius: 2px;


}

#ver-todos-container .btn.btn-primary {
  background: #CA0027 !important;
  color: #fff !important;
  border: none !important;
  transition: background 0.2s;
}

#ver-todos-container .btn.btn-primary:hover,
#ver-todos-container .btn.btn-primary:focus {
  background: #90001a !important;
  color: #fff !important;
}

/* Contacto - Boton Email */
.btn-mail-contact {
  color: rgb(59, 59, 59) !important;
  background-color: #fff !important;
  border: 2px solid #d2d2d2 !important;
  border-radius: 24px !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: background 0.18s, color 0.18s, border 0.18s;
}

.btn-mail-contact:hover {
  color: #fff !important;
  background-color: #4c9fb1 !important;
  border-color: #4c9fb1 !important;
}

/* Contacto - Botones restantes */
.btn-instagram-contact {
  color: rgb(59, 59, 59) !important;
  background-color: #fff !important;
  border: 2px solid #d2d2d2 !important;
  border-radius: 24px !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.btn-instagram-contact:hover {
  color: #fff !important;
  background-color: #CA0027 !important;
  border-color: #CA0027 !important;
}

.btn-phone-contact {
  color: rgb(59, 59, 59) !important;
  background-color: #fff !important;
  border: 2px solid #d2d2d2 !important;
  border-radius: 24px !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.btn-phone-contact:hover {
  color: #fff !important;
  background-color: #226236 !important;
  border-color: #226236 !important;
}

.btn-wapp-contact {
  color: rgb(59, 59, 59) !important;
  background-color: #fff !important;
  border: 2px solid #dddddd !important;
  border-radius: 14px !important;
  padding: 4px 14px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: background 0.18s, color 0.18s, border 0.18s;
}
.btn-wapp-contact:hover {
  color: #fff !important;
  background-color: #2FBD44 !important;
  border-color: #2FBD44 !important;
}

/* Contacto - Barra address */
address {
  margin-bottom: 0 !important
}

.address-contact {
  margin-bottom: 5px;
  background-color: rgb(255, 255, 255) !important;
  padding: 12px !important;
  border-radius: 5px !important;
 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.address-contact {
  transition: box-shadow 0.18s, border 0.18s;
  border: 2px solid transparent;
}

.address-contact-active {
  border: 2px solid #CA0027 !important;
  box-shadow: 0 4px 16px rgba(202,0,39,0.08);
  background: #fff !important;
}


/* New Shop Portfolio */
#portfolio {
  height: auto !important;
  min-height: 1px;
}

#portfolio.grid-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#portfolio .portfolio-item {
  flex: 1 1 calc(25% - 10px);
  max-width: calc(25% - 10px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}

#portfolio .portfolio-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  z-index: 2;
}

#portfolio .portfolio-item:hover .portfolio-title h5 {
  color: #CA0027 !important;
  transition: color 0.18s cubic-bezier(.4,0,.2,1);
}

#portfolio .portfolio-item-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#portfolio .portfolio-image {
  width: 230px;
  height: 230px;
  padding: 20px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  margin: 0 auto 12px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

#portfolio .portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}

#portfolio .portfolio-description {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 40px;
  /* Ajusta min-height según tu diseño */
}

#portfolio .portfolio-description {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  background: none !important;
  box-shadow: none !important;
  width: 100%;
  margin-top: 10px;
  display: block;
  z-index: auto !important;
  min-height: 0;
  opacity: 1 !important;
  pointer-events: auto !important;
}

#portfolio .portfolio-title {
  text-transform: uppercase ;
  font-size: 1.05rem;
  min-height: 28px;
  margin: 0;
  display: block;
  width: 100%;
  text-align: center;
    min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

#portfolio .portfolio-title h5 {
  font-weight: 600 !important;
}

/* Responsive: 2 columnas en tablet, 1 en mobile */
@media (max-width: 991px) {
  #portfolio .portfolio-item {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}
@media (max-width: 600px) {
  #portfolio .portfolio-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.heading-text.heading-section h2:before {
  background-color: #ca0027
}

/* Delivery Info Section */

.delivery-info-section {
  background-color: rgb(241, 241, 241) !important;
}

.delivery-info-section h3 {
  font-size: 14px !important;
  color: #4e4e4e;
}

.delivery-info-section p {
  font-size: 12px !important;
}

@media screen and (max-width: 768px) {
  .delivery-info-section h3 {
    margin: 0 !important;
  }
  .delivery-info-section p {
    margin: 0 !important;
  }
  
}

.flickity-button:hover {
  background-color: #CA0027 !important;
}



@media (max-width: 768px) {

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.05s, box-shadow 0.3s;
  box-shadow: none;
}

#header.header-scrolled {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}  
 

.body-inner {
    padding-top: 80px !important; /* Ajusta según la altura de tu header */
}

  #header .header-inner #logo,
  #header #header-wrap #logo {
    margin-left: 20px !important;
  }

  .slider-home h2 {
    font-size: 30px !important
  }





  .product-description .product-title h3.product-title-custom {
    font-size: 1rem !important;
    /* Tamaño más pequeño en móviles */
  }

  .product-category {
    font-size: 0.9rem !important;
    /* Tamaño más pequeño en móviles */
  }
}


/* Sidebar Nuevo */
/* Botón flotante */
.categorias-fab {
  position: fixed;
  top: 80px;
  left: 0px;
  z-index: 1200;
  background: #CA0027;
  color: #fff;
  border: none;
  border-radius: 0px;
  padding: 10px 18px;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.categorias-fab:hover {
  background: #a8001f;
}

/* --- OFF-CANVAS PANEL MEJORADO PARA MOBILE --- */
.categorias-offcanvas {
  position: fixed;
  top: 80px;
  left: -320px;
  width: 280px;
  height: calc(100vh - 80px);
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  z-index: 1300;
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-radius: 0 12px 12px 0;
  overflow: hidden;
}

.categorias-offcanvas.open {
  left: 0;
}

.categorias-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1299;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.categorias-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.offcanvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 15px 20px;
  border-bottom: 2px solid rgba(202, 0, 39, 0.1);
  font-weight: bold;
  font-size: 18px;
  background: linear-gradient(135deg, #CA0027 0%, #a8001f 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.offcanvas-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.offcanvas-header button {
  background: rgba(255,255,255,0.2);
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.offcanvas-header button:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.offcanvas-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  background: #fff;
}

/* Scrollbar personalizado para el offcanvas */
.offcanvas-body::-webkit-scrollbar {
  width: 6px;
}

.offcanvas-body::-webkit-scrollbar-track {
  background: rgba(202, 0, 39, 0.05);
  border-radius: 3px;
}

.offcanvas-body::-webkit-scrollbar-thumb {
  background: rgba(202, 0, 39, 0.3);
  border-radius: 3px;
}

.offcanvas-body::-webkit-scrollbar-thumb:hover {
  background: rgba(202, 0, 39, 0.5);
}

/* Oculta sidebar y muestra botón solo en mobile */
@media (max-width: 991px) {
  #sidebar-categorias {
    display: none !important;
  }
  .categorias-fab {
    display: flex !important;
  }
}
@media (min-width: 992px) {
  .categorias-fab,
  .categorias-offcanvas,
  .categorias-backdrop {
    display: none !important;
  }
  #sidebar-categorias {
    display: block !important;
  }
}

/* Header Search containers */
.header-search-container {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

/* inside nav (desktop) */
.nav-search {
  display: flex;
  align-items: center;
  position: relative;
}

/* floating next to burger (mobile) */
.header-search-mobile {
  position: absolute;
  right: 52px;
  top: -2px;
  z-index: 1100;
}

.header-search-btn {
  background: #ffffff;
  color: #333;
  border: 1px solid #e3e3e3;
  border-radius: 18px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.header-search-form {
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.25s ease, opacity 0.2s ease;
}

.header-search-container.open .header-search-form,
.nav-search.open .header-search-form {
  width: 640px;
  opacity: 1;
}

.header-search-input {
  width: 100%;
  border: 1px solid #e3e3e3;
  background: #fff;
  color: #333;
  border-radius: 18px;
  height: 36px;
  padding: 0 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* Search suggestions dropdown */
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 2000;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  width: 100%;
  max-height: 60vh;
  overflow-y: auto;
}
.search-suggestions.hidden { display: none; }
.search-suggestions ul {
  list-style: none;
  margin: 0;
  padding: 6px 0;
}
.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.search-suggestion-item:hover,
.search-suggestion-item.active { background: #f6f7f8; }
.search-suggestion-thumb {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  background: #fafafa;
  border: 1px solid #eee;
}
.search-suggestion-title {
  font-size: 14px;
  color: #222;
  line-height: 1.2;
}
.search-suggestions-footer {
  border-top: 1px solid #eee;
  padding: 8px 12px;
  font-size: 13px;
  color: #444;
}
.search-suggestions-footer a { color: #CA0027; }

/* Remove blue focus ring and any default highlight */
.header-search-input:focus,
.header-search-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: #e3e3e3 !important;
}

/* Neutralize Chrome/Safari autofill yellow styling */
input.header-search-input:-webkit-autofill,
input.header-search-input:-webkit-autofill:hover,
input.header-search-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #333 !important;
  caret-color: #333;
  transition: background-color 9999s ease-out 0s;
}

@media (max-width: 991px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
  .header-search-container.open .header-search-form { width: min(63vw, 260px); }
  /* Mobile: unificar botón + input como una sola píldora */
  .header-search-container.open {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 18px;
    height: 36px;
    padding: 0 6px;
    gap: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    position: relative;
    top: 1.5em; /* mantener en su lugar */
  }
  /* When mobile search is open, bring it closer to the right edge */
  .header-search-mobile.open {
    position: absolute;
    right: 22px;
  }
  .header-search-container.open .header-search-btn {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 32px;
    height: 32px;
  }
  .header-search-container.open .header-search-input {
    border: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    height: 100%;
    padding: 0 12px;
  }
  .search-suggestions { top: calc(100% + 8px); width: 100%; }
}
@media (min-width: 992px) {
  .desktop-only { display: inline-flex !important; }
  .mobile-only { display: none !important; }
  /* El input se posiciona absoluto respecto al item de nav, sin empujar el menú */
  .nav-search .header-search-form {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 44px; /* 36px botón + 8px gap */
    white-space: nowrap;
    z-index: 1200;
  }
  /* Ajuste vertical del contenedor de búsqueda en desktop */
  .nav-search {
    position: relative;
    top: 1.5em;
  }
  /* Dropdown de sugerencias: alinear a la derecha y usar ancho del input */
  .nav-search .search-suggestions { left: auto; right: 0; width: 640px; }
}

/* Evitar superposición con el nav en desktop */
@media (min-width: 992px) {
  /* deja lugar para el botón de la lupa */
  /* buscamos que no haga falta padding extra al estar dentro del nav */
}

