:root {
  --ra-red: #b5121b;
  --ra-blue: #0b2d45;
  --ra-green: #2e7d32;
  --ra-bg: #f7f7f7;
}

body { background: var(--ra-bg); color: #16202a; }
.navbar, .btn-primary { background: var(--ra-blue) !important; border-color: var(--ra-blue) !important; }
.btn-danger, .badge-danger { background: var(--ra-red) !important; border-color: var(--ra-red) !important; }
.text-redahorro { color: var(--ra-red); }
.text-health { color: var(--ra-green); }
.brand-logo { width: 56px; height: 56px; object-fit: contain; }
.hero-logo { max-width: 260px; width: 100%; }
.card { border-radius: 8px; border: 1px solid #e4e8eb; box-shadow: 0 8px 28px rgba(11,45,69,.05); }
.table td, .table th { vertical-align: middle; }
.sidebar-link { display: block; padding: .65rem .8rem; color: #21313f; text-decoration: none; border-radius: 6px; }
.sidebar-link:hover, .sidebar-link.active { background: #eef4f7; color: var(--ra-blue); }
.pharmacy-location-map {
  border: 1px solid #d8e1e6;
  border-radius: 8px;
  height: 380px;
  min-height: 300px;
  width: 100%;
}

.top-strip {
  background: var(--ra-red);
  color: #fff;
  font-size: .82rem;
  padding: .3rem 0;
}
.catalog-page {
  overflow-x: hidden;
}
.catalog-header {
  background: var(--ra-blue);
  color: #fff;
}
.brand-lockup {
  color: #fff;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.brand-lockup img {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}
.header-search {
  gap: .5rem;
  min-width: 0;
}
.header-search .form-control {
  min-width: 0;
}
.category-strip {
  background: #fff;
  border-bottom: 1px solid #e5ecef;
}
.category-scroll {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  padding: .55rem 0;
  white-space: nowrap;
}
.category-scroll a {
  background: #f2f6f8;
  border: 1px solid #dae5e9;
  border-radius: 999px;
  color: var(--ra-blue);
  font-size: .88rem;
  padding: .38rem .75rem;
  text-decoration: none;
}
.filter-bar {
  background: #fff;
  border: 1px solid #dfe8ec;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(11,45,69,.05);
  padding: .65rem;
}
.deals-carousel {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(11,45,69,.12);
}
.deal-slide {
  background: var(--ra-blue);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  min-height: 285px;
  overflow: hidden;
}
.deal-copy {
  padding: 2rem;
  align-self: center;
}
.deal-copy h1 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 850;
  line-height: 1.05;
  margin: .4rem 0 .7rem;
}
.deal-kicker {
  background: var(--ra-red);
  border-radius: 999px;
  display: inline-block;
  font-weight: 700;
  font-size: .82rem;
  padding: .28rem .62rem;
}
.deal-price {
  color: #a9e6aa;
  font-size: 1.45rem;
  font-weight: 850;
  margin-bottom: 1rem;
}
.deal-image {
  background: #fff;
  min-height: 285px;
  padding: .5rem;
}
.deal-image img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.deals-carousel .carousel-control-prev,
.deals-carousel .carousel-control-next {
  width: 8%;
}
.map-cta {
  align-items: center;
  background: #eef7f0;
  border: 1px solid #cfe7d2;
  border-radius: 8px;
  color: #173f1b;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .65rem .85rem;
}
.map-cta h2 {
  font-size: 1rem;
  margin: 0 0 .25rem;
}
.map-cta p {
  font-size: .9rem;
  margin: 0;
}
.section-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0;
}
.section-title p {
  color: #6c757d;
  margin: 0;
}
.product-tile {
  background: #fff;
  border: 1px solid #dfe8ec;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: box-shadow .16s ease, transform .16s ease;
}
.product-tile:hover {
  box-shadow: 0 14px 34px rgba(11,45,69,.12);
  transform: translateY(-2px);
}
.product-image {
  background: #f7f7f7;
  display: block;
  height: 150px;
  position: relative;
}
.product-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.product-image span {
  background: var(--ra-red);
  border-radius: 999px;
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  left: .75rem;
  padding: .35rem .6rem;
  position: absolute;
  top: .75rem;
}
.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: .85rem;
}
.product-pharmacy {
  color: var(--ra-blue);
  font-size: .85rem;
  font-weight: 700;
  margin: 0 0 .35rem;
}
.product-body h3 {
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 .4rem;
}
.product-active,
.product-meta {
  color: #6c757d;
  font-size: .88rem;
}
.product-prices {
  align-items: baseline;
  display: flex;
  gap: .55rem;
  margin: auto 0 .35rem;
}
.product-prices strong {
  color: var(--ra-green);
  font-size: 1.15rem;
}
.product-prices span {
  color: #8a949b;
  text-decoration: line-through;
}

@media (max-width: 991px) {
  .brand-lockup span {
    display: none;
  }
  .deal-slide {
    grid-template-columns: 1fr;
  }
  .deal-image {
    min-height: 220px;
    order: -1;
  }
  .map-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.public-footer {
  background: var(--ra-blue);
  color: #dce8ee;
}
.public-footer h2 {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .7rem;
}
.public-footer a {
  color: #dce8ee;
  display: block;
  margin-bottom: .35rem;
  text-decoration: none;
}
.public-footer a:hover {
  color: #fff;
}
.public-footer p {
  margin: 0;
}
.footer-brand {
  align-items: center;
  display: flex;
  gap: .9rem;
}
.footer-brand img {
  background: #fff;
  border-radius: 8px;
  height: 64px;
  object-fit: contain;
  width: 64px;
}
.footer-brand strong {
  color: #fff;
  display: block;
  font-size: 1.35rem;
  margin-bottom: .2rem;
}
.footer-brand .footer-company {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  margin-top: .65rem;
}
.footer-brand .footer-company-rut {
  color: #b9ced9;
  font-size: .85rem;
  margin-top: .1rem;
}
.footer-admin {
  color: #9eb7c5 !important;
  font-size: .9rem;
  margin-top: .8rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  color: #b9ced9;
  font-size: .9rem;
}

@media (max-width: 575px) {
  .footer-bottom {
    flex-direction: column;
  }
}

/*
 * Older catalog experiment classes kept harmless for already cached markup.
 */
.catalog-hero {
  background: #ffffff;
  border-bottom: 1px solid #e8edf0;
}
.catalog-title {
  color: var(--ra-blue);
  font-weight: 800;
  letter-spacing: 0;
}
.search-shell {
  border: 1px solid #dde6ea;
  box-shadow: 0 16px 40px rgba(11, 45, 69, .08);
}
.map-callout {
  background: #eef7f0;
  border: 1px solid #cfe7d2;
  color: #173f1b;
}
.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.category-row a {
  background: #f2f6f8;
  border: 1px solid #dae5e9;
  border-radius: 999px;
  color: var(--ra-blue);
  font-size: .9rem;
  padding: .45rem .8rem;
  text-decoration: none;
}
.hero-slider {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(11,45,69,.12);
}
.hero-slide-card {
  background: #fff;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.hero-slide-body {
  padding: 1.25rem;
  flex: 1;
}
.hero-slide-price {
  color: var(--ra-green);
  font-size: 1.55rem;
  font-weight: 800;
}
.hero-slider .carousel-control-prev,
.hero-slider .carousel-control-next {
  width: 12%;
}
.hero-slider .carousel-control-prev-icon,
.hero-slider .carousel-control-next-icon {
  background-color: rgba(11,45,69,.8);
  border-radius: 50%;
  background-size: 58%;
}
.product-card img,
.featured-card img {
  background: #fff;
}
.product-card {
  transition: transform .16s ease, box-shadow .16s ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(11,45,69,.12);
}
.featured-band {
  background: #fff;
  border-top: 1px solid #e8edf0;
  border-bottom: 1px solid #e8edf0;
}
.featured-card {
  border: 1px solid #dfe8ec;
}
.featured-price {
  color: var(--ra-green);
  font-weight: 800;
}
.discount-pill {
  background: #e8f4ea;
  color: var(--ra-green);
  border: 1px solid #cce4cf;
  font-weight: 700;
}
.condition-pill {
  background: #eef4f7;
  color: var(--ra-blue);
}
.map-preview {
  background: var(--ra-blue);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.map-preview::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% 25%;
  height: 180px;
  background: rgba(46, 125, 50, .35);
  transform: rotate(-8deg);
}

@media (max-width: 991px) {
  .hero-slide-card {
    min-height: auto;
  }
  .hero-slide-media {
    height: 220px;
  }
}
