/*
 * Pocari Sweat MX — branding on top of Hummingbird 2.1 (PrestaShop 9.2).
 *
 * Palette carried over from the old Warehouse theme editor (custom_s_1.css):
 *   brand blue   #005cb1  primary buttons, prices
 *   header blue  #127bca  top bar, cart button
 *   accent red   #ca5058  badges, active tabs, notifications
 *   text         #333333 / muted #777777
 *   font         Open Sans
 *
 * Hummingbird ships all of its CSS inside @layer blocks; these rules are
 * unlayered, so they win without !important. Bootstrap 5 compiles some colours
 * as literals (buttons, form focus, pills), so those selectors are overridden
 * explicitly as well as the :root variables.
 */

@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");

:root,
[data-bs-theme="light"] {
  --pocari-blue: #005cb1;
  --pocari-blue-rgb: 0, 92, 177;
  --pocari-blue-dark: #004a8e;
  --pocari-blue-light: #80aed8;
  --pocari-header: #127bca;
  --pocari-red: #ca5058;
  --pocari-red-rgb: 202, 80, 88;

  --bs-primary: var(--pocari-blue);
  --bs-primary-rgb: var(--pocari-blue-rgb);
  --bs-blue: var(--pocari-blue);
  --bs-primary-text-emphasis: #00254a;
  --bs-primary-bg-subtle: #ccdeef;
  --bs-primary-border-subtle: #99bee0;
  --bs-danger: var(--pocari-red);
  --bs-danger-rgb: var(--pocari-red-rgb);

  --bs-link-color: var(--pocari-blue);
  --bs-link-color-rgb: var(--pocari-blue-rgb);
  --bs-link-hover-color: var(--pocari-blue-dark);
  --bs-link-hover-color-rgb: 0, 74, 142;

  --bs-body-color: #333333;
  --bs-body-color-rgb: 51, 51, 51;
  --bs-secondary-color: #777777;
  --bs-body-font-family: "Open Sans", Arial, sans-serif;
  --bs-font-sans-serif: "Open Sans", Arial, sans-serif;
}

body {
  font-family: var(--bs-body-font-family);
}

/* --- Buttons ------------------------------------------------------------------ */
.btn-primary {
  --bs-btn-bg: var(--pocari-blue);
  --bs-btn-border-color: var(--pocari-blue);
  --bs-btn-hover-bg: var(--pocari-blue-dark);
  --bs-btn-hover-border-color: var(--pocari-blue-dark);
  --bs-btn-active-bg: var(--pocari-blue-dark);
  --bs-btn-active-border-color: var(--pocari-blue-dark);
  --bs-btn-disabled-bg: var(--pocari-blue);
  --bs-btn-disabled-border-color: var(--pocari-blue);
  --bs-btn-focus-shadow-rgb: var(--pocari-blue-rgb);
}

.btn-outline-primary {
  --bs-btn-color: var(--pocari-blue);
  --bs-btn-border-color: var(--pocari-blue);
  --bs-btn-hover-bg: var(--pocari-blue);
  --bs-btn-hover-border-color: var(--pocari-blue);
  --bs-btn-active-bg: var(--pocari-blue);
  --bs-btn-active-border-color: var(--pocari-blue);
  --bs-btn-disabled-color: var(--pocari-blue);
  --bs-btn-disabled-border-color: var(--pocari-blue);
  --bs-btn-focus-shadow-rgb: var(--pocari-blue-rgb);
}

.btn-danger {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--pocari-red);
  --bs-btn-border-color: var(--pocari-red);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #b4434b;
  --bs-btn-hover-border-color: #b4434b;
}

/* --- Forms: focus rings and checked states use the brand blue --------------------- */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--pocari-blue-light);
  box-shadow: 0 0 0 0.25rem rgba(var(--pocari-blue-rgb), 0.25);
}

.form-check-input:checked,
.form-check-input[type="checkbox"]:indeterminate {
  background-color: var(--pocari-blue);
  border-color: var(--pocari-blue);
}

.form-range::-webkit-slider-thumb { background-color: var(--pocari-blue); }
.form-range::-moz-range-thumb { background-color: var(--pocari-blue); }

.nav-link:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(var(--pocari-blue-rgb), 0.25);
}

.nav-pills {
  --bs-nav-pills-link-active-bg: var(--pocari-blue);
}

.pagination {
  --bs-pagination-active-bg: var(--pocari-blue);
  --bs-pagination-active-border-color: var(--pocari-blue);
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(var(--pocari-blue-rgb), 0.25);
}

/* --- Header ---------------------------------------------------------------------------
 * The shop logo (img/logo-*.jpg) is a white PNG made for the Warehouse header, which
 * was blue, so the main header band is blue and its links white. The thin top bar
 * uses the darker brand blue for contrast.
 */
.header-top {
  background: var(--pocari-blue);
  border-bottom: 0;
  color: #fff;
}

.header-bottom {
  background: var(--pocari-header);
  border-bottom: 0;
  color: #fff;
}

.header-top a,
.header-top .header-block__action-btn,
.header-top .header-block__icon,
.header-top .btn-link,
.header-bottom .header-block__action-btn,
.header-bottom .header-block__icon,
.header-bottom .ps-mainmenu__mobile-toggle,
.header-bottom .menu-toggle,
.ps-mainmenu__desktop .ps-mainmenu__tree-link,
.ps-mainmenu__desktop .menu__link {
  color: #fff;
}

.header-top a:hover,
.header-top .header-block__action-btn:hover,
.ps-mainmenu__desktop .ps-mainmenu__tree-link:hover,
.ps-mainmenu__desktop .menu__link:hover {
  color: #fff;
  opacity: 0.85;
}

/* Six top-level menu items must fit on one line next to the logo and search at the
 * desktop breakpoint (xl, 1200px+): tighter link padding and a narrower search box. */
.ps-mainmenu__desktop .ps-mainmenu__tree {
  flex-wrap: nowrap;
  gap: 0;
}

.ps-mainmenu__desktop .ps-mainmenu__tree-link {
  padding: 1.25rem 0.6rem;
  white-space: nowrap;
}

@media (min-width: 1200px) {
  /* Keep logo, menu and search on one row (English labels are longer). */
  .header-bottom__row {
    flex-wrap: nowrap;
  }

  .header-bottom .ps-searchbar {
    min-width: 11rem;
  }
}

/* Dropdown sub-menus open on a white panel, so they keep the body text colour. */
.ps-mainmenu__desktop .ps-mainmenu__tree .ps-mainmenu__tree .ps-mainmenu__tree-link {
  color: var(--bs-body-color);
}

.header-block__badge {
  background: var(--pocari-red);
  color: #fff;
}

/* --- Prices ------------------------------------------------------------------------- */
.product-miniature__price,
.product__price,
.cart-summary-line .value {
  color: var(--pocari-blue);
}

/* --- Tabs and notifications: red accent --------------------------------------------- */
.nav-tabs .nav-link.active,
.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border-bottom: 3px solid var(--pocari-red);
}

.text-danger-on-dark { color: var(--pocari-red); }

/* --- Footer: dark band with white text, as the Warehouse footer (#212121) ------------ */
.footer__main {
  background: #212121;
  color: #fff;
}

.footer__main a,
.footer__main .block-title,
.footer__main h1,
.footer__main h2,
.footer__main h3,
.footer__main h4,
.footer__main h5,
.footer__main .material-icons {
  color: #fff;
}

.footer__main a:hover {
  color: #fff;
  opacity: 0.8;
}

.footer__main .text-muted,
.footer__main p {
  color: rgba(255, 255, 255, 0.8) !important; /* Bootstrap's .text-muted uses !important */
}

/* Free-shipping banner (Creative Elements on displayWrapperTop): flush with the header. */
#wrapper > .elementor:first-child,
.ce-content-anywhere:first-child {
  margin-bottom: 1rem;
}

/* Footer custom text ("Tiempos y Entrega") uses the old h5.block-title markup;
 * match the other footer column titles. */
.ps-customtext.footer-block .block-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
