/**
 * 메인 페이지 전용 CSS
 *
 * 섹션:
 * - 메인 배너
 * - 카테고리 그리드
 * - 상품 리스트
 * - 특징 섹션
 */

/* ==================== 공통 섹션 스타일 ==================== */

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.section-title p {
    font-size: 16px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== 메인 배너 섹션 ==================== */

.main-banner {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.main-banner-swiper {
    width: 100%;
    height: 600px;
}

.banner-item {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px;
    text-align: center;
}

.banner-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.banner-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.banner-actions {
    margin-top: 30px;
}

.btn-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background-color: #3498db;
    color: #fff;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-banner:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
    color: #fff;
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 20px;
}

.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #3498db;
}

/* ==================== 카테고리 배너 섹션 ==================== */

.category-banners {
    padding: 30px 0;
    background-color: #f5f5f5;
}

/* 주문 시작 CTA (콜센터 위) */
.home-order-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #2c3e50;
    border-radius: 8px;
    margin-bottom: 12px;
}

.home-order-cta .order-cta-text {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
}

.home-order-cta .order-cta-text > i {
    font-size: 26px;
    color: #3498db;
}

.home-order-cta .order-cta-text span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-order-cta .order-cta-text strong {
    font-size: 16px;
    font-weight: 700;
}

.home-order-cta .order-cta-text small {
    font-size: 13px;
    color: #bdc3c7;
}

.home-order-cta .order-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #3498db;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
}

.home-order-cta .order-cta-btn:hover {
    background: #2980b9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.home-order-cta .order-cta-btn i {
    font-size: 14px;
    transition: transform 0.3s;
}

.home-order-cta .order-cta-btn:hover i {
    transform: translateX(4px);
}

/* 콜센터 영역 */
.home-callcenter-wrap {
    margin-bottom: 20px;
}

/* 콜센터 정보 */
.home-callcenter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #2c3e50;
    border-radius: 8px;
}

.callcenter-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.callcenter-label {
    font-size: 12px;
    font-weight: 600;
    color: #95a5a6;
    letter-spacing: 1px;
}

.callcenter-number {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.callcenter-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #bdc3c7;
}

.callcenter-info .divider {
    color: #7f8c8d;
}

/* 배너 링크 - 배경 일체형 */
.category-banner-link {
    display: block;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.category-banner-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.category-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 홈 공지사항 박스 (4칸 가로 배치용) */
.home-notice-box {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.home-notice-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-notice-header h3 i {
    color: #3498db;
    font-size: 14px;
}

.home-notice-more {
    font-size: 12px;
    color: #7f8c8d;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: color 0.3s ease;
}

.home-notice-more:hover {
    color: #3498db;
}

.home-notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.home-notice-list li {
    border-bottom: 1px solid #f0f0f0;
}

.home-notice-list li:last-child {
    border-bottom: none;
}

.home-notice-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.home-notice-list li a:hover .home-notice-title {
    color: #3498db;
}

.home-notice-title {
    font-size: 13px;
    color: #2c3e50;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.home-notice-date {
    font-size: 11px;
    color: #95a5a6;
    flex-shrink: 0;
}

.home-notice-list li.no-notice {
    padding: 15px 0;
    text-align: center;
    color: #95a5a6;
    font-size: 13px;
}

/* 체크 배너 섹션 */
.check-banner-section {
    padding: 30px 0;
    background-color: #fff;
}

.check-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* 기존 카테고리 그리드 (레거시 호환) */
.category-grid {
    background-color: #f8f9fa;
}

.category-card {
    position: relative;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    height: 280px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.category-content {
    text-align: center;
    padding: 30px;
}

.category-content h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2c3e50;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: #2980b9;
    gap: 12px;
}

/* ==================== 상품 리스트 섹션 ==================== */

.new-products,
.best-sellers {
    background-color: #fff;
}

.new-products:nth-child(even),
.best-sellers:nth-child(even) {
    background-color: #f8f9fa;
}

.product-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-item:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #3498db;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.product-badge.recommend {
    background: #9b59b6; /* 보라색 - 추천 */
}

.product-badge.best {
    background: #f39c12; /* 주황색 - 베스트 */
}

.product-badge.new {
    background: #2ecc71; /* 초록색 - 신상품 */
}

.product-badge.sale {
    background: #e74c3c; /* 빨강색 - 할인 */
}

.product-badge.soldout {
    background: #95a5a6; /* 회색 - 품절 */
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    z-index: 2;
}

.product-item:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    background: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: #3498db;
    color: #fff;
    transform: scale(1.1);
}

.cart-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(52, 152, 219, 0.95);
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.product-item:hover .cart-btn {
    transform: translateY(0);
}

.cart-btn:hover {
    background: rgba(41, 128, 185, 0.95);
}

.cart-btn:disabled {
    background: rgba(149, 165, 166, 0.95);
    cursor: not-allowed;
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    flex: 1;
}

.product-name a {
    color: #2c3e50;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-name a:hover {
    color: #3498db;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.product-rating .stars {
    display: flex;
    gap: 2px;
    color: #f39c12;
}

.rating-count {
    font-size: 12px;
    color: #7f8c8d;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.original-price {
    font-size: 14px;
    color: #95a5a6;
    text-decoration: line-through;
}

.price {
    font-size: 18px;
    color: #e74c3c;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: #fff;
    color: #3498db;
    border: 2px solid #3498db;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* ==================== 특징 섹션 ==================== */

.features {
    background-color: #f8f9fa;
}

.feature-item {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-item .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 32px;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #2c3e50;
}

.feature-item p {
    font-size: 14px;
    color: #7f8c8d;
    margin: 0;
}

/* ==================== 반응형 ==================== */

@media (max-width: 991px) {
    .section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 28px;
    }

    .main-banner-swiper {
        height: 450px;
    }

    .banner-title {
        font-size: 36px;
    }

    .banner-description {
        font-size: 16px;
    }

    .category-card {
        height: 220px;
    }
}

@media (max-width: 991px) {
    /* 주문 CTA 반응형 - 태블릿 */
    .home-order-cta {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .home-order-cta .order-cta-text {
        flex-direction: column;
        gap: 10px;
    }

    /* 콜센터 반응형 - 태블릿 */
    .home-callcenter {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .callcenter-info {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 40px 0;
    }

    .section-title {
        margin-bottom: 40px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .main-banner-swiper {
        height: 400px;
    }

    .banner-content {
        padding: 20px;
    }

    .banner-title {
        font-size: 28px;
    }

    .banner-description {
        font-size: 14px;
    }

    .category-card {
        height: 180px;
    }

    .category-content h4 {
        font-size: 20px;
    }

    .product-actions {
        opacity: 1;
        transform: translateX(0);
    }

    .cart-btn {
        transform: translateY(0);
    }

    /* 주문 CTA 반응형 - 모바일 */
    .home-order-cta {
        padding: 15px 20px;
    }

    .home-order-cta .order-cta-text > i {
        font-size: 22px;
    }

    .home-order-cta .order-cta-text strong {
        font-size: 15px;
    }

    .home-order-cta .order-cta-text small {
        font-size: 12px;
    }

    .home-order-cta .order-cta-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    /* 콜센터 반응형 - 모바일 */
    .home-callcenter {
        padding: 12px 15px;
    }

    .callcenter-number {
        font-size: 20px;
    }

    .callcenter-info {
        font-size: 11px;
        gap: 5px;
    }

    .callcenter-info .divider {
        display: none;
    }

    .callcenter-info span:not(.divider) {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* 카테고리 배너 반응형 */
    .category-banners {
        padding: 20px 0;
    }

    .home-notice-box {
        padding: 15px;
    }

    .home-notice-header h3 {
        font-size: 14px;
    }

    .home-notice-title {
        font-size: 12px;
    }

    .home-notice-date {
        font-size: 10px;
    }

    .home-notice-list li a {
        padding: 6px 0;
    }
}

@media (max-width: 575px) {
    .main-banner-swiper {
        height: 350px;
    }

    .banner-title {
        font-size: 24px;
    }

    .banner-subtitle {
        font-size: 14px;
    }

    .btn-banner {
        padding: 12px 30px;
        font-size: 14px;
    }

    .feature-item .icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .feature-item h3 {
        font-size: 18px;
    }
}

