@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Light.woff2') format('woff2');
    font-weight: 300; font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400; font-style: normal;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/packages/pretendard/dist/web/static/woff2/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500; font-style: normal;
}
@font-face {
    font-family: 'Barlow';
    src: url('https://fonts.googleapis.com/css2?family=Barlow:wght@600&display=swap');
    font-weight: 600;
    font-style: normal;
}

/* Main Section Container */
.product-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    width: 1440px;
    max-width: 100%;
    margin: 120px auto 0;
    opacity: 1;
    transform: none;
}

.product-section.visible {
    opacity: 1;
    transform: none;
}

/* Section Title */
.product-section-title {
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 40px;
    line-height: 130%;
    letter-spacing: 0.035em;
    color: #000000;
    margin: 0;
    text-align: center;
}

/* Header Section */
.header-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    gap: 48px;
    width: 1440px;
    max-width: 100%;
    height: 52px;
    opacity: 0;
    transform: translateY(24px);
}

.header-title {
    width: 310px;
    height: 52px;
    font-family: 'Barlow', 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 40px;
    line-height: 130%;
    letter-spacing: 0.035em;
    color: #242424;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.header-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 24px;
    width: auto;
    height: 32px;
    filter: drop-shadow(0px 2px 32px rgba(0, 0, 0, 0.07));
    border-radius: 88px;
}

.platform-logo {
    height: 32px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.platform-logo img {
    width: 100%;
    height: 32px;
    display: block;
    object-fit: contain;
}

.platform-logo.shopee {
    width: 97px;
}

.platform-logo.lazada {
    width: 147px;
}

.platform-logo.tiktok {
    width: 179px;
}

.divider {
    width: 1px;
    height: 15px;
    background-color: #E3E4E6;
    flex-shrink: 0;
}

/* Cards Row */
.cards-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0 80px;
    gap: 32px;
    width: 1440px;
    max-width: 100%;
    position: relative;
    margin: 0 auto;
    height: auto;
    overflow: visible;
}

/* Swiper */
.product-swiper {
    width: 100%;
    height: auto !important;
    overflow: visible;
}

.product-swiper .swiper-wrapper {
    height: auto !important;
    align-items: stretch;
    overflow: visible;
}

.product-swiper .swiper-slide {
    height: auto !important;
    display: flex;
    align-items: stretch;
    flex: 0 0 296px;
    width: 296px !important;
    max-width: none;
    overflow: visible;
    opacity: 1;
    transform: none;
}

.product-section:not(.initial-animation-complete) .product-swiper .swiper-slide:nth-child(-n+4) {
    opacity: 0;
    transform: translateY(24px);
}

.product-section .nav-arrows {
    opacity: 0;
    transform: translateY(16px);
}

.product-section.visible .header-section {
    animation: productHomeFadeUp 2s ease forwards;
}

.product-section.visible:not(.initial-animation-complete) .product-swiper .swiper-slide:nth-child(-n+4) {
    animation: productHomeFadeUp 1.05s ease forwards;
}

.product-section.visible:not(.initial-animation-complete) .product-swiper .swiper-slide:nth-child(1) {
    animation-delay: 0.36s;
}

.product-section.visible:not(.initial-animation-complete) .product-swiper .swiper-slide:nth-child(2) {
    animation-delay: 0.58s;
}

.product-section.visible:not(.initial-animation-complete) .product-swiper .swiper-slide:nth-child(3) {
    animation-delay: 0.8s;
}

.product-section.visible:not(.initial-animation-complete) .product-swiper .swiper-slide:nth-child(4) {
    animation-delay: 1.02s;
}

.product-section.initial-animation-complete .product-swiper .swiper-slide {
    opacity: 1;
    transform: none;
    animation: none;
}

.product-section.visible .nav-arrows {
    animation: productHomeFadeUp 0.64s ease forwards;
    animation-delay: 1.78s;
}

@keyframes productHomeFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card */
.card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    width: 296px;
    height: auto;
    min-height: 0;
    overflow: visible;
    flex-shrink: 0;
    cursor: pointer;
}

/* Picture */
.card-picture {
    position: relative;
    width: 296px;
    height: 296px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #e8eef3;
}

.card-picture::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.18));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.card-picture img,
.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .placeholder-img,
.card:hover .card-picture img {
    transform: scale(1.1);
}

.card:hover .card-picture::after {
    opacity: 1;
}

/* Tags - above picture */
.tags {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.tag {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px 12px;
    gap: 10px;
    min-width: 58px;
    height: 23px;
    background: var(--primary-color);
    flex-shrink: 0;
}

.tag-text {
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 300;
    font-size: 15px;
    line-height: 100%;
    letter-spacing: 0.035em;
    color: inherit;
}

/* Card info */
.card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 12px;
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 20px;
    overflow: visible;
}

.card-volume {
    font-family: 'Barlow', 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0.035em;
    color: #C0C0C2;
    margin: 0;
}

/* Product name */
.card-name {
    font-family: 'Barlow', 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 130%;
    letter-spacing: 0.035em;
    color: #242424;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Pricing */
.card-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    width: 100%;
}

.card-meta-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.card-original-price {
    font-family: 'Barlow', 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0.035em;
    text-decoration: line-through;
    color: #C0C0C2;
}

.product-section .card-discount-row--no-original {
    flex-direction: column;
    align-items: flex-start;
}

.product-section .card-discount-row--no-original .card-volume {
    margin-right: 0;
    text-align: right;
}

.card-discount-row {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 8px;
    width: 100%;
}

.card-discount-row .card-volume {
    margin-left: auto;
    flex-shrink: 0;
    text-align: right;
}

.card-discount-pct {
    font-family: 'Barlow', 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 130%;
    letter-spacing: 0.035em;
    color: #FF2B2B;
}

.card-sale-price {
    font-family: 'Barlow', 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 130%;
    letter-spacing: 0.035em;
    color: #242424;
    flex-grow: 1;
}

/* Volume (legacy) */
.card-size {
    font-family: 'Pretendard', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0.035em;
    color: #808080;
    width: 100%;
    margin: 0;
}

/* Placeholder */
.placeholder-img {
    background: linear-gradient(135deg, #ddeaf7 0%, #b8d3ed 60%, #9abfdf 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Nav arrows */
.nav-arrows {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 1440px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.4;
    pointer-events: none;
    z-index: 10;
}

.arrow-btn {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    background: none;
    border: none;
    padding: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.arrow-btn:hover {
    opacity: 0.6;
}

/* Empty State */
.product-empty-state {
    text-align: center;
    padding: 60px 20px;
    border-radius: 18px;
    margin: 20px 0;
}

.product-empty-state h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.product-empty-state p {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 1439px) {
    .product-section {
        width: 100%;
        padding: 0;
    }

    .header-section {
        width: 100%;
        padding: 0 40px;
    }

    .cards-row {
        width: 100%;
        padding: 0 40px;
    }

    .nav-arrows {
        width: 100%;
    }

    .product-swiper .swiper-slide {
        flex: 0 0 265px;
        width: 265px !important;
    }

    .card {
        width: 265px;
    }
}

@media (max-width: 1023px) {
    .header-section {
        padding: 0;
        gap: 24px;
    }

    .header-title {
        font-size: 32px;
        width: auto;
    }

    .header-links {
        width: auto;
        gap: 12px;
    }

    .platform-logo.shopee {
        width: 70px;
    }

    .platform-logo.lazada {
        width: 100px;
    }

    .platform-logo.tiktok {
        width: 120px;
    }

    .product-swiper .swiper-slide {
        flex: 0 0 334px;
        width: 334px !important;
    }

    .card {
        width: 334px;
    }

    .card-picture {
        height: 280px;
    }

    .arrow-btn {
        width: 60px;
        height: 60px;
    }

    .arrow-btn svg {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .product-section {
        padding: 0;
        gap: 32px;
    }

    .header-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        gap: 16px;
        height: auto;
    }

    .header-title {
        font-size: 26px;
        height: auto;
        width: 100%;
    }

    .header-links {
        width: 100%;
        gap: 24px;
        height: auto;
    }

    .platform-logo.shopee {
        width: 70px;
    }

    .platform-logo.lazada {
        width: 100px;
    }

    .platform-logo.tiktok {
        width: 120px;
    }

    .cards-row {
        padding: 0;
    }

    .nav-arrows {
        display: none;
    }

    .product-swiper .swiper-slide {
        flex: 0 0 100%;
        width: 100% !important;
    }

    .card {
        width: 100%;
        height: auto;
    }

    .card-picture {
        height: 300px;
    }
}

@media (min-width: 1200px) and (max-width: 1439px) {
    .product-section,
    .product-section.visible.initial-animation-complete {
        width: 100%;
        margin-top: 80px;
        gap: 40px;
    }

    .product-section .header-section,
    .product-section .cards-row {
        width: 1150px;
        padding-left: 75px;
        padding-right: 75px;
        margin-left: auto;
        margin-right: auto;
    }

    .product-section .product-swiper .swiper-slide,
    .product-section .card,
    .product-section .card-picture,
    .product-section .card-info {
        width: 260px !important;
    }

    .product-section .product-swiper .swiper-slide {
        flex-basis: 260px;
    }

    .product-section .card-picture {
        height: 260px;
    }

    .product-section .nav-arrows {
        width: 1150px;
        height: 70px;
    }

    .product-section .arrow-btn {
        width: 70px;
        height: 70px;
    }

    .product-section .arrow-btn svg {
        width: 70px;
        height: 70px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .product-section,
    .product-section.visible.initial-animation-complete {
        width: 100%;
        margin-top: 64px;
        gap: 48px;
    }

    .product-section .header-section,
    .product-section .cards-row {
        padding-left: 24px;
        padding-right: 24px;
    }

    .product-section .header-title {
        width: 217px;
        height: 36px;
        font-family: 'Pretendard', sans-serif;
        font-weight: 600;
        font-size: 28px;
        line-height: 130%;
        letter-spacing: 0.035em;
    }

    .product-section .header-section {
        height: 36px;
        gap: 48px;
    }

    .product-section .header-links {
        width: auto;
        height: 32px;
        gap: 24px;
    }

    .product-section .platform-logo img {
        width: 100%;
        height: 32px;
        object-fit: contain;
    }

    .product-section .platform-logo.shopee,
    .product-section .platform-logo.lazada,
    .product-section .platform-logo.tiktok {
        height: 32px;
        overflow: hidden;
    }

    .product-section .platform-logo.shopee {
        width: 32px;
        --platform-logo-mobile-width: 97px;
    }

    .product-section .platform-logo.lazada {
        width: 40px;
        --platform-logo-mobile-width: 147px;
    }

    .product-section .platform-logo.tiktok {
        width: 25px;
        --platform-logo-mobile-width: 179px;
    }

    .product-section .platform-logo.shopee img,
    .product-section .platform-logo.lazada img,
    .product-section .platform-logo.tiktok img {
        width: var(--platform-logo-mobile-width);
        height: 32px;
        max-width: none;
        object-fit: contain;
        object-position: left center;
    }

    .product-section .cards-row {
        gap: 16px;
    }

    .product-section .nav-arrows {
        display: none;
    }

    .product-section .product-swiper .swiper-slide {
        flex-basis: 240px;
        width: 240px !important;
    }

    .product-section .card {
        width: 240px;
        height: auto;
    }

    .product-section .card-picture {
        width: 240px;
        height: 240px;
    }

    .product-section .card-info {
        width: 240px;
        gap: 12px;
        margin-top: 20px;
    }

    .product-section .card-name {
        font-family: 'Pretendard', sans-serif;
        font-weight: 500;
        font-size: 18px;
        line-height: 130%;
        letter-spacing: 0.035em;
    }

    .product-section .card-original-price {
        font-family: 'Pretendard', sans-serif;
        font-weight: 400;
        font-size: 16px;
        line-height: 130%;
        letter-spacing: 0.035em;
    }

    .product-section .card-volume {
        font-family: 'Pretendard', sans-serif;
        font-weight: 400;
        font-size: 14px;
        line-height: 130%;
        letter-spacing: 0.035em;
        text-align: right;
    }

    .product-section .card-discount-pct,
    .product-section .card-sale-price {
        font-family: 'Pretendard', sans-serif;
        font-weight: 600;
        font-size: 16px;
        line-height: 130%;
        letter-spacing: 0.035em;
    }
}

@media (max-width: 767px) {
    .product-section {
        --product-mobile-card-width: calc((100vw - 40px) / 2);
    }

    .product-section,
    .product-section.visible.initial-animation-complete {
        width: 100%;
        margin-top: 64px;
        gap: 48px;
        padding-left: 0;
        padding-right: 0;
    }

    .product-section .header-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .product-section .product-swiper {
        padding-inline: 16px;
    }

    .product-section .header-section {
        gap: 20px;
    }

    .product-section .header-title {
        font-size: 24px;
        line-height: 130%;
    }

    .product-section .header-links {
        width: auto;
        height: 24px;
        gap: 24px;
        max-width: 100%;
        overflow: visible;
    }

    .product-section .platform-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .product-section .platform-logo.shopee,
    .product-section .platform-logo.lazada,
    .product-section .platform-logo.tiktok {
        height: 24px;
        overflow: hidden;
    }

    .product-section .platform-logo.shopee {
        width: 24px;
        --platform-logo-mobile-width: 73px;
    }

    .product-section .platform-logo.lazada {
        width: 30px;
        --platform-logo-mobile-width: 110px;
    }

    .product-section .platform-logo.tiktok {
        width: 19px;
        --platform-logo-mobile-width: 134px;
    }

    .product-section .platform-logo.shopee img,
    .product-section .platform-logo.lazada img,
    .product-section .platform-logo.tiktok img {
        width: var(--platform-logo-mobile-width);
        height: 24px;
        max-width: none;
        object-fit: contain;
        object-position: left center;
    }

    .product-section .nav-arrows,
    .product-section.visible .nav-arrows {
        display: none !important;
    }

    .product-section .product-swiper .swiper-wrapper {
        height: auto;
        align-items: stretch;
    }

    .product-section .tag {
        width: auto;
        min-width: 0;
        height: 21px;
        padding: 4px 12px !important;
    }

    .product-section .tag-text {
        font-size: 13px;
        line-height: 100%;
        white-space: nowrap;
    }

    .product-section .product-swiper .swiper-slide {
        flex-basis: var(--product-mobile-card-width);
        width: var(--product-mobile-card-width) !important;
        height: auto;
        margin-right: 8px !important;
    }

    .product-section .card {
        width: var(--product-mobile-card-width);
        height: auto;
    }

    .product-section .card-picture {
        width: var(--product-mobile-card-width);
        height: var(--product-mobile-card-width);
    }

    .product-section .card-info {
        width: var(--product-mobile-card-width);
        margin-top: 12px;
        gap: 8px;
    }

    .product-section .card-name {
        font-family: 'Pretendard', sans-serif;
        font-weight: 500;
        font-size: 16px;
        line-height: 130%;
        letter-spacing: 0.035em;
    }

    .product-section .card-original-price {
        font-family: 'Pretendard', sans-serif;
        font-weight: 400;
        font-size: 13px;
        line-height: 130%;
        letter-spacing: 0.035em;
        text-decoration: line-through;
    }

    .product-section .card-volume {
        font-family: 'Pretendard', sans-serif;
        font-weight: 400;
        font-size: 13px;
        line-height: 130%;
        letter-spacing: 0.035em;
        align-self: flex-start;
        width: auto;
        text-align: left;
    }

    .product-section .card-discount-row--no-original .card-volume {
        margin-left: 0;
        text-align: left;
    }

    .product-section .card-meta-row {
        flex-direction: column-reverse;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 4px;
    }

    .product-section .card-pricing,
    .product-section .card-discount-row {
        gap: 8px;
    }

    .product-section .card-discount-pct,
    .product-section .card-sale-price {
        font-family: 'Pretendard', sans-serif;
        font-weight: 600;
        font-size: 15px;
        line-height: 130%;
        letter-spacing: 0.035em;
    }
}

@media (max-width: 1199px) {
    .product-section .nav-arrows,
    .product-section.visible .nav-arrows,
    .product-section .arrow-btn {
        display: none !important;
    }
}
