/* [NSPA SUPREME V2.5] PREMIUM STORE DESIGN SYSTEM - REFRESHED 🏛️💎 */
:root {
    --primary: #00d4ff;
    --primary-glow: rgba(0, 212, 255, 0.4);
    --bg-dark: #0a0e17; /* index.php와 동일한 다크 배경 */
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.6);
    --metal-bg: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
}

body {
    background-color: var(--bg-dark) !important;
    color: var(--text-main);
    font-family: 'Outfit', 'Noto Sans KR', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Glassmorphism Utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 24px;
}

/* Premium Navigation */
.premium-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    height: 80px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-nav.scrolled {
    top: 0;
    width: 100%;
    border-radius: 0;
    background: rgba(10, 14, 23, 0.95);
}

.logo-text {
    font-size: 24px;
    font-weight: 950;
    letter-spacing: -1px;
    color: #fff;
    text-decoration: none;
}

.logo-text span { color: var(--primary); }

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 700;
    font-size: 16px;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    position: relative;
    padding: 10px 20px;
    background: var(--primary);
    color: #000;
    border-radius: 50px;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: 0.3s;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.cart-count {
    background: #000;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* Store Hero */
.store-hero {
    padding: 180px 0 100px;
    text-align: center;
}

.hero-title {
    font-size: 72px;
    font-weight: 950;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 상품 카드 최적화 */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px !important;
    padding: 20px 0;
    margin: 0 auto;
    max-width: 1400px;
}

@media (max-width: 1200px) {
    .product-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 30px !important; }
}

@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; padding: 0 10px !important; }
}

.product-card {
    background: var(--metal-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
}

.product-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
    padding: 25px; /* 썸네일을 작게 보이게 하기 위해 패딩 부여 */
    box-sizing: border-box;
    cursor: zoom-in;
    position: relative;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 크기를 작게 보이게 하면서 원본 비율 유지 */
    transition: transform 0.6s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.1);
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 50px var(--primary-glow);
    border-radius: 10px;
}
.product-info h3 { font-size: 20px; margin-bottom: 10px; font-weight: 850; }
.product-price { font-size: 24px; color: var(--primary); font-weight: 900; }

.btn-add {
    margin-top: 15px;
    width: 100%;
    padding: 12px;
    border: 1px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-add:hover {
    background: var(--primary);
    color: #000;
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .hero-title { font-size: 48px; }
}
