@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.8/dist/web/variable/pretendardvariable.css");
.font-pretendard{
    font-family: "Pretendard Variable";
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Pretendard Variable";
    max-width: 580px;
    margin: auto;
    background: #f3f3f3;
    letter-spacing: -0.02em;
    display: flex;
    flex-direction: column;
    min-height:100vh;
    color: #2c2c2c;
    padding-right: 0 !important;
    overflow: auto !important; /* 오프캔버스가 열려도 스크롤 가능하도록 설정 */
}

p {
    line-height: 1.5;
}

p, h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    margin-bottom: 0rem;
}

a {
    text-decoration: none;
    color: inherit
}

/* 폰트컬러 */
.fc-gray-1 {
    color: #9a9a9a;
}

.fc-gray-2 {
    color: #727272;
}

.fc-gray-3 {
    color: #525252;
}

.fc-gray-4 {
    color: #2c2c2c;
}

/*폰트사이즈*/
.fs-12px {
    font-size:12px;
}

.fs-13px {
    font-size:13px;
}

.fs-14px {
    font-size:14px;
}

.fs-15px {
    font-size:15px;
}

.fs-16px {
    font-size:16px;
}

.fs-17px {
    font-size:17px;
}

.fs-18px {
    font-size:18px;
}

.fs-19px {
    font-size:19px;
}

.fs-20px {
    font-size:20px;
}

.fs-18-16px {
    font-size:16px;
}

@media (min-width:575.98px) {
    .fs-18-16px {
        font-size:18px;
    }
}

.fs-17-16px {
    font-size:16px;
}

@media (min-width:575.98px) {
    .fs-17-16px {
        font-size:17px;
    }
}


/* 패딩/마진 */
.py-36px {
    padding-top: 36px;
    padding-bottom: 36px;
}

.px-12px {
    padding-right:12px !important;
    padding-left:12px !important;
}

.py-10px {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.width-100px {
    width:100px;
}

.width-60px {
    width:60px;
}

.px-20px {
    padding-right:20px !important;
    padding-left:20px !important;
}

.mb-26px {
    margin-bottom:26px;
}

.mb-34px {
    margin-bottom:34px;
}

.mb-10px{
    margin-bottom:10px !important;
}

.pb-10px{
    padding-bottom:10px !important; 
}

/* 기본디자인 */
.border-bottom-gray-15px {
    border-bottom:15px solid #f3f3f3;
}

.border-bottom-gray-8px {
    border-bottom:8px solid #f3f3f3;
}

.form-control:focus,
.form-select:focus{
    box-shadow:none;
}

.alert {
    padding: 0.25rem 0.75rem;
}
.table > :not(caption) > * > *  {
    color:#2c2c2c;
}

/*  헤더 */
header{
    background:#fff;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    max-width:580px;
    width:100%;
    margin:auto;
}

.header-title{
    display:flex;
    align-items: center;
    justify-content: space-between;
}

.header-title img{
    width:36px;
}

.title{
    font-size:20px;
    font-weight:600;
}

@media (min-width: 1200px) {
    .title {
        font-size:20px;
    }
}

main {
    flex: 1;
    margin-top: 60px;
    background: #fff;
    word-break: keep-all
}

/*---오프캔버스---*/
.navbar-toggler-icon {
    background-image: url("../images/toggler.svg");
}

.header-title .btn{
    border:none;
    outline:none;
    padding:0;
}

.offcanvas-end {
    width: 360px !important;
    max-width: 90%;
}

@media (min-width:1200px) {
    .offcanvas-end {
        width: 480px !important;
    }  
}

/* -- 공지사항 --*/ 

.notice a {
    color:blue !important;
}

/* ----- 상품목록 시작 ------ */
.product-container {
    display: flex;
    justify-content: space-between;
    height: auto;
    align-items: start;
}

.img-wrapper {
    height:76px; width:76px;
    position:relative
}

.info {
    display: flex;
    flex-direction: column;
    width: calc(100% - 96px);
    height: 74px;
    justify-content: space-around;
}

/* 아이폰 */
@media (min-width:360.02px) {
    .info {
        width: calc(100% - 98px);
        height: 76px;
    }
    .img-wrapper {
        height:78px; width:78px;
    }      
}

/* 테블릿 이상 */
@media (min-width:575.98px) {
    .info {
        width: calc(100% - 110px);
        height: 80px;
    }
    .img-wrapper {
        height:80px; width:80px;
    }   
}

.count-input {
    display: inline-flex;
    align-items: center;
    height:32px;
    border: 1px solid #9a9a9a;
}

.count-input .form-control {
    width: 1.5rem;
    padding: 0;
    border: 0;
    background: 0 !important;
    font-weight: 500;
    text-align: center;
    font-size:15px;
    -moz-appearance: textfield
}

.count-input .form-control::-webkit-outer-spin-button,
.count-input .form-control::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0
}

.count-btn {
    font-size:19px;
    border:none;
    padding: 0px 8px !important;
}

.product-img{
    width: 100%; 
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 라벨을 버튼처럼 스타일링 */
.radio-btn {
    display: block; /* 블록 요소로 만들어 전체 너비 적용 */
    width: 100%; /* 부모 크기 100% 사용 */
    padding: 6px 20px;
    border: 1px solid #dee2e6;
    background-color: #ffff;
    border-radius: 0.375rem;
    cursor: pointer;
    text-align: center; /* 텍스트 중앙 정렬 */
}

.custom-radio {
    display:none
}

/* 선택된 상태 */
.custom-radio:checked + .radio-btn {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* ----- 상품목록 끝------ */

/* ----- 장바구니 시작 ------ */
.cart ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart ul li {
    padding: 8px 0px;
    border-bottom: 1px solid #ddd;
    font-size: 16px;
}

.info-container {
    display: flex;
    justify-content: space-between;
    height: auto;
    align-items: start;
}

.list-container {
    position:relative;
    background: #fff;
    padding: 1.2rem 0.9rem 1.2rem 0.9rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    overflow:hidden;
}

@media (min-width:575.98px) {
    .list-container {
        padding: 1.4rem;
    }
}

/* ----- 장바구니 끝 ------ */

/* ----- 푸터 시작 ------ */

.footer-icon-container {
    display: flex; 
    margin-bottom:0.75rem
}

.footer-icon-container img {
    margin-right:10px;
    width:28px;
}

/* ----- 푸터 끝 ------ */

/* ----- 신규주문 내역 시작 ------ */
.past-order section {
    padding-bottom: 80px;
}

.past-order section:last-child {
    padding-bottom: 0; /* 마지막 section에는 패딩 제거 */
}

/* ----- 신규주문 내역 끝 ------ */


.btn-close {
    margin-bottom: 0px;
    padding-bottom: 0px;
    border: none;
}

.btn-close:focus {
    box-shadow: none;
}

.btn-outline-secondary {
    --bs-btn-color: #2c2c2c;
    --bs-btn-border-color: #525252;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #525252;
    --bs-btn-hover-border-color: #525252;
    --bs-btn-focus-shadow-rgb: 108, 117, 125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #525252;
    --bs-btn-active-border-color: #525252;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #525252;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #525252;
    --bs-gradient: none;
}

.btn-light {
    --bs-btn-color: #525252;
    --bs-btn-bg: #ececec;
    --bs-btn-border-color: #ececec;
    --bs-btn-hover-color: #2c2c2c;
    --bs-btn-hover-bg: #d8d8d8;
    --bs-btn-hover-border-color: #d8d8d8;
    --bs-btn-focus-shadow-rgb: 211, 212, 213;
    --bs-btn-active-color: #525252;
    --bs-btn-active-bg: #d8d8d8;
    --bs-btn-active-border-color: #d8d8d8;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: #ececec;
    --bs-btn-disabled-border-color: #ececec;
    font-weight: 500;
}

input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    display: none;
}

.container,
.container-fluid,
.container-xxl,
.container-xl,
.container-lg,
.container-md,
.container-sm {
    --bs-gutter-x: 2.3rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {

    .container-sm,
    .container {
        max-width: 95%
    }
}

@media (min-width: 768px) {

    .container-md,
    .container-sm,
    .container {
        max-width: 95%
    }
}

@media (min-width: 992px) {

    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 95%
    }
}

@media (min-width: 1200px) {

    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 95%
    }
}

@media (min-width: 1400px) {

    .container-xxl,
    .container-xl,
    .container-lg,
    .container-md,
    .container-sm,
    .container {
        max-width: 1200px
    }
}
