/* Section Layout */

.product-section {
    width: 100%;
    max-width: 94rem;
    padding: var(--space-sm);
}

.product-wrapper {
    width: 100%;
    margin: auto;
    display: flex;
    gap: var(--space-lg);
    padding: 0 var(--space-lg);
    align-items: stretch;
}

.product-content {
    flex: 1;
    background: white;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    box-shadow: var(--shadow-sm);
}

/* Announcement */

.announcement {
    padding: var(--space-lg);
    border-bottom: 0.0625rem solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.announcement-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.announcement-left.column {
    flex-direction: column;
    align-items: flex-start;
}

.announcement h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.time-left {
    gap: var(--space-sm);
}

.timer {
    color: var(--gray-text);
    font-size: 0.875rem;
}

.sub-text {
    color: var(--gray-text);
    font-size: 0.875rem;
}

.clock {
    width: var(--space-xl);
}

.view-all-btn {
    background: var(--blue-background);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-lg);
    cursor: pointer;
    font-weight: 500;
}

.view-all-btn:hover,
.view-all-btn:focus-visible {
    background: var(--blue-hover);
}

/* Product Feed */

.product-feed {
    display: flex;
    gap: var(--space-xl);
    padding: var(--space-xl);
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.product-feed::-webkit-scrollbar {
    display: none;
}

/* Product Card */

.product-card {
    text-decoration: none;
    color: black;
    flex: 0 0 auto;
    width: clamp(140px, 22vw, 200px);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover,
.product-card:focus-visible {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-md);
}

.product-image {
    height: clamp(100px, 15vw, 160px);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-info {
    margin-top: var(--space-sm);
    width: 100%;
}

.title {
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offer {
    color: var(--offer-text-green);
    font-weight: 600;
    font-size: 0.875rem;
    margin-top: var(--space-md);
}

.subtitle {
    font-size: 0.8125rem;
    color: var(--gray-text);
    margin-top: var(--space-md);
}

/* Scroll Button */

.scroll-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 0.0625rem solid #ddd;
    font-size: 1.25rem;
    padding: var(--space-2xl) var(--space-md);
    cursor: pointer;
}

/* Offer Card */

.offer-card {
    flex: 0 0 15rem;
    display: flex;
}

.offer-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsiveness */

@media (max-width: 1024px) {

    .offer-card img {
        width: auto;
        max-height: 100%;
    }

    .product-feed {
        align-items: center;
        height: 100%;
    }
}

@media (max-width: 768px) {
    .product-feed {
        padding: var(--space-lg);
        gap: var(--space-lg);
        align-items: start;
    }

    .announcement {
        padding: var(--space-md);
    }

    .product-card {
        width: clamp(120px, 25vw, 180px);
    }

    .product-image {
        height: clamp(90px, 18vw, 150px);
    }

    .offer-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .product-feed {
        padding: var(--space-sm);
        gap: var(--space-sm);
    }

    .announcement {
        padding: var(--space-sm);
    }

    .product-card {
        width: clamp(100px, 28vw, 160px);
    }

    .product-image {
        height: clamp(70px, 20vw, 130px);
    }

    .scroll-btn {
        padding: var(--space-xl) var(--space-sm);
        font-size: 1rem;
    }

    .view-all-btn {
        padding: 0.375rem var(--space-md);
        font-size: 0.75rem;
    }

    .title,
    .offer,
    .subtitle {
        font-size: 0.75rem;
    }

    .announcement-left {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
    }
}