/* ============================================
   🛒 주문 시스템 CSS v3.2.0
   ✅ 장바구니 플로팅 버튼 숨김
   ============================================ */

/* 장바구니 버튼 완전 숨김 */
.cart-button {
    display: none !important; /* 완전히 숨김 */
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 제품 카드 주문 버튼 */
.product-card .add-to-cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #2d5016, #4a7c2c);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(45, 80, 22, 0.3);
    margin-top: 15px;
}

.product-card .add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 80, 22, 0.5);
}

/* 장바구니 모달 */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    overflow-y: auto;
}

.cart-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-content {
    background: white;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cart-header {
    background: linear-gradient(135deg, #2d5016, #4a7c2c);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

.cart-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.cart-body {
    padding: 30px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.cart-items {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d5016;
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    background: #2d5016;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.qty-btn:hover {
    background: #4a7c2c;
    transform: scale(1.1);
}

.qty-input {
    width: 50px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 5px;
}

.cart-item-remove {
    background: #ff4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.cart-item-remove:hover {
    background: #cc0000;
}

/* 주문 폼 */
.order-form {
    background: #f8f6f0;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

.order-form h3 {
    font-size: 1.4rem;
    color: #2d5016;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2d5016;
    outline: none;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 주문 요약 */
.order-summary {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border: 3px solid #2d5016;
}

.order-summary h3 {
    font-size: 1.4rem;
    color: #2d5016;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.summary-row:last-child {
    border-bottom: none;
    padding-top: 20px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #2d5016;
}

/* 주문하기 버튼 */
.order-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.order-btn {
    flex: 1;
    padding: 18px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.order-btn-phone {
    background: linear-gradient(135deg, #2d5016, #4a7c2c);
    color: white;
}

.order-btn-kakao {
    background: linear-gradient(135deg, #FEE500, #FFD700);
    color: #3c1e1e;
}

.order-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .cart-button {
        width: 60px;
        height: 60px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .cart-modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .cart-header {
        padding: 20px;
    }

    .cart-header h2 {
        font-size: 1.4rem;
    }

    .cart-body {
        padding: 20px;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .order-buttons {
        flex-direction: column;
    }

    .order-form {
        padding: 20px;
    }
}
