* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    color: #1a1a1a;
    line-height: 1.6;
}

/* ===== 헤더 ===== */
header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: white;
    padding: 40px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3), inset 0 1px 0 rgba(212, 175, 55, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #D4AF37;
}

header h1 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(135deg, #D4AF37 0%, #F5D97A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: #cccccc;
}

/* ===== 배너 섹션 ===== */
.banner-section {
    width: 100%;
    /* height: 450px; */
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-image {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    object-position: center;
    animation: bannerZoom 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes bannerZoom {
    from {
        transform: scale(1.05);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.banner-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.15);
    pointer-events: none;
}

/* ===== 관리자 버튼 ===== */
.admin-link {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #299dd7;
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    box-shadow: 0 8px 25px rgb(41 157 215);
    z-index: 999;
    transition: all 0.3s ease;
    font-weight: 600;
    border: 2px solid #299dd7;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.admin-link:hover {
    background: #299dd7;
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgb(41 157 215);
}

/* ===== 메인 컨테이너 ===== */
.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.container-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 15px;
}

.container-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37 0%, #F5D97A 100%);
    border-radius: 2px;
}

.container-subtitle {
    font-size: 15px;
    color: #777777;
    margin-bottom: 50px;
    letter-spacing: 0.5px;
}

/* ===== 상품 그리드 ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid #f5f5f5;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37 0%, #F5D97A 50%, #D4AF37 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2), 0 15px 35px rgba(0,0,0,0.1);
    border-color: #D4AF37;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 60px;
    overflow: hidden;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 24px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    line-height: 1.4;
}

.product-price {
    font-size: 24px;
    background: linear-gradient(135deg, #D4AF37 0%, #F5D97A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 12px;
}

.product-price::before {
    content: '₩ ';
    font-size: 20px;
}

.product-description {
    font-size: 13px;
    color: #666666;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 15px;
}

.view-detail-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #D4AF37;
    border: 2px solid #D4AF37;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-detail-btn:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #F5D97A 100%);
    color: #1a1a1a;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.view-detail-btn:active {
    transform: translateY(0);
}

.view-detail-btn:active {
    transform: scale(0.98);
}

/* ===== 모달 팝업 ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 550px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), inset 0 1px 0 rgba(212, 175, 55, 0.2);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: slideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(212, 175, 55, 0.2);
    overflow: hidden;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: white;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #D4AF37;
    position: relative;
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37 0%, #F5D97A 50%, #D4AF37 100%);
}

.modal-header h2 {
    font-size: 24px;
    margin: 0;
    font-weight: 700;
    background: linear-gradient(135deg, #D4AF37 0%, #F5D97A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #D4AF37;
    color: #D4AF37;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-product-image {
    width: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    border-radius: 8px;
    overflow: visible;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(212, 175, 55, 0.2);
    position: relative;
}

.modal-product-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

.modal-product-image > img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    padding: 10px 4px 2px;
}

.gallery-thumb {
    flex: 0 0 68px;
    height: 68px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.gallery-thumb.active { border-color: #D4AF37; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail-field {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.detail-field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-field label {
    display: block;
    font-weight: 700;
    background: linear-gradient(135deg, #D4AF37 0%, #F5D97A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-field p {
    font-size: 16px;
    line-height: 1.8;
    color: #2a2a2a;
    word-break: break-word;
}

.contact-info {
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
    padding: 24px;
    border-radius: 8px;
    margin-top: 25px;
    border-left: 4px solid #D4AF37;
    box-shadow: inset 0 1px 3px rgba(212, 175, 55, 0.1);
}

.contact-info label {
    display: block;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: #D4AF37;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 8px;
    transition: all 0.3s;
    border: 1px solid #D4AF37;
}

.contact-link:hover {
    background: linear-gradient(135deg, #D4AF37 0%, #F5D97A 100%);
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

/* ===== 푸터 ===== */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    font-size: 13px;
    border-top: 3px solid #D4AF37;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37 0%, #F5D97A 50%, #D4AF37 100%);
}

footer p {
    color: #cccccc;
}

/* ===== 빈 상태 ===== */
.empty-state {
    text-align: center;
    padding: 100px 20px;
    color: #999999;
}

.empty-state h2 {
    font-size: 32px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #D4AF37 0%, #F5D97A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.empty-state p {
    font-size: 16px;
    color: #888888;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 25px;
    }

    .banner-section {
        height: 350px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px 15px;
    }

    header h1 {
        font-size: 26px;
    }

    .products-container {
        padding: 30px 15px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .product-image {
        height: 200px;
        font-size: 48px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-price {
        font-size: 18px;
    }

    .modal-content {
        width: 95%;
        max-width: 100%;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-product-image {
        height: 220px;
    }

    .admin-link {
        padding: 12px 20px;
        font-size: 12px;
        bottom: 20px;
        right: 20px;
    }

    .banner-section {
        height: 280px;
    }

    .container-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px 10px;
    }

    header h1 {
        font-size: 22px;
    }

    header p {
        font-size: 12px;
    }

    .products-container {
        padding: 20px 10px;
        margin: 0;
    }

    .container-title {
        font-size: 22px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 150px;
        font-size: 36px;
    }

    .product-card {
        border-radius: 8px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .product-price {
        font-size: 16px;
    }

    .view-detail-btn {
        padding: 10px;
        font-size: 12px;
    }

    .modal-content {
        width: 95%;
        border-radius: 10px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-header h2 {
        font-size: 18px;
    }

    .modal-body {
        padding: 15px;
        max-height: 80vh;
    }

    .detail-field {
        margin-bottom: 15px;
    }

    .detail-field p {
        font-size: 14px;
    }

    .contact-link {
        display: block;
        margin-right: 0;
        margin-bottom: 8px;
        text-align: center;
    }

    .admin-link {
        padding: 10px 16px;
        font-size: 11px;
        bottom: 15px;
        right: 15px;
    }

    footer {
        padding: 20px 10px;
    }

    .banner-section {
        height: 220px;
    }
}

/* ===== 스크롤바 스타일 ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
