/*
Theme Name: Wonder Bundle
*/

:root {
    --color-yellow: #e19705;
    --color-yellow-mid: #e7ab33;
    --color-yellow-light: #e8b152;
    --color-teal-mid: #175469;
    --color-teal-light: #22868b;
    --color-orange: #e24818;
    --color-pink: #f5b1a5;
    --color-stone: #e6dbce;
}

*,
*:before,
*:after {
    box-sizing: border-box;
}
@layer base {
    body {
        margin: 0;
        font-family: "Mulish", sans-serif;
        background-color: var(--color-stone);
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    @media only screen and (max-width: 700px) {
        body {
            font-size: 14px;
        }
    }

    h1,
    h2,
    h3 {
        font-family: "Grandstander", cursive;
        font-weight: 600;
        line-height: 1.2em;
    }

    h1,
    h2,
    h3,
    h4 {
        margin-bottom: 0;
        text-align: center;
        color: var(--color-teal-mid);
    }

    .body-content {
        h1,
        h2,
        h3,
        h4 {
            color: var(--color-pink);
        }
    }

    h1 {
        margin-top: 1em;
        font-size: 2.5em;
    }

    h2 {
        margin-top: 1.4em;
        font-size: 2em;
    }

    p {
        line-height: 1.4em;
    }

    a {
        text-decoration: none;
    }

    textarea,
    input {
        padding: 12px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    fieldset {
        border: none;
        margin: 30px auto;
        padding: 0;

        legend {
            font-size: 1.2em;
            font-weight: 700;
            margin-bottom: 10px;
        }
    }

    h1.wp-block-heading {
        margin-bottom: 0.8em;
    }

    .color-teal-light {
        color: var(--color-teal-light);
    }

    .color-teal-mid {
        color: var(--color-teal-mid);
    }

    .color-yellow {
        color: var(--color-yellow);
    }

    .color-pink {
        color: var(--color-pink);
    }

    .color-white {
        color: #fff;
    }

    .content {
        max-width: 1000px;
        margin: 0 auto;
    }

    .text-align-left {
        text-align: left !important;
    }

    .flex {
        display: flex;
    }

    .column {
        flex-direction: column;
    }

    .banner {
        position: relative;
        z-index: 1;
    }

    .border-img {
        border: 3px solid #fff;
    }

    @media only screen and (max-width: 700px) {
        body {
            font-size: 14px;
        }
    }
}

@layer body-base {
    main {
        flex: 1;
    }

    footer,
    footer a {
        font-weight: 700;
        color: var(--color-teal-mid);
    }

    footer {
        background: var(--color-yellow);
    }

    footer .body-content {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
        position: relative;
        padding: 50px 0;
    }

    @media only screen and (max-width: 1060px) {
        footer .body-content {
            padding: 50px 30px;
        }
    }

    @media only screen and (max-width: 700px) {
        footer .body-content {
            flex-direction: column;
            align-items: center;
        }

        footer .social {
            margin: auto;
        }
    }

    footer .content {
        position: relative;
    }

    footer .content::after {
        content: "";
        position: absolute;
        background-image: url(assets/img/Bletch.png);
        background-size: contain;
        background-repeat: no-repeat;
        display: block;
        height: 80px;
        top: -80px;
        right: 0;
        width: 100px;
        pointer-events: none;
    }

    footer .left {
    }

    footer .right {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: flex-end;
    }
    .teal-inner {
        background-color: var(--color-teal-mid);
        color: #fff;
        box-shadow: 0px 0px 8px 3px rgba(0, 0, 0, 0.2);

        a {
            color: var(--color-yellow-light);
        }
    }

    .body-content {
        padding-right: 50px;
        padding-left: 50px;
        padding-bottom: 30px;
    }

    @media only screen and (max-width: 700px) {
        .body-content {
            padding-right: 30px;
            padding-left: 30px;
        }
    }

    .body-content p {
        text-align: center;
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
        color: #fff;
    }

    .body-content label {
        text-align: left;
    }

    .header-img {
        width: 100%;
        display: block;
    }

    .header-img-sml {
        max-width: 100%;
        width: 100%;
        display: none;
    }

    @media only screen and (max-width: 700px) {
        .header-img {
            display: none;
        }

        .header-img-sml {
            display: block;
        }
    }
}

body > main {
    display: flex;
    flex-direction: column;

    > .content {
        display: flex;
        flex: 1;
        flex-direction: column;

        > .teal-inner {
            flex: 1;
        }
    }
}

.header-content {
    position: relative;
}

.wb-icon-link {
    position: absolute;
    z-index: 1;
    top: 16px;
    left: 50px;
    height: 120px;
    aspect-ratio: 1 / 1;
}

.wb-icon {
    height: 100%;
}

.nav-toggle {
    display: none;
}

.main-nav-bar {
    background-color: var(--color-yellow);
}

.main-nav-bar .content {
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.nav-controls {
    display: flex;
    align-items: center;
}

.main-nav {
    padding-top: 16px;
    display: flex;
    justify-content: flex-end;
    font-weight: 700;
    margin: 0 30px;
    list-style: none;

    a {
        align-items: center;
        text-decoration: none;
        display: flex;
        padding: 12px 16px;
        color: var(--color-teal-mid);
        white-space: nowrap;
        &:hover {
            color: var(--color-teal-light);
        }
    }

    .current_page_item > a,
    .current_page_parent > a {
        color: #fff;
    }

    .menu-item-has-children {
        position: relative;

        > a::after {
            content: "▼";
            font-size: x-small;
            margin-left: 4px;
        }

        &.open,
        &.open .sub-menu {
            background: var(--color-yellow-mid);
        }
    }

    .sub-menu {
        padding: 0;
        left: 0;
        list-style: none;
        display: none;
    }

    .open .sub-menu {
        display: block;
    }
}

.main-nav-bar.open {
    .menu-main-container,
    .main-nav {
        width: 100%;
        padding: 0;
        margin-top: 30px;

        a {
            justify-content: end;
        }

        .menu-item {
            width: 100%;
        }
    }

    .menu-item-has-children {
        background: var(--color-yellow-mid);
    }
}

@media only screen and (min-width: 701px) {
    .main-nav {
        .menu-item-has-children {
            position: relative;
        }

        .sub-menu {
            position: absolute;
        }
    }
}

@media only screen and (max-width: 700px) {
    .main-nav-bar {
        display: flex;
        padding: 15px;
        justify-content: flex-end;
    }

    .wb-icon-link {
        top: 6px;
        left: 0px;
        height: 80px;
    }

    .main-nav-bar.open {
        height: 100vh;
        li {
            text-align: right;
        }
    }

    .nav-toggle {
        display: block;
        appearance: none;
        background-image: url(assets/img/list.svg);
        background-repeat: no-repeat;
        background-position: center;
        height: 30px;
        width: 30px;
        margin-left: 30px;
        border: 0;
    }

    .nav-toggle:checked {
        background-image: url(assets/img/x.svg);
    }

    .main-nav {
        display: none;
    }

    .main-nav-bar .content {
        width: 100%;
    }

    .main-nav-bar.open .content {
        display: flex;
        align-items: flex-end;
        flex-direction: column;
        justify-content: flex-start;
    }

    .main-nav-bar.open .main-nav,
    .main-nav-bar.open .sub-menu {
        display: flex;
        margin: 0;
        flex-direction: column;
        align-items: flex-end;
    }

    .main-nav-bar.open .main-nav {
        font-size: 1.5em;
    }
}

.wp-block-button__link,
.button {
    font-family: "Mulish", sans-serif;
    text-decoration: none;
    padding: 18px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    padding: 15px 30px;
}

.woocommerce button.button.alt,
.woocommerce button.button,
.woocommerce a.button.alt,
.woocommerce a.button,
.woocommerce .button,
.wp-block-button__link,
.button {
    border-radius: 500px;
    background: var(--color-yellow);
    color: #fff;
    text-align: center;
}

.woocommerce button.button.alt.disabled,
.woocommerce button.button.disabled,
.woocommerce a.button.alt.disabled,
.woocommerce a.button.disabled,
.woocommerce .button.disabled,
.button.disabled,
.woocommerce button.button.alt.disabled:hover,
.woocommerce button.button.disabled:hover,
.woocommerce a.button.alt.disabled:hover,
.woocommerce a.button.disabled:hover,
.woocommerce .button.disabled:hover,
.button.disabled:hover,
.woocommerce button.button.alt:disabled,
.woocommerce button.button:disabled,
.woocommerce a.button.alt:disabled,
.woocommerce a.button:disabled,
.woocommerce .button:disabled,
.button:disabled {
    background-color: #a5a5a5;
}

.woocommerce button.button.alt:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce a.button:hover,
.woocommerce .button:hover,
.wp-block-button__link:hover,
.button:hover {
    background: var(--color-yellow-light);
    color: #fff;
}

.social {
    display: flex;
    gap: 10px;

    .social-icon {
        height: 32px;
    }
}

/* HOME */

.home h2 {
    color: var(--color-pink);
}

.home h1 {
    color: var(--color-yellow);
}

.home h1 strong {
    color: #fff;
}

.home {
    .body-content p {
        margin-left: auto;
        margin-right: auto;
    }
}

.img-strip {
    padding-top: 50px;
    display: flex;
    justify-content: center;
}

.img-strip img:nth-child(1) {
    transform: rotate(-10deg);
}

.img-strip img:nth-child(2) {
    transform: rotate(7deg);
}

.img-strip img:nth-child(3) {
    transform: rotate(-8deg);
}

.img-strip img {
    width: 30%;
}

.img-strip-2 {
    padding-top: 40px;
    display: flex;
    justify-content: space-evenly;
    padding-bottom: 50px;
}

.img-strip-2 img:nth-child(1) {
    transform: rotate(-10deg);
}

.img-strip-2 img:nth-child(2) {
    transform: rotate(7deg);
}

.img-strip-2 img {
    width: 35%;
}

.home .promo > .wp-block-group__inner-container {
    align-items: flex-start;
}

@media only screen and (max-width: 1023px) {
    .home .promo .wp-block-image {
        width: 100%;
    }

    .promo-info .wp-block-button {
        text-align: center;
        display: block;
    }
}

.home .promo-info > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
}

.home .promo-info > .wp-block-group__inner-container .button {
    align-self: center;
}

@media only screen and (min-width: 1024px) {
    .home .promo > .wp-block-group__inner-container {
        text-align: left;
        display: flex;
        gap: 30px;
    }

    .home .promo .wp-block-image {
        flex: 2;
    }

    .home .promo-info {
        flex: 1;
        display: flex;
        align-self: center;
    }

    .home .promo p {
        text-align: left;
    }

    .home .promo-info > .wp-block-group__inner-container {
        align-self: center;
        text-align: left;
        gap: 30px;
    }

    .home .promo .wp-block-image + .wp-block-group .button {
        align-self: flex-start;
    }
}

.home .bottom {
    .is-layout-flex {
        display: flex;
        gap: 5%;
    }

    @media only screen and (max-width: 700px) {
        .is-layout-flex {
            display: block;
        }
        .is-layout-flex .wp-block-group {
            padding-bottom: 50px;
        }
    }

    h2 {
        margin-bottom: 30px;
    }

    figure {
        border: 3px solid #fff;
        margin-bottom: 30px;
    }

    .is-layout-flex .wp-block-group:nth-child(1) {
        figure {
            transform: rotate(2deg);
        }
    }

    .is-layout-flex .wp-block-group:nth-child(2) {
        figure {
            transform: rotate(-3deg);
        }
    }

    .is-layout-flex .wp-block-group:nth-child(3) {
        figure {
            transform: rotate(3deg);
        }
    }
}

.bundle-thumb-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 10%;
    margin: 30px 5%;
}

.bundle-thumb-list,
.bundle-thumb-list p {
    font-size: 1.5em;
}

@media only screen and (max-width: 1000px) {
    .bundle-thumb-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width: 700px) {
    .bundle-thumb-list {
        margin: 30px 0px 70px;
    }
}

@media only screen and (max-width: 550px) {
    .bundle-thumb-list {
        display: flex;
        flex-direction: column;
        margin-left: 20px;
        margin-right: 20px;
    }
}

.bundle-thumb {
    background-color: #22868b;
    border-radius: 16px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px 0 24px;
    text-align: center;
    text-decoration: none;
}

a.bundle-thumb:hover {
    background-color: var(--color-yellow);
}

.bundle-thumb p {
    font-size: 13px;
}

.bundle-thumb strong {
    display: block;
    margin-top: 55px;
    background: var(--color-yellow);
    padding: 10px;
}

.bundle-thumb-image {
}

.bundle-thumb-image img {
    height: auto;
    width: 100%;
    transform: scale(130%);
}

.bundle-thumb-image-message {
    color: var(--color-yellow);
    font-size: 24px;
    align-self: center;
    text-transform: uppercase;
    position: absolute;
}

.heading-insta {
    position: relative;
    margin-top: 50px;
}

.heading-insta img {
    height: 1.8em;
}

.heading-insta a {
    color: var(--color-teal-light);
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.feed {
    margin-top: 30px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.feed-link {
    border: 3px solid #fff;
    display: block;
    aspect-ratio: 1/1;
    width: 230px;
}

@media only screen and (max-width: 480px) {
    .feed-link {
        width: 80%;
    }
}

.feed-image {
    object-fit: cover;
    display: block;
    width: 100%;
    height: 100%;
}

/* ABOUT */

.about .body-content {
    padding-bottom: 70px;
}

.mission {
    max-width: 650px;
    margin: 50px auto 30px;
    padding: 02px 30px 10px;
    background-color: var(--color-teal-light);
    border-radius: 40px;
}

.mission p {
    margin: inherit auto;
    padding: 0 50px 0;
    text-align: center;
    background-repeat: no-repeat;
    background-image: url(assets/img/Leaf_icon.svg),
        url(assets/img/Stars_icon.svg);
    background-position: left center, right center;
    background-size: 50px auto;
}

@media only screen and (min-width: 600px) {
    .mission p {
        font-size: 1.2em;
        padding: 0 80px 0 70px;
        background-size: 80px auto;
    }
}

.values {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 30px 20px 60px;
    justify-content: center;
}

.value {
    border-radius: 20px;
    width: 300px;
    aspect-ratio: 1 / 1;
    padding: 25px;
    background-repeat: no-repeat;
    background-position: right 15px top 15px;
    background-size: 40px;
    color: #fff;
    font-size: 12px;
    text-align: center;

    &:before {
        border-radius: 50px;
        font-weight: 700;
        height: 32px;
        width: 32px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
        margin: 20px auto 20px;
    }

    h3 {
        margin-top: 5px;
        color: #fff;
        font-size: 24px;
        text-transform: uppercase;

        strong {
            font-size: 16px;
            text-transform: none;
            color: #fff;
            line-height: 1.25em;
            display: block;
        }
    }

    p {
        margin-bottom: 0;
    }
}

.value-cost {
    &::before {
        background-color: var(--color-yellow);
        content: "1";
    }

    strong {
        color: var(--color-yellow);
    }

    background-color: var(--color-teal-light);
    background-image: url(assets/img/about/Money_icon.svg);
}

.value-creativity {
    &::before {
        background-color: var(--color-orange);
        content: "2";
    }

    strong {
        color: var(--color-orange);
    }

    background-color: var(--color-teal-mid);
    background-image: url(assets/img/Stars_icon.svg);
}

.value-environment {
    &::before {
        background-color: var(--color-teal-mid);
        content: "3";
    }

    strong {
        color: var(--color-teal-mid);
    }

    background-color: var(--color-yellow);
    background-image: url(assets/img/about/Environment_icon.svg);
}

.value-development {
    &::before {
        background-color: var(--color-yellow);
        content: "4";
    }

    strong {
        color: var(--color-yellow);
    }

    background-color: var(--color-teal-light);
    background-image: url(assets/img/about/Development_icon.svg);
}

.value-fun {
    &::before {
        background-color: var(--color-orange);
        content: "5";
    }

    strong {
        color: var(--color-teal-mid);
    }

    background-color: var(--color-teal-mid);
    background-image: url(assets/img/about/Fun_icon.svg);
}

.about footer {
    margin-top: 0;
}

/* FREEBIES */

.free-downloads-list {
    article {
        display: flex;
        gap: 20px;
        margin-bottom: 30px;

        .attachment-post-thumbnail {
            grid-area: thumbnail;
            width: 120px;
            height: auto;
        }

        .info {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .entry-header {
            h2 {
                margin: 0;
                font-size: 20px;
                text-align: left;
                color: #fff;
            }
        }

        .entry-content {
            p {
                text-align: left;
                margin: 0;
            }
        }

        a[download] {
            color: var(--color-yellow-light);
        }
    }
}

/* PRODUCTS */

.woocommerce ul.products {
    display: flex;
    flex-wrap: wrap;

    .product {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;

        img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
            background: var(--color-teal-light);
            border-radius: 8px;
        }
    }
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 0;
    height: 40px;
    margin: 0;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce ul.products li.product {
    text-align: center;
}

@media only screen and (max-width: 768px) {
    .woocommerce ul.products[class*="columns-"] li.product,
    .woocommerce-page ul.products[class*="columns-"] li.product {
        padding: 10px;
    }
}

.woocommerce ul.products li.product .price,
.woocommerce div.product span.price,
.woocommerce div.product p.price {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
}

.woocommerce ul.products li.product .price {
    margin-bottom: 5px;
}

.woocommerce div.product p.price {
    margin-bottom: 30px;
}

.product-single {
    * {
        text-align: left;
    }
}

.product-primary-info {
    flex: 4;

    .cart {
        margin-top: 30px;
        text-align: center;

        .quantity {
            display: none;
        }
    }
}

.product-price:not(.shop_table .product-price) {
    font-family: "Grandstander", cursive;
    font-weight: 600;
    font-size: 30px;
    display: block;
    text-align: center;
    margin-top: 50px;
}

.product-single .button.add_to_cart_button {
    margin: 20px auto;
    display: block;
    width: fit-content;
}

.product-secondary {
    margin-top: 30px;
}

.product-secondary-content {
    flex: 4;
}

.product-secondary-gallery {
    flex: 5;
    background-color: #fff;
}

.product_meta .posted_in,
.product_meta .tagged_as,
.product_meta .sku_wrapper {
    display: none;
}

.product-environment-statement p {
    font-weight: 600;
    margin: 50px auto 30px;
    padding: 0 80px 0 70px;
    max-width: 420px;
    text-align: center;
    background-repeat: no-repeat;
    background-image: url(assets/img/Leaf_icon.svg),
        url(assets/img/Stars_icon.svg);
    background-position: left center, right center;
    background-size: 80px auto;
}

@media only screen and (min-width: 600px) {
    .product-primary,
    .product-secondary {
        display: flex;
        gap: 50px;
    }

    .product-primary-image {
        flex: 5;

        img {
            width: 100%;
        }
    }
}

@media only screen and (max-width: 599px) {
    .product-primary {
        h1 {
            text-align: center;
        }
    }

    .product-secondary-gallery.slideshow-container {
        max-width: 1000px;
        position: relative;
        margin: 40px 20px 70px;
    }
}

@media only screen and (max-width: 699px) {
    .product-single * {
        text-align: center;
    }

    .product-primary {
        margin-top: 30px;
    }

    .product-primary-image {
        text-align: center;
    }

    .product-price {
        margin-top: 40px;
    }

    .product-secondary {
        margin-top: 55px;
    }
}

.woocommerce-variation-price {
    margin-bottom: 2em;
}

.woocommerce .button.single_add_to_cart_button {
    padding: 11px 22px;
}

.woocommerce .variations th {
    text-align: left;
}

.woocommerce .variations td::before {
    display: none;
}

.woocommerce .variations select {
    padding: 8px 8px;
    border-radius: 6px;
}

.woocommerce .variations .reset_variations {
    padding: 8px 8px;
    border-radius: 6px;
}

#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
    background: none;
}

.product .woocommerce-tabs .wc-tabs {
    display: none;
}

.product .woocommerce-Tabs-panel h2:not(.wp-block-heading) {
    display: none;
}

.single-product .virtual .summary.entry-summary::after {
    content: "Please note that you are purchasing a digital download.";
    font-weight: 700;
}

.related.products h2 {
    margin-bottom: 1em;
}

.product-list h1 {
    margin-top: 1em;
}

/* 404 */

body.error404 {
    color: var(--color-teal-dark);
    text-align: center;
}

.error404 .banner {
    filter: none;
}

.error404 h1 {
    font-size: 6em;
}

.error404 p {
    font-size: 1.5em;
}

/* CART */

.main-nav a.cart-contents,
a.cart-contents {
    color: #fff;
    height: 30px;
    width: 30px;
    background-image: url(assets/img/basket.svg);
    background-repeat: no-repeat;
    background-size: contain;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    transform: translateY(5px);
}

.menu-item:has(.cart-contents) {
    margin-left: 16px;
}

.cart-contents.cart-standalone {
    display: none;
}

@media only screen and (max-width: 700px) {
    .cart-contents.cart-standalone {
        display: flex;
    }
}

.main-nav-bar.open .cart-contents {
    display: none;
}

.cart-contents-count {
    background-color: var(--color-teal-light);
    height: 20px;
    width: 20px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    transform: translateX(5px);
    font-size: 0.8em;
    align-self: flex-start;
}

.coupon {
    display: flex;
}

/* CHECKOUT */

/* ACCOUNT PAGES */

.woocommerce {
    .woocommerce-MyAccount-navigation {
        display: none;
    }

    .woocommerce-MyAccount-content {
        float: none;
        width: auto;
    }
}

/* PRODUCT IMAGES */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;

    .slide {
        display: none;
        &.show {
            padding: 20px;
            display: flex;
            justify-content: center;
        }
    }
    .prev,
    .next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: 40px;
        height: 40px;
        margin-top: -15px;

        img {
            height: 40px;
        }
    }
    .prev {
        left: -30px;

        img {
            transform: rotate(180deg);
        }
    }
    .next {
        right: -30px;
    }
    .dots {
        text-align: center;
        position: absolute;
        bottom: -40px;
        width: 100%;
    }
    .dot {
        cursor: pointer;
        height: 15px;
        width: 15px;
        margin: 0 4px;
        background-color: #fff;
        border-radius: 50%;
        display: inline-block;
        transition: background-color 0.6s ease;
    }
    .active,
    .dot:hover {
        background-color: var(--color-yellow);
    }
    .fade {
        animation-name: fade;
        animation-duration: 1.5s;
    }
}
@keyframes fade {
    from {
        opacity: 0.4;
    }
    to {
        opacity: 1;
    }
}
