﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
    scrollbar-width: none;
}

body {
    background-color: #f9f9f9;
    color: #333;
}

body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

#introPage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;

    .intro-page-logo {
        width: 50%;
    }

    .intro-content {
        width: 100%;
        height: 100%;
        text-align: center;
        padding: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .intro-logo-container {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-grow: 1;
        margin: auto;
        max-height: 40vh;
        overflow: hidden;
    }

    .intro-logo {
        max-width: 100%;
        max-height: 40vh;
        object-fit: contain;
    }

    .intro-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: auto;
        width: 100%;
        padding-bottom: 30px;
    }

    .go-to-products-btn {
        background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
        color: white;
        border: none;
        padding: 12px 30px;
        border-radius: 30px;
        font-size: 16px;
        cursor: pointer;
        transition: background-color 0.3s;
        margin-bottom: 15px;
    }

    .go-to-products-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(125, 93, 246, 0.2);
    }

    .skip-today-option {
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #666;
    }

    .skip-today-option input {
        margin-right: 5px;
    }
}

#introPage.active {
    display: flex;
}

@media screen and (max-width: 480px) {
    #introPage .intro-content {
        padding: 15px;
    }

    #introPage .intro-actions {
        gap: 5px;
        padding-bottom: 20px;
    }

    #introPage .action-btn {
        min-width: 80px;
        height: 65px;
        font-size: 13px;
        padding: 6px 8px;
    }
}

#productPage {
    padding: 60px 0 60px 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    background-color: #f9f9f9;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#orderPage {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.payment-header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 0;

    .main-page-logo {
        height: 60px;
        object-fit: contain;
        width: 100%;
    }
}

.shop-info {
    padding: 10px 15px 5px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*position: sticky;*/
    /*top: 0;*/
    background-color: #f9f9f9;
    height: 45px;
    z-index: 100;
    /*margin-top: 8px;*/

    .store-name {
        font-size: 16px;
        font-weight: 500;
        margin-left: 10px;

        span {
            margin-right: 5px;
        }
    }

    .customer-name {
        font-size: 14px;
        font-weight: bold;
        color: #6366F1;
    }
}

.shop-notice {
    background-color: #fff;
    margin: 5px 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    position: relative;
    padding: 30px 20px 15px 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    max-height: calc(1.6em * 6 + 65px); /* 최대 6줄 + 헤더 높이 */
    word-wrap: break-word;
    word-break: keep-all;
}

.shop-notice.hide {
    display: none;
}

.shop-notice::before {
    content: "공지사항";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    color: #555;
    font-size: 14px;
    font-weight: 600;
    padding: 7px 20px;
    z-index: 1;
}

.shop-notice:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 공지사항이 비어있을 때 숨김 처리 */
.shop-notice:empty {
    display: none;
}

.store-name .fa-user {
    margin-right: 5px;
}

.category-nav {
    padding: 0 15px;
    margin-bottom: 10px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 0;
    background-color: #f9f9f9;
    border-bottom: 1px solid rgb(198 198 198 / 89%);

    z-index: 100;

    .product-categories {
        display: inline-flex;
        gap: 10px;
        padding: 5px 0;
    }

    .category-btn {
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        border: none;
        transition: all 0.3s ease;
    }

    .category-btn.active {
        background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
        color: white;
    }

    .category-btn:not(.active) {
        background-color: #fff;
        color: #333;
        border: 1px solid #ddd;
    }

}

.product-container {
    padding: 0 15px;
}

.category-group {
    margin-bottom: 10px;
    width: 100%;

    h2 {
        font-size: 20px;
        font-weight: 600;
        color: #333;
        margin-bottom: 10px;
    }
}

.category-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 40px;
}

.product {
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 140px;
    max-height: fit-content;
}

.no-products-message {
    text-align: center;
    padding: 50px 20px;
}

.error-message i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.error-message h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.error-message p {
    color: #666;
    margin-bottom: 5px;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product img {
    width: 100%;
    height: 150px; /* 이미지 높이 축소 */
    object-fit: cover;
}

@media screen and (max-width: 480px) {
    .product img {
        height: 120px; /* 모바일에서는 더 작은 높이로 설정 */
    }
}

/* 더 작은 화면에서 추가 조정 */
@media screen and (max-width: 320px) {
    .product img {
        height: 100px; /* 매우 작은 화면에서는 더 작게 */
    }
}

.product-info {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2줄로 제한 */
    -webkit-box-orient: vertical;
    max-height: 42px; /* 최대 높이 제한 */
}

.product-price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: #6366F1;
}

.add-to-cart {
    background: none;
    border: none;
    color: #6366F1;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

/* 서비스 제공 정보 */
#providerFooter {
    font-size: 12px;
    color: #888;
    position: sticky;
    top: 100%;
    text-align: center;
    padding: 15px 10px 5px 10px;
    margin-top: 15px;
    background-color: #f8f8f8;
    border-radius: 8px;
}

#system-provider {
    display: block;
    margin-bottom: 5px;
    align-items: flex-start; /* 상단 정렬로 변경 */
    flex-wrap: wrap; /* 내용이 긴 경우 줄바꿈 허용 */
}

.provider-title {
    font-weight: 500;
    flex-shrink: 0; /* 타이틀 영역 크기 고정 */
}

.provider-contents {
    flex: 1; /* 남은 공간 모두 차지 */
    word-break: break-all; /* 긴 텍스트 줄바꿈 처리 */
    display: block;
    line-height: 1.4;
    color: #888;
    font-size: 10px;
    max-width: 360px;
    margin: 0 auto;
}

/* 장바구니 바 */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    white-space: nowrap;
    height: 60px;
}

/* 상품 옵션 모달 */
.product-option-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-option-modal.show {
    display: flex;
    justify-content: center;
    align-items: center; /* 중앙 정렬 */
}

.product-option-modal-content {
    background-color: #fff;
    border-radius: 20px;
    padding: 20px 20px 40px 20px;
    width: 90%;
    max-width: 600px;
    max-height: 70vh;
    /*overflow-y: auto; !* 모달 내부 스크롤 *!*/
    overflow: hidden; /* 중요: 내부 스크롤을 위해 overflow 설정 */
    display: flex;
    flex-direction: column;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.product-option-modal .options {
    padding-bottom: 20px;
    overflow-y: auto; /* 이 영역만 스크롤 가능하게 설정 */
    flex: 1; /* 남은 공간 모두 차지 */
    margin-bottom: 20px;
}

.add-to-cart-btn-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 15px 20px;
    border-radius: 0 0 20px 20px;
}

.option-group h4 {
    margin-bottom: 10px;
}

.blinking-warning-message {
    opacity: 1;
}

.option-with-quantity {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-label {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.option-name {
    margin-left: 10px;
}

.option-items .option {
    position: relative;
    margin-bottom: 10px;
}

.option {
    position: relative;
    margin-bottom: 10px;
}

.option-quantity-control {
    display: flex;
    position: absolute;
    right: 10px;
    align-items: center;
    gap: 4px;
}

.option-quantity-control.hidden {
    display: none;
}

.option-quantity-button {
    width: 26px;
    height: 26px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-quantity-button:hover {
    background-color: #e0e0e0;
}

.option-quantity {
    font-size: 14px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;

    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.add-to-cart-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.product-option-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>') no-repeat center;
    cursor: pointer;
}

#selected-product-name {
    font-size: 24px;
    font-weight: 600;
    margin-right: 30px;
    margin-bottom: 15px;
}

.price-quantity-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

#selected-product-price {
    font-size: 18px;
    font-weight: 600;
    color: #6366F1;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-button {
    width: 26px;
    height: 26px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    cursor: pointer;
    transition: opacity 0.3s;
}

.quantity-button:hover {
    opacity: 0.9;
}

.quantity {
    font-size: 18px;
    font-weight: 500;
}

.option label {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.option label:hover {
    background-color: #ebebeb;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* 알림 바 */
.notification-bar {
    position: fixed;
    bottom: 65px;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px;
    visibility: hidden;
    opacity: 1;
    transition: opacity 0.3s;
}

.notification-bar.show {
    opacity: 1;
}

/* 장바구니 바 */
.cart-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    max-width: 70%; /* 최대 너비 제한 */
    overflow: hidden; /* 넘치는 부분 숨김 */
    text-overflow: ellipsis; /* 넘치는 텍스트 ... 처리 */
}

.cart-info .text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-count {
    background-color: white;
    color: #6366F1;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 10px;
}

.cart-total {
    font-weight: 600;
    font-size: 16px;
}

/* 주문 페이지 */
.order-page-container {
    display: none;
    padding: 20px 20px 100px 20px;
    background-color: #f9f9f9;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.item-clickable {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.item-clickable:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* 개인정보 입력 섹션 */
.personal-info-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.personal-info-form {
    display: flex;
    flex-direction: column;
}

.form-label {
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.form-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 16px;
}

.form-input:focus {
    border-color: #6366F1;
    outline: none;
}

/* 개인정보 동의 섹션 */
.privacy-agreement-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.agreement-checkbox-all-label-box {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.agreement-checkbox-all-label {
    display: flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
}

.agreement-checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    background-color: #f9f9f9;
    cursor: pointer;
}

.agreement-checkbox {
    margin-right: 10px;
}

.agreement-text {
    flex-grow: 1;
    font-size: 14px;
}

.show-privacy-modal {
    color: #6366F1;
    font-size: 13px;
    cursor: pointer;
}

/* 모바일 환경에서 폰트 크기 조정 */
@media screen and (max-width: 480px) {
    .agreement-text {
        font-size: 12px;
        line-height: 1.3;
        word-break: keep-all; /* 한글 단어 기준 줄바꿈 */
    }

    .show-privacy-modal {
        font-size: 11px;
        white-space: nowrap; /* 가능하면 줄바꿈 방지 */
    }

    .option,
    .option-quantity-button,
    .option-quantity {
        font-size: 10px;
    }

    .option-quantity-button {
        width: 18px;
        height: 18px;
    }

}

/* 매우 작은 화면에서 추가 조정 */
@media screen and (max-width: 320px) {
    .agreement-text {
        font-size: 11px;
    }

    .show-privacy-modal {
        font-size: 10px;
    }
}

/* 결제수단 섹션 */
.payment-method-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.payment-option.selected {
    border-color: #6366F1;
    background-color: rgba(99, 102, 241, 0.05);
}

.payment-option input[type="radio"] {
    margin-right: 10px;
    accent-color: #6366F1;
}

/* 주문 확인 섹션 */
.order-summary-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.summary-order-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.summary-item-content {
    flex-grow: 1;
}

.summary-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.order-item-options {
    margin-top: 5px;
}

.order-item-options-list {
    padding-left: 20px;
    font-size: 13px;
    color: #666;
}

.summary-item-price {
    font-weight: 600;
    color: #6366F1;
    margin-top: 5px;
}

.summary-item-right {
    display: flex;
    align-items: center;
}

.summary-quantity-control {
    display: flex;
    align-items: center;
}

.summary-total-price-display {
    font-size: 18px;
    font-weight: 600;
    color: #6366F1;
    text-align: right;
    margin: 15px 0;
}

.summary-add-menu-button {
    width: 100%;
    padding: 12px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 8px;
    color: #333;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.summary-add-menu-button:hover {
    background-color: #ebebeb;
}


/* 개인정보 모달 */
.privacy-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    transition: opacity 0.3s ease;
}

/* 모달 콘텐츠 스타일 */
.privacy-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 10% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    animation: modalFadeIn 0.3s ease;
}

.privacy-modal-content h2 {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    margin: 0;
    font-size: 18px;
    background-color: #f8f8f8;
    border-radius: 10px 10px 0 0;
}

/* 모달 내용 스크롤 영역 */
.privacy-modal-scroll-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 20px;
    font-size: 14px;
    line-height: 1.5;

    ul {
        list-style-type: disc;
        padding-left: 30px;
        font-size: 12px;
    }

    h3 {
        margin-top: 10px;
    }

    p {
        margin-bottom: 10px;
        padding: 0 10px;
    }
}

/* 모달 닫기 버튼 */
.privacy-close {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.privacy-close:hover {
    color: #333;
}

/* 모달 하단 버튼 영역 */
.privacy-modal-buttons {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    border-top: 1px solid #ddd;
    background-color: #f5f5f5;
    border-radius: 0 0 10px 10px;
}

/* 버튼 공통 스타일 */
.privacy-modal-buttons button {
    padding: 10px 20px;
    margin-left: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s;
}

/* 동의 버튼 */
.privacy-accept-btn {
    background-color: #3181f7;
    color: white;
}

.privacy-accept-btn:hover {
    background-color: #0261a9;
}

/* 취소 버튼 */
.privacy-cancel-btn {
    background-color: #f2f2f2;
    color: #333;
}

.privacy-cancel-btn:hover {
    background-color: #e0e0e0;
}

.show-privacy-modal {
    background-color: transparent;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px 3px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
    margin-left: 10px;
}

.show-privacy-modal:hover {
    background-color: #f0f0f0;
}

/* 경고 모달 */
.warning-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.warning-modal.show {
    display: flex;
}

.warning-modal-content {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.warning-modal-close-btn {
    margin-top: 20px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.warning-modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* 프로세스 바 */
.process-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    padding: 15px 20px;
    z-index: 100;
    white-space: nowrap;
    height: 60px;
    align-content: center;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
}


/* 애니메이션 */
.blinking {
    animation: blink 0.7s;
}

.blinking-confirm {
    animation: blinkConfirm 0.7s;
}

.confirm-section {
    border: 2px solid #6366F1;
}

@keyframes blink {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(255, 0, 0, 0.1);
    }
}

@keyframes blinkConfirm {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(99, 102, 241, 0.1);
    }
}

/* 반응형 스타일 */
@media (max-width: 768px) {
    .category-products {
        grid-template-columns: repeat(2, 1fr); /* 4열에서 2열로 변경 */
        gap: 20px;
        width: 100%;
    }

    .product-name {
        font-size: 15px;
    }

    .product-description {
        font-size: 12px;
    }

    .product-price {
        font-size: 14px;
    }
}

/* 상품 품절 스타일 */
.product.product-sold-out {
    position: relative;
    opacity: 0.6;
}

.product.product-sold-out .add-to-cart {
    cursor: not-allowed;
    opacity: 0.5;
}

.product-sold-out-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 옵션 그룹 품절 스타일 */
.option-group.sold-out-group {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.option-group.sold-out-group::after {
    content: "품절";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-30deg);
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    padding: 8px 16px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 개별 옵션 품절 스타일 */
.option.option-sold-out {
    opacity: 0.6;
}

.option.option-sold-out input {
    cursor: not-allowed;
}

.option.option-sold-out label {
    color: #6c757d;
    cursor: not-allowed;
}

/* 품절 배지 스타일 */
.sold-out-badge {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: bold;
}

/* 옵션 모달 경고 메시지 스타일 */
/* 옵션 모달 경고 메시지 스타일 */
.option-warning-message {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 300px;
    background-color: #dc3545;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* showNotification 스타일과 유사한 show 상태 */
.option-warning-message.blinking-warning-message {
    opacity: 1;
    visibility: visible;
    animation: warningSlideDown 0.3s ease;
}

/* hide 애니메이션 */
.option-warning-message.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 경고 메시지 등장 애니메이션 */
@keyframes warningSlideDown {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.quantity-button.trash svg {
    width: 15px;
}

.wait-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wait-modal.show {
    display: flex;
    opacity: 1;
}

.wait-modal-content {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: waitModalFadeIn 0.4s ease;
    max-width: 300px;
    width: 80%;
}

.wait-modal-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.wait-modal-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

@keyframes waitModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 주문 유형 선택 섹션 */
.order-type-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.order-type-content {
    display: flex;
    flex-direction: column;
}

.order-type-options {
    display: flex;
    flex-direction: row;
    gap: 12px;
}

.order-type-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    position: relative;
    flex: 1;
    min-height: 50px;
}

.order-type-option:hover {
    border-color: #6366F1;
    background-color: rgba(99, 102, 241, 0.02);
}

.order-type-option.selected {
    border-color: #6366F1;
    background-color: rgba(99, 102, 241, 0.05);
}

.order-type-option input[type="radio"] {
    margin-right: 12px;
    width: 14px;
    height: 14px;
    accent-color: #6366F1;
}

.order-type-option .option-text {
    flex-grow: 1;
}

/* 추가 정보 입력 섹션 */
.additional-info-section {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.additional-info-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group .form-label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.input-group .form-label .required {
    color: #ef4444;
    margin-left: 2px;
}

.form-textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    /*min-height: 80px;*/
    resize: vertical;
    font-family: inherit;
    /*line-height: 1.4;*/
}

.form-textarea:focus {
    border-color: #6366F1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-textarea::placeholder {
    color: #999;
}

.form-select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
}

.form-select:focus {
    border-color: #6366F1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* 주소 입력 관련 */
.address-input-container {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.address-input-container .form-input {
    flex: 1;
    margin-bottom: 0;
    width: 100%;
}

.search-address-btn {
    padding: 12px 16px;
    background-color: #6366F1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    min-width: 80px;
}

.search-address-btn:hover {
    background-color: #5856eb;
}

.search-address-btn:active {
    background-color: #4f46e5;
}

/* 결제 방식 선택 */
.payment-type-options {
    margin-bottom: 20px;
    /*padding: 15px;*/
    /*background-color: #f8f9fa;*/
    /*border-radius: 10px;*/
    /*border: 1px solid #e9ecef;*/
}

.payment-type-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.payment-type-buttons {
    display: flex;
    gap: 12px;
}

.payment-type-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.payment-type-option:hover {
    border-color: #6366F1;
    background-color: rgba(99, 102, 241, 0.02);
}

.payment-type-option.selected {
    border-color: #6366F1;
    background-color: rgba(99, 102, 241, 0.05);
}

.payment-type-option input[type="radio"] {
    margin-right: 8px;
    width: 14px;
    height: 14px;
    accent-color: #6366F1;
}

.payment-method-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

/* 배달비 표시 */
.delivery-fee-display {
    margin: 15px 0;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6366F1;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fee-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.fee-amount {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.fee-amount.free-delivery {
    color: #10b981;
    font-weight: 700;
}

.fee-amount.free-delivery::after {
    content: " (무료배달)";
    font-size: 12px;
    color: #10b981;
    font-weight: 500;
}

/* 모바일 반응형 디자인 */
@media screen and (max-width: 480px) {
    .order-type-options {
        gap: 8px;
        flex-direction: column;
    }

    .order-type-option {
        padding: 12px 15px;
        flex: none;
    }

    .order-type-option .option-text {
        font-size: 15px;
    }

    .payment-type-buttons {
        flex-direction: row;
        gap: 8px;
    }

    .payment-type-option {
        padding: 10px 15px;
    }

    .address-input-container {
        flex-direction: column;
        gap: 8px;
    }

    .search-address-btn {
        width: 100%;
        min-width: auto;
    }

    .form-textarea {
        min-height: 70px;
        font-size: 13px;
    }

    .additional-info-content {
        gap: 15px;
    }
}

/* 매우 작은 화면에서 추가 조정 */
@media screen and (max-width: 320px) {
    .order-type-option {
        padding: 10px 12px;
    }

    .order-type-option .option-text {
        font-size: 14px;
    }

    .payment-type-option .option-text {
        font-size: 13px;
    }

    .form-textarea {
        min-height: 60px;
        font-size: 12px;
    }

    .search-address-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* 텍스트 입력 필드 카운터 (선택사항) */
.input-group-with-counter {
    position: relative;
}

.input-group-with-counter .char-counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 11px;
    color: #999;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2px 4px;
    border-radius: 3px;
}

/* 에러 상태 스타일 */
.form-input.error,
.form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    margin-left: 4px;
}

/* 로딩 상태 */
.search-address-btn:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.search-address-btn.loading::after {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}