@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

:root {
    --brand-color: #d4a373; /* 더 부드러운 갈색 */
    --brand-dark: #bc8a5f;
    --bg-light: #fefae0; /* 연한 노란 크림색 */
    --text-dark: #333;
    --text-light: #555;
    --shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
    --shadow-lg: 0 1rem 3rem rgba(0,0,0,.175);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
    padding-top: 70px; /* Adjusted for fixed-top navbar */
}

section {
    padding: 6rem 0;
}

.section-heading {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-subheading {
    color: var(--text-light);
    margin-bottom: 4rem;
    font-size: 1.1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand-color) !important;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--brand-color) !important;
}

.btn {
    border-radius: 50rem; /* Pill-shaped buttons */
    padding: 0.75rem 1.5rem;
    font-weight: 700;
}

.btn-primary {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateY(-2px);
}

#page-top {
    /* background-image is now set dynamically in index.php */
    background-size: cover;
    background-position: center;
    color: white;
}

#page-top h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* --- Product Grid Styles --- */
.product-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-item a {
    display: block;
    position: relative;
}

.product-item img {
    width: 100%;
    height: 250px; /* Adjust height as needed */
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.product-item-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-item:hover .product-item-hover {
    opacity: 1;
}

.product-item-hover i {
    color: #fff;
    font-size: 2.5rem;
}

.product-item-caption {
    padding: 1rem;
    text-align: center;
}

.product-item-caption h5 {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
}

.product-hidden {
    display: none;
}
/* --- End Product Grid Styles --- */

/* --- Pagination Styles --- */
.product-pagination-nav .pagination {
    margin-bottom: 0;
}

.product-pagination-nav .page-item .page-link {
    color: var(--brand-color);
}

.product-pagination-nav .page-item.active .page-link {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    color: #fff;
}

.product-pagination-nav .page-item.disabled .page-link {
    color: #6c757d;
}
/* --- End Pagination Styles --- */


.feature-card {
    border: 0;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    color: var(--brand-color);
}

#investment .table {
    font-size: 1.1rem;
}

#investment .table th {
    width: 30%;
}

.testimonial-card {
    background-color: white;
    border-radius: 15px;
    padding: 2rem;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.store-locator .nav-pills .nav-link {
    background-color: #f8f9fa;
    color: var(--text-light);
    margin: 0 5px;
    border-radius: 50rem;
    font-weight: 600;
}

.store-locator .nav-pills .nav-link.active {
    background-color: var(--brand-color);
    color: white;
}

.store-list-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}
.store-list-item:last-child {
    border-bottom: 0;
}

.map-container {
    position: relative;
    padding: 3rem 0;
}

.map-background-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: auto;
    opacity: 0.1;
    z-index: 1; /* Changed from -1 to 1 */
}

.store-list-wrapper {
    position: relative; /* Add relative position */
    z-index: 2; /* Add z-index to ensure it's on top */
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 2rem;
}

#contact {
    background-color: var(--bg-light);
}

/* Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}