/* Farmacia Escribano F+ - Main Theme Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #4d4d4d;
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

a {
  color: #13718b;
  text-decoration: none;
}

a:hover {
  color: #0e586d;
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

/* Buttons */
.btn-primary,
.button.btn-cart {
  background-color: #13718b;
  border-color: #13718b;
  color: #ffffff;
  border-radius: 20px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover,
.button.btn-cart:hover {
  background-color: #0e586d;
  border-color: #0e586d;
  color: #ffffff;
}

/* Product Grid & Cards */
.products-grid,
.product-list {
  display: flex;
  flex-wrap: wrap;
}

.product-item,
.item.product {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-item:hover,
.item.product:hover {
  box-shadow: 0 6px 18px rgba(19, 113, 139, 0.12);
  transform: translateY(-2px);
}

.product-name,
.product-title {
  font-size: 14px;
  font-weight: 600;
  color: #4d4d4d;
  margin: 8px 0;
  min-height: 40px;
}

.price-box .price,
.regular-price .price,
.special-price .price {
  color: #13718b;
  font-size: 18px;
  font-weight: 700;
}

.old-price .price {
  color: #909090;
  text-decoration: line-through;
  font-size: 13px;
}

/* Badges & Ribbons */
.ribbon2 {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
}

.badge-oferta,
.descuento {
  background-color: #ff0a64;
  color: #ffffff;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
}

/* Trust Icons Section */
.iconos-home,
.ventajas-home {
  background-color: #f6f6f6;
  padding: 24px 0;
  margin: 24px 0;
  text-align: center;
}

.iconos-home img,
.ventajas-home img {
  margin-bottom: 8px;
}

/* Product Detail Page */
.product-view,
.product-essential {
  padding: 20px 0;
}

.product-view .azul {
  color: #13718b;
  font-size: 14px;
  margin-bottom: 8px;
}

.product-view .gris {
  color: #606060;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Footer */
footer,
.footer-container {
  background-color: #13718b;
  color: #ffffff;
  padding: 32px 0 18px;
  margin-top: 40px;
  font-size: 14px;
}

footer a,
.footer-container a {
  color: #e6f7fb;
}

footer a:hover,
.footer-container a:hover {
  color: #57c9e8;
}

/* Scroll Up */
.scrollup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #13718b;
  color: #ffffff;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  z-index: 999;
}
