#main {
    padding-top: 100px;
    padding-bottom: 50px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title::after {
        width: 80px;
    }
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 350px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.product-image {
    width: 100%;
    overflow: hidden;
}

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

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

.product-info {
    padding: 1rem;
}

.product-info h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-description {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.product-price {
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: bold;
    margin-bottom: 0.8rem;
}

.buy-button {
    display: inline-block;
    width: 100%;
    padding: 0.6rem;
    background-color: #3498db;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.buy-button:hover {
    background-color: #2980b9;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .products-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }

    .product-card {
        max-width: 360px;
        width: 100%;
    }

    .product-image {
        
    }

    .product-info {
        padding: 1rem;
    }

    .product-info h3 {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .product-description {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .product-price {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .buy-button {
        padding: 0.6rem;
        font-size: 1rem;
        -webkit-tap-highlight-color: transparent;
    }
}

/* 작은 모바일 화면 */
@media (max-width: 360px) {
    .products-container {
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .product-card {
        max-width: 280px;
    }

    .product-image {
        height: 160px;
    }
}

.banner-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 10px;
}

.banner-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    bottom: 10%;
    left: 10%;
    transform: none;
    text-align: left;
    color: white;
    width: 60%;
    max-width: 600px;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.banner-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.banner-button {
    display: inline-block;
    padding: 0.5rem 2rem;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.banner-button:hover {
    background-color: transparent;
    border-color: white;
    transform: translateY(-2px);
}

.banner-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.7));
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background-color 0.3s;
    z-index: 10;
}

.banner-prev {
    left: 1rem;
}

.banner-next {
    right: 1rem;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.banner-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-dot.active {
    background: white;
}

@media (max-width: 768px) {
    .banner-slider {
        height: 400px;
        margin-bottom: 200px;
    }

    .banner-prev,
    .banner-next {
        padding: 0.6rem;
        font-size: 1rem;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 50%;
    }

    .banner-content {
        bottom: 10%;
        left: 5%;
        width: 90%;
        padding: 0 1rem;
    }

    .banner-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    .banner-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .banner-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .banner-dots {
        bottom: 0.8rem;
    }

    .banner-dot {
        width: 8px;
        height: 8px;
    }
}

/* 작은 모바일 화면 */
@media (max-width: 360px) {
    .banner-slider {
        height: 350px;
    }

    .banner-content h2 {
        font-size: 1.3rem;
    }

    .banner-content p {
        font-size: 0.85rem;
    }

    .banner-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

html {
    scroll-behavior: smooth;
}

#products-section {
    scroll-margin-top: 100px; /* 헤더 높이에 맞게 조정 */
}
