* {
  font-family: 'Sen';
}

@font-face {
  font-family: 'Sen';
  src: local('Sen'), url('../fonts/Sen-VariableFont_wght.ttf') format('truetype');
}

@font-face {
  font-family: 'Billy Bold';
  src: local('Billy Bold'), url('../fonts/Billy-Bold.ttf') format('truetype');
}

:root {
  --primary-text: #262831;
}

html {
  background-color: #fff;
}

body {
  background-color: #fff;
}

html a {
  color: inherit;
  text-decoration: none;
}

html a:hover {
  color: inherit;
}

.site-header>header>nav {
  background-color: #E42127;
  color: #fff;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1001;
  background-color: #fff;
}

/* Mobile: Make header sticky only when scrolling up and header is out of view */
@media (max-width: 1439.98px) {
  .site-header {
    position: relative;
    transition: transform 0.3s ease-in-out;
  }

  .site-header.sticky-scroll-up {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(0);
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
  }

  .site-header.sticky-hidden {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-100%);
  }
}

.page-header,
.sub-header {
  border: 0;
}

.breadcrumb {
  background-color: #fff;
  margin-bottom: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
  float: left;
  padding-right: 0.5rem;
  color: #6c757d;
  content: ">";
}

.breadcrumb-item.active {
  color: #E42127;
}

.container,
.container-fluid,
.container-xl,
.container-lg,
.container-md,
.container-sm {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {

  .container-sm,
  .container {
    max-width: 100%;
  }
}

@media (min-width: 768px) {

  .container-md,
  .container-sm,
  .container {
    max-width: 100%;
  }
}

@media (min-width: 992px) {

  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 100%;
  }

  .navbar-expand-lg {
    .navbar-collapse {
      display: none !important;
    }

    .navbar-toggler {
      display: inline-block;
    }
  }
}

/* Side Menu Styles */
.side-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.side-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100%;
  background-color: #EDEDF1;
  z-index: 1051;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  overflow-x: hidden;
}

.side-menu.active {
  left: 0;
}

.side-menu-header {
  display: flex;
  flex-direction: column;
  padding: 16px;
  background-color: #E42127;
}

#closeSideMenu {
  background-color: #fff;
  border-radius: 50%;
  padding: 8px;
  margin-bottom: 10px;
  width: 40px;
  height: 40px;
}

.side-menu-header .greeting {
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: 8px;
}

.side-menu-auth-links {
  color: #fff;
  font-size: 1.125rem;

  .side-menu-auth-link {
    font-weight: 600;
  }
}

.side-menu-content {
  padding: 0;
}

.side-menu-auth {
  display: block;
  padding: 20px;
  color: #262831;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid #dee2e6;
}

.side-menu-auth:hover {
  background-color: #f8f9fa;
  color: #262831;
  text-decoration: none;
}

.side-menu-user {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #dee2e6;
  color: #262831;
}

.side-menu-user i {
  margin-right: 10px;
  font-size: 1.1rem;
}

.side-menu-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #fff;
}

.side-menu-item {
  border-bottom: 1px solid #8991A7;
  position: relative;
}

.side-menu-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 16px;
  color: #262831;
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-size: 1.125rem;
}

.side-menu-link:hover {
  background-color: #f8f9fa;
  color: #262831;
  text-decoration: none;
}

.side-menu-footer {
  background-color: #EDEDF1;
  padding: 24px 16px;
  margin-top: auto;
}

.side-menu-footer-link {
  display: block;
  color: var(--primary-text);
  text-decoration: none;
  padding: 16px 0 24px;
  font-size: 1.125rem;
  transition: color 0.2s ease;
}

.side-menu-footer-link:hover {
  color: #262831;
  text-decoration: none;
}

/* Side Menu Submenu Styles */
.side-menu-submenu-container {
  height: 100%;
  background-color: #fff;
}

.side-menu-submenu-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background-color: #E42127;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
}

.side-menu-back {
  background-color: #fff;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-menu-submenu-content {
  padding: 0;
  height: calc(100% - 80px);
  overflow-y: auto;
}

.side-menu-category-link {
  display: block;
  padding: 24px 16px;
  color: #262831;
  text-decoration: none;
  font-size: 1.125rem;
  border-bottom: 1px solid #8991A7;
  transition: background-color 0.2s ease;
}

.side-menu-category-link:hover {
  background-color: #f8f9fa;
  color: #262831;
  text-decoration: none;
}

.side-menu-category-with-children {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.side-menu-subcategory-link {
  display: block;
  padding: 16px 32px;
  color: #6c757d;
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid #dee2e6;
  transition: background-color 0.2s ease;
}

.side-menu-subcategory-link:hover {
  background-color: #f8f9fa;
  color: #262831;
  text-decoration: none;
}

/* Side Menu Section Styles */
.side-menu-section {
  background-color: #F8F9FA;
}

.side-menu-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #262831;
  margin: 0;
  padding: 16px 0 24px;
}

/* Hide side menu popover data */
.side-menu-popover-data {
  display: none !important;
}

@media (min-width: 1200px) {

  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 100%;
  }
}

@media (min-width: 1440px) {

  .container-xl,
  .container-lg,
  .container-md,
  .container-sm,
  .container {
    max-width: 1262px;
  }

  .desktop-block {
    display: block !important;
  }

  .desktop-none {
    display: none !important;
  }

  .desktop-flex {
    display: flex !important;
  }

  #top_page {
    padding: 8px 16px !important;
  }

  .navbar-expand-lg {
    .navbar-collapse {
      display: flex !important;
    }

    .navbar-toggler {
      display: none !important;
    }
  }

  footer {
    h3 {
      font-size: 2.4375rem !important;
    }

    .footer-content {
      .footer-content-heading-container {
        width: 75%;
      }

      .footer-content-input-group {
        width: 55%;
      }

      .footer-content-lower {
        flex-direction: row !important;
        justify-content: space-between;

        .footer-links-container {
          flex-direction: row !important;
        }
      }
    }
  }

  .side-menu {
    display: none;
  }

  .side-menu-overlay {
    display: none;
  }

  .scroll-to-top-button-wrap {
    right: 28px !important;
    bottom: 31px !important;
  }
}

.page .page_inner {
  box-shadow: none;
  padding: 30px 16px;
}

.product_pod {
  border: 1px solid #D6D8E1;
  border-radius: 16px;
  height: 480px;
  text-align: start;
  margin: 0;

  .image_container {
    img {
      border: none;
      border-radius: 0;
      padding: 0;
      height: 296px;
      width: 100%;
      max-height: none;
      object-fit: contain;
    }

    .variant-overlay {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 12px;
      background: #FFFFFF;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
      padding: 6px 12px;
      display: flex;
      flex-direction: column;
      pointer-events: none;

      .variant-overlay-title {
        font-size: 14px;
        color: #262831;
        white-space: nowrap;
        text-align: left;
      }
    }
  }

  h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-text);
    padding: 0 16px;
  }

  .product_price {
    padding: 0 16px 16px 16px;

    .view_product_button {
      display: flex;
      gap: 8px;
      align-items: center;
      justify-content: center;
      border-radius: 1000px;
      height: 3rem;
      color: #fff;
      background-color: #3C4150;
      border: none;
      font-size: 1.25rem;
      font-weight: 600;
      padding: 16px 32px;

      svg {
        width: 24px;
        height: 24px;
      }

      &:hover {
        background-color: #262831;
      }
    }
  }

  .price_color {
    padding: 0 16px;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary-text);
  }
}

.row.list-unstyled:has(li.col-sm-4.col-md-3.col-lg-3, li.col-sm-6.col-md-4.col-lg-3) {
  gap: 1rem;

  li.col-sm-4.col-md-3.col-lg-3,
  li.col-sm-6.col-md-4.col-lg-3 {
    max-width: 286px;
    flex: 0 0 286px;
    padding: 0;
  }
}

footer.container {
  h3 {
    font-size: 1.625rem;
    font-weight: 600;
    color: #E42127;
    text-align: center;
  }

  .form-control {
    height: 3rem;
    border-radius: 1000px 0 0 1000px;
    border-top: 1px solid var(--border-neutral-default-default, #8991A7);
    border-bottom: 1px solid var(--border-neutral-default-default, #8991A7);
    border-left: 1px solid var(--border-neutral-default-default, #8991A7);
    border-right: none;
    border-color: #8991A7;
    padding: 4px 4px 4px 24px;
    color: var(--primary-text);
  }

  .footer-links-container {
    display: flex;
    gap: 3rem;

    a {
      color: #555C74;
      font-size: 0.875rem;

      &:hover {
        color: #E42127;
        text-decoration: none;
      }
    }

    h4 {
      font-size: 1rem;
      font-weight: 700;
      color: var(--primary-text);
    }
  }
}

form:has(input[id="id_q"]),
form:has(input[id="id_q_mobile"]) {
  border-radius: 1000px;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #E42127 0%, #FFE401 48.62%, #5DD1FF 100%) border-box;
  border: 2px solid transparent;
  padding-right: 8px;

  &:has(#id_q:hover),
  &:has(#id_q_mobile:hover) {
    background: linear-gradient(#EDEDF1, #EDEDF1) padding-box,
      linear-gradient(90deg, #E42127 0%, #FFE401 48.62%, #5DD1FF 100%) border-box;
  }

  #id_q,
  #id_q_mobile {
    height: 3rem;
    border-radius: 1000px;
    border: none;
    padding: 4px 0 4px 24px;
    background: transparent;
    font-size: 0.875rem;
    color: var(--primary-text);

    &:focus {
      box-shadow: none;
    }
  }
}

#login_link {
  font-size: 0.875rem;
  color: var(--primary-text);
  font-weight: 700;
}

#top_page {
  flex-wrap: nowrap;
  padding: 8px 31px;

  .cart-counter {
    position: absolute;
    background-color: #FFE401;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-text);
    font-size: 0.875rem;
    font-weight: 700;
    top: 0;
    right: 0;
  }

  .header-link {
    font-size: 0.875rem;
    color: var(--primary-text);
  }
}

.popover {
  max-width: none;
  overflow: hidden;
  box-shadow: 0px 88px 25px 0px rgba(0, 0, 0, 0.00), 0px 56px 23px 0px rgba(0, 0, 0, 0.01), 0px 32px 19px 0px rgba(0, 0, 0, 0.03), 0px 14px 14px 0px rgba(0, 0, 0, 0.04), 0px 4px 8px 0px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6D8E1;
  border-radius: 16px;
  margin-top: 0.5rem;

  .popover-body {
    padding: 0;
  }

  .popover-header,
  .arrow {
    display: none;
  }

  .popover-content {
    display: flex;
    min-height: 32.5rem;

    a {
      color: var(--primary-text);
      font-size: 1rem;
    }

    .nav-panel {
      padding: 20px 12px;
      width: 20.75rem;
      display: flex;
      flex-direction: column;

      .subcategories-data {
        display: none;
      }
    }

    .nav-subpanel {
      border-left: 1px solid #D6D8E1;

      &.community-organizations {
        width: 41.5rem;
      }
    }

    .featured-panel {
      background-color: #EDEDF1;

      h6 {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--primary-text);
        margin-bottom: 1rem;
        padding-left: 12px;
      }

      .featured-link {
        padding: 8px 24px;
        border-radius: 8px;

        &:hover {
          background-color: #D6D8E1;
          font-weight: 700;
          text-decoration: none;
        }
      }

      &.community-organizations {
        display: none;
      }

      &.daycares,
      &.teachers,
      &.parents {
        padding: 24px;
        gap: 1.25rem;
        justify-content: center;

        .featured-image {
          position: relative;

          .featured-image-captions {
            display: flex;
            align-items: flex-end;
            gap: 1.75rem;
            position: absolute;
            bottom: 12px;
            left: 12px;
            right: 12px;

          }

          .featured-image-text {
            color: #fff;

            p {
              margin: 0;
            }

            div {
              font-weight: 700;
            }

          }

          .featured-image-button {
            border-radius: 50%;
            width: 1.75rem;
            height: 1.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #fff;
            border: none;
          }
        }

        img {
          border-radius: 8px;
          width: 100%;
        }
      }
    }

    .category-link {
      border-radius: 8px;
      padding: 8px 24px;
      user-select: none;

      &:hover {
        background-color: #FFE401;
        font-weight: 700;
        text-decoration: none;
      }
    }
  }
}

.nav-mega-popover {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 1002;
}

.nav-mega-popover--hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

#navbarSupportedContent {
  .navbar-nav {
    gap: 1.5rem;
  }

  .nav-link {
    border-radius: 1000px;
    padding: 12px;
    font-weight: 700;
    text-align: center;

    &:focus {
      background-color: #9E161A;
      outline: none;
    }

    &:hover {
      background: var(--surface-brand-main-default-hover, #9E161A);
    }

    &:active {
      background: var(--surface-brand-main-default-selected, #83191C);
    }
  }
}

.sliding-carousel {
  position: relative;

  .sliding-carousel-button {
    box-shadow: 0px 33px 9px 0px rgba(0, 0, 0, 0.00), 0px 21px 8px 0px rgba(0, 0, 0, 0.01), 0px 12px 7px 0px rgba(0, 0, 0, 0.05), 0px 5px 5px 0px rgba(0, 0, 0, 0.09), 0px 1px 3px 0px rgba(0, 0, 0, 0.10);
    position: absolute;
    z-index: 1000;
    top: calc(50% - 1.5rem);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #3C4150;
    border: none;

    &.carousel-button-left {
      left: -60px;
    }

    &.carousel-button-right {
      right: -60px;
    }

    &:hover:not(.disabled) {
      background-color: #000000;
    }

    &.disabled {
      opacity: 0.5;
    }

    &.hidden {
      display: none;
    }
  }

  .row.list-unstyled {
    flex-wrap: nowrap;
    margin-bottom: 0;
    overflow: auto;
    scrollbar-width: none;
  }

  .sliding-carousel-progress {
    height: 16px;
    background-color: #EDEDF1;
    border-radius: 1000px;
    margin: 24px 0 0 0;
    overflow: hidden;
  }

  .sliding-carousel-progress-fill {
    height: 100%;
    width: 0%;
    background-color: var(--primary-text);
    border-radius: 1000px;
    transition: width 0.15s ease-out;
  }
}

/* Mobile adjustments (under 1200px) */
@media (max-width: 1439.98px) {
  .sliding-carousel {
    .sliding-carousel-button {
      display: none !important;
    }
  }

  .es-mobile-logo-container {
    flex-wrap: nowrap !important;
    gap: 8px;
  }

  footer {
    .footer-content-heading-form-container {
      margin-top: 0 !important;
    }
  }

  .site-header {
    position: static;
  }
}

.quantity_selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 8.25rem;
  background-color: #EDEDF1;
  padding: 0 8px;
  border-radius: 1000px;
  min-height: 3rem;

  .adjust_quantity_button {
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-text);
    background-color: #EDEDF1;
    border: none;

    &:hover {
      background-color: #D6D8E1;
    }
  }
}

.chalkboard-container {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 16px;
  overflow: hidden;
}

.price_color.sale-price {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #E42127 !important;

  .line-through {
    text-decoration: line-through;
    font-size: 1rem;
    color: #6A738D !important;
  }
}

.checkout-card {
  padding: 36px;
  border-radius: 16px;
  border: 1px solid #D6D8E1;

  .step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;

    .step-number {
      background-color: #E42127;
      border-radius: 50%;
      width: 2.25rem;
      height: 2.25rem;
      color: #fff;
      font-size: 1.25rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    h5 {
      font-size: 1.5625rem;
      font-weight: 600;
      color: #262831;
      margin-bottom: 0;
    }
  }

  .step-subheader {
    font-size: 1.25rem;
    font-weight: 600;
    color: #262831;
    margin-bottom: 1rem;
  }

  .review-shipping-subheader {
    font-weight: 700;
    color: var(--primary-text);
  }

  .subheader-content {
    color: #555C74;
  }

  &.inactive-card {
    opacity: 0.5;

    .step-header {
      margin-bottom: 0;
    }
  }

  &.active-card {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    .step-header {
      margin-bottom: 0;
    }

    a {
      color: #E42127;
      font-size: 0.875rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }
  }
}

/* Shadow lives on .scroll-to-top-button-wrap so clip-path on the button does not clip it.
   clip-path must stay in sync with the apple path in oscar/layout.html */
.scroll-to-top-button-wrap {
  position: fixed;
  bottom: 64px;
  right: 20px;
  z-index: 1000;
  line-height: 0;
  filter: drop-shadow(0 6px 10px rgba(38, 40, 49, 0.22));
  display: none;
}

.scroll-to-top-button {
  position: relative;
  display: block;
  width: 48px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: none;
  background: #e42127;
  clip-path: path("M23.393 5.87266C23.3533 4.41697 22.2907 1.79024 23.5857 0.745402C25.9693 -1.17501 25.2951 2.69198 25.3914 3.96148C25.448 4.70626 25.7293 5.51566 25.7889 6.27275C26.0764 6.53588 27.3347 4.61239 27.5778 4.36157C32.9582 -1.21194 41.3552 -1.97826 45.6913 5.20944C51.0242 14.0498 46.2126 27.0665 40.4256 34.5573C38.1382 37.518 35.9656 40.1216 31.8634 39.8046C29.2688 39.6046 27.6221 37.4826 24.9251 39.2306C22.9772 40.494 21.9115 41.7697 19.2817 41.982C13.9105 42.4129 6.83451 35.002 4.16649 30.7488C-1.5105 21.6976 -2.71684 7.18987 9.131 2.65505C14.467 0.613066 19.2725 2.17494 23.393 5.87113V5.87266Z");
}

.scroll-to-top-button:hover,
.scroll-to-top-button:focus-visible {
  outline: none;
  background: #9e161a;
}

.scroll-to-top-button svg:last-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}