/**
 * Coupang Homepage Styles
 *
 * @package NEWTIV
 * @since 1.0.0
 */

/* ============================================
   Hero Slider
   ============================================ */
.coupang-hero-slider {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
}

.hero-slider-wrapper {
    position: relative;
    height: 500px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero-slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-slide-text {
    max-width: 600px;
    color: #fff;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
}

.hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.hero-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--coupang-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s;
}

.hero-button:hover {
    background: var(--coupang-primary-dark);
    color: #fff;
}

.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.hero-slider-nav button {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: all;
}

.hero-slider-nav .slider-prev {
    left: 20px;
}

.hero-slider-nav .slider-next {
    right: 20px;
}

.hero-slider-nav button:hover {
    background: var(--coupang-primary);
    color: #fff;
}

.hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-slider-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.hero-slider-dots span.active {
    background: var(--coupang-primary);
}

/* ============================================
   Categories Section
   ============================================ */
.coupang-categories-section {
    padding: 60px 0;
    background: #fff;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--coupang-text);
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
}

.category-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid var(--coupang-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: var(--coupang-primary);
    box-shadow: var(--coupang-shadow-hover);
    transform: translateY(-5px);
}

.category-image {
    width: 100%;
    padding-top: 100%;
    position: relative;
    overflow: hidden;
    background: var(--coupang-border-light);
}

.category-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-info {
    padding: 15px;
    text-align: center;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--coupang-text);
}

.category-count {
    font-size: 12px;
    color: var(--coupang-text-light);
}

/* ============================================
   Products Sections
   ============================================ */
.coupang-featured-products,
.coupang-latest-products,
.coupang-bestsellers,
.coupang-sale-products {
    padding: 60px 0;
    background: #fff;
}

.coupang-sale-products {
    background: #FFF8F5;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-link {
    color: var(--coupang-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.section-link:hover {
    color: var(--coupang-primary-dark);
}

.products-carousel-wrapper {
    position: relative;
}

.products-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 20px;
}

.products-carousel::-webkit-scrollbar {
    display: none;
}

.products-carousel > * {
    flex: 0 0 calc(25% - 15px);
    min-width: 200px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid var(--coupang-border);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--coupang-primary);
    color: #fff;
    border-color: var(--coupang-primary);
}

/* ============================================
   Promotional Banners
   ============================================ */
.coupang-promo-banners {
    padding: 60px 0;
    background: #fff;
}

.promo-banners-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

.promo-banner {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.promo-banner.large {
    height: 620px;
    grid-row: span 2;
}

.promo-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s;
}

.promo-banner:hover .promo-banner-image {
    transform: scale(1.1);
}

.promo-banner-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.promo-banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: #fff;
}

.promo-banner-content h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.promo-banner.large .promo-banner-content h3 {
    font-size: 36px;
}

.promo-banner-content p {
    font-size: 16px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.9);
}

.promo-button {
    display: inline-block;
    padding: 10px 25px;
    background: var(--coupang-primary);
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
    width: fit-content;
}

.promo-banner:hover .promo-button {
    background: var(--coupang-primary-dark);
}

/* ============================================
   Newsletter Section
   ============================================ */
.coupang-newsletter-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--coupang-primary) 0%, var(--coupang-primary-dark) 100%);
    color: #fff;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 36px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .products-carousel > * {
        flex: 0 0 calc(33.333% - 14px);
    }
    
    .promo-banners-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .promo-banner.large {
        grid-row: span 1;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .hero-slider-wrapper {
        height: 400px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .products-carousel > * {
        flex: 0 0 calc(50% - 10px);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .promo-banners-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-prev,
    .carousel-next {
        display: none;
    }
}

