@import url('https://fonts.googleapis.com/css2?family=Pretendard:wght@400;500;700;800&display=swap');

.pkg-shop-page {
    font-family: 'Pretendard', -apple-system, sans-serif;
    background-color: #f9f5f0;
    color: #4a423d;
    padding: 50px 20px;
}

.pkg-shop-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.pkg-shop-header {
    text-align: center;
    margin-bottom: 60px;
}

.pkg-shop-header h1 {
    font-size: 2.2rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    font-weight: 700;
    color: #352f2b;
}

.pkg-shop-header p {
    color: #8e7f75;
    font-size: 1.1rem;
}

.pkg-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
}

.pkg-product-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eee1d5;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 25px rgba(74, 66, 61, 0.05);
    display: flex;
    flex-direction: column;
}

.pkg-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 66, 61, 0.1);
}

.pkg-img-wrapper {
    width: 100%;
    height: 300px;
    background-color: #fff9f4;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.pkg-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    background: #d4a373;
    color: white;
    padding: 7px 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    letter-spacing: 1px;
}

.pkg-content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pkg-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #352f2b;
}

.pkg-desc {
    color: #8e7f75;
    font-size: 0.95rem;
    margin-bottom: 35px;
    flex-grow: 1;
}

.pkg-status-box {
    background: #faf7f2;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid #f0e6dc;
}

.pkg-timer-label {
    font-size: 0.85rem;
    color: #a39389;
    margin-bottom: 10px;
    display: block;
    text-align: center;
}

.pkg-timer {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    color: #bc8a5f;
    text-align: center;
    font-weight: 500;
    margin-bottom: 25px;
}

.pkg-stock-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: #8e7f75;
}

.pkg-progress-bar {
    width: 100%;
    height: 6px;
    background: #e9e0d8;
    border-radius: 3px;
    overflow: hidden;
}

.pkg-progress-fill {
    height: 100%;
    background: #d4a373;
    transition: width 1s ease-in-out;
}

.pkg-price-buy {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pkg-price {
    font-size: 1.7rem;
    font-weight: 800;
    color: #352f2b;
}

.pkg-btn-buy {
    background: #352f2b;
    color: #ffffff;
    border: none;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.pkg-btn-buy:hover {
    background: #5a504a;
    box-shadow: 0 5px 15px rgba(53, 47, 43, 0.2);
}

.pkg-shop-qr-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.pkg-shop-qr-card {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 1.6rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.pkg-shop-qr-image {
    width: 260px;
    height: 260px;
    object-fit: contain;
    margin-bottom: 0.8rem;
}

.pkg-shop-qr-close {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 1rem;
}

.pkg-product-card.sold-out {
    opacity: 0.6;
    pointer-events: none;
}

.pkg-product-card.sold-out .pkg-badge,
.pkg-product-card.sold-out .pkg-progress-fill,
.pkg-product-card.sold-out .pkg-btn-buy {
    background: #bbb;
}

@media (max-width: 768px) {
    .pkg-shop-header h1 {
        font-size: 1.8rem;
    }

    .pkg-product-grid {
        grid-template-columns: 1fr;
    }
}
