357 lines
6.2 KiB
CSS
357 lines
6.2 KiB
CSS
/* ========================================
|
|
메인 페이지 팝업 스타일
|
|
======================================== */
|
|
|
|
/* 팝업 오버레이 */
|
|
.popup-overlay {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
z-index: 9998;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
.popup-overlay.active {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* 팝업 컨테이너 */
|
|
.popup-container {
|
|
position: relative;
|
|
background: linear-gradient(135deg, #fff 0%, #fff8f0 100%);
|
|
border-radius: 20px;
|
|
box-shadow: 0 20px 60px rgba(255, 136, 0, 0.3);
|
|
max-width: 500px;
|
|
width: 90%;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
animation: popupSlideIn 0.4s ease;
|
|
z-index: 9999;
|
|
}
|
|
|
|
@keyframes popupSlideIn {
|
|
from {
|
|
transform: scale(0.8) translateY(-20px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: scale(1) translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* 팝업 헤더 */
|
|
.popup-header {
|
|
background: linear-gradient(135deg, #ff8800 0%, #ff9933 100%);
|
|
padding: 25px 20px;
|
|
text-align: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.popup-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 800;
|
|
color: white;
|
|
margin: 0;
|
|
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.popup-subtitle {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: white;
|
|
margin: 8px 0 0 0;
|
|
}
|
|
|
|
.popup-badge {
|
|
display: inline-block;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
backdrop-filter: blur(10px);
|
|
color: white;
|
|
padding: 6px 16px;
|
|
border-radius: 50px;
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
margin-top: 8px;
|
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
/* 팝업 바디 */
|
|
.popup-body {
|
|
padding: 20px;
|
|
}
|
|
|
|
.popup-section {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.popup-section-title {
|
|
font-size: 0.95rem;
|
|
font-weight: 700;
|
|
color: #ff8800;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* 할인 카드 */
|
|
.discount-card {
|
|
background: white;
|
|
border-radius: 10px;
|
|
padding: 15px;
|
|
margin-bottom: 10px;
|
|
border: 2px solid #ffd9a3;
|
|
box-shadow: 0 2px 8px rgba(255, 136, 0, 0.1);
|
|
}
|
|
|
|
.discount-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.discount-card-title {
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
color: #333;
|
|
}
|
|
|
|
.discount-badge {
|
|
background: linear-gradient(135deg, #ff8800, #ff9933);
|
|
color: white;
|
|
padding: 4px 10px;
|
|
border-radius: 20px;
|
|
font-size: 0.8rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.discount-price {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
}
|
|
|
|
.original-price {
|
|
color: #999;
|
|
text-decoration: line-through;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.sale-price {
|
|
color: #ff8800;
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.price-note {
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* 공지사항 */
|
|
.popup-notice {
|
|
background: #fff8f0;
|
|
border-left: 3px solid #ff8800;
|
|
padding: 10px;
|
|
border-radius: 6px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.popup-notice p {
|
|
margin: 0;
|
|
font-size: 0.85rem;
|
|
color: #666;
|
|
}
|
|
|
|
/* 이벤트 정보 */
|
|
.popup-info {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 10px;
|
|
margin-top: 15px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.info-item {
|
|
background: white;
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
text-align: center;
|
|
border: 2px solid #ffe8cc;
|
|
}
|
|
|
|
.info-label {
|
|
font-size: 0.8rem;
|
|
color: #666;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.info-value {
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
color: #ff8800;
|
|
}
|
|
|
|
/* CTA 버튼 */
|
|
.popup-cta {
|
|
background: linear-gradient(135deg, #ff8800 0%, #ff9933 100%);
|
|
color: white;
|
|
text-align: center;
|
|
padding: 14px;
|
|
border-radius: 10px;
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
border: none;
|
|
width: 100%;
|
|
box-shadow: 0 4px 15px rgba(255, 136, 0, 0.3);
|
|
margin-top: 5px;
|
|
}
|
|
|
|
.popup-cta:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(255, 136, 0, 0.4);
|
|
}
|
|
|
|
/* 팝업 푸터 */
|
|
.popup-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 20px;
|
|
background: #f8f9fa;
|
|
border-top: 1px solid #e9ecef;
|
|
}
|
|
|
|
.popup-checkbox {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.popup-checkbox input[type="checkbox"] {
|
|
width: 16px;
|
|
height: 16px;
|
|
cursor: pointer;
|
|
accent-color: #ff8800;
|
|
}
|
|
|
|
.popup-checkbox label {
|
|
font-size: 0.85rem;
|
|
color: #666;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.popup-close-btn {
|
|
background: #6c757d;
|
|
color: white;
|
|
border: none;
|
|
padding: 6px 16px;
|
|
border-radius: 6px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.popup-close-btn:hover {
|
|
background: #5a6268;
|
|
}
|
|
|
|
/* X 닫기 버튼 */
|
|
.popup-close-x {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
background: rgba(255, 255, 255, 0.3);
|
|
backdrop-filter: blur(10px);
|
|
border: none;
|
|
color: white;
|
|
font-size: 1.3rem;
|
|
width: 30px;
|
|
height: 30px;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
z-index: 2;
|
|
}
|
|
|
|
.popup-close-x:hover {
|
|
background: rgba(255, 255, 255, 0.5);
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
/* 모바일 반응형 */
|
|
@media (max-width: 768px) {
|
|
.popup-container {
|
|
max-width: 95%;
|
|
margin: 20px;
|
|
}
|
|
|
|
.popup-header {
|
|
padding: 20px 15px;
|
|
}
|
|
|
|
.popup-title {
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.popup-subtitle {
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.popup-badge {
|
|
font-size: 1rem;
|
|
padding: 5px 14px;
|
|
}
|
|
|
|
.popup-body {
|
|
padding: 15px;
|
|
}
|
|
|
|
.discount-card {
|
|
padding: 12px;
|
|
}
|
|
|
|
.popup-info {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.popup-footer {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
padding: 12px 15px;
|
|
}
|
|
|
|
.popup-checkbox {
|
|
width: 100%;
|
|
}
|
|
|
|
.popup-close-btn {
|
|
width: 100%;
|
|
}
|
|
}
|