/* ===== Base ===== */
html, body {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    margin: 0;
    padding: 0;
}

/* ===== Header / Navbar ===== */
.site-header {
    background-color: #1a3a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .navbar-brand {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
}

.site-header .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s;
}

.site-header .nav-link:hover {
    color: #a8d5b5 !important;
}

.site-header .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, #1a3a2a 0%, #2d6a4f 50%, #40916c 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-section .btn-primary {
    background-color: #a8d5b5;
    border-color: #a8d5b5;
    color: #1a3a2a;
    font-weight: 600;
    padding: 0.6rem 1.8rem;
}

.hero-section .btn-primary:hover {
    background-color: #74c69d;
    border-color: #74c69d;
}

/* ===== Section Title ===== */
.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a3a2a;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #40916c;
    margin: 8px auto 0;
}

/* ===== Product Cards ===== */
.product-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.product-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.product-img-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #d8f3dc, #b7e4c7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

/* ===== Category Filter ===== */
.category-filter .btn {
    border-radius: 20px;
    font-size: 0.85rem;
}

/* ===== Features Section ===== */
.features-section {
    background-color: #f8fdf9;
}

.feature-icon {
    font-size: 2.5rem;
}

/* ===== Contact ===== */
.contact-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-icon {
    font-size: 1.3rem;
    min-width: 32px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: #40916c;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ===== Footer ===== */
.site-footer {
    background-color: #1a3a2a;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.site-footer p {
    color: rgba(255,255,255,0.7);
}

/* ===== Form Customization ===== */
.btn-primary {
    background-color: #40916c;
    border-color: #40916c;
}

.btn-primary:hover {
    background-color: #2d6a4f;
    border-color: #2d6a4f;
}

.btn-outline-primary {
    color: #40916c;
    border-color: #40916c;
}

.btn-outline-primary:hover {
    background-color: #40916c;
    border-color: #40916c;
}

.text-primary {
    color: #2d6a4f !important;
}

/* ===== Blazor Error UI ===== */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ===== Loading ===== */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #40916c;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* ===== Validation ===== */
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid red; }
.validation-message { color: red; font-size: 0.85rem; }
