/*
Theme Name: Cerise Theme
Theme URI: https://cerisebeauty.com
Author: Nantakorn
Author URI: https://cerisebeauty.com
Description: A beautiful and elegant WordPress theme for Cerise Beauty.
Version: 1.0
*/
/* FONTS Prompt*/
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --primary-color: #777576;
    --secondary-color: #efefec;
    --background-color: #ffffff;
    --text-color: #777576;
}
html {
    font-family: 'Prompt', sans-serif;
    scroll-behavior: smooth;
    font-style: normal;
}
body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding:0 60px;
}

nav.main-navigation{
    margin-top:16px;
    padding:0 60px;
}
nav.main-navigation .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--secondary-color);
    padding: 18px 40px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
nav.main-navigation .container .nav-menu{
    display:flex;
    align-items: center;
    gap:80px;
}
nav.main-navigation .container .nav-menu .cart-count{
    font-size: 18px;
    font-weight: 600;
}
nav.main-navigation ul{
    display: flex;
    list-style-type: none;
    gap:60px;
}
nav.main-navigation ul li a{
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: all 0.3s ease-out;
}
nav.main-navigation ul li a:hover{
    color: #242424;

}
.wc-block-mini-cart__shopping-button{
    padding:5px 15px;
}
.wc-block-mini-cart__button .wc-block-mini-cart__icon {
    height: 40px;
    width: 40px;
}
.wc-block-mini-cart__badge{
    height: 30px;
    width: 30px;
    padding:10px;
    font-size: 18px;
}
.site-branding a img{
    
    max-width: 180px;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.header-section{
    background-color: #fbfbfb;
    display:flex;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    margin-top: 50px;
    width: 100%;
    border-radius: 12px;
}
.header-section video{
    width: 40%;
    height: 84.5vh;
    object-fit: cover;
    border-radius: 12px;
    
}
.header-section h2{
    mix-blend-mode: difference;
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    font-size: 132px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 12px;
    transform: translate(5%, -250%);
    text-align: center;
    transition: all 0.3s ease-out;
}
.header-section h2:hover{
    transform: translate(6%, -251%);
}
.header-section h3{
    mix-blend-mode: difference;
    position: absolute;
    z-index: 2;
    bottom: 0;
    right: 0;
    font-size: 132px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 12px;
    transform: translate(-10%, -130%);
    text-align: center;
    transition: all 0.3s ease-out;
}
.header-section h3:hover{
    transform: translate(-11%, -131%);
}
.header-section p{
    mix-blend-mode: difference;
    position: absolute;
    bottom: 36px;
    left: 36px;
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 4px;
    padding: 10px 0;
    text-align: left;
    line-height: 45px;
    transition: all 0.3s ease-out;
}
.header-section p:hover{
    transform: translate(-3px,-1px);
    text-shadow: #242424 4px 4px 2px;
}
/* Cart Slider */
h2.wc-block-mini-cart__title{
    font-weight: 500;
}
.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img, table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img{
    border-radius: 12px;
}
.editor-styles-wrapper table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name, table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-product-name{
    text-decoration: none;
    color:var(--text-color);
    font-weight: 500;
}
.wc-block-components-button:not(.is-link).is-style-outline:not(:focus), .wc-block-components-button:not(.is-link).outlined:not(:focus), body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link){
    border-radius: 50px;
    text-decoration: none;
    color:var(--text-color);
    transition: all 0.3 ease-out;
}
.wc-block-components-button:not(.is-link).is-style-outline:hover{
    background-color: var(--primary-color);
    color:white;
}
.wc-block-mini-cart__footer-checkout{
    color: white !important;;
    background-color: var(--primary-color);
    border:1px solid var(--primary-color);
    transition: all 0.3 ease-out;
}

body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link){
    border:solid 1px var(--primary-color);
    transition: all 0.3s ease-out;
}
body:not(.woocommerce-block-theme-has-button-styles) .wc-block-components-button:not(.is-link):hover{
    background-color: var(--primary-color);
    color:white;
}

/* Products */


.product-item {
    position: relative;
    margin-top: 50px;

}
.product-item a{
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    gap:32px;
}
.product-item .product-title {
    display: flex;
    flex-direction: column;
    gap:40px;
}
.product-item .product-title h3{
    font-size: 88px ;
    font-weight: 600 ;
    text-transform: uppercase;
    letter-spacing: 4px;
    top:0;
    left:0;
    z-index: 2;
    text-align: right;
    transition: all 0.3s ease-out;
}

.product-item .product-title p{
    font-size: 22px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0px;
    text-align: right;
    line-height: 50px;
    transition: all 0.3s ease-out;
}

.product-item .product-title h3:hover, .product-item .product-title p:hover{
    transform: translate(-2px, -2px);
    text-shadow: #24242413 4px 4px 2px;
}
.product-item .woocommerce-Price-amount{
    font-size: 42px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    padding:16px 60px; 
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    transition: all 0.3s ease-out;
}
.product-item .woocommerce-Price-amount:hover{
    background-color: white;


}
.product-item img {
    object-fit: cover;
    width: 50%;
    height: 100vh;
    border-radius: 12px;
    flex: 1;
}
.product-item .product-detail{
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    justify-content: flex-end;
    background-color: var(--secondary-color);
    width: 50%;
    border-radius: 12px;
    padding:38px;
    gap:44px;
    transition: all 0.3s ease-out;
}
.product-item .product-detail:hover .second_product_content p{

}
.woocommerce-message{
    border:none;
    border-radius: 12px;
    background-color: var(--secondary-color);
}
nav.woocommerce-breadcrumb{
    display:none;
}
.woocommerce div.product div.images img{
    border-radius: 12px;
    max-width: 100%;
    width: 100%;
    height: 80vh;
    object-fit: cover;
}
.woocommerce div.product div.summary{
    width: 50%;
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding:40px;
    height: 85vh;
}
.woocommerce div.product .product_title{
    font-size: 58px ;
    font-weight: 600 ;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price, .woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price{
    font-size: 42px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    color:var(--primary-color);
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button:hover, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button:hover{
    background-color: white;
    color: var(--primary-color);
}
.woocommerce-product-details__short-description p{
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 60px;
    line-height: 60px;
}
.woocommerce-variation-add-to-cart{
    display: flex;
    align-items: center;
    gap: 16px;
}
.woocommerce div.product form.cart .button{
    font-size: 22px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding:20px 40px;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease-out;
}
.woocommerce div.product form.cart .button:hover{
    background-color: white;
    color: var(--primary-color);
}
.woocommerce div.product div.images.woocommerce-product-gallery{
    overflow: hidden;
    border-radius: 12px;
    height: 85vh;
}
.woocommerce div.product form.cart .variations tbody tr{
    display: flex;
    gap: 24px;
    align-items: center;

}
.paypal-button.paypal-button-shape-rect{
    border-radius: 50px;
}
.woocommerce div.product form.cart{
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap:24px;
}
.woocommerce div.product form.cart .variations label{
    font-size: 22px;

}
.woocommerce div.product form.cart .variations select{
    padding: 16px 32px;
    background-color: white;
    border-radius: 50px;
    font-size: 22px;
}
.woocommerce div.product form.cart .reset_variations{
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: white;
    font-size: 22px;
    transition: all 0.3s ease-out;
    border:1px solid var(--primary-color);
}
.woocommerce div.product form.cart .reset_variations:hover{
    background-color: white;
    color: var(--primary-color);
    border:1px solid var(--primary-color);
}
.quantity input{
    font-size: 22px;
    font-weight: 500;
    width: 50px !important;
    height: 45px;
    text-align: center;
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    margin-right: 16px;
}
.product_meta{
    display:none;
}
.content-area{
    padding:0 60px;
    width: 100%;
    margin: 0 auto;
}
.site-main{
    margin-top:50px;
}
.second_product_content p{
    text-align: left !important;
    transition: all 0.3s ease-out;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button{
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding:20px 40px;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease-out;
}
.woocommerce p.stars a::before{
    color:rgb(255, 208, 0);
}
.woocommerce ul.products li, .woocommerce-page ul.products li{
    background-color: var(--secondary-color);
    border-radius: 12px;
    padding:22px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.woocommerce div.product .woocommerce-tabs .panel h2{
    font-size: 42px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 40px;
}
.woocommerce div.product .woocommerce-tabs .panel p{
    font-size: 22px;
    font-weight: 400;
    line-height: 1.8;
}
.related h2{
    font-size: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 40px;
}
.woocommerce ul.products li.product a img{
    width: 520px;
    height: 520px;
    object-fit: cover;
    border-radius: 12px;
    margin:0 auto;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 20px;
    color: var(--text-color);
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price{
    font-size: 28px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
    color: var(--primary-color);
    text-align: center;
}
.woocommerce ul.products li.product a:hover + .woocommerce ul.products li.product .button{
    display:block;
}
.woocommerce ul.products li.product .button{
    display:none;
    font-size: 20px;
    position: absolute;
    top: 32.5%;
    left: 22.5%
}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product{
    padding: 8px;
    position: relative;
}

/* Swiper */

.swiper, .swiper2 {
    width: 100%;    
    height: auto;
    padding: 80px 40px !important;
    margin-top:50px;
    background-color: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
}

.swiper-slide {
    aspect-ratio: 1;
    width: max(18.75rem, 26.3889vw);
    position: relative;
    overflow: hidden;
}
.swiper-slide img{ 
    position: absolute;
    width: 0px;
    height: 0px;
    min-width: 100%;
    max-width: 100%;
    min-height: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 12px;

}
.slider-section h4{
    font-size: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-align: left;
    margin-bottom: 40px;

}
.swiper-button-prev ,.swiper-button-next{
    color: var(--text-color) !important;
}

.swiper-pagination-bullet-active{
    background-color: var(--primary-color) !important;
}

/* Woocommerce Style */
.woocommerce-mini-cart__empty-message{
    text-align: left;
    font-size: 22px;
    font-weight: 500;
    padding: 60px 0;
}

/* variations */
table.variations .value{
    display: flex;
    gap: 16px;
}

/* FOOTER */   
.site-main::after {
    content: "";
    display: table;
    clear: both;
}
footer{
    padding:0 60px;
    margin-top:50px;
}
footer .container{
    background-color: var(--secondary-color);
    padding-top:20px;
    padding-bottom:20px;
    margin-top: 40px;
    border-radius: 12px;
    
}
footer .footer-logo{
    
    text-align: center;
    margin-bottom: 10px;
}
footer .footer-logo img{
    max-width: 550px;
    width: 100%;
    height: auto;
    object-fit: cover;
}
footer p{
    text-align: center;
    color: var(--text-color);
    font-size: 18px;
    padding: 10px 0;
}


@media (max-width: 760px) {

.swiper-button-next {
right: 20px;
transform: rotate(90deg);
}

.swiper-button-prev {
left: 20px;
transform: rotate(90deg);
}

}

/* Global Fade / Slide Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.9s ease-out forwards;
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.scale-hover {
    transition: transform 0.3s ease;
}
.scale-hover:hover {
    transform: scale(1.03);
}

.fade-opacity {
    transition: opacity 0.3s ease;
}
.fade-opacity:hover {
    opacity: 0.8;
}

/* 1440px */
@media (max-width: 1440px) {
    .header-section h2, .header-section h3 {
        font-size: 110px;
    }
    .product-item img {
        height: 80vh;
    }
}

/* 1200px */
@media (max-width: 1200px) {
    nav.main-navigation ul li a {
        font-size: 24px;
    }
    .product-item .product-title h3{
        font-size: 72px;
    }
    .woocommerce div.product div.summary{
        height: auto;
    }
}

/* 992px */
@media (max-width: 992px) {
    nav.main-navigation .container{
        flex-direction: column;
        gap: 24px;
    }
    .header-section{
        flex-direction: column;
        padding-bottom: 40px;
    }
    .header-section video{
        width: 100%;
        height: 50vh;
    }
    .header-section h2, .header-section h3{
        font-size: 80px;
        transform: none;
        position: relative;
        text-align: center;
        margin-top: 20px;
    }
    .product-item{
        flex-direction: column;
    }
    .product-item img{
        width: 100%;
        height: 60vh;
    }
    .product-item .product-detail{
        width: 100%;
        align-items: center;
    }
}

/* 768px */
@media (max-width: 768px) {
    .container, nav.main-navigation {
        padding: 0 20px;
    }
    nav.main-navigation ul{
        gap: 24px;
    }
    nav.main-navigation ul li a{
        font-size: 18px;
    }
    .header-section h2, .header-section h3 {
        font-size: 60px;
        letter-spacing: 4px;
    }
    .product-item .product-title h3 {
        font-size: 58px;
    }
    .woocommerce div.product div.images img {
        height: 60vh;
    }
}

/* 576px */
@media (max-width: 576px) {
    nav.main-navigation .container{
        padding: 12px 20px;
    }
    .header-section p {
        font-size: 16px;
        line-height: 28px;
    }
    .product-item{
        margin-top: 20px;
    }
    .product-item .product-title h3{
        font-size: 42px;
    }
    footer p{
        font-size: 14px;
    }
}

/* 430px (มือถือทั่วไป) */
@media (max-width: 430px) {
    nav.main-navigation ul{
        gap: 16px;
    }
    nav.main-navigation ul li a{
        font-size: 14px;
        letter-spacing: 1px;
    }
    .header-section h2, .header-section h3{
        font-size: 42px;
    }
    .product-item .product-title p{
        font-size: 16px;
        line-height: 28px;
    }
    .woocommerce div.product div.images img{
        height: 45vh;
    }
}

