/* LUXE DIAMOND - 엘레강트한 프리미엄 다이아몬드 플랫폼 */

/* 고급 폰트 임포트 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Dancing+Script:wght@400;500;600;700&family=Great+Vibes&family=Cinzel:wght@400;500;600&display=swap');

/* 기본 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 기본 설정 */
body {
    font-family: 'Noto Sans KR', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 헤더 */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 80px;
}

/* 헤더 금박 텍스처 오버레이 (미세한 그레인 + 그라디언트) */
.header::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(212,175,55,0.06), rgba(255,255,255,0) 40%, rgba(212,175,55,0.06) 60%, rgba(255,255,255,0)),
        linear-gradient(135deg, rgba(255,244,194,0.08), rgba(255,255,255,0) 60%),
        repeating-linear-gradient(45deg, rgba(0,0,0,0.02) 0 2px, rgba(0,0,0,0) 2px 4px);
    mix-blend-mode: multiply;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #d4af37;
    position: relative;
}

.logo a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 프리미엄 로고: 금빛 텍스트 + 다이아몬드 글로우 + 반짝임 스윕 */
.logo i {
    color: #d4af37;
    filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.45));
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
    animation: iconPulse 3.5s ease-in-out infinite;
}

.logo-diamond {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 
        0 0 10px rgba(135, 206, 250, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
    animation: logoSparkle 3s ease-in-out infinite;
}

@keyframes logoSparkle {
    0%, 100% { 
        filter: brightness(1);
        transform: scale(1);
    }
    50% { 
        filter: brightness(1.2);
        transform: scale(1.05);
    }
}

@keyframes iconPulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.logo span {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.95rem;
    background: linear-gradient(135deg, #b8941f, #d4af37, #fff4c2, #f7e98e, #d4af37, #b8941f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    text-shadow: 
        0 0 15px rgba(212, 175, 55, 1),
        0 0 30px rgba(255, 255, 255, 0.7),
        1px 1px 2px rgba(0, 0, 0, 0.8),
        -1px -1px 1px rgba(255, 255, 255, 0.4),
        1px 1px 0px rgba(0, 0, 0, 0.7),
        -1px -1px 0px rgba(0, 0, 0, 0.7),
        1px -1px 0px rgba(0, 0, 0, 0.7),
        -1px 1px 0px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    position: relative;
    filter: contrast(1.3) brightness(1.15);
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.7);
    animation: shimmer 5s linear infinite;
}

.logo a::after {
    content: '';
    position: absolute;
    left: -30%;
    top: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    transform: skewX(-20deg);
    animation: shineSweep 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shineSweep {
    0% { left: -30%; }
    40% { left: 130%; }
    100% { left: 130%; }
}

.logo a::before {
    content: '✦';
    position: absolute;
    right: -12px;
    top: 14px;
    font-size: 0.8rem;
    color: #fff7cc;
    text-shadow: 0 0 8px rgba(255, 247, 204, 0.8);
    opacity: 0.9;
    animation: twinkle 2.8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1) rotate(20deg); }
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 8px;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
    background: linear-gradient(135deg, #d4af37, #f7e98e);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-actions button:hover {
    background: #f5f5f5;
}

.login-btn {
    background: #d4af37 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 5px;
    font-weight: 500;
}

.login-btn:hover {
    background: #b8941f !important;
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 모바일 메뉴 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s;
}

/* 로딩 스크린 */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    font-family: 'Playfair Display', serif;
    font-size: 2.3rem;
    font-weight: 900;
    color: #d4af37;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 
        0 0 25px rgba(212, 175, 55, 1),
        0 0 50px rgba(255, 255, 255, 0.8),
        2px 2px 4px rgba(0, 0, 0, 1),
        -2px -2px 2px rgba(255, 255, 255, 0.5),
        1px 1px 0px rgba(0, 0, 0, 1),
        -1px -1px 0px rgba(0, 0, 0, 1),
        1px -1px 0px rgba(0, 0, 0, 1),
        -1px 1px 0px rgba(0, 0, 0, 1);
    letter-spacing: 2px;
    filter: contrast(1.4) brightness(1.2);
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.9);
}

.loading-diamond {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(135, 206, 250, 0.6),
        0 0 40px rgba(255, 255, 255, 0.4);
    animation: loadingSparkle 2s ease-in-out infinite;
}

@keyframes loadingSparkle {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

.loading-spinner {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #d4af37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 히어로 섹션 */
.hero {
    margin-top: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background:
      radial-gradient(1200px 300px at 10% -10%, rgba(167, 139, 250, 0.18), transparent 60%),
      radial-gradient(1200px 300px at 90% 0%, rgba(212, 175, 55, 0.18), transparent 60%),
      linear-gradient(135deg, #1a1029, #0f172a);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    /* subtle sparkle sweep */
    content: '';
    position: absolute;
    left: -40%; top: 0; bottom: 0; width: 35%;
    background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,0.12), rgba(255,255,255,0));
    transform: skewX(-15deg);
    animation: heroSweep 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroSweep { 0%{ left:-40%; } 50%{ left:120%; } 100%{ left:120%; } }

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.title-highlight {
    color: #d4af37;
    font-weight: 800;
}

/* 프리미엄 골드/다이아몬드 비주얼 */
.gold-shimmer {
    background: linear-gradient(120deg, #8a6f22, #d4af37, #fff4c2, #d4af37, #8a6f22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: shimmer 5s linear infinite;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.diamond-hero { 
    margin-bottom: 20px; 
    text-align: center;
    padding: 20px 0;
}

.diamond-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 
        0 0 30px rgba(135, 206, 250, 0.6),
        0 0 60px rgba(255, 255, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: diamondSparkle 4s ease-in-out infinite;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.diamond-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 0 50px rgba(135, 206, 250, 0.8),
        0 0 100px rgba(255, 255, 255, 0.6),
        inset 0 0 30px rgba(255, 255, 255, 0.4);
}

@keyframes diamondSparkle {
    0%, 100% { 
        filter: brightness(1) saturate(1);
        box-shadow: 
            0 0 30px rgba(135, 206, 250, 0.6),
            0 0 60px rgba(255, 255, 255, 0.4);
    }
    50% { 
        filter: brightness(1.3) saturate(1.2);
        box-shadow: 
            0 0 50px rgba(135, 206, 250, 0.9),
            0 0 100px rgba(255, 255, 255, 0.7),
            0 0 150px rgba(212, 175, 55, 0.3);
    }
}

.diamond-glow {
    font-size: 2.2rem;
    color: #bde3ff;
    filter: drop-shadow(0 0 12px rgba(135, 206, 250, 0.45));
    animation: sparkle 3.5s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.06); opacity: 1; }
}

/* 실시간 시세 티커 */
.price-ticker {
    background: #0f172a;
    color: #e5e7eb;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    font-size: 0.95rem;
}

.price-ticker .container { padding-top: 10px; padding-bottom: 10px; }

.ticker-wrap {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.ticker-item .label { color: #cbd5e1; }
.ticker-item .value { font-weight: 700; color: #ffffff; }
.ticker-item .delta { font-weight: 600; }

.delta.up { color: #22c55e; }
.delta.down { color: #ef4444; }
.delta.flat { color: #cbd5e1; }

.gold-icon { color: #d4af37; }
.silver-icon { color: #c0c0c0; }
.platinum-icon { color: #9fb3c8; }
.diamond-icon { color: #9bd3ff; }

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.btn-premium {
    background: #d4af37;
    color: white;
}

.btn-premium:hover {
    background: #b8941f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #8a2be2;
    border: 2px solid #8a2be2;
}

.btn-secondary:hover {
    background: #8a2be2;
    color: white;
}

/* Royal purple button */
.btn-royal { background: linear-gradient(135deg, #6d28d9, #a78bfa); color:#fff; border:none; }
.btn-royal:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(109,40,217,0.35); }

/* Hero buttons styling */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.hero-buttons .btn {
    font-size: 0.9rem;
    padding: 10px 20px;
    white-space: nowrap;
}

/* (reverted) removed hero quick links styling */

/* 섹션 공통 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 50px;
}

/* 그리드 레이아웃 */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

/* 카드 스타일 */
.card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.card p {
    color: #666;
    line-height: 1.6;
}

/* 특징 섹션 */
.features {
    background: #f8f9fa;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

/* 상품 그리드 */
.products {
    padding: 80px 0;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: #333;
}

.product-info p {
    color: #666;
    margin-bottom: 15px;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    width: 100%;
    background: #d4af37;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background: #b8941f;
}

/* 고객 후기 */
.testimonials {
    background: #f8f9fa;
}

.testimonial-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    color: #555;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.author-info h4 {
    color: #333;
    margin-bottom: 5px;
}

.author-info span {
    color: #666;
    font-size: 0.9rem;
}

/* 푸터 */
.footer {
    background: #1a1a2e;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3,
.footer-section h4 {
    color: #d4af37;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #d4af37;
}

.footer-desc {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.social-links a:hover {
    background: #d4af37;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.modal-header h3 {
    color: #333;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #333;
}

/* 폼 스타일 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* 장바구니 사이드바 */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 1500;
    padding: 20px;
    overflow-y: auto;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.cart-header h3 {
    color: #333;
    margin: 0;
}

.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart-btn:hover {
    color: #333;
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
    color: #999;
}

.cart-empty i {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 15px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* 유틸리티 클래스 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.hidden { display: none; }
.visible { display: block; }

/* 애니메이션 */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* 골드 컬러 유틸리티 */
.text-gold { color: #d4af37; }
.bg-gold { background-color: #d4af37; }
.border-gold { border-color: #d4af37; }

/* ================================ */
/* 상품 목록 페이지 (프리미엄 스타일) */
/* ================================ */
.products-main {
    margin-top: 100px;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(120deg, #8a6f22, #d4af37, #fff4c2, #d4af37, #8a6f22);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-header p {
    color: #666;
    margin-top: 8px;
}

.product-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
    border: 1px solid #e6e0c7;
    background: #fff;
    color: #6b5c2e;
    padding: 8px 14px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.25s ease;
}

.filter-btn:hover {
    border-color: #d4af37;
    color: #8a6f22;
}

.filter-btn.active {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(212, 175, 55, 0.25);
}

.sort-options select {
    appearance: none;
    padding: 10px 14px;
    border: 1px solid #e6e0c7;
    border-radius: 10px;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\"><path fill=\"%236b5c2e\" d=\"M7 10l5 5 5-5z\"/></svg>') no-repeat right 10px center;
    color: #6b5c2e;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.product-item {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

.product-item::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(212,175,55,0.18), rgba(255,244,194,0.12) 30%, rgba(212,175,55,0.18) 60%, rgba(255,244,194,0.12));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-item:hover::before { opacity: 1; }

.product-image {
    position: relative;
    aspect-ratio: 1/1;
    background: #faf7ef;
}

.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.product-item:hover .product-image img { transform: scale(1.05); }

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35));
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.product-item:hover .product-overlay { opacity: 1; }

.quick-view-btn {
    background: rgba(255,255,255,0.92);
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: all 0.25s ease;
}
.quick-view-btn:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

/* 카테고리별 뱃지 */
.product-item[data-category="premium"] .product-image::after {
    content: 'PREMIUM';
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #1b1b1b;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 6px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.35);
}

.product-info { padding: 16px; }
.product-info h3 { font-size: 1.05rem; margin-bottom: 6px; color: #222; }
.product-price { color: #d4af37; font-weight: 800; margin-bottom: 6px; }
.product-desc { color: #666; font-size: 0.92rem; margin-bottom: 10px; }

.add-to-cart-btn {
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.pagination { display: flex; gap: 8px; justify-content: center; margin: 28px 0 12px; }
.page-btn {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}
.page-btn:hover { border-color: #d4af37; transform: translateY(-1px); }
.page-btn.active { background: #d4af37; color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(212,175,55,0.25); }

/* ================================ */
/* 문의 페이지 (프리미엄 스타일)   */
/* ================================ */
.contact-hero {
    margin-top: 80px;
    position: relative;
    background: radial-gradient(circle at 20% -10%, rgba(212,175,55,0.2), transparent 40%),
                radial-gradient(circle at 80% 0%, rgba(155, 211, 255, 0.16), transparent 45%),
                linear-gradient(135deg, #101423, #0f172a);
    color: #fff;
    padding: 80px 0 60px;
    overflow: hidden;
}
.contact-hero .hero-overlay { position: absolute; inset: 0; background: url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"none\"><defs><linearGradient id=\"g\" x1=\"0\" x2=\"1\"><stop offset=\"0\" stop-color=\"%23ffffff05\"/><stop offset=\"1\" stop-color=\"%23ffffff00\"/></linearGradient></defs><rect width=\"100\" height=\"100\" fill=\"url(%23g)\"/></svg>'); pointer-events: none; }
.contact-hero .hero-content { text-align: center; position: relative; z-index: 1; }
.contact-hero h1 { font-family: 'Playfair Display', serif; font-size: 2.6rem; margin-bottom: 12px; }
.contact-hero .highlight-gold { color: #f5d76e; text-shadow: 0 6px 22px rgba(212,175,55,0.45); }
.contact-hero .hero-description { color: #cbd5e1; }

.contact-info .contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
}

.contact-methods, .contact-form-section {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}
.contact-methods h2, .contact-form-section h2 { margin-bottom: 14px; color: #1f2937; }

.contact-method { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px dashed #f0f0f0; }
.contact-method:last-child { border-bottom: 0; }
.method-icon { width: 46px; height: 46px; border-radius: 50%; background: #fff7e0; display:flex; align-items:center; justify-content:center; color: #d4af37; box-shadow: inset 0 0 0 1px #f4e6b4; }
.method-info h3 { margin: 0; font-size: 1.05rem; }
.method-detail { color: #374151; font-weight: 700; }
.method-time { color: #6b7280; font-size: 0.9rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.checkbox-group { display: flex; align-items: center; gap: 8px; }
.submit-btn { width: 100%; padding: 14px; font-size: 1.05rem; border-radius: 10px; }

.location .section-header { text-align: center; margin-bottom: 18px; }
.location-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.location-info { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 18px; box-shadow: 0 8px 18px rgba(0,0,0,0.05); }
.address-info { display: grid; gap: 10px; margin-bottom: 14px; }
.info-item { display: flex; gap: 10px; align-items: center; color: #374151; }
.map-container { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 18px; box-shadow: 0 8px 18px rgba(0,0,0,0.05); display:flex; align-items:center; justify-content:center; }
.map-placeholder { text-align: center; color: #6b7280; }
.map-placeholder i { font-size: 2rem; color: #d4af37; }

.faq .section-header { text-align: center; margin-bottom: 14px; }
.faq-container { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 16px rgba(0,0,0,0.05); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; cursor: pointer; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 16px; }
.faq-item.active .faq-answer { max-height: 200px; padding: 0 16px 14px; }

.chat-button { position: fixed; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #d4af37, #f4d03f); color: #111; display:flex; align-items:center; justify-content:center; box-shadow: 0 12px 28px rgba(212,175,55,0.35); cursor: pointer; }
.chat-tooltip { position: absolute; right: 62px; background: #111827; color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 0.85rem; opacity: 0; transform: translateY(4px); transition: all 0.2s ease; white-space: nowrap; }
.chat-button:hover .chat-tooltip { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .contact-info .contact-grid, .location-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ================================ */
/* SNS 로그인/가입 공통 스타일       */
/* ================================ */
.sns-login { margin: 16px 0 0; }
.sns-divider { position: relative; text-align: center; margin: 14px 0 10px; color: #6b7280; font-size: 0.9rem; }
.sns-divider::before, .sns-divider::after { content: ""; position: absolute; top: 50%; width: 35%; height: 1px; background: #e5e7eb; }
.sns-divider::before { left: 0; }
.sns-divider::after { right: 0; }
.sns-divider span { background: #fff; padding: 0 10px; position: relative; }

.sns-buttons { display: grid; grid-template-columns: 1fr; gap: 8px; }
.sns-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font-weight: 600; justify-content: center; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.sns-btn:active { transform: translateY(1px); }
.sns-btn .sns-icon, .sns-btn i { width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-weight: 800; font-size: 0.8rem; }

/* Kakao */
.sns-btn.kakao { background: #FEE500; color: #3c1e1e; }
.sns-btn.kakao .sns-icon { background: #3c1e1e; color: #FEE500; border-radius: 50%; width: 20px; height: 20px; font-size: 0.75rem; }

/* Naver */
.sns-btn.naver { background: #03C75A; color: #ffffff; }
.sns-btn.naver .sns-icon { background: #ffffff; color: #03C75A; border-radius: 4px; width: 20px; height: 20px; font-weight: 900; }

/* Google */
.sns-btn.google { background: #ffffff; color: #3c4043; border-color: #dadce0; }
.sns-btn.google i { color: #4285F4; }

/* Apple */
.sns-btn.apple { background: #000000; color: #ffffff; }
.sns-btn.apple i { color: #ffffff; }

/* Facebook (옵션) */
.sns-btn.facebook { background: #1877F2; color: #ffffff; }
.sns-btn.facebook i { color: #ffffff; }

/* 다음 주소 검색 레이어 스타일 */
#postcodeLayer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

#postcodeWrap {
    position: relative;
    width: 90%;
    max-width: 500px;
    height: 80%;
    max-height: 600px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10001;
    background: #d4af37;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #b8941f;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    #postcodeWrap {
        width: 95%;
        height: 85%;
    }
}

/* 로그인 모달 스타일 */
.login-form {
    max-width: 400px;
    width: 100%;
    padding: 20px;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.login-form input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* 알림 스타일 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
    border-left: 4px solid #d4af37;
}

.notification-success {
    border-left-color: #27ae60;
}

.notification-error {
    border-left-color: #e74c3c;
}

.notification-content {
    padding: 16px 20px;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notification-header strong {
    color: #2c3e50;
    font-size: 1.1rem;
}

.notification-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-header button:hover {
    color: #e74c3c;
}

.notification-message {
    color: #7f8c8d;
    font-size: 0.95rem;
    line-height: 1.4;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 로그인 버튼 호버 개선 */
.login-btn:hover {
    background: linear-gradient(135deg, #b8941f, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* ========================================= */
/* Premium refinement overrides (subtle, luxe)
   - Focus on restraint: typography, spacing,
     softer shadows, muted animations          */
/* ========================================= */

:root {
    --gold-400: #d4af37;
    --gold-500: #c9a227;
    --ink-900: #0f172a;
    --ink-800: #1f2937;
    --ink-600: #475569;
    --surface: #ffffff;
    --border: rgba(17, 24, 39, 0.06);
    --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Typography */
h1, h2, h3, .section-title {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.2px;
    color: var(--ink-900);
}
.section-subtitle { color: var(--ink-600); }

/* Header/nav/logo restraint */
.nav-menu { background: rgba(255, 255, 255, 0.6); }
.nav-menu a { color: var(--ink-800); text-shadow: none; }
.nav-menu a:hover,
.nav-menu a.active {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.22);
}
.logo span {
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6), 0 0 18px rgba(255, 255, 255, 0.5), 1px 1px 2px rgba(0,0,0,0.5);
    filter: contrast(1.15) brightness(1.08);
    -webkit-text-stroke: 0.3px rgba(0,0,0,0.6);
    animation: shimmer 12s linear infinite;
}
.logo a::after { display: none; }
.logo a::before { opacity: 0.5; }
.logo-diamond { box-shadow: 0 0 14px rgba(135, 206, 250, 0.45), 0 0 24px rgba(255, 255, 255, 0.25); }

/* Buttons */
.btn, .verify-btn, .add-to-cart-btn, .btn-complete, .login-btn {
    text-shadow: none;
}
.btn-premium,
.add-to-cart-btn,
.btn-complete,
.login-btn {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
    border: 1px solid rgba(212, 175, 55, 0.5);
    box-shadow: 0 10px 24px rgba(212, 175, 55, 0.18);
}
.btn-premium:hover,
.add-to-cart-btn:hover,
.btn-complete:hover,
.login-btn:hover {
    box-shadow: 0 14px 30px rgba(212, 175, 55, 0.24);
}

/* Cards and surfaces */
.card,
.product-card,
.testimonial-item,
.contact-methods,
.contact-form-section,
.location-info,
.map-container {
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}
.product-item { border: 1px solid rgba(212, 175, 55, 0.15); box-shadow: var(--shadow-soft); }
.product-item:hover { box-shadow: 0 16px 36px rgba(0,0,0,0.12); }

/* Hero typography tweaks */
.hero-content h1 { font-family: 'Playfair Display', serif; font-weight: 800; line-height: 1.15; }
.hero-content p { color: #e5e7eb; }

/* Reduce motion for a calmer feel */
@media (prefers-reduced-motion: no-preference) {
  .diamond-image { animation-duration: 6s; }
}