/** Fonrt */
/** Colors */
/** Media Queries */
@media (min-width: 1024px) {
  #weeklyCirculars {
    margin-bottom: 20px;
  }
}
@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 40 / 71) and (orientation: portrait) {
  #weeklyCirculars .button.is-primary {
    font-size: 0.8rem;
  }
}

.qty-block {
  display: flex;
  margin-right: -10px;
}

.product-quantity:after, .product-subtitle:after, .product-description:after {
  content: "\a";
  white-space: pre;
}

.section-content {
  display: none;
  animation: fadeEffect 1s;
}
.section-content .block .ad-items {
  border-bottom: 1px solid #dbdbdb;
}
.section-content .block .subtitle {
  font-size: 0.9rem;
}
.section-content .block .subtitle .product-price {
  color: #c41230;
  font-size: 1.5rem;
  font-weight: bolder;
}
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .section-content .block .subtitle .product-price {
    font-size: 2rem !important;
  }
}
.section-content .block .button.is-small {
  font-size: 1rem;
}
@media only screen and (min-device-width: 320px) and (max-device-width: 568px) and (-webkit-device-pixel-ratio: 2) and (device-aspect-ratio: 40 / 71) and (orientation: portrait) {
  .section-content .block .button.is-small {
    font-size: 0.75rem;
  }
}
@media (min-width: 1024px) {
  .section-content .block {
    display: inline-block;
    width: 100%;
  }
  .section-content .block .ad-items {
    width: 50%;
    height: 170px;
    float: left;
    border-bottom: 1px solid #dbdbdb;
  }
  .section-content .block .ad-items .subtitle {
    font-size: 0.9rem;
  }
  .section-content .block .ad-items .subtitle .product-price {
    color: #c41230;
    font-weight: bolder;
  }
  .section-content .block .ad-items .button.is-small {
    font-size: 1rem;
  }
}

#content .input {
  width: 31%;
}

@media (min-width: 1024px) {
  .media-content {
    min-height: 150px;
  }
}

/* Go from zero to full opacity */
@keyframes fadeEffect {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* Shopping List scrolling. Fix for IE */
#myShoppingList .modal-card-body {
  max-height: calc(100vh - 180px);
}

/*  NEW CODE */
.grid {
  background-color: #bcbcbc;
  position: relative;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, auto);
  grid-auto-rows: calc((100vw - (calc(3 - 1) * 5px))/ 3);
  margin: 40px auto;
  grid-auto-flow: dense;
  grid-gap: 5px;
  overflow: hidden;
  padding: 5px;
}
@media (min-width: 576px) {
  .grid {
    grid-template-columns: repeat(4, auto);
    grid-auto-rows: calc((100vw - (calc(4 - 1) * 5px))/ 4);
  }
}
@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(5, auto);
    grid-auto-rows: calc((100vw - (calc(5 - 1) * 5px))/ 5);
  }
}
@media (min-width: 992px) {
  .grid {
    grid-template-columns: repeat(6, auto);
    grid-auto-rows: calc((100vw - (calc(6 - 1) * 5px))/ 6);
  }
}
@media (min-width: 1200px) {
  .grid {
    grid-template-columns: repeat(7, auto);
    grid-auto-rows: calc((100vw - (calc(7 - 1) * 5px))/ 7);
  }
}
@media only screen and (min-width: 1500px) {
  .grid {
    grid-template-columns: repeat(8, auto);
    grid-auto-rows: calc((100vw - (calc(8 - 1) * 5px))/ 8);
  }
}
@media only screen and (min-width: 1900px) {
  .grid {
    grid-template-columns: repeat(9, auto);
    grid-auto-rows: calc((100vw - (calc(9 - 1) * 5px))/ 9);
  }
}
.grid .section-content {
  background-color: #fff;
  width: 100%;
  height: 100%;
  position: relative;
  flex-direction: column;
  padding: 0;
  place-items: normal;
  box-sizing: border-box;
}
.grid .section-content .product-nav {
  position: absolute;
  z-index: 2;
  right: 5px;
  top: 5px;
  cursor: pointer;
}
@media (min-width: 768px) {
  .grid .section-content .product-nav {
    right: 6px;
    top: 6px;
  }
}
.grid .section-content .product-nav .add {
  width: 26px;
  height: 26px;
}
@media (min-width: 768px) {
  .grid .section-content .product-nav .add {
    width: 32px;
    height: 32px;
  }
}
.grid .section-content .product-nav .add .ace-icon {
  color: #e11e3c;
  width: 100%;
  height: 100%;
}
.grid .section-content .product-nav .add .ace-icon .fa-check-circle {
  color: #2c2c2c;
}
.grid .section-content .product-nav .add input {
  display: none;
}
.grid .section-content .is-sized img {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: absolute;
}
.grid .section-content.grid11 {
  grid-column-end: span 1;
  grid-row-end: span 1;
}
.grid .section-content.grid11 .is-sized img {
  height: 70%;
  width: auto;
  top: 40%;
}
.grid .section-content.grid12 {
  grid-column-end: span 1;
  grid-row-end: span 2;
}
.grid .section-content.grid21 {
  grid-column-end: span 2;
  grid-row-end: span 1;
}
.grid .section-content.grid22 {
  grid-column-end: span 2;
  grid-row-end: span 2;
}
.grid .section-content.grid31 {
  grid-column-end: span 3;
  grid-row-end: span 1;
}
.grid .section-content.grid32 {
  grid-column-end: span 3;
  grid-row-end: span 2;
}
.grid .section-content.grid32 .is-sized img {
  height: 90%;
  width: auto;
}
.grid .section-content.grid33 {
  grid-column-end: span 3;
  grid-row-end: span 3;
}
.grid .show {
  display: flex;
}
.grid .show article figure {
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}
.grid .show article figure #product-nav {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.grid .show article figure .is-sized {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  top: 0%;
}
.grid .show article .bottomright {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: absolute;
  z-index: 1;
  background-color: #e11e3c;
  margin-bottom: 29px;
  padding: 0 5px;
  color: #fff;
  bottom: 0px;
  right: 0px;
  font-size: 1rem;
}
@media (min-width: 768px) {
  .grid .show article .bottomright {
    height: 40px;
  }
}
@media (min-width: 992px) {
  .grid .show article .bottomright {
    font-size: 1.7rem;
  }
}
.grid .show article .bottomright::before {
  content: " ";
  position: absolute;
  display: block;
  width: 20px;
  height: 100%;
  left: -10px;
  z-index: -1;
  background: #e11e3c;
  transform-origin: bottom left;
  transform: skew(-10deg, 0deg);
  top: 0;
}
.grid .show article .ace-rewards {
  position: absolute;
  bottom: 0px;
  margin-bottom: 60px;
  right: 5px;
  width: 50px;
}
@media (min-width: 768px) {
  .grid .show article .ace-rewards {
    width: 60px;
    margin-bottom: 70px;
  }
}
.grid .show article .product-title {
  width: 100%;
  height: 30px;
  position: absolute;
  bottom: -1px;
  background-color: #dddddd;
  display: flex;
  align-items: center;
  padding: 0.5rem;
}
.grid .show article .product-title .title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  margin-bottom: 0;
  font-size: 14pt;
  font-weight: normal;
}

/* Header Styles */
.header-container {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas: "menu-wrap     logo       shopping-list" "store-info      .       store-directions";
  grid-template-rows: repeat(2, auto);
  font-size: 14pt;
}
@media (min-width: 768px) {
  .header-container {
    grid-template-areas: "store-info     logo       shopping-list" "store-directions      logo       shopping-list" "menu-wrap     menu-wrap     menu-wrap";
    grid-template-rows: repeat(3, auto);
    margin-top: 20px;
  }
}
.header-container .menu-wrap {
  grid-column-start: menu-wrap;
  grid-column-end: menu-wrap;
  grid-row-start: menu-wrap;
  grid-row-end: menu-wrap;
  background: #e11e3c;
}
@media (min-width: 768px) {
  .header-container .menu-wrap {
    margin-top: 20px;
  }
}
.header-container .menu-wrap .toggler {
  display: none;
}
.header-container .menu-wrap .mobile-menu {
  transition: all 300ms ease-in-out;
}
@media (min-width: 768px) {
  .header-container .menu-wrap .mobile-menu ul {
    display: flex;
    justify-content: space-evenly;
  }
  .header-container .menu-wrap .mobile-menu ul li {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
  }
  .header-container .menu-wrap .mobile-menu ul li a {
    width: 100%;
    height: 100%;
    background: #e11e3c;
    font-size: 14pt;
    font-weight: bold;
  }
  .header-container .menu-wrap .mobile-menu ul li a.active {
    background: #9b0a23;
  }
}
.header-container .store-info {
  grid-column-start: store-info;
  grid-column-end: store-info;
}
.header-container .store-logo {
  grid-column-start: logo;
  grid-column-end: logo;
  grid-row-start: logo;
  grid-row-end: logo;
  width: 100%;
  position: absolute;
  z-index: 1;
  background: linear-gradient(180deg, #e11e3c 44.5%, transparent 0%);
}
@media (min-width: 768px) {
  .header-container .store-logo {
    position: relative;
    background: none;
  }
}
.header-container .store-logo img {
  max-width: 120px;
}
@media (min-width: 768px) {
  .header-container .store-logo img {
    max-width: 160px;
  }
}
.header-container .shopping-list {
  grid-column-start: shopping-list;
  grid-column-end: shopping-list;
  grid-row-start: shopping-list;
  grid-row-end: shopping-list;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e11e3c;
}
.header-container .shopping-list a span {
  color: #fff;
}
@media (min-width: 768px) {
  .header-container .shopping-list a {
    background: #e11e3c;
    padding: 10px;
    width: 200px;
    border-radius: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
@media (min-width: 768px) {
  .header-container .shopping-list {
    background: none;
  }
}
.header-container .store-directions {
  grid-column-start: store-directions;
  grid-column-end: store-directions;
}

/* Responsvie menu */
@media screen and (max-width: 350px) {
  .header-container .menu-wrap .hamburger::after {
    content: "" !important;
  }
}
@media screen and (max-width: 767px) {
  .header-container .menu-wrap {
    /* Hamburger Line */
    /* Hamburger Lines - Top & Bottom */
    /* Moves Line Down */
    /* Toggler Animation */
    /* Turns Lines Into X */
    /* Rotate On Hover When Checked */
  }
  .header-container .menu-wrap .toggler {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 14;
    cursor: pointer;
    width: 50px;
    height: 50px;
    opacity: 0;
  }
  .header-container .menu-wrap .hamburger {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 13;
    width: 60px;
    height: 60px;
    height: 50px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .header-container .menu-wrap .hamburger::after {
    content: "Categories";
    text-transform: uppercase;
    color: #ffffff;
    position: absolute;
    right: -70px;
    font-size: 0.8rem;
  }
  .header-container .menu-wrap .hamburger > div {
    position: relative;
    flex: none;
    width: 100%;
    height: 2px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
  }
  .header-container .menu-wrap .hamburger > div::before,
  .header-container .menu-wrap .hamburger > div::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: -10px;
    width: 100%;
    height: 2px;
    background: inherit;
  }
  .header-container .menu-wrap .hamburger > div::after {
    top: 10px;
  }
  .header-container .menu-wrap .toggler:checked + .hamburger:after,
  .header-container .menu-wrap .toggler:checked + .hamburger > span {
    display: none;
  }
  .header-container .menu-wrap .toggler:checked + .hamburger > div {
    transform: rotate(135deg);
    background: #fff;
  }
  .header-container .menu-wrap .toggler:checked + .hamburger > div:before,
  .header-container .menu-wrap .toggler:checked + .hamburger > div:after {
    top: 0;
    transform: rotate(90deg);
    background: #fff;
  }
  .header-container .menu-wrap .toggler:checked:hover + .hamburger > div {
    transform: rotate(225deg);
  }
  .header-container .menu-wrap .mobile-menu ul {
    list-style: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: -100%;
    text-align: center;
    transition: 0.2s ease-in-out;
    z-index: 1;
    margin-top: 50px;
  }
  .header-container .menu-wrap .mobile-menu ul li {
    display: block;
    margin: 15px auto;
    line-height: 30px;
    width: 90%;
    border-bottom: 1px solid #fff;
  }
  .header-container .menu-wrap .mobile-menu ul li:last-child {
    border-bottom: none;
  }
  .header-container .menu-wrap .mobile-menu ul li a {
    width: 100%;
    font-size: 16pt;
    color: #fff;
    font-weight: bold;
    background: none;
  }
  .header-container .menu-wrap .mobile-menu ul li a:first-child {
    margin-top: 0;
  }
  .header-container .menu-wrap .mobile-menu ul li a.active {
    color: #e11e3c;
  }
  .header-container .menu-wrap .toggler:checked ~ .mobile-menu {
    visibility: visible;
    position: absolute;
    left: 0;
    width: 100%;
    min-height: 700px;
    height: 100vh;
    background: #2c2c2c;
    z-index: 12;
  }
  .header-container .menu-wrap .toggler:checked ~ .mobile-menu > ul {
    left: 0;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: -o-flex;
    display: flex;
    flex-flow: column;
  }
}
