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

:root {
    --kup-navy: #003366;
    --kup-blue-light: #004D99;
    --kup-orange: #F58220;
    --kup-bg-white: #FFFFFF;
    --kup-bg-gray: #F9F9F9;
    --kup-text-dark: #222222;
    --kup-text-gray: #666666;
    --kup-border: #E0E0E0;
    --font-main: 'Noto Sans KR', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--kup-bg-white);
    color: var(--kup-text-dark);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    margin: 0;
    background-color: var(--kup-bg-white);
    min-height: 100vh;
}

/* Base Top Logo */
.top-logo {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 180px;
    display: block;
}

.top-logo img {
    width: 100%;
    height: auto;
    /* In case the SVG is dark and the banner is also dark, adding a small drop-shadow can help, but by default it should be pristine */
    filter: drop-shadow(0px 2px 10px rgba(0, 0, 0, 0.1));
}

/* Header Sections (Swiper Full Size) */
.hero-swiper {
    width: 100%;
    height: 100vh;
    /* Full viewport height */
    position: relative;
    background-color: var(--kup-navy);
}

.hero-slide {
    position: relative;
    padding: 0 40px;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) scale(1);
    object-fit: cover;
    z-index: 0;
    transition: transform 6s ease-out;
    /* Smooth Ken Burns effect */
}

/* Active slide image scaling */
.swiper-slide-active .hero-video-bg {
    transform: translate(-50%, -50%) scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    opacity: 0;
    /* Base state hidden */
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Text Entry Animation Triggered by Active Slide */
.swiper-slide-active .hero-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.hero-label {
    display: inline-block;
    color: var(--kup-orange);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero-slide h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--kup-bg-white);
    letter-spacing: -1px;
    margin-bottom: 24px;
    word-break: keep-all;
}

.hero-slide p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

/* Swiper custom styles */
.swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: var(--kup-orange);
    opacity: 1;
    width: 30px;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.swiper-button-next,
.swiper-button-prev {
    color: #ffffff;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
}

/* Mouse Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.mouse-icon {
    width: 24px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
    margin-top: 10px;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Layout / Structure */
.section-wrapper {
    background-color: var(--kup-bg-gray);
    padding: 80px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-header::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--kup-orange);
    margin: 20px auto 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--kup-navy);
    line-height: 1.3;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--kup-text-gray);
    margin-top: 10px;
}

/* Filter System (Corporate Tabs) */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--kup-border);
}

.chip {
    padding: 15px 30px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--kup-text-gray);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: -2px;
    /* Overlap border */
}

.chip:hover {
    color: var(--kup-navy);
}

.chip.active {
    color: var(--kup-navy);
    border-bottom-color: var(--kup-orange);
}

.select-clean {
    display: block;
    margin: 0 auto 50px;
    width: 100%;
    max-width: 400px;
    padding: 16px 20px;
    border: 1px solid var(--kup-border);
    background: #fff;
    font-size: 1rem;
    font-weight: 500;
    color: var(--kup-text-dark);
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23003366' stroke-width='2' stroke-linecap='square'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    outline: none;
    border-radius: 0;
    /* Sharp corners */
}

/* Product Grid (Corporate Clean) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: var(--kup-bg-white);
    border: 1px solid var(--kup-border);
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--kup-navy);
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.08);
}

.img-container {
    width: 100%;
    /*height: 300px;*/
    background: #fff;
    padding: 30px;
    position: relative;
    border-bottom: 1px solid var(--kup-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}

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

.badge-organic {
    position: absolute;
    top: 0;
    left: 0;
    background: var(--kup-orange);
    color: white;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.info-container {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.info-cat {
    font-size: 0.85rem;
    color: var(--kup-text-gray);
    margin-bottom: 10px;
}

.info-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--kup-navy);
    margin-bottom: 15px;
    line-height: 1.4;
    word-break: keep-all;
}

.info-bottom {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--kup-text-dark);
}

.info-price span {
    font-size: 0.9rem;
    font-weight: 400;
}

.action-view {
    color: var(--kup-navy);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Detail Page specific */
.detail-view {
    background: var(--kup-bg-white);
}

.nav-header {
    background: var(--kup-navy);
    padding: 20px 5%;
    display: flex;
    align-items: center;
}

.nav-back {
    color: var(--kup-bg-white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 300;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-back::after {
    content: 'LIST';
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.detail-wrap {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 5%;
    gap: 50px;
}

.detail-img-box {
    flex: 1;
    min-width: 300px;
    border: 1px solid var(--kup-border);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.detail-img-box img {
    width: 100%;
    /*max-width: 400px;*/
    object-fit: contain;
}

.detail-content-box {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.clinical-badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--kup-border);
    color: var(--kup-text-gray);
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 20px;
    background: var(--kup-bg-gray);
}

.detail-headline {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--kup-navy);
    line-height: 1.3;
    margin-bottom: 30px;
    word-break: keep-all;
}

.detail-price-wrap {
    border-top: 2px solid var(--kup-navy);
    border-bottom: 1px solid var(--kup-border);
    padding: 30px 0;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-price-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--kup-text-dark);
}

.detail-price-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--kup-orange);
}

.detail-price-val span {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--kup-text-dark);
    margin-left: 8px;
}

.purchase-btn {
    display: inline-block;
    width: 100%;
    padding: 20px;
    background: var(--kup-navy);
    color: white;
    text-align: center;
    border: none;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

.purchase-btn:hover {
    background: var(--kup-orange);
}