/*** agrega aqui los estilos necesarios para modificar el template ***/

/**Cabecera**/

.navbar-toggler {
        color: #ffffff;
        background-color: var(--primary-color);
}

.btn-cart, .btn-login, .btn-search {
    color: #ffffff;
    background: var(--primary-color);
}

.cart-items {
    background: #ffdd11;
    color: black;
}

.bs-search__bar, .bs-grid-header__search .form-control {
    background: #f6f6f6;
}

.bs-grid-header__search {
    border: 2px solid #e8e8e8;
}

.btn-danger {
    background: #ca5050;
    border-color: #ca5050;
}

.tyc{
color:#40999b;
}

.tyc:hover{
color:var(--primary-color);
}

@media screen and (min-width: 992px) {
    .bs-grid-header {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

@media screen and (min-width: 992px) {
    .bs-grid-header__logo {
        text-align: center;
        margin-right: 2rem;
        margin-right: 1rem;
    }
}

.bs-categories__item2 {
    border-radius: 3.5rem;
    background: transparent;
    box-shadow: none;
}

.slick-slide img {
    border-radius: 2rem;
  }

/**modificaciones Olifarma*/

.bioequivalent-notice{
  background:#FFDD08;color:#374151;border:none;border-radius:10px;
  padding:12px 16px;text-align:center;font-weight:700;margin-bottom:16px
}

h2{color:#6B7280;font-weight:600;font-size:14px;margin:6px 0 2px 0}
h1{color:#111827;font-weight:800;font-size:22px;line-height:1.25;margin:0 0 10px 0}

.etiquetas-producto{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}
.badge{
  display:inline-block;background:#51BBBD;color:#1F2937;font-size:12px;
  padding:6px 10px;border-radius:8px;font-weight:700;white-space:nowrap
}

.opciones-producto{margin-top:14px;display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.opcion-producto{
  background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px;
  box-shadow:0 1px 2px rgba(0,0,0,.04)
}
.opcion-producto h4{margin:0 0 6px 0;color:#111827;font-weight:600;font-size:14px}
.opcion-producto p{margin:0;color:#9CA3AF;font-size:13px}

.informacion-acciones-producto{display:flex;flex-direction:column;gap:14px;padding:16px}

.acciones-producto{display:flex;align-items:center;gap:10px;margin-top:8px}
.cantidad-producto{display:flex;align-items:center;gap:10px}
.cantidad-producto button{
  background:#51BBBD;border:none;width:36px;height:36px;border-radius:8px;cursor:pointer;color:#0b1f22;font-weight:700;font-size:18px
}
.cantidad-producto span{min-width:20px;text-align:center;color:#111827}

.agregar-producto{
  background:#51BBBD;color:#0b1f22;border:none;border-radius:8px;padding:12px 16px;
  width:100%;cursor:pointer;font-weight:700
}

@media(max-width:992px){
  .secciones-producto{flex-direction:column}
  .secciones-producto section{width:100%}
}

.titulo-producto-individual {
    font-size: 20px;
}

/* ============================================
   ESTILOS MEJORADOS PARA PRODUCTO
   ============================================ */

.pd-article{
  max-width:1300px;
  margin-left:auto;
  margin-right:auto;
  font-family:Arial,Helvetica,sans-serif;
}

.pd-banner{
  background:#ffdd08;
  color:#374151;
  text-align:center;
  border-radius:10px;
  padding:10px 12px;
  font-weight:700;
  margin-bottom:16px;
}

.pd-banner--hidden{display:none}

.pd-brand{
  color:#6b7280;
  font-weight:600;
  font-size:14px;
  margin:6px 0 2px;
}
.pd-brand a{color:#6b7280;text-decoration:none}

.pd-title{
  color:#111827;
  font-weight:800;
  font-size:22px;
  line-height:1.25;
  margin:0 0 10px;
}

.pd-price{
  color:#111827;
  font-weight:700;
  font-size:22px;
  margin:8px 0 12px;
}

/* Información de stock */
.pd-stock-info {
  margin: 12px 0;
}

.pd-stock-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid;
}

.stock-available {
  background-color: #e8f5e8;
  color: #2d5a2d;
  border-color: #c3e6c3;
}

.stock-low {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.stock-critical {
  background-color: #ffeaa7;
  color: #744210;
  border-color: #ffdd08;
  font-weight: 600;
}

.stock-unavailable {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.pd-badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:4px 0 14px;
}

.pd-badge{
  display:inline-block;
  background:#51BBBD;
  color:#fff;
  font-size:12px;
  padding:6px 10px;
  border-radius:8px;
  font-weight:700;
  white-space:nowrap;
}

/* Píldora de tipo de receta */
.pd-prescription-badge {
  text-align: left;
  margin: 16px 0;
}

.pd-prescription-status {
  display: inline-block;
  background: #fff5b5;
  color: #796802;
  font-weight: bold;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid #e9d14b;
}

/* Mensaje informativo de receta */
.pd-prescription-notice {
  background: #f0f9ff;
  border: 1px solid #51BBBD;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
}

.pd-prescription-notice-content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pd-prescription-notice-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.pd-prescription-notice-text {
  margin: 0;
  font-size: 14px;
  color: #333333;
  line-height: 1.4;
}

/* Opciones de entrega */
.pd-options{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  margin:16px 0;
}

.pd-opt{
  background:#ffffff;
  border:1px solid #e8e8e8;
  border-radius:8px;
  padding:20px 16px;
  transition: border-color 0.2s ease;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.pd-opt:hover {
  border-color: #51BBBD;
}

.content-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}

.content-option img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: 12px;
  flex-shrink: 0;
}

.pd-opt-title{
  font-size: 15px;
  font-weight: bold;
  color: #333333;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.pd-opt-status{
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 16px;
  display: inline-block;
}

.pd-opt-status.is-available{
  background-color: #e8f5e8;
  color: #2d5a2d;
  border: 1px solid #c3e6c3;
  font-weight: bold;
}

.pd-opt-status.is-unavailable{
  background-color: #f5f5f5;
  color: #666666;
  border: 1px solid #e0e0e0;
  font-weight: bold;
}

/* Formulario principal */
.pd-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
  max-width: 100%;
  overflow: hidden;
}

/* Selector de variantes */
.pd-variants {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pd-variants-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333333;
  margin: 0;
}

.pd-variants-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  outline: none;
}

.pd-variants-select:hover {
  border-color: #51BBBD;
}

.pd-variants-select:focus {
  border-color: #51BBBD;
  box-shadow: 0 0 0 2px rgba(81, 187, 189, 0.1);
}

/* Contenedor de acciones (cantidad + botón) */
.pd-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
  max-width: 100%;
}

/* Control de cantidad */
.pd-qty {
  display: flex;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  min-width: 160px;
}

.pd-step-btn {
  flex: 0 0 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border: 0;
  background: #f4f4f4;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  line-height: 1;
  outline: none;
}

.pd-step-btn:hover {
  background: #e8e8e8;
}

.pd-step-btn:active {
  background: #d8d8d8;
}

.pd-qty-input {
  flex: 1 1 auto;
  min-width: 60px;
  width: auto;
  height: 50px;
  border: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.pd-qty-input::-webkit-outer-spin-button,
.pd-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pd-qty-input:focus {
  outline: none;
}

/* Botón añadir al carrito */
.pd-add {
  flex: 1;
  padding: 0 20px;
  height: 50px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  background: #51BBBD;
  color: #fff;
  box-shadow: 0 4px 12px rgba(81, 187, 189, 0.3);
  transition: all 0.2s ease;
  outline: none;
  min-width: 0;
  max-width: 100%;
}

.pd-add:hover {
  background: #45a5a7;
  box-shadow: 0 6px 16px rgba(81, 187, 189, 0.4);
  transform: translateY(-1px);
}

.pd-add:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(81, 187, 189, 0.3);
}

.pd-hidden {
  display: none;
}

/* Focus visible para accesibilidad */
.pd-step-btn:focus-visible,
.pd-qty-input:focus-visible,
.pd-add:focus-visible,
.pd-variants-select:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Sticky cart styles */
.sticky-cart {
  margin-bottom: 65px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid #e3e3e3;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 1000;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}

.sticky-cart.visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-cart-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.sticky-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sticky-variants {
  width: 100%;
}

.sticky-variants-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  color: #333333;
  background-color: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  outline: none;
}

.sticky-variants-select:focus {
  border-color: #51BBBD;
  box-shadow: 0 0 0 2px rgba(81, 187, 189, 0.1);
}

.sticky-controls {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.sticky-qty {
  display: flex;
  max-width: 50%;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.sticky-step-btn {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 0;
  border-radius: 0;
  background: #f4f4f4;
  line-height: 1;
  font-size: 18px;
  font-weight: 700;
  outline: none;
}

.sticky-qty-input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 44px;
  border: 0;
  text-align: center;
  font-size: 15px;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}

.sticky-qty-input::-webkit-outer-spin-button,
.sticky-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sticky-add-btn {
  padding: 0 16px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  background: #51bbbd;
  color: #fff;
  box-shadow: 0 6px 14px rgba(10,136,40,.22);
  transition: transform .06s ease;
  width: 100%;
  outline: none;
}

.sticky-add-btn:active {
  transform: translateY(1px);
}

.sticky-step-btn:focus-visible,
.sticky-qty-input:focus-visible,
.sticky-add-btn:focus-visible,
.sticky-variants-select:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Responsivo */
@media (max-width: 768px) {
  .pd-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .content-option img {
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }
  
  .pd-opt-title {
    font-size: 14px;
    white-space: normal;
  }
  
  .pd-opt {
    padding: 16px 12px;
    min-height: 70px;
  }

  .pd-article {
    padding: 0px 1rem;
  }

  .pd-form {
    margin: 20px 0;
    max-width: 100%;
  }

  .pd-actions {
    flex-direction: row;
    gap: 10px;
    width: 100%;
  }

  .pd-qty {
    min-width: 140px;
    max-width: 160px;
  }

  .pd-add {
    flex: 1;
    min-width: 0;
  }

  .sticky-cart {
    display: block;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .pd-article {
    padding: 0 2rem;
  }

  .pd-options {
    gap: 14px;
  }

  .pd-opt {
    padding: 18px 14px;
  }

  .pd-qty {
    min-width: 150px;
  }

  .pd-step-btn {
    flex: 0 0 48px;
  }

  .pd-qty-input {
    min-width: 54px;
  }

  .pd-actions {
    gap: 12px;
  }

  .pd-add {
    font-size: 15px;
    padding: 0 18px;
  }

  .pd-variants-select {
    padding: 11px 14px;
    padding-right: 38px;
  }
}

@media (min-width: 769px) {
  .sticky-cart {
    display: none;
  }
}

@media (max-width: 640px) {
  .pd-actions {
    flex-direction: column;
    gap: 10px;
  }

  .pd-qty {
    width: 100%;
    max-width: 100%;
  }

  .pd-add {
    width: 100%;
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .pd-qty {
    min-width: 150px;
  }

  .pd-step-btn {
    flex: 0 0 46px;
    height: 48px;
  }

  .pd-qty-input {
    height: 48px;
    min-width: 58px;
  }

  .pd-add {
    height: 48px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .pd-add {
    font-size: 14px;
    padding: 0 16px;
  }

  .pd-step-btn {
    flex: 0 0 44px;
    font-size: 18px;
  }

  .pd-qty-input {
    min-width: 52px;
  }

  .pd-variants-select {
    font-size: 14px;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .pd-article {
    padding: 0 2.5rem;
  }

  .pd-qty {
    min-width: 170px;
  }

  .pd-step-btn {
    flex: 0 0 52px;
  }

  .pd-qty-input {
    min-width: 66px;
  }

  .pd-actions {
    gap: 14px;
  }

  .pd-add {
    padding: 0 24px;
  }
}

@media (min-width: 1281px) {
  .pd-article {
    padding: 0 3rem;
  }

  .pd-options {
    gap: 18px;
  }

  .pd-opt {
    padding: 22px 18px;
  }

  .pd-qty {
    min-width: 180px;
  }

  .pd-step-btn {
    flex: 0 0 54px;
    font-size: 22px;
  }

  .pd-qty-input {
    min-width: 72px;
    font-size: 17px;
  }

  .pd-actions {
    gap: 16px;
  }

  .pd-add {
    padding: 0 28px;
    font-size: 17px;
  }

  .pd-variants-select {
    font-size: 16px;
    padding: 13px 18px;
    padding-right: 44px;
  }

  .pd-variants-label {
    font-size: 15px;
  }
}

.precio {
  font-size: 20px;
}


/* ============================================
   ESTILOS PARA MENÚ DE NAVEGACIÓN VERTICAL
   ============================================ */

/* Navegación principal */
.bs-header-nav {
    position: relative;
}


/* Items del menú nivel 2 */
.bs-menu__lv2 {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
    width: 100%;
    text-align: left;
}

.bs-menu__lv2:hover,
.bs-menu__lv2:focus {
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
}

/* Items del menú nivel 3 */
.bs-menu__lv3 {
    display: block;
    padding: 0.625rem 1.5rem;
    color: #555;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 0.95rem;
}

.bs-menu__lv3:hover,
.bs-menu__lv3:focus {
    background-color: #f8f9fa;
    color: #007bff;
    text-decoration: none;
    padding-left: 1.75rem;
}

/* Submenú anidado - Nivel 3 */
.dropdown.menu__group {
    position: relative;
}

.dropdown.menu__group > .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin: 0;
    border: none;
    border-top: 1px solid #e9ecef;
    border-radius: 0;
    box-shadow: none;
    padding-left: 1rem;
    background-color: #fafbfc;
}

/* Toggle icon para submenús */
.bs-menu__lv2.dropdown-toggle::after {
    float: right;
    margin-top: 0.4rem;
    transition: transform 0.3s ease;
}

.bs-menu__lv2.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Botón "Ver todo" destacado */
.bs-menu__show-all {
    font-weight: 600;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
}

.bs-menu__show-all strong {
    color: #007bff;
}

/* Separadores visuales */
.bs-menu__lv2.menu__group {
    border-bottom: 1px solid #f0f0f0;
}

.bs-menu__lv2.menu__group:last-child {
    border-bottom: none;
}

/* Hover states mejorados */
.dropdown-menu .dropdown.menu__group:hover > .bs-menu__lv2 {
    background-color: #f8f9fa;
}

/* Estilos para iconos en submenús */
.bs-menu__lv2 .fas,
.bs-menu__lv3 .fas {
    margin-right: 0.5rem;
    width: 1rem;
    text-align: center;
}

/* Toggle icon de nivel 2 */
.bs-menu__lv2 .toggle__icon {
    float: right;
    opacity: 0.6;
    font-size: 0.875rem;
}

/* Estados activos */
.bs-menu__lv2.active,
.bs-menu__lv3.active {
    background-color: #e7f3ff;
    color: #0056b3;
    font-weight: 500;
}

/* Responsive: Mobile */
@media (max-width: 991.98px) {
    .bs-header-nav .dropdown-menu {
        min-width: 100%;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .bs-menu__lv2,
    .bs-menu__lv3 {
        padding-left: 1.5rem;
    }
    
    .dropdown.menu__group > .dropdown-menu {
        padding-left: 2rem;
    }
    
    .bs-menu__lv3 {
        padding-left: 2.5rem;
    }
}

/* Desktop: Mejoras visuales */
@media (min-width: 992px) {
    /* Dropdown al hacer hover */
    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }
    
    /* Dropdown anidado */
    .dropdown.menu__group:hover > .dropdown-menu {
        display: block;
    }
    
    /* Animación suave */
    .dropdown-menu {
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Accesibilidad: Focus visible */
.bs-menu__lv1:focus,
.bs-menu__lv2:focus,
.bs-menu__lv3:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* User menu específico */
#usermenu {
    min-width: 200px;
}

#usermenu .dropdown-item {
    padding: 0.75rem 1.25rem;
}

#usermenu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

/* Búsqueda */
.bs-search__bar {
    padding: 1rem;
}

.bs-header-search .input-group {
    max-width: 500px;
}

.btn-search {
    background-color: var(--primary-color);
    color: white;
}

/* Mejoras de contraste para accesibilidad */
.bs-menu__lv2,
.bs-menu__lv3 {
    font-weight: 400;
    line-height: 1.5;
}

.bs-menu__lv2 strong,
.bs-menu__lv3 strong {
    font-weight: 600;
}