/*
Theme Name: 미드미도깨비장터
Description: 미드미도깨비장터 웹사이트 테마입니다.
Version: 1.0
*/

:root {
    --color-black: #101010;
    --color-gray: #909090;
    --color-white: #ffffff;

    --color-background: #FAFAFA;
    --color-background-2: #F0F0F0;
    --color-line: #DCDCDC;

    --color-highlight: #FF6400;
    --color-highlight-sub: #FFF1DD;
    
    --font-xl: 32px;
    --font-l: 28px;
    --font-m: 24px;
    --font-s: 20px;
    --font-xs: 16px;

    --size-l: 60px;
    --size-m: 40px;
    --size-s: 20px;
    --size-xs: 12px;

    --header-height: 72px;
}

/* ---------------- COMMON ---------------- */

::selection {
    background-color: var(--color-highlight);
    color: var(--color-white);
}

* {
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
	position: relative;
    min-width: 360px;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--color-background);
}

section{
    max-width: 720px;
    width: 100%;
    padding: var(--size-l) var(--size-s);
}

/* ---------------- HEADER ---------------- */

header{
    max-width: 720px;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--size-s);
    background-color: var(--color-white);
}

header > .logo > img{
    height: 40px;
    object-fit: contain;
}

header .chat > img{
    width: 40px;
    object-fit: contain;
}

header > div{
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

header .check-order{
	font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-xs);
    font-weight: 500;
    color: var(--color-white);
	background-color: var(--color-highlight);
	padding: 4px 8px;
	border-radius: 2px;
	margin-right: 12px;
	transition: 0.2s;
}

header .check-order:hover{
	background-color: var(--color-black);
}

/* ---------------- BANNER ---------------- */

#banner{
    padding: 0;
	line-height: 0;
}

#banner > img{
    width: 100%;
    object-fit: contain;
}

 @font-face {
    font-family: 'establishRetrosansOTF';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2112@1.0/establishRetrosansOTF.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
    #weekday-nav {
		position:sticky;
  		top:0;
		padding: 0px;
        max-width: 720px;
        width: 100%;
        display: flex;
        justify-content: center;
		z-index: 500;
    }

    #weekday-buttons{
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    }

       #weekday-buttons button:first-of-type{
        border-left: none;
       }

        #weekday-buttons button:last-of-type{
        border-right: none;
       }

    #weekday-buttons button {
        width: 100%;
        font-family: 'establishRetrosansOTF';
        font-size: var(--font-s);
        line-height: 120%;
        color: #101010;
        background-color: #FFF1EE;
        padding: 20px 16px 16px 16px;
        border: 2px solid #101010;
        border-top: none;
        cursor: pointer;
        transition: 0.2s;
    }

        #weekday-buttons button span{        
		font-family: 'Pretendard Variable', sans-serif;
			font-weight: 400;
                font-size: var(--font-xs);
			color: var(--color-gray);
			        transition: 0.2s;
        }

        #weekday-buttons button:nth-of-type(even) {
        border-left: none;
        border-right: none;
        }

    #weekday-buttons button:hover {
        background-color: #E53B62;
        color: #FFF;
    }

    #weekday-buttons button:hover span{
        color: #FFF;
    }

        #weekday-buttons button.active {
        background-color: #E53B62;
        color: #FFF;
    }

#weekday-buttons button.active span{
	color: #FFF;
}

/* ---------------- PRODUCTS ---------------- */

#products{
    background-color: var(--color-white);
}

.section-title{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--color-black);
}

.section-desc{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-m);
    font-weight: 300;
    color: var(--color-gray);
    margin-top: var(--size-xs);
    margin-bottom: var(--size-m);
}

.product{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    cursor: pointer;
    margin-bottom: var(--size-m);
}

.product.grayscale > img{
    filter: grayscale(100%);
}

.product.grayscale > h2, .product.grayscale > p{
    color: var(--color-gray);
}

.product:last-of-type{
    margin: 0;
}

.product > img{
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--size-s);
}

.product > h2{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-l);
    font-weight: 700;
    color: var(--color-black);
    margin-top: calc(var(--size-s) + var(--size-xs));
    margin-bottom: var(--size-xs);
    word-break: keep-all;
}

.product > p{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-s);
    font-weight: 300;
    color: var(--color-gray);
    word-break: keep-all;
    line-height: 135%;
}

.product > div{
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    margin-top: var(--size-s);
}

.product > div > .discount{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-s);
    font-weight: 700;
    color: var(--color-highlight);
    margin-right: var(--size-xs);
}

.product > div > .price{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-l);
    font-weight: 700;
    color: var(--color-black);
}

.stock{
    position: absolute;
    top: var(--size-s);
    left: var(--size-s);
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-xs);
    font-weight: 500;
    color: var(--color-white);
    background-color: #101010CC;
    padding: 6px 12px;
    border-radius: 24px;
}

/* ---------------- FOOTER ---------------- */

footer{
    max-width: 720px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    background-color: var(--color-background-2);
    padding: var(--size-m) var(--size-s);
}

footer > a{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-xs);
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: var(--size-s);
}

footer > p{
    font-family: 'Pretendard Variable', sans-serif;
    font-size: var(--font-xs);
    font-weight: 400;
    color: var(--color-gray);
    line-height: 150%;
}

footer > p:last-of-type{
    font-weight: 300;
    color: #C0C0C0;
    margin-top: var(--size-s);
}

footer > p a{
    color: #C0C0C0;
}

@media screen and (max-width: 720px) {
    :root {
        --font-xl: 30px;
        --font-l: 26px;
        --font-m: 22px;
        --font-s: 18px;
        --font-xs: 15px;
    
        --size-l: 54px;
        --size-m: 36px;
        --size-s: 18px;
        --size-xs: 11px;
    
        --header-height: 64px;
    }

    header > .logo > img{
        height: 36px;
    }
    
    header .chat > img{
        width: 32px;
    }

    .product > img{
        min-height: 180px;
        height: 50vw;
    }
    
}

@media screen and (max-width: 576px) {

    :root {
        --font-xl: 22px;
        --font-l: 19px;
        --font-m: 17px;
        --font-s: 15px;
        --font-xs: 14px;
    
        --size-l: 48px;
        --size-m: 32px;
        --size-s: 16px;
        --size-xs: 10px;
    
        --header-height: 56px;
    }

    header > .logo > img{
        height: 32px;
    }
    
    header .chat > img{
        width: 28px;
    }

    section{
        padding: var(--size-m) var(--size-s);
    }

    .product > h2{
        margin-top: 20px;
    }

    footer > p{
        font-size: 12px;
    }
	
	    #weekday-buttons button {
        padding: 14px 12px 12px 12px;
        border: 1px solid #101010;
			border-top: none;
    }
}