/********* CONTENTS ********

FONTS
BASE
RESET
TYPE
HEADER
FOOTER
HOME
CART
*MEDIA QUERIES ARE INLINE*

******** END CONTENTS ********/


/******** FONTS ********/

@font-face {
  font-family: "Feijoa-Display";
  src: url("Feijoa-Display.eot"); /* IE9 Compat Modes */
  src: url("Feijoa-Display.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
    url("Feijoa-Display.otf") format("opentype"), /* Open Type Font */
    url("Feijoa-Display.svg") format("svg"), /* Legacy iOS */
    url("Feijoa-Display.ttf") format("truetype"), /* Safari, Android, iOS */
    url("Feijoa-Display.woff") format("woff"), /* Modern Browsers */
    url("Feijoa-Display.woff2") format("woff2"); /* Modern Browsers */
  font-weight: normal;
  font-style: normal;
}

/******** BASE ********/
:root {
  --bg-primary: #fdd798;
  --bg-secondary: #b0c089;
  --c-primary: #484c37;
  --c-active: #eea929;
  --m-xs: 1rem;
  --m-s: 2rem;
  --m-m: 3rem;
  --m-l: 5rem;
  --m-xl: 7.5rem;
  --m-xxl: 10rem;
  --m-xxxl: 20rem;
  --timer-s: 1s;
  --timer-m: .5s;
  --timer-f: .25s;
  --mobile-blur-top: linear-gradient( to bottom, rgba(255,255,255,.6) 10%, rgba(255,255,255,0) 100% );
  --mobile-blur-bottom: linear-gradient( to top, rgba(255,255,255,.6) 10%, rgba(255,255,255,0) 100% );
}

@media only screen and (max-width: 50em) {
  :root {
    --m-xxxl: 16rem;
    --m-xxl: 8rem;
    --m-xl: 6rem;
    --m-l: 4rem;
    --m-m: 2.5rem;
    --m-s: 1.5rem;
  }
}

@media only screen and (max-width: 31.25em) {
  :root {
    --m-xxxl: 12rem;
    --m-xxl: 6rem;
    --m-xl: 4rem;
    --m-l: 2.5rem;
    --m-m: 2rem;
    --m-s: 1rem;
    --m-xs: .5rem;
  }
}

/******** RESET ********/
* {
  margin: 0;
  padding: 0;
}

*,
::after,
::before {
  -webkit-box-sizing: inherit;
          box-sizing: inherit;
}

html {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  /* don't use font-size %s due to Safari auto-scaling up to a readable size */
  font-size: 10px;
  scroll-behavior: smooth;
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE10+/Edge */
  user-select: none; /* Standard */
}
  
@media only screen and (max-width: 68.75em) {
  html {
    font-size: 8px;
  }
}

@media only screen and (max-width: 50em) {
  html {
    font-size: 7.2px;
  }
}

@media only screen and (max-width: 31.25em) {
  html {
    font-size: 6.4px;
  }
}

body {
  background: var(--bg-primary);
}

@media screen and (max-width:768px){
  body {
    -webkit-overflow-scrolling:touch
  }
}

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

img {
  user-drag: none; 
  user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  max-width: 100%;
  max-height: 100vh;
}

picture {
  height: 100%;
  width: 100%;
  display: block;
}

li {
  list-style: none;
  text-align: left;
}

button,
input {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/******** ANIMATIONS ********/

body {
  opacity: 0;
  transition: opacity var(--timer-m);
}

body.loaded {
  opacity: 1;
}

@keyframes ticker {
  0% {top:100%; transform: rotate(180deg) translateY(100%);}
  100% {top:0%; transform: rotate(180deg) translateY(0%);}
}

@keyframes hover {
  0% {transform: translateY(.25rem);}
  100% {transform: translateY(-.25rem);}
}
/******** TYPE ********/

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-weight: 100 !important;
  line-height: 1.2;
  font-size: 3rem;
  color: var(--c-primary);
  font-family: Times New Roman;
  font-style: italic;
}

h1, h2, h3, h4, h5, h6,
#shopify-section-header,
.atc,
.checkout,
.gluten-free,
.quantity,
.price,
footer {
  font-size: 2.25rem;
  font-family: "Feijoa-Display", Georgia;
  font-style: initial;
  color: var(--c-primary);
  font-weight: 100 !important;
}

.checkout {
  text-decoration: underline;
}

.footer-item-center,
.ticker-text {
  font-family: Times New Roman;
  font-size: 2rem;
}

.cart-count {
  color: var(--bg-primary);
}

h1 {
  font-size: 5rem;
  line-height: 1.4;
}

h2,
.caption-wrapper,
.price,
.atc,
.checkout {
  font-size: 2.75rem;
}

.variant-title,
.template-cart .description {
  font-size: 2.5rem;
}

li, span, .ticker-text {
  font-size: 2rem;
}

a,
.cart-count,
.variant,
.cta,
.checkout {
  transition: all var(--timer-f) ease;
}

.cta.enabled {
  opacity: 1;
}

a:not(#logo-link):hover,
.cart-count:hover,
.variant:hover,
.cta.enabled:hover .atc,
.checkout:hover {
  color: var(--c-active);
  opacity: 1;
  cursor: pointer;
}

.gluten-free {
  font-size: 1.5rem;
}

.mc-status:focus {
    outline: none;
}


@media only screen and (max-width: 31.25em) {
  li, span {
    font-size: 2.5rem;
  }  

  .footer-item-center {
    font-size: 3rem;
  }

  .checkout {
    font-size: 5rem; 
  }
}


/******** HEADER ********/

.header-wrapper {
  margin-top: var(--m-m);
  position: fixed;
  top: 0;
  z-index: 10;
  width: 100%;
  display: grid;
  grid-template-columns: var(--m-xl) 1fr var(--m-xl);
  grid-template-rows: var(--m-l);
  justify-items: flex-end;
}

#logo-wrapper {
  position: absolute;
  left: 50%;
  top: 0;
  height: var(--m-xxl);
  transform: translateX(-50%);
  transition: all var(--timer-m) linear;
  padding: 0 var(--m-xl);
}

#logo-link {
  text-align: center;
}

#logo {
  height: 100%;
  display: flex;
  justify-content: flex-start;
}

#logo svg {
  height: 100%;
}

#sublogo {
  transition: opacity var(--timer-f) var(--timer-f) ease;
  margin-top: 1rem;
}

.scrolled #logo-wrapper,
.template-cart #logo-wrapper {
  transition: all var(--timer-m) linear;
  left: 0;
  height: var(--m-xl);
  transform: translateX(0);
}

.scrolled #sublogo,
.template-cart #sublogo {
  transition: opacity var(--timer-f) ease;
  opacity: 0;
}

#main-menu-wrapper {
  position: absolute;
  right: 0;
  height: 100%;
  display: flex;
  justify-content: flex-end;
  grid-column: 2/3;
}

#main-menu {
  height: 100%;
  flex: auto;
  display: flex;
  align-items: center;
  padding: var(--m-xs) var(--m-m);
  border: 1px var(--c-primary) solid;
  background-color: var(--bg-primary);
}

#shopping-bag,
#main-menu a:not(:first-of-type) {
  margin-left: var(--m-m);
}

#shopping-bag {
  position: relative;
  width: 100%;
  height: var(--m-l);
}

#shopping-bag svg {
  height: 100%
}

.cart-count {
  position: absolute;
  bottom: 5px;
  width: 100%;
  text-align: center;
}


@media only screen and (max-width: 50em) {
  .header-wrapper,
  #shopping-bag {
    height: var(--m-xl);
  }

  #logo-wrapper,
  .scrolled #logo-wrapper,
  .template-cart #logo-wrapper {
    left: 0;
    height: 100%;
    transform: translateX(0);
  }

  #sublogo {
    opacity: 0;
  }
}

@media only screen and (max-width: 31.25em) {
  #shopify-section-header {
    height: var(--m-xxxl);
    background: var(--mobile-blur-top);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
  }

  .header-wrapper {
    grid-template-columns: var(--m-l) 1fr var(--m-l);
  }

  #logo-wrapper {
    padding: 0 var(--m-l);
  }

  .header-wrapper,
  #shopping-bag {
    height: var(--m-xxl);
  }

  #shopping-bag,
  #main-menu a:not(:first-of-type) {
    margin-left: var(--m-m);
  }

  .cart-count {
    bottom: 5px;
  }
}

@media only screen and (max-width: 23em) {
  #main-menu {
    padding: var(--m-xs) var(--m-s);
  }
}

/******** FOOTER ********/
footer {
  margin-top: -1px;
}

footer a {
  position: relative;
  z-index: 1;
}

.template-cart footer {
  display: none;
}

.footer-inner-wrapper {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: var(--m-xs) var(--m-xl);
}

.footer-item-center {
  position: absolute;
  bottom: var(--m-xs);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

@media only screen and (max-width: 31.25em) {
  .footer-inner-wrapper {
    height: 20rem;
    /* background: var(--mobile-blur-bottom); */
    padding: var(--m-l);
  }

  .footer-item-center {
    top: 0;
    left: var(--m-l);
    transform: translateX(0);
    text-align: left;
    width: auto;
  }
}

/******** MAIN ********/

#MainContent {
  margin-top: var(--m-xxxl);
  position: relative;
}

#MainContent > div:first-child img {
  max-height: 50vh;
}

#MainContent > div:first-child section {
  padding-bottom: 0;
}

#MainContent > div:first-child section > div{
  margin-bottom: 0;
}

section {
  display: block;
  width: 100%;
  text-align: center;
}

.mobile-only {
  display: none;
}

@media only screen and (min-width: 31.26em) {
  #MainContent > div:first-child section {
    margin-top: 0;
    padding-top: 0;
  } 
}

@media only screen and (max-width: 31.25em) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
  }
}


/******** SECTIONS ********/

/* freeflow */

.freeflow {
  padding: var(--m-xl) var(--m-xxxl);
}

.freeflow-block {
  margin: var(--m-xl) auto;
}

.text-wrapper,
.html-wrapper {
  max-width: 60%;
  margin: var(--m-s) auto;
}

.caption-wrapper {
  max-width: 50%;
  min-width: 40rem;
  margin: 0 auto;
}

.image-wrapper {
  margin: var(--m-s) auto; 
}

.image {
  width: 100%;
  height: 100%;
  max-height: 67vh;
  object-fit: contain;
}

.scrollberry {
  max-width: 10rem;
}

@media only screen and (max-width: 50em) {
  
  .freeflow {
    padding: var(--m-xl) var(--m-l);
  }

  .text-wrapper,
  .html-wrapper,
  .caption-wrapper {
    max-width: 100%;
    min-width: unset;
  }
}

/* ticker */
.ticker-text {
  position: fixed;
  left: var(--m-s);
  top: 0%;
  writing-mode: vertical-rl;
  white-space: pre;
  transform: rotate(180deg);
  animation: ticker 10s linear alternate infinite;
}

/* featured collections */

.featured-products {
  padding: var(--m-xxl) var(--m-xl) var(--m-l);
}

.products-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: var(--m-xxl); 
  margin-bottom: var(--m-xl);
}

.product {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-gap: var(--m-xs) 0;
}

.featured-image-wrapper {
  grid-row-start: 1;
}

.info-wrapper {
  grid-row-start: 2;
  display: flex;
  flex-direction: column;
}

.info-wrapper-top,
.info-wrapper-bottom,
.variant-select-wrapper {
  display: flex;
  justify-content: space-between;
  margin: var(--m-xs) 0;
  text-align: left;
}

.variant-select-wrapper {
  margin: 0;
}

.info-wrapper-bottom {
  flex-direction: column;
  cursor: pointer;
}

.variant-list {
  opacity: 0;
  max-height: 5rem;
  overflow: hidden;
  transition: opacity var(--timer-m), max-height var(--timer-m);
  pointer-events: none;
}

 .expand .variant-list {
  opacity: 1;
  max-height: 40rem;
  pointer-events: auto;
}

.variant-select {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.chevron {
  width: 3rem;
  cursor: pointer;
}

.info-wrapper:not(.expand) .chevron {
  animation: hover .7s infinite alternate linear;
}

.chevron svg {
  width: 100%;
  transform-origin: center;
  transition: transform var(--timer-m);
}

.expand .chevron svg{
  transform: rotate(-180deg);
}

.variant {
  cursor: pointer;
}

.variant.active {
  color: var(--c-active);
}

.gluten-free {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  border: 1px solid var(--c-primary);
  background: var(--bg-primary);
  transition: background var(--timer-m);
  opacity: 0;
}

.gluten-free.active,
.gluten-free.hovered {
  opacity: 1;
  background: var(--c-active);
}

.cta-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.cta {
  position: relative;
  padding-bottom: var(--m-xs);
  opacity: 0.6;
  pointer-events: none;
  cursor: 
}

.cta.enabled {
  cursor: pointer;
  pointer-events: auto;
}

.cta::after {
  content: "";
  width: 100%;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--c-primary);
  opacity: 0.6;
  transform: scale(1, 0.8);
  transform-origin: bottom;
  transition: all var(--timer-m);
}

.cta.enabled:hover:after {
  transform: scale(1, 1.75);
  background: var(--c-active);
  opacity: 1;
}

.disclaimer {
  display: block;
  margin: 0 auto var(--m-l);
  text-align: left;
}

.unavailable {
  pointer-events: none;
}

.atc {
  cursor: pointer;
  transition: all var(--timer-m) ease;
}


@media only screen and (max-width: 31.25em) {
  .featured-products {
    padding: var(--m-m) var(--m-l);
  }

  .products-wrapper {
    display: flex;
    flex-direction: column;
  }

  .product:not(:last-of-type) {
    margin-bottom: var(--m-xxl);
  }
}


/* lists */

.lists {
  padding: var(--m-xl) var(--m-xxxl) var(--m-xxl) calc(var(--m-xxxl) + 3.5rem);
  text-align: left;
  margin-top: -1px;
}

.lists-wrapper {
  display: flex;
  justify-content: space-between;
}

.list-block {
  cursor: pointer;
}

.list-name {
  position: relative;
  margin-bottom: var(--m-s);
}

.list-name::before {
  position: absolute;
  bottom: 0;
  left: 0;
  content: "+ ";
  font-size: 3.5rem;
  line-height: 1.15;
  transform: translateX(-150%);
  transition: var(--timer-m) transform;
}

.list-block.active .list-name::before {
  transform: translateX(-150%) rotate(45deg);
}

.list-block.active .list-name,
.list-name:hover {
  text-decoration: underline;
}

.list-items {
  opacity: 0;
  max-height: 0;
  transition: var(--timer-m) opacity, var(--timer-m) max-height;
}

.list-block.active .list-items{
  opacity: 1;
  max-height: 40vh;
}

.list-items li::before {
  content: "– ";
}

@media only screen and (max-width: 50em) {
  .lists {
    padding: var(--m-l) var(--m-l) var(--m-xxl) calc(var(--m-l) + 3.5rem);
  }

  .lists-wrapper {
    flex-direction: column;
  }

  .list-block {
    margin-bottom: var(--m-l);
  }

  .list-name:hover {
    text-decoration: none;
  }
}

/******** CART ********/
.template-cart #MainContent {
  padding: 0 var(--m-xl);
}

.line-item,
.cart-footer {
  display: grid;
  grid-template-columns: 3fr 4fr 2fr 4fr;
  width: 100%;
  grid-gap: var(--m-m);
  margin-bottom: var(--m-m);
}

.info-price,
.info-amounts,
.cart-nav,
.increments {
  display: flex;
  justify-content: space-evenly;
  height: min-content;
  display: flex;
  align-items: center;
}

.cart-nav {
  justify-content: space-between;
}

.info-price {
  justify-content: flex-start;
}

.item-price {
  margin-right: var(--m-m);
  min-width: 5rem;
}

.info-amounts {
  justify-content: space-between;
}

.increments {
  flex: 75%;
  max-width: 25rem;
}

.quantity {
  width: 4rem;
  height: 4rem;
  border-radius: 100%;
  border: 1px solid var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.minus,
.add,
.remove {
  font-size: 6rem;
  font-weight: 400;
  line-height: 1;
  height: 3rem;
  display: flex;
  align-items: center;
}

.remove {
  margin-left: var(--m-m);
}

.cart-footer {
  padding: var(--m-xl) 0;
  border-top: 1px solid var(--c-primary);
}


@media only screen and (max-width: 50em) {
  .line-item,
  .cart-footer {
    grid-gap: var(--m-xl);
    margin: 0;
    padding: var(--m-xxl) 0;
  }

  .line-item:not(:first-of-type) {
    border-top: 1px solid var(--c-primary);
  }

  .line-image {
    grid-column: 1/5;
  }

  .line-image img {
    width: 100%;
  }

  .product-title {
    margin-bottom: var(--m-m);
  }

  .info-name {
    grid-column: 1/4;
    grid-row: 2/3;
  }

  .info-price {
    grid-column: 4/5;
    grid-row: 2/3;
    justify-content: flex-end;
  }

  .item-price {
    margin-right: 0;
  }

  .info-price .gluten-free {
    margin-left: var(--m-m);
    display: none;
  }

  .info-price .gluten-free.active {
    display: flex;
  }

  .info-amounts {
    grid-row: 3/3;
    grid-column: 1/5;
  }

  .increments {
    flex: unset;
    display: grid;
    grid-gap: var(--m-xl);
    grid-template-columns: repeat(3, auto);
    justify-items: start;
  }

  .shop {
    display: none;
  }

  .subtotal-header {
    grid-row: 1/2;
    grid-column: 1/3;
  }

  .subtotal-amount {
    grid-row: 1/2;
    grid-column: 3/5;
    justify-self: end;
  }

  .checkout-message {
    grid-row: 2/3;
    grid-column: 1/5;
  }

  .cart-nav {
    grid-row: 3/4;
    grid-column: 1/5;
    justify-self: end;
  }

}

@media only screen and (max-width: 31.25em) {
  .template-cart #MainContent {
    padding: 0 var(--m-l);
  }  
}




