:root {
    --deep-red: #8b0000;
    --royal-red: #c41e3a;
    --gold: #d4af37;
    --gold-light: #f9e272;
    --jade-green: #2e8b57;
    --royal-purple: #4b0082;
    --dark-bg: #1a0000;
    --text-white: #ffffff;
    --text-gray: #f5f5f5;
    --transition-slow: 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
.logo {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Reusable Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-gold-red {
    background: linear-gradient(135deg, var(--gold), var(--royal-red));
    color: #fff;
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.4);
    border: 1px solid var(--gold-light);
}

.btn-gold-red:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.6);
    background: linear-gradient(135deg, var(--royal-red), var(--gold));
}

.btn-gold-red.large {
    font-size: 1.2rem;
    padding: 22px 60px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(196, 30, 58, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(196, 30, 58, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(196, 30, 58, 0);
    }
}

/* Section Styling */
section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.content-section {
    text-align: center;
}

.chunjie-red-bg {
    background: linear-gradient(to bottom, #1a0000 0%, #4a0000 100%);
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
}

.section-title {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--gold-light);
}

.section-desc {
    color: var(--text-gray);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(26, 0, 0, 0.9), transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.logo {
    color: var(--gold);
    font-size: 1.8rem;
    letter-spacing: 5px;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.background-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 10%, var(--dark-bg) 85%);
}

.main-title {
    font-size: 4.5rem;
    color: #fff;
}

.main-title span {
    color: var(--gold);
}

.tagline {
    color: var(--gold-light);
    font-size: 1.4rem;
    letter-spacing: 6px;
}

/* Product Section */
.product-layout {
    display: flex;
    align-items: center;
    gap: 80px;
    text-align: left;
}

.reverse .product-layout {
    flex-direction: row-reverse;
}

.product-image.character-frame {
    position: relative;
    padding: 8px;
    /* Reduced from 10px */
    background: linear-gradient(135deg, var(--gold), #fff, var(--gold));
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.5);
    max-width: 485px;
    /* Increased from 440px (10%) */
    margin: 0 auto;
}

.product-image.character-frame img {
    width: 100%;
    /* Increased from 90% to full width within frame */
    margin: 0 auto;
    border-radius: 15px;
    display: block;
}

.product-tag {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.product-tag.green {
    background: linear-gradient(90deg, var(--jade-green), #000);
}

.product-tag.purple {
    background: linear-gradient(90deg, var(--royal-purple), #000);
}

.product-tag.gold {
    background: linear-gradient(90deg, var(--gold), #000);
    color: #000;
}

.product-title {
    font-size: 3rem;
    color: var(--gold-light);
}

.points li {
    font-size: 1.3rem;
    color: #fff;
    list-style: none;
    margin-bottom: 12px;
}

/* Dual Care */
.dark-red {
    background-color: #1a0000;
}

.dual-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
}

.dual-item p {
    font-size: 2.8rem;
    color: var(--gold);
}

/* Gift Section */
.gold-red-gradient {
    background: radial-gradient(circle at center, var(--royal-red) 0%, #1a0000 100%);
    border: 2px solid var(--gold);
    border-radius: 40px;
    margin: 50px 20px;
}

.gift-image img {
    max-width: 585px;
    /* Increased from 530px (10%) */
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.target-list span {
    padding: 15px 35px;
    border: 2px solid var(--gold);
    background: rgba(212, 175, 55, 0.2);
    font-weight: 700;
    border-radius: 40px;
}

/* Scarcity */
.countdown {
    padding: 50px;
    border: 2px dashed var(--gold);
    display: inline-block;
    border-radius: 30px;
    background: rgba(0, 0, 0, 0.3);
}

#counter {
    font-size: 6rem;
    color: var(--gold);
}

/* Price Styling */
.price-tag {
    margin: 20px 0;
    font-family: 'Noto Sans KR', sans-serif;
}

.original-price {
    font-size: 1.2rem;
    color: var(--text-gray);
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 15px;
}

.discount-price {
    font-size: 2.5rem;
    color: var(--gold);
    font-weight: 700;
}

.discount-price span {
    font-size: 1.5rem;
    margin-left: 5px;
}

/* Purchase Page Styles */
.purchase-container {
    padding-top: 150px;
    padding-bottom: 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.purchase-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.purchase-table th,
.purchase-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.purchase-table th {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    font-size: 1.1rem;
}

.product-thumb {
    width: 73px;
    /* Increased from 66px (10%) */
    height: 73px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--gold);
}

.qty-input {
    width: 60px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--gold);
    background: transparent;
    color: #fff;
    text-align: center;
}

.total-section {
    font-size: 2rem;
    text-align: right;
    margin-bottom: 30px;
    color: var(--gold-light);
}

.order-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--gold);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-light);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Reveal Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-slow);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Buy Button */
.floating-buy-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    background: linear-gradient(135deg, var(--gold), var(--royal-red));
    color: #fff;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
    border: 1px solid var(--gold-light);
    transition: all 0.3s ease;
    animation: bounce-slow 3s infinite;
}

.floating-buy-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, var(--royal-red), var(--gold));
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.6);
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 25px;
    right: 30px;
    z-index: 1001;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--gold);
    border-radius: 20px;
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.lang-switcher:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
        /* 섹션 간격 축소 */
    }

    .container {
        padding: 0 15px;
        /* 좌우 여백 축소 */
    }

    .main-title {
        font-size: 2.2rem;
        /* 제목 크기 축소 */
        word-break: keep-all;
        /* 단어 단위 줄바꿈 */
    }

    .tagline {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-desc {
        font-size: 1rem;
        padding: 0 10px;
    }

    .product-layout,
    .reverse .product-layout {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        /* 간격 축소 */
    }

    .product-image.character-frame {
        max-width: 80%;
        /* 이미지 크기 최적화 */
        margin: 0 auto;
    }

    .product-title {
        font-size: 1.8rem;
        margin-top: 15px;
    }

    .points li {
        font-size: 1rem;
    }

    .dual-grid {
        flex-direction: column;
        gap: 30px;
    }

    .dual-item p {
        font-size: 2rem;
    }

    .plus {
        transform: rotate(90deg);
        font-size: 2rem;
        margin: -10px 0;
    }

    .gift-image img {
        max-width: 100%;
    }

    /* 카운트다운 최적화 */
    .countdown {
        padding: 30px 15px;
    }

    #counter {
        font-size: 4rem;
    }

    /* 버튼 및 UI 요소 최적화 */
    .btn {
        padding: 15px 30px;
        font-size: 0.9rem;
    }

    .btn-gold-red.large {
        padding: 18px 40px;
        font-size: 1rem;
        width: 100%;
        /* 모바일에서 버튼 꽉 차게 */
        white-space: nowrap;
    }

    .floating-buy-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 24px;
        font-size: 0.9rem;
        width: auto;
    }

    .lang-switcher {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    #header {
        padding: 15px 20px;
    }

    .logo {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }
}

/* Product Specs Grid (Final CTA) */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 900px;
    margin: 40px auto 50px;
    background: rgba(0, 0, 0, 0.6);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    backdrop-filter: blur(10px);
}

.spec-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px 20px;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

/* 4번째 항목(1행 마지막)은 오른쪽 테두리 제거 */
.spec-box:nth-child(4) {
    border-right: none;
}

/* 5, 6번째 항목(2행)은 아래쪽 테두리 제거 */
.spec-box:nth-child(n+5) {
    border-bottom: none;
}

/* 주소 박스 스타일: 3칸 차지 */
.address-box {
    grid-column: span 3;
    border-right: none;
    /* 마지막 칸이므로 오른쪽 테두리 제거 */
}

.spec-label {
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.spec-value {
    font-size: 1.25rem;
    color: #ffffff;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    word-break: keep-all;
}

@media (max-width: 768px) {
    .spec-grid {
        grid-template-columns: 1fr;
        border: 2px solid var(--gold);
        border-radius: 10px;
        margin: 30px auto;
        width: 100%;
    }

    .spec-box {
        padding: 20px 10px;
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    }

    /* 모바일에서는 주소 박스도 1칸만 차지 */
    .address-box {
        grid-column: auto;
    }

    .spec-box:last-child {
        border-bottom: none;
    }
}