/* === COLORES PERSONALIZADOS === */

:root {
  --bs-primary: #F97316;
  --bs-primary-text-emphasis: #FACC15;
  --bs-secondary: #1F2937;

  --bs-primary-rgb: 249,115,22;
  --bs-secondary-rgb: 31,41,55;

  --bs-dark: #1F2937;
  --bs-grey: #6B7280;
  --bs-blue: #FFF7ED;
}

.pagination {
  --bs-pagination-color: var(--bs-dark);
  --bs-pagination-hover-border-color: var(--bs-dark);
  --bs-pagination-active-bg: var(--bs-dark);
  --bs-pagination-active-border-color: var(--bs-dark);
  --bs-pagination-hover-color: var(--bs-dark) !important;
}

.tooltip .tooltip-inner {
  background-color: var(--bs-secondary) !important;
}

.bg-dark {
  background-color: var(--bs-dark) !important;
}

.bg-blue {
  background-color: var(--bs-blue) !important;
  --bs-table-bg: var(--bs-blue) !important;
}

.grey-color {
  color: var(--bs-grey) !important;
}

.orange-color {
  color: var(--bs-primary-text-emphasis) !important;
}

.lightgrey-color {
  color: var(--bs-lightgrey) !important;
}

/* === ESTILOS PERSONALIZADOS === */

.border-x-white {
  border-left: 5px solid #fff !important;
  border-right: 5px solid #fff !important;
}

.border-primary-emphasis {
  border-color: var(--bs-primary-text-emphasis) !important;
}

a.text-white:hover {
  color: var(--bs-primary-text-emphasis) !important;
}

a.text-white.no-hover:hover,
a.no-hover:hover,
a.no-hover:active {
  color: #fff !important;
}

.fs-45 {
  font-size: 18px;
}

.form-check-input {
  border: 1px solid var(--bs-primary-text-emphasis);
  box-shadow: none !important;
  margin-top: 5px;
}

.form-check-input:checked {
  background-color: var(--bs-primary-text-emphasis);
  border-color: var(--bs-primary-text-emphasis);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem rgba(196, 106, 26, 0.25);
}

/* === BOTONES === */

.btn-primary {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: #4aa2c7;
  border-color: #4aa2c7;
  color: #ffffff !important;
}

.btn-primary:focus {
  box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

.btn-outline-primary {
  --bs-btn-color: #5eb5d9;
  --bs-btn-border-color: #5eb5d9;
  --bs-btn-hover-bg: #102851;
  --bs-btn-hover-border-color: #102851;
  --bs-btn-focus-shadow-rgb: 13, 110, 253;
  --bs-btn-active-bg: #102851;
  --bs-btn-active-border-color: #102851;
}

.btn-secondary {
  background-color: var(--bs-secondary);
  border-color: var(--bs-secondary);
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
  background-color: #0c1e43;
  border-color: #0c1e43;
}

.btn-secondary:focus {
  box-shadow: 0 0 0 .25rem rgba(var(--bs-secondary-rgb), .25);
}

.btn-outline-secondary:hover,
.btn-outline-dark:hover,
.btn-outline-primary:hover,
.btn-outline-info:hover {
  color: #fff !important;
}

.btn-white {
  background-color: #fff;
  border-color: #fff;
  color: var(--bs-dark);
  font-size: 14px;
}

.btn-white:hover,
.btn-white:focus,
.btn-white:active {
  background-color: var(--bs-dark);
  border-color: var(--bs-dark);
  color: #fff !important;
}

/* === GENERALES, TEXTOS Y ENLACES === */

body {
  font-family: "Mulish", Arial, Helvetica, sans-serif;
  color: var(--bs-grey);
}

a,
a.nav-link {
  color: var(--bs-dark);
  transition: all 0.3s ease
}

.nav-link.active {
  color: var(--bs-primary-text-emphasis);
  font-weight: 800;
}

a:focus,
a:hover {
  color: var(--bs-primary-text-emphasis) !important;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Marcellus", Arial, Helvetica, sans-serif;
  color: var(--bs-dark);
}

.font-mulish {
  font-family: "Mulish", Arial, Helvetica, sans-serif;
}

.text-primary {
  color: var(--bs-primary) !important;
}

.text-secondary {
  color: var(--bs-secondary) !important;
}

.link-primary {
  color: var(--bs-primary);
}

.link-primary:hover {
  color: #4aa2c7;
}

.link-secondary {
  color: var(--bs-secondary);
}

.link-secondary:hover {
  color: #0c1e43;
}

/* === HEADER === */

.sticky-header.fixed-header {
  position: fixed !important;
}

.mega-menu {
  top: 45px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 1000px;
  display: none;
  padding-top: 30px;
}

.mega-open {
  display: block !important;
}

.mega-panel {
  background: #fff;
  box-shadow: 0px 5px 6px 0px rgb(153 153 153 / 12%);
  border-radius: 0 0 5px 5px;
  padding: .5em 1.5rem 1.5rem;
}

.navbar-toggler {
  border: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: none;
  width: 24px;
  height: 2px;
  background-color: var(--bs-secondary);
  ;
  position: relative;
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--bs-secondary);
  transition: all 0.3s ease;
}

.navbar-toggler-icon::before {
  top: -7px;
}

.navbar-toggler-icon::after {
  top: 7px;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
  background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

button:focus:not(:focus-visible) {
  box-shadow: none;
}

.mega-item {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .28s ease;
}

.mega-item:hover {
  transform: scale(1.03);
}

.nav-item.dropdown .nav-link .bi {
  margin-left: .4rem;
  transition: transform .28s ease;
}

.dropdown-open .nav-link .bi {
  transform: rotate(180deg);
}

.mega-link {
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  text-decoration: none;
  position: relative;
}

.mega-btn {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 1rem;
  background: rgba(255, 255, 255, 0.88);
  color: #484848;
  padding: .55rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  line-height: 1em;
  width: max-content;
  font-size: 15px;
}

.sticky-header.fixed-header .mega-menu {
  top: 40px;
}

#cesta-compra-btn {
  position: relative;
  display: inline-block;
  text-align: center;
  line-height: 32px;
  font-size: 23px !important;
}

#cesta-compra-btn span {
  bottom: 10px;
  left: 15px;
  width: 18px;
  height: 18px;
  line-height: 18px;
  font-size: 9px;
  display: block;
  border-radius: 50%;
  transition: all 0.3s ease;
  background-color: var(--bs-primary);
  color: #fff;
}

#navbarToggler ul {
  font-size: 15px;
  font-weight: 600;
}

#navbarToggler ul>li>a {
  border-bottom: 2px solid transparent;
}

#navbarToggler ul>li>a:hover,
#navbarToggler ul>li.active>a {
  border-bottom: 2px solid var(--bs-secondary);
  color: var(--bs-secondary) !important;
}

#navbarToggler ul>li.dropdown>a:hover,
#navbarToggler ul>li.active.dropdown>a {
  color: #fff !important;
}

li#navDropdown>a {
  background-color: var(--bs-secondary);
  color: #fff;
  transition: all 0.3s ease;
  border-bottom: none !important;
}

li#navDropdown>a:hover {
  background-color: var(--bs-primary);

}

/* === TITLE ROW === */
/* ORIGINAL
.bg-title {
  position: relative;
  background-image: url(../images/bg-title.webp) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}
*/
.bg-title {
  position: relative;
  background-image: url(../images/bg-title.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.breadcrumb-wrapper span {
  text-transform: capitalize;
  font-size: 15px;
}

.breadcrumb-item+.breadcrumb-item::before {
  color: #fff !important;
}

.breadcrumb-item+.breadcrumb-item::before {
  float: none;
}

/* === SIDEBAR === */

.widget.widget-search label i {
  position: absolute;
  right: 8px;
  cursor: pointer;
  padding: 10px;
  font-size: 18px;
  z-index: 1;
}

/* Quita el aspa de limpiar del navegador (en Chrome, Edge, Safari) */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Asegura que el botón no tenga fondo al hacer click */
#buscador-lupa:focus {
  outline: none;
  box-shadow: none;
}

/* === CATALOGO === */

.border-box {
  border: 4px solid #f4f4f4;
  border-radius: 20px;
  overflow: hidden;
}

.top-box .h-img {
  height: 290px;
  justify-content: center !important;
}

.top-box .h-img img {
    width: 60%;
}

.top-box .product-overlay:hover {
  opacity: 1;
}

.top-box .con-alergenos {
  top: 10px;
  right: 10px;
}

.top-box .con-favoritos {
  bottom: 10px;
  right: 15px;
}

.top-box .con-destacado {
  background-color: var(--bs-secondary);
  font-size: 14px;
  border-radius: 20px;
  padding: 3px 10px;
  bottom: 15px;
  left: 10px;
}

.top-box .con-alergenos img {
  width: 35px;
}

.bott-box {
  padding: 20px 10px 15px 10px;
  position: relative;
  border-radius: 0 0 20px 20px;
  background: linear-gradient(180deg, #f4f4f4, #ffffffff);
}

.bott-box h2 {
  min-height: 40px;
}

.product-overlay {
  inset: 0;
  background: rgb(94 180 218 / 81%);
  border-radius: 20px 20px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bott-box .gama {
  font-size: 13px;
}

.gama .verde {
  color: #6fbe68 !important;
}

.gama .roja {
  color: #bb1d1d !important;
}

.gama .amarilla {
  color: #e0ca00 !important;
}

.gama .gris {
  color: #a5a5a5 !important;
}

.quantity-box {
  background: #fff;
  border-radius: 50px;
  display: flex;
}

.quantity-box button {
  border: none;
  background: none;
  font-size: 1.2rem;
  color: var(--bs-secondary);
  width: 20px;
  padding: 0;
  margin: 0;
}

.quantity-box input {
  border: none;
  font-weight: 500;
  text-align: center;
  max-width: 50px;
}

.btn-add {
  background: var(--bs-secondary);
  color: #fff;
  border-radius: 9999px;
  padding: 8px 24px;
  font-weight: 600;
  border: none;
}

.btn-add:hover {
  background: var(--bs-primary-text-emphasis);
  color: #fff;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.active>.page-link,
.page-link.active {
  z-index: 2;
}

.active>.page-link:hover,
.page-item .page-link:hover,
.active:hover>.page-link,
.page-item:hover .page-link {
  color: var(--bs-pagination-color) !important;
}

/* === PRODUCTO === */

.nav-tabs .nav-link {
  border-bottom: 2px solid transparent;
}

.nav-tabs .nav-link.active {
  border-bottom: 2px solid var(--bs-dark) !important;
  font-weight: 500;
}

a.transform img {
  transition: transform .18s ease;
}

a:hover.transform img {
  transform: scale(1.1, 1.1);
}

/* === USUARIO + COMPRA === */

.bg-user {
  background: linear-gradient(135deg, #f9fafc, #eef2f7);
  padding: 40px 0;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.1);
}

.hover-underline:hover {
  text-decoration: underline;
}

.icon-wrapper {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgb(16 24 40 / 12%);
  transition: transform .28s ease, box-shadow .28s ease;
  animation: floatY 6s ease-in-out infinite;
  margin: 0 auto 1rem;
}

.icon-wrapper:focus,
.icon-wrapper:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.08);
}

@keyframes floatY {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

.mini-cart {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    background: #fff;
    border-radius: 0 0 .75rem .75rem;
    padding: .5rem 1.5rem 1.5rem 1.5rem;
    display: none;
    z-index: 3;
    animation: slideDown .2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mini-cart li {
  padding: .5rem 0;
  border-bottom: 1px solid #eee;
}

.mini-cart li:last-child {
  border-bottom: 0;
}


/* Fade-in suave */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 1s ease forwards 0.2s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === HOME === */

.review-card {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e6e6e6;
  min-height: 230px;
}

.review-card hr {
  opacity: 0.15;
}

.stars {
  letter-spacing: 4px;
  color: var(--bs-primary);
}

.card-img-top {
  object-fit: cover;
  height: 200px;
}

.card .badge {
  font-size: 0.85em;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card {
  border: none;
}

.card-body {
  padding: 1.5rem;
}

/* === BLOG === */

.post-img {
  border: 3px solid #f1f1f1;
  transition: transform .35s ease, box-shadow .35s ease;
}

a:hover .post-img {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.blockquote {
  padding: 1.25rem 1.8em;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
  border: 1px solid rgba(13, 110, 253, 0.08);
  font-size: 17px;
  font-weight: 600;
  color: #46536a;
  margin: 30px 0;
}

.post h1 {
  font-size: 32px;
  margin: 10px 0 20px;

}

.post h2,
.post h3 {
  font-size: 25px;
  color: #545c6b;
  margin: 30px 0 20px;
}

/* === CONTACTO === */

.contact-box {
  background: #fff;
  border: 1px solid #eee;
  transition: all .3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.accordion-button {
  font-size: 19px;
}

.accordion-button:not(.collapsed) {
  background-color: #e4f3fa;
  color: var(--bs-secondary);
}

/* === FOOTER === */

footer {
  font-size: 15px;
}