/* Change navigation styling */
nav.main { background-color: #FF5A5C; }
nav.main .wrapper .logo-link .logo { background-image: url('../logo-white.png'); }
nav.main .wrapper .menu-toggle .icon { background-color: #ffffff; }
nav.main .wrapper .menu li a { color: #ffffff; }
nav.main .wrapper .menu li a:hover { background-color: rgba(255, 255, 255, 0.15); }

/* Product Header section */
.product-header { text-align: center; background-image: url('../img/product-strawberry-background.png'); background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #FDFAF5; padding: 96px 16px 240px; }
.product-header h1 { color: #FF5A5C; font-family: 'Averta Extra Bold Italic'; }
.product-header h2 { color: #E33F4D; font-family: 'Averta Extra Bold Italic'; }
.product-header p { color: #AA2F2B; font-size: 20px; max-width: 640px; margin: auto; }
.product-header .product-image { display: inline-block; position: relative; margin: auto; }
.product-header .product-image img { max-width: 100%; }
.product-header .product-image .product { position: relative; z-index: 1; width: 560px; }
.product-header .product-image .splash { position: absolute; left: 15%; top: 15%; }
.product-header .product-image .animation_1 { animation: seesaw 5s ease-in-out infinite alternate; position: absolute; left: -20vw; top: 10%; }
.product-header .product-image .animation_2 { animation: seesaw-reverse 5s ease-in-out infinite alternate; position: absolute; right: -20vw; top: 50%; }


/* Product Details section */
.product-details { color: #ffffff; background-color: #7DBD30; padding: 0px 16px 240px; position: relative; text-align: center; }
.product-details p { max-width: 640px; margin: auto; }
.product-details .wave { display: flex; overflow: hidden; position: absolute; top: -200px; left: 0px; right: 0; padding-bottom: 0; }
.product-details .wave svg { height: 200px; width: auto; flex-shrink: 0; }
.product-details .graphic { padding-bottom: 150px; position: relative; width: calc(100% - 160px); max-width: 1024px; margin: auto; }
.product-details .graphic .cells { height: 32px; display: flex; position: relative; }
.product-details .graphic .cells .bar { background-color: #F5C5D3; position: absolute; left: 1px; top: 2px; height: inherit; width: 0%; transition: all 0.25s ease-in-out; }
.product-details .graphic .cells .cell { border: 3px solid; height: inherit; width: calc(100% + 2px); margin: -1px -1px -1px -2px; display: flex; align-items: center; justify-content: center; position: relative; }
.product-details .graphic .cells .cell:before { content: ''; border-left: inherit; height: inherit; left: -3px; top: 100%; position: absolute; }
.product-details .graphic .cells .cell span { color: #E9E40D; font-size: 26px; bottom: 0; left: 0; height: inherit; position: absolute; transform: translate(-50%, 200%); }
.product-details .graphic .cells .cell:last-of-type { width: 0%; border-right: none; }
.product-details .graphic .amount { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; box-sizing: border-box; background-color: #ffffff; border: 3px solid #ffffff; border-radius: 999px; color: #AA2F2B; font-size: 21px; width: 72px; height: 72px; line-height: 16px; position: absolute; left: 0%; top: 0; transform: translate(-50%, -25%); }
.product-details .icons {display: flex;justify-content:center;padding: 56px 0px; box-sizing: border-box; max-width: 1024px; margin: auto; flex-wrap:wrap }
.product-details .icons * { box-sizing: border-box; }
.product-details .icons .icon { display: inline-block; width: 120px; height: 120px; margin: 20px 40px; perspective: 1000px; /* used for 3d effect */ }
.product-details .icons .icon .inner { position: relative; width: 100%; height: 100%; transition: all 0.5s ease-in-out; transform-style: preserve-3d; }
.product-details .icons .icon:hover .inner {  }
.product-details .icons .icon .inner .front { background-color: #7DBD30; border: 4px solid #fff; border-radius: 999px; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; -moz-backface-visibility: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; padding: 25%; z-index: 0; }
.product-details .icons .icon .inner .back {}
.product-details .icons .icon .inner .front svg,
.product-details .icons .icon .inner .front img { background-color: #7dbd2f; border-radius: 16px; max-height: 100%; width: 100%; position: relative; -moz-backface-visibility: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.product-details .icons .icon .inner .back {font-size: 20px; font-family: 'Averta Extra Bold Italic'; }
.product-details .icons .icon.cancel .inner .front:before { content: ''; border-left: 4px solid #fff; position: absolute; height: 100%; transform: rotate(45deg); -moz-backface-visibility: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.product-details .nutrition-facts .label.yellow { color: #E9E40D; font-size: 24px; }
.product-details .nutrition-facts .label.white { color: #fff; font-size: 24px; }
.product-details .nutrition-facts .group { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; overflow: hidden; padding: 0px 0px 24px; }
.product-details .nutrition-facts .group .title { position: relative; background-color: #7dbd2f; z-index: 1; }
.product-details .nutrition-facts .group .title.large { font-size: 48px; line-height: 48px; }
.product-details .nutrition-facts .group .title:before { content: ''; display: block; background-color: #7dbd2f; top: 0; right: -4px; bottom: 0; left: 0; position: absolute; z-index: -1; }
.product-details .nutrition-facts .group .title:after { content: ''; display: block; border-bottom: 1px dotted #fff; width: 9999px; position: absolute; bottom: 6px; z-index: -2; }
.product-details .nutrition-facts .group .amount { background-color: #7dbd2f; position: relative; padding: 0px 0px 0px 4px; z-index: 1; }
.product-details .nutrition-facts .group .label { width: 100%; text-align: right; font-style: italic; }
.product-details .nutrition-facts p { padding: 32px 0px 0px; }

.reviews-section { background-color: #F5C5D3; background-size: cover; background-position: center; position: relative; }
.reviews-section:before { display: block; content: ''; width: 100%; height: 200px; background-image: url('../img/wave-pink-light.svg'); top: -200px; position: absolute; left: 0; }
.reviews-section .row { max-width: 1200px; margin: auto; align-items: center;  }

/* More Details section */
.more-details { background-image: url('../img/wave-background-pink-white.svg'); background-size: cover; background-position: center; position: relative; padding-bottom: 200px; }
.more-details img { border-radius: 9999px; border: 8px solid #F18BB0; }
.more-details h2 { color: #AA2F2B; }
.more-details p { color: #AA2F2B; }
.more-details .row { max-width: 1200px; margin: auto; align-items: center;  }
.more-details .row .col-6 { padding: 0% 5%; }

/* Other Products carousel */
.other-products { background-color: #fff; position: relative; padding-bottom: 320px; text-align: center; }
.other-products:before { display: block; content: ''; width: 100%; height: 200px; background-image: url('../img/wave-white.svg'); top: -200px; position: absolute; left: 0; }
.other-products h2 { color: #E33F4D; }

@media(max-width: 1200px) {
    /* Mobile nav styling */
    nav.main .wrapper .menu { background-color: #FF5A5C; }
    nav.main .wrapper .menu li a { color: #fff; }
}

@media(max-width: 800px) {
    .product-details:before { width: 800px; }
    .product-details .graphic { transform-origin: 50% 0%; transform: translate(-240px, 320px) rotate(-90deg); max-width: initial; padding-bottom: 0px; width: 540px; left: 15%; margin-bottom: 640px; justify-content: center; }
    .product-details .graphic .cells .cell span { font-size: 16px; white-space: nowrap; transform-origin: 0% 0%; transform: rotate(90deg) translate(0px, 0px); left: 10px; top: 80px; }
    .product-details .graphic .amount { transform: translate(-50%, -25%) rotate(90deg); }
    .product-details .icons .icon { width: 140px; height: 140px; margin: 8px; }
    .product-details .icons .icon .inner .back { font-size: 14px; }
    .product-details .nutrition-facts .group .title { font-size: 13px; }
    .product-details .nutrition-facts .group .title.large { font-size: 24px; line-height: 24px; }
    .product-details .nutrition-facts .group .amount { font-size: 13px; }
    .product-details .nutrition-facts .group .label { font-size: 13px; }
    .product-header .product-image .animation_1 { left: -15vw; width: 160px; height: 160px; }
    .product-header .product-image .animation_2 { right: -15vw; width: 160px; height: 160px; }
    .more-details { text-align: center; }
    .more-details:before { width: 800px; }
    .more-details .row .col-6 { padding: 5% 10%; }
    .more-details .text { order: 1; }
    .other-products:before { width: 800px; }
}