/*
Theme Name: KP Snacks
Author: Kamikaze
Description: Theme for KP Snacks
Version: 0.0.1
*/

/* gen */

::-moz-selection {
    background: #9ab88d;
    color: #fff;
}

::selection {
    background: #9ab88d;
    color: #fff;
}

a {
    color: #1d686b;
    border-bottom: 1px solid transparent;
    transition: 0.25s;
}

a:hover {
    color: #9ab98d;
    border-bottom-color: #9ab98d;
}

/* header navigation */

.header-logo a {
    border-bottom: 0;
}

.header .navigation ul li {
    font-size: 16px;
}

.header .navigation ul {
    float: none;
    padding-right: 10px;
}

.header .navigation .menu {
    justify-content: flex-end;
}

#cart-icon {
    padding-left: 15px;
}

#cart-icon, .nav__account {
    display: flex;
    align-items: center;
    transition: 0.25s;
}

#cart-icon:hover, .nav__account:hover {
    border-bottom-color: transparent;
}

#cart-icon img, .nav__account img {
    width: 50px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#cart-icon span, .nav__account span {
    font-size: 12px;
    text-align: right;
    display: block;
    font-weight: bold;
}

.nav__account span {
    margin: 0 0 0 15px !important;
}

.header .wc-nav {
    justify-content: flex-start;
}

.header .wc-nav .nav-item span {
    font-weight: normal;
    transition: 0.25s;
}

.header .wc-nav .nav-item img {
    transition: 0.25s;
}

.header .wc-nav .nav-item:hover img {
    filter: brightness(0.5);
}

@media(max-width:1024px) {
    .header .navigation {
        border: 0;
        background: #9ab98d;
    }
    .header .navigation ul {
        background: #9ab98d;
    }
    .header .navigation ul li a {
        color: #fff;
    }
}

/* search box "Event Period" */

.search-inner {
    max-width: 1200px;
}

.event-period-wrapper {
    padding: 12px 0;
}

.event-period-header {
    margin-top: -0.4vw;
}

/* login page */

body.page-template-login-php:not(.logged-in) {
    height: 100vh;
    overflow: hidden;
}

.custom-form .input-text::-webkit-input-placeholder, .custom-form .input-text::-moz-placeholder {
    font-size: inherit;
}

.custom-form .lost_password a {
    font-size: 14px !important;
    color: #969696;
}

@media (max-width: 1024px) {
    .custom-form .input-text::-webkit-input-placeholder {
        font-size: inherit;
    }
}

@media(max-width:480px) {
    .form-header span:nth-of-type(1) {
        font-size: 10vw;
    }
    .form-header span:nth-of-type(2) {
        font-size: 7vw;
    }
    .custom-form .input-text {
        font-size: 14px;
        padding: 8px;
        height: auto;
    }
    .custom-form .custom-button.woocommerce-form-login__submit {
        height: auto;
        font-size: 23px !important;
        padding: 5px 10px !important;
    }    
}

/* password reset page */

body.page-id-10 .content {
    padding-bottom: 0;
    width: 100vw;
    max-width: unset;
}

.lost-password-text {
    margin-bottom: 20px;
}

.form-header {
    margin-bottom: 30px;
}

.back-to-login{
    font-size: 14px !important;
    color: #969696;
}

@media(max-width:480px){
    .woocommerce-ResetPassword .custom-button {
        height: auto;
        font-size: 23px !important;
        padding: 5px 10px !important;
    }
}

/* homepage */

.category-item a {
    border-bottom: 0;
}

.category-thumb--no-image {
    background: #12123b;
    font-family: "Amatic SC", cursive;
    font-size: clamp(26px, 6vw, 42px);
    color: #f6bf2f;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-height: 160px;
    text-align: center;
    padding: 0 10px;
}

.category-thumb--no-image::before {
    content: "";
    z-index: 2;
    background: url(/wp-content/themes/kpsnacks/assets/dev/images/kp_category_frame.png) no-repeat center center;
    background-size: 100% 100%;
    position: absolute;
    width: 100%;
    height: 100%;
}

/* /shop/ page */

.categories-list li a:hover {
    color: #226b6c;
    border-bottom-color: #226b6c;
}

.categories-list li a {
    transition: 0.25s;
    border-bottom: 1px solid transparent;
}

.categories-list li a:hover {
    color: #226b6c;
    border-bottom-color: #226b6c;
}

.categories-list li a {
    transition: 0.25s;
    border-bottom: 1px solid transparent;
}

.product .woocommerce-loop-product__title {
    padding: 1vw 0.75vw 0.75vw 0.75vw !important;
    font-size: 14px !important;
}

.product .woocommerce-LoopProduct-link {
    /* height: 11vh; */
}

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

.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
    float: none;
}

.woocommerce ul.products li.product a img {
    margin-bottom: 0;
    padding: 0;
    object-fit: cover;
    width: 100% !important;
    height: 100% !important;
}

.stock-legend-wrapper li {
    margin-bottom: 10px;
}

.products-list-thumb-wrapper {
    width: 100%;
}

@media(max-width:1024px){
    .stock-legend-wrapper {
        justify-content:center;
    }
    .product .woocommerce-loop-product__title{
        padding:13px 12px 10px !important;
    }
}

@media(max-width:768px){
    .woocommerce ul.products li.product, 
    .woocommerce-page ul.products li.product {
        margin: 0 3.8% 2.992em 0 !important;
    }    
}

@media(max-width:380px){
    .category-thumb--no-image {
        font-size: clamp(34px, 11vw, 42px);
    }
}

@media(max-width:375px){
    .stock-legend-wrapper{
        flex-direction:column;
    }
}

@media(max-width:320px){
    .woocommerce ul.products li.product, 
    .woocommerce-page ul.products li.product{
        width:100% !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }
}


/* standard woocommerce overwrites */

header.woocommerce-products-header {
    margin-right: 2vw;
}

.woocommerce-info {
    border-top-color: #9ab88d;
    margin-right: 2vw;
}

.woocommerce-info::before {
    color: #9ab88d;
}

/* product page */

.product-page-container .product-page-btn img {
    transition: 0.25s;
}

.product-page-container .product-page-btn:hover img {
    filter: brightness(1.5) hue-rotate(-80deg) saturate(0.6);
}

.product-page-container .product-page-gallery .large-image{
    height:auto;
}

.product-page-container .product-page-gallery .large-image img{
    max-height:unset;
    height:auto;
    width:100%;
    max-width: fit-content;
}

/* date modal */

.date-period-modal .date-period-modal-btn {
    background-color: #9ab98d;
}

.date-period-modal input {
    padding-left: 8px;
}

/* /cart page */

.woocommerce-cart-form {
    margin: 20px;
}

.woocommerce table.shop_table {
    border-radius: 0;
    background: #fff;
    max-width: 800px;
    margin: 0 auto;
}

.cart-collaterals {
    max-width: 1200px;
    margin: 0 auto;
}

#add_payment_method table.cart td, #add_payment_method table.cart th, .woocommerce-cart table.cart td, .woocommerce-cart table.cart th, .woocommerce-checkout table.cart td, .woocommerce-checkout table.cart th {
    text-align: center;
}

.cart-collaterals .wc-proceed-to-checkout .checkout-button {
    transition: 0.25s;
}

.cart-collaterals .wc-proceed-to-checkout .checkout-button:hover {
    background-color: #1d686b !important;
}

.woocommerce .quantity .qty {
    border-radius: 0;
    border: 1px solid #1b2549;
    padding: 5px;
    height: clamp(30px, 1.4vw, 36px);
    font-size: clamp(20px, 1vw, 32px);
}

/* /checkout page */

.woocommerce-checkout-pages .additional-order-information .woocommerce-checkout-payment button {
    transition: 0.25s;
}

.woocommerce-checkout-pages .additional-order-information .woocommerce-checkout-payment button:hover {
    background-color: #8e0000 !important;
}


#order_comments_field label {
    display: none;
}

/* account page */

body.page-id-10.logged-in .my-account-container li a {
    border-bottom: 1px solid transparent;
    transition: 0.25s;
}

body.page-id-10.logged-in .my-account-container li a:hover {
    border-bottom-color: #9ab98d;
}

body.page-id-10.logged-in .my-account-container {
    background: #fff;
    padding: 30px;
}

body.page-id-10.logged-in .my-account-container:after {
    content: '';
    clear: both;
    display: block;
}

.woocommerce a.button {
    background: #9ab98d;
    color: #fff;
    border-radius: 0;
    transition: 0.25s;
}

.woocommerce a.button:hover {
    background: #1d686b;
    color: #fff;
}

.woocommerce .woocommerce-customer-details address {
    position: relative;
    line-height: 1.5;
}

p.woocommerce-customer-details--phone {
    margin-bottom: 5px !important;
    margin-top: 5px;
    line-height: 1.5;
}

p.woocommerce-customer-details--email {
    line-height: 1.5;
    margin-bottom: 5px !important;
}

body.page-id-10.logged-in .my-account-container li.is-active a {
    color: #9ab98d;
}

section.woocommerce-order-details {
    margin-top: 15px;
}

h2.woocommerce-order-details__title,
h2.woocommerce-column__title {
    margin-bottom: 7px;
}

.u-column1.col-1.woocommerce-Address {
    margin-top: 15px;
}

header.woocommerce-Address-title.title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.woocommerce-Address address {
    line-height: 1.2;
}

body.page-id-10.logged-in legend {
    padding: 10px;
}

body.page-id-10.logged-in fieldset {
    padding: 10px;
    margin-bottom: 20px;
}

body.page-id-10.logged-in .my-account-container .edit-account input {
    margin-bottom: 8px;
}

/* popups */

.woocommerce-notices-wrapper {
    position: fixed;
    z-index: 99999999999;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
}

.woocommerce-notices-wrapper a.button.wc-forward {
    margin-left: 15px;
}

.woocommerce-notices-wrapper .woocommerce-message {
    line-height: 34px;
}

/* Help page */

.basic_page__wrapper {
    width: 90%;
    max-width: 1150px;
    margin: 40px auto 0 auto;
}

h1.entry-title {
    margin-bottom: 20px;
}

.entry-content-page p {
    line-height: 1.3;
}

/* search page */

.search-results-list .search-results-item {
    padding: 20px;
}

.search-results-list .search-results-item .search-results-image {
    max-width: unset;
    width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.search-results-list .search-results-item .search-results-title {
    font-size: 14px;
}

.search-results-list {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

@media(max-width:768px){
    .search-results-list {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media(max-width:480px){
    .search-results-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:320px){
    .search-results-list {
        grid-template-columns: 1fr;
    }
}

#dates__clear,
#dates__update {
    font-family:"Lato", sans-serif;
    font-size:10px;
    margin-left:15px;    
    background:transparent;
    border:0;
    color:#fff;
    background:#1b2549;
    text-transform:uppercase;
    opacity:0.7;
    letter-spacing:1px;
    width:50px;
    cursor:pointer;
    transition:0.25s;
}

#dates__clear:hover,
#dates__update:hover {
    opacity:1;
}

@media(max-width:1024px){
    #dates__clear,
    #dates__update {
        width: 100%;
        margin: 30px auto 20px;
        grid-column-start: 1;
        grid-column-end: span 2;
        font-size: 2.25vw;
    }
}

.product .product-info {
    font-size:10px;
}

.event-period-wrapper .date-inputs .date-input {
    background: none;
    border: 0;
    color: #ffffff;
}

.event-period-wrapper .date-inputs .date-input::-webkit-inner-spin-button,
.event-period-wrapper .date-inputs .date-input::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

.woocommerce div.product form.cart table {
    justify-content: flex-start;
    display: flex;
    margin: 25px 0 15px;
}

/* .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)) .woocommerce input.button.alt {
    background: transparent;
    padding: 0;
} */

.woocommerce div.product form.cart .group_table tr {
    margin-bottom: 5px;
}

.woocommerce div.product form.cart .group_table td:first-child {
    font-size: clamp(16px, 1.2vw, 30px);
    color: #1b2549;
    width: auto;
    text-align: left;
    padding-bottom: .8em;
    line-height: 1.2;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product .stock {
    color: #1b2549;
    margin: 3px 0 0 3px;
    display: inline-block;
}

/* faq */

body.page-template-page-help .entry-content-page {
    max-width: 800px;
}

body.page-template-page-help .entry-content-page p {
    font-size:16px;
    line-height:1.4;
    padding-bottom: 20px;
}

/* popup */

.wooc_msg__close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 20px;
    transition:0.25s;
    cursor:pointer;
}

.wooc_msg__close:hover{
    transform:scale(1.1);
}

.woocommerce-notices-wrapper .woocommerce-message {
    padding-right: 50px;
}

/*Tradeshow checkbox */

#tradeshow_post_out {
    margin: 0 10px 0 2px;
    -webkit-appearance: none;
    appearance: none;
    background-color: #9ab98d;
    font: inherit;
    color: #ffffff;
    width: 30px;
    height: 30px;
    transform: translateY(-0.075em);
    display: inline-grid;
    place-content: center;
    padding: 0;
}

#tradeshow_post_out::before {
    content: "";
    width: 17px;
    height: 17px;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transform-origin: center center;
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em #ffffff;
    background-color: #ffffff;
}

#tradeshow_post_out:checked::before {
    transform: scale(1);
}

.woocommerce-billing-fields {
    margin-top: 15px;
}

/* composite products */

.composite_form  {
    border-top: 5px solid #ffffff;
    margin-top: 35px;
    padding-right: 40px !important;
}

.component_inner {
    background: #ffffff;
    padding: 0 10px !important;
    min-height: 166px;
    display: flex;
    align-items: center;
}

.component_content .product.content.summary_content {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;
    padding-bottom: 0;
}

.composited_product_images {
    width: 100% !important;
    max-width: 120px;
}

.component_selections {
    display: flex;
    align-items: center;
}

.component_options_wrapper {
    padding-left: 25px;
    max-width: 100%;
}

.component_wrap {
    margin-top: 22px;
}

.composite_price {
    display: none !important;
}

.woocommerce div.product form.cart .composite_button .button {
    padding: 0;
    background: transparent !important;
}

.composite_form .step_title_wrapper {
    margin-bottom: 15px !important;
}

.composite_component.component.single {
    margin-top: 30px;
    max-width: 100%;
}

.component .component_options_select {
    border-radius: 0;
    border: 1px solid #1b2549;
    padding: 5px;
    height: clamp(30px, 1.4vw, 36px);
}

.component_out_of_stock {
    color: #ff4040;
}

.component_in_stock {
    color: #5cae56;
}

.component_stock_check {
    display: none;
    margin-top: 5px;
    position: absolute;
    width: 100%;
}

.composited_product_details_wrapper {
    display: flex;
    padding: 0 10px;
}

.component:not(.selection_thumbnail_hidden) .composited_product_details_wrapper>.details {
    /* height: 0; */
    padding-left: 0 !important;
}

.component .composited_product_images img {
    min-width: 80px;
}

.component .composited_product_title_wrapper {
    min-width: 100px;
}

.woocommerce .component_data .quantity .qty {
    margin-left: 0;
}

.woocommerce div.product form.cart .component_data div.quantity {
    margin: 30px 5px 0;
}

.product-type-composite .product-page-container .product-page-info-item:last-of-type {
    display: none;
} 

.component_inner > div {
    max-width: 33.33%;
}

@media (max-width: 1400px) {
    .component .composited_product_images img {
        padding-right: 10px;
    }
}

@media (max-width: 1024px) {
    .product-page-container #calendar::after {
        display: none;
    }

    .product-page-container #calendar,
    .composite_form {
        padding-right: 0 !important;
    }
}

@media (max-width: 700px) {
    .component_selections {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 10px 0;
    }

    .component_options_wrapper {
        padding-left: 0;
        margin-top: 10px;
    }

    .component_out_of_stock {
        position: relative;
    }

    .woocommerce div.product form.cart .component_data div.quantity {
        margin: 15px 5px 0;
    }
}