/* 홈페이지 전용 스타일 - 반응형 강화 버전 */

/* ================================
   메인 배너/히어로 섹션
   ================================ */
.hero {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    overflow: hidden;
    padding: 40px;
}

.hero__content {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 600px;
    padding: 0 20px;
}

.hero__title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero__subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__actions .btn {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.hero__actions .btn--primary {
    background: #fff;
    color: #667eea;
}

.hero__actions .btn--primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.hero__actions .btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
}

.hero__actions .btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.hero__image {
    flex: 1;
    max-width: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* ================================
   특징 섹션
   ================================ */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
}

.feature-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    transform: translateY(-8px);
    border-color: transparent;
}

.feature-card__icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #fff8f5 0%, #ffede5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.feature-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.feature-card__description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

/* ================================
   카테고리 섹션
   ================================ */
.categories {
    padding: 80px 0;
    background: #fff;
}

.categories__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.categories__title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #1f2937;
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid #e5e7eb;
}

.category-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-6px);
    border-color: transparent;
}

.category-card__image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card:hover .category-card__image img {
    transform: scale(1.05);
}

.category-card__content {
    padding: 16px 12px;
    text-align: center;
}

.category-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.category-card__count {
    font-size: 12px;
    color: #9ca3af;
}

/* ================================
   상품 쇼케이스
   ================================ */
.product-showcase {
    padding: 80px 0;
    background: #f8f9fa;
}

.product-showcase__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-showcase__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.product-showcase__title {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: #1f2937;
}

.product-showcase__link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.product-showcase__link:hover {
    color: #4f46e5;
}

.product-showcase__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 공용 상품 카드 - 홈페이지용 */
.product-showcase .product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

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

.product-showcase .product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-showcase .product-card__badge--new {
    background: #10b981;
    color: #fff;
}

.product-showcase .product-card__badge--hot {
    background: #ef4444;
    color: #fff;
}

.product-showcase .product-card__badge--best {
    background: #f59e0b;
    color: #fff;
}

.product-showcase .product-card__badge--sale {
    background: #6366f1;
    color: #fff;
}

.product-showcase .product-card__image {
    width: 100%;
    aspect-ratio: 1;
    background: #f3f4f6;
    overflow: hidden;
}

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

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

.product-showcase .product-card__content {
    padding: 16px;
}

.product-showcase .product-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.product-showcase .product-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.product-showcase .product-card__stars {
    color: #fbbf24;
    font-size: 12px;
    letter-spacing: 1px;
}

.product-showcase .product-card__review-count {
    font-size: 12px;
    color: #9ca3af;
}

.product-showcase .product-card__price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.product-showcase .product-card__discount {
    font-size: 15px;
    font-weight: 700;
    color: #ef4444;
}

.product-showcase .product-card__original-price {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

.product-showcase .product-card__current-price {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    width: 100%;
}

/* ================================
   프로모션 배너
   ================================ */
.promo-banner {
    padding: 80px 20px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    text-align: center;
}

.promo-banner__content {
    max-width: 700px;
    margin: 0 auto;
}

.promo-banner__title {
    font-size: clamp(24px, 5vw, 40px);
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.promo-banner__description {
    font-size: clamp(14px, 2vw, 18px);
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.6;
}

.promo-banner__button {
    display: inline-block;
    background: #fff;
    color: #6366f1;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.promo-banner__button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* ================================
   뉴스레터 섹션
   ================================ */
.newsletter {
    padding: 60px 20px;
    background: #1f2937;
    color: #fff;
}

.newsletter__container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter__title {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 700;
    margin-bottom: 12px;
}

.newsletter__description {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 24px;
    line-height: 1.6;
}

.newsletter__form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter__input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    background: #374151;
    color: #fff;
    min-width: 0;
}

.newsletter__input::placeholder {
    color: #9ca3af;
}

.newsletter__input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #6366f1;
}

.newsletter__button {
    padding: 14px 28px;
    background: #6366f1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.newsletter__button:hover {
    background: #4f46e5;
}

/* ================================
   반응형 - Tablet (768px ~ 1023px)
   ================================ */
@media (max-width: 1023px) {
    .hero {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 60px 20px;
    }

    .hero__content {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__image {
        max-width: 400px;
    }

    .features__container {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-showcase__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================
   반응형 - Mobile (0 ~ 767px)
   ================================ */
@media (max-width: 767px) {
    .hero {
        padding: 40px 16px;
    }

    .hero__content {
        padding: 0;
    }

    .hero__actions {
        flex-direction: column;
        width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        text-align: center;
    }

    .hero__image {
        max-width: 280px;
    }

    /* 특징 섹션 - 모바일 */
    .features {
        padding: 60px 0;
    }

    .features__container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .feature-card__icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
        margin-bottom: 16px;
    }

    .feature-card__title {
        font-size: 15px;
    }

    .feature-card__description {
        font-size: 13px;
    }

    /* 카테고리 섹션 - 모바일 */
    .categories {
        padding: 60px 0;
    }

    .categories__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .category-card__content {
        padding: 12px 8px;
    }

    .category-card__title {
        font-size: 13px;
    }

    .category-card__count {
        display: none;
    }

    /* 상품 쇼케이스 - 모바일 */
    .product-showcase {
        padding: 60px 0;
    }

    .product-showcase__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-showcase .product-card__badge {
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        font-size: 10px;
    }

    .product-showcase .product-card__content {
        padding: 12px;
    }

    .product-showcase .product-card__title {
        font-size: 13px;
        min-height: 36px;
    }

    .product-showcase .product-card__rating {
        margin-bottom: 8px;
    }

    .product-showcase .product-card__stars {
        font-size: 10px;
    }

    .product-showcase .product-card__review-count {
        font-size: 10px;
    }

    .product-showcase .product-card__discount {
        font-size: 13px;
    }

    .product-showcase .product-card__original-price {
        font-size: 11px;
    }

    .product-showcase .product-card__current-price {
        font-size: 15px;
    }

    /* 프로모션 배너 - 모바일 */
    .promo-banner {
        padding: 60px 16px;
    }

    /* 뉴스레터 - 모바일 */
    .newsletter {
        padding: 48px 16px;
    }

    .newsletter__form {
        flex-direction: column;
    }

    .newsletter__button {
        width: 100%;
    }
}

/* ================================
   반응형 - Small Mobile (0 ~ 480px)
   ================================ */
@media (max-width: 480px) {
    .features__container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 20px;
        gap: 16px;
    }

    .feature-card__icon {
        margin: 0;
        width: 48px;
        height: 48px;
        font-size: 20px;
        flex-shrink: 0;
    }

    .feature-card__content {
        flex: 1;
    }

    .feature-card__title {
        margin-bottom: 4px;
    }

    .categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================
   터치 디바이스 최적화
   ================================ */
@media (hover: none) {
    .hero__actions .btn:active {
        transform: scale(0.98);
    }

    .feature-card:active {
        transform: scale(0.98);
    }

    .category-card:active {
        transform: scale(0.98);
    }

    .product-showcase .product-card:active {
        transform: scale(0.98);
    }

    .promo-banner__button:active {
        transform: scale(0.98);
    }
}
