/*
Theme Name: Central Coast Storefront
Description: A lightweight Storefront child theme for Central Coast Seasonings.
Author: Central Coast Seasonings
Template: storefront
Version: 2.0.0
Text Domain: central-coast-storefront
*/

@font-face {
    font-display: swap;
    font-family: "Archivo";
    font-style: normal;
    font-weight: 400;
    src: url("assets/fonts/archivo-regular.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Archivo";
    font-style: normal;
    font-weight: 700;
    src: url("assets/fonts/archivo-bold.woff2") format("woff2");
}

@font-face {
    font-display: swap;
    font-family: "Proza Libre";
    font-style: normal;
    font-weight: 400;
    src: url("assets/fonts/proza-libre-regular.woff2") format("woff2");
}

:root {
    --ccs-shopify-cream: #f2efdd;
    --ccs-shopify-wine: #3d081b;
    --ccs-shopify-burgundy: #910f3f;
    --ccs-shopify-muted: rgba(61, 8, 27, .75);
    --ccs-shopify-footer-text: rgba(242, 239, 221, .78);
}

* {
    box-sizing: border-box;
}

body {
    background: var(--ccs-shopify-cream);
    color: var(--ccs-shopify-muted);
    font-family: "Archivo", sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

a {
    color: var(--ccs-shopify-wine);
}

a:hover {
    color: var(--ccs-shopify-burgundy);
}

h1,
h2,
h3,
h4,
.site-title,
.woocommerce-loop-product__title {
    color: var(--ccs-shopify-wine);
    font-family: "Proza Libre", sans-serif;
    font-weight: 400;
    letter-spacing: 0;
}

.home.page .entry-header,
.site-header,
.storefront-handheld-footer-bar {
    display: none !important;
}

.home.page .site-main,
.page-template-template-fullwidth-php .site-main {
    margin-bottom: 0;
}

.home.page .site-content {
    padding: 0;
}

.home.page .site-content > .col-full {
    margin: 0;
    max-width: none;
    padding: 0;
}

.home.page .content-area,
.page-template-template-fullwidth-php .content-area,
.woocommerce-page .content-area,
.blog .content-area,
.single-post .content-area {
    float: none;
    margin-right: 0;
    width: 100%;
}

.home.page .hentry,
.home.page .entry-content {
    margin: 0;
}

.site-content {
    padding: 4rem 0;
}

.ccs-announcement {
    align-items: center;
    background: var(--ccs-shopify-burgundy);
    color: var(--ccs-shopify-cream);
    display: flex;
    font-size: 14px;
    height: 38px;
    justify-content: center;
    letter-spacing: .1em;
    line-height: 1;
    padding: 0 1rem;
    text-align: center;
}

.ccs-shopify-header {
    background: var(--ccs-shopify-cream);
    border-bottom: 1px solid rgba(61, 8, 27, .08);
    height: 136px;
    position: relative;
    z-index: 30;
}

.ccs-shopify-header__inner {
    align-items: center;
    display: grid;
    gap: 20px;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    height: 100%;
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 50px;
}

.ccs-shopify-header__logo,
.ccs-shopify-header__logo img {
    display: block;
    height: 120px;
    width: 120px;
}

.ccs-shopify-header__logo img {
    object-fit: contain;
}

.ccs-shopify-header__nav ul,
.ccs-mobile-menu__panel ul {
    display: flex;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ccs-shopify-header__nav a {
    color: var(--ccs-shopify-muted);
    display: block;
    font-size: 14px;
    line-height: 1.3;
    padding: 12px;
    text-decoration: none;
}

.ccs-shopify-header__nav a:hover,
.ccs-shopify-header__nav a[aria-current="page"] {
    color: var(--ccs-shopify-wine);
    text-decoration: underline;
    text-underline-offset: .35rem;
}

.ccs-shopify-header__actions {
    align-items: center;
    display: flex;
    gap: 22px;
    justify-content: flex-end;
}

.ccs-shopify-header__icon,
.ccs-header-search summary,
.ccs-mobile-menu summary {
    align-items: center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--ccs-shopify-wine) !important;
    cursor: pointer;
    display: flex;
    height: 44px;
    justify-content: center;
    padding: 0 !important;
    width: 24px;
}

.ccs-shopify-header__icon svg,
.ccs-header-search svg {
    display: block;
    height: 22px;
    stroke: currentColor;
    width: 22px;
}

.ccs-header-search,
.ccs-mobile-menu {
    position: relative;
}

.ccs-header-search summary,
.ccs-mobile-menu summary {
    list-style: none;
}

.ccs-header-search summary::-webkit-details-marker,
.ccs-mobile-menu summary::-webkit-details-marker {
    display: none;
}

.ccs-header-search form {
    align-items: center;
    background: var(--ccs-shopify-cream);
    border: 1px solid var(--ccs-shopify-wine);
    display: flex;
    padding: .5rem;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(340px, 82vw);
}

.ccs-header-search input[type="search"] {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--ccs-shopify-wine);
    margin: 0;
    min-width: 0;
    padding: .7rem;
    width: 100%;
}

.ccs-header-search button {
    background: var(--ccs-shopify-burgundy) !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: var(--ccs-shopify-cream) !important;
    padding: .65rem 1rem !important;
}

.ccs-mobile-menu {
    display: none;
}

.ccs-shopify-hero {
    height: 560px;
    overflow: hidden;
    position: relative;
}

.ccs-shopify-hero__media {
    background: url("assets/shopify-hero-original.webp") center center / cover no-repeat;
    inset: 0;
    position: absolute;
}

.ccs-shopify-hero__content {
    align-items: flex-start;
    display: flex;
    height: 100%;
    margin: 0 auto;
    max-width: 1200px;
    padding: 50px;
    position: relative;
}

.ccs-shopify-hero__box {
    align-items: flex-start;
    background: var(--ccs-shopify-cream);
    border: 2px solid var(--ccs-shopify-wine);
    border-radius: 12px;
    box-shadow: 0 7px 0 var(--ccs-shopify-wine);
    display: flex;
    flex-direction: column;
    min-height: 254px;
    padding: 40px 35px;
    width: 545px;
}

.ccs-shopify-hero h1 {
    color: var(--ccs-shopify-wine);
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 14px;
    max-width: 471px;
}

.ccs-shopify-hero p {
    color: var(--ccs-shopify-muted);
    line-height: 1.8;
    margin: 0 0 20px;
}

.ccs-shopify-hero .button,
.ccs-who .button {
    background: transparent !important;
    border: 2px solid var(--ccs-shopify-wine) !important;
    border-radius: 999px !important;
    box-shadow: 0 3px 0 var(--ccs-shopify-wine);
    color: var(--ccs-shopify-wine) !important;
    font-size: 15px;
    font-weight: 400 !important;
    line-height: 1.2;
    padding: 13px 29px !important;
}

.ccs-shopify-hero .button:hover,
.ccs-who .button:hover {
    background: var(--ccs-shopify-burgundy) !important;
    border-color: var(--ccs-shopify-burgundy) !important;
    color: var(--ccs-shopify-cream) !important;
}

.ccs-who {
    border-bottom: 6px solid var(--ccs-shopify-wine);
    padding: 64px 24px 58px;
    text-align: center;
}

.ccs-who__inner {
    margin: 0 auto;
    max-width: 780px;
}

.ccs-who h2,
.ccs-featured h2 {
    color: var(--ccs-shopify-wine);
    font-size: 40px;
    line-height: 1.3;
    margin: 0 0 20px;
}

.ccs-who p {
    color: var(--ccs-shopify-muted);
    line-height: 1.8;
    margin: 0 0 24px;
}

.ccs-featured {
    padding: 42px 0 58px;
}

.ccs-featured__inner {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 50px;
}

.ccs-featured h2 {
    margin-bottom: 30px;
}

.home .woocommerce ul.products {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    content: none !important;
    display: none !important;
}

.woocommerce ul.products li.product {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    float: none !important;
    margin: 0 0 2.5rem !important;
    padding: 0;
    text-align: center;
    width: auto !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: none;
    transform: none;
}

.woocommerce ul.products li.product .woocommerce-LoopProduct-link {
    color: var(--ccs-shopify-wine);
    display: flex;
    flex: 1;
    flex-direction: column;
    text-decoration: none;
}

.woocommerce ul.products li.product img {
    aspect-ratio: 2 / 3;
    background: #fff;
    border: 2px solid var(--ccs-shopify-wine);
    border-radius: 2px;
    margin: 0 0 12px;
    max-width: none;
    object-fit: cover;
    width: 100%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--ccs-shopify-wine);
    font-family: "Archivo", sans-serif;
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
    padding: 0 5px;
}

.woocommerce ul.products li.product .price,
.single-product div.product p.price {
    color: var(--ccs-shopify-wine);
    font-size: 16px;
    font-weight: 400;
    margin: 8px 0 16px;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
    background: transparent !important;
    border: 2px solid var(--ccs-shopify-wine) !important;
    border-radius: 999px !important;
    box-shadow: 0 3px 0 var(--ccs-shopify-wine);
    color: var(--ccs-shopify-wine) !important;
    font-size: 15px;
    font-weight: 400 !important;
    line-height: 1.2;
    margin: auto 0 0;
    padding: 13px 14px !important;
    width: 100%;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .added_to_cart:hover {
    background: var(--ccs-shopify-burgundy) !important;
    border-color: var(--ccs-shopify-burgundy) !important;
    color: var(--ccs-shopify-cream) !important;
}

.woocommerce ul.products li.product.outofstock .button {
    border-color: rgba(61, 8, 27, .35) !important;
    box-shadow: 0 3px 0 rgba(61, 8, 27, .35);
    color: rgba(61, 8, 27, .45) !important;
    pointer-events: none;
}

.ccs-featured__view-all {
    margin: 14px 0 0;
    text-align: center;
}

.ccs-featured__view-all .button,
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.wc-block-components-button {
    background: var(--ccs-shopify-burgundy) !important;
    border: 2px solid var(--ccs-shopify-burgundy) !important;
    border-radius: 999px !important;
    color: var(--ccs-shopify-cream) !important;
    font-family: "Archivo", sans-serif;
    font-weight: 400 !important;
    padding: .85rem 1.6rem !important;
}

.button:hover,
button:hover,
input[type="submit"]:hover,
.wc-block-components-button:hover {
    background: var(--ccs-shopify-wine) !important;
    border-color: var(--ccs-shopify-wine) !important;
}

.woocommerce-products-header h1,
.entry-header h1,
.entry-title {
    color: var(--ccs-shopify-wine);
}

.woocommerce-breadcrumb,
.woocommerce-breadcrumb a {
    color: var(--ccs-shopify-muted);
}

.site-footer {
    background: var(--ccs-shopify-burgundy);
    color: var(--ccs-shopify-footer-text);
    padding: 40px 0 36px;
}

.site-footer .col-full {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 50px;
}

.ccs-shopify-footer__grid {
    display: grid;
    gap: 44px;
    grid-template-columns: 1fr 1fr 1.25fr 1fr;
}

.ccs-shopify-footer h2 {
    color: var(--ccs-shopify-cream);
    font-family: "Proza Libre", sans-serif;
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 24px;
}

.ccs-shopify-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ccs-shopify-footer li {
    margin: 0 0 14px;
}

.ccs-shopify-footer a {
    color: var(--ccs-shopify-footer-text);
    text-decoration: none;
}

.ccs-shopify-footer a:hover {
    color: var(--ccs-shopify-cream);
    text-decoration: underline;
}

.ccs-shopify-footer p {
    margin: 0 0 12px;
}

.ccs-footer-subscribe {
    align-items: center;
    border: 2px solid var(--ccs-shopify-cream);
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
}

.ccs-shopify-footer__bottom {
    border-top: 1px solid rgba(242, 239, 221, .18);
    font-size: 13px;
    margin-top: 46px;
    padding-top: 24px;
    text-align: center;
}

.ccs-note {
    background: rgba(255, 255, 255, .42);
    border-left: 4px solid var(--ccs-shopify-burgundy);
    padding: 1rem 1.25rem;
}

@media (max-width: 980px) {
    .ccs-shopify-header__inner {
        padding: 0 28px;
    }

    .ccs-shopify-header__nav a {
        padding: 10px 7px;
    }

    .ccs-shopify-header__actions {
        gap: 15px;
    }

    .home .woocommerce ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ccs-shopify-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }

    .ccs-announcement {
        font-size: 12px;
    }

    .ccs-shopify-header {
        height: 136px;
    }

    .ccs-shopify-header__inner {
        gap: 0;
        grid-template-columns: 1fr 120px 1fr;
        padding: 0 20px;
    }

    .ccs-shopify-header__logo {
        grid-column: 2;
        justify-self: center;
    }

    .ccs-shopify-header__nav {
        display: none;
    }

    .ccs-mobile-menu {
        display: block;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .ccs-mobile-menu summary {
        width: 28px;
    }

    .ccs-mobile-menu__lines,
    .ccs-mobile-menu__lines::before,
    .ccs-mobile-menu__lines::after {
        background: var(--ccs-shopify-wine);
        content: "";
        display: block;
        height: 1px;
        position: absolute;
        width: 20px;
    }

    .ccs-mobile-menu__lines::before {
        top: -6px;
    }

    .ccs-mobile-menu__lines::after {
        top: 6px;
    }

    .ccs-mobile-menu__panel {
        background: var(--ccs-shopify-cream);
        border-bottom: 2px solid var(--ccs-shopify-wine);
        left: -20px;
        padding: 20px 28px 26px;
        position: absolute;
        top: 90px;
        width: 100vw;
    }

    .ccs-mobile-menu__panel ul {
        align-items: flex-start;
        flex-direction: column;
    }

    .ccs-mobile-menu__panel a {
        color: var(--ccs-shopify-wine);
        display: block;
        padding: 9px 0;
        text-decoration: none;
    }

    .ccs-shopify-header__actions {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .ccs-account-link {
        display: none;
    }

    .ccs-shopify-hero {
        height: auto;
        overflow: visible;
    }

    .ccs-shopify-hero__media {
        background-position: center center;
        height: 342px;
        position: relative;
    }

    .ccs-shopify-hero__content {
        display: block;
        height: auto;
        max-width: none;
        padding: 0;
    }

    .ccs-shopify-hero__box {
        align-items: center;
        border: 0;
        border-bottom: 2px solid var(--ccs-shopify-wine);
        border-radius: 0;
        box-shadow: none;
        min-height: 265px;
        padding: 38px 28px;
        text-align: center;
        width: 100%;
    }

    .ccs-shopify-hero h1 {
        font-size: 22px;
        max-width: 340px;
    }

    .ccs-shopify-hero p {
        max-width: 330px;
    }

    .ccs-who {
        padding: 42px 28px 44px;
    }

    .ccs-who h2,
    .ccs-featured h2 {
        font-size: 32px;
    }

    .ccs-featured {
        padding: 34px 0 48px;
    }

    .ccs-featured__inner {
        padding: 0 15px;
    }

    .home .woocommerce ul.products,
    .woocommerce ul.products {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .woocommerce ul.products li.product {
        margin-bottom: 26px !important;
        width: auto !important;
    }

    .woocommerce ul.products li.product img {
        margin-bottom: 10px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 12px;
    }

    .woocommerce ul.products li.product .price {
        font-size: 14px;
    }

    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product .added_to_cart {
        font-size: 13px;
        padding: 12px 8px !important;
    }

    .site-content {
        padding: 2rem 0;
    }

    .home.page .site-content {
        padding: 0;
    }

    .site-footer {
        padding: 36px 0 30px;
    }

    .site-footer .col-full {
        padding: 0 40px;
    }

    .ccs-shopify-footer__grid {
        gap: 34px;
        grid-template-columns: 1fr;
    }

    .ccs-shopify-footer__bottom {
        text-align: left;
    }
}
