@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 10%;
    background-color: #ffffff;
    border-bottom: 1px solid #ddd;
}

.logo img {
    height: 30px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a,
.nav-icons a {
    font-weight: 500;
    font-size: 1rem;
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-icons {
    display: flex;
    gap: 16px;
    font-size: 24px;
    color: #000;
    cursor: pointer;
}

.nav-links a:hover,
.nav-icons a:hover {
    color: #d63384;
}

/* Hero Banner */
.promo-banner {
    display: block;
    width: 80%;
    margin: 50px auto;
    min-height: 300px;
    height: auto;
    position: relative;
    background-image: url('/resources/hero01.jpg');
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: opacity 0.3s ease;
}

.promo-banner:hover {
    opacity: 0.95;
}

.banner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    max-width: 600px;
    padding: 80px;
}

h1 {
    font-size: 3.2rem;
    font-weight: 400;
}

.banner-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 24px;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    width: fit-content;
    max-width: max-content;
    align-self: flex-start;
    color: #fff;
    padding: 12px 24px;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #d63384;
    border-color: #d63384;
}

/* Hero Banner */

/* Carousel */
.product-carousel {
    margin: 60px auto;
    width: 80%;
}

.carousel-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 24px;
    text-align: left;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0;
}

.carousel-track {
    display: flex;
    gap: 16px;
    padding: 0;
    transition: transform 0.4s ease;
}

.carousel-arrow {
    background-color: #fff;
    border: 0 solid #ccc;
    font-size: 24px;
    padding: 8px;
    z-index: 2;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
    background-color: #f0f0f0;
}

.product-card {
    flex: 0 0 auto;
    width: calc((100% - (16px * 3)) / 4);
    max-width: 100%;
    padding: 16px;
    background-color: #fff;
    border: 0 solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}


.image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #d63384;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.price-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.sale-price {
    color: #d63384;
    font-weight: bold;
    font-size: 1rem;
}

.product-info .brand {
    font-weight: 600;
    font-size: 0.8rem;
    color: #444;
    margin-top: 12px;
}

.product-info .name {
    font-size: 0.9rem;
    margin: 4px 0;
    color: #222;
}

.product-info .price {
    font-weight: bold;
    color: #000;
}

.gift-tag {
    font-size: 0.75rem;
    margin-top: 4px;
    display: inline-block;
}

.gift-tag.pink {
    color: #d63384;
    font-weight: 600;
}

.rating {
    font-size: 0.8rem;
    color: #ffbb00;
    margin-top: 4px;
}

.add-to-bag {
    margin-top: 12px;
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 10px 0;
    border-radius: 4px;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-bag:hover {
    background-color: #d63384;
}

/* Carousel */

/* By Category */
.category-section {
    width: 80%;
    margin: 80px auto;
    text-align: center;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 32px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.category-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.category-card h3 {
    padding: 16px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

/* By Category */

/* Countdown */
.countdown-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    margin: 80px auto;
    gap: 80px;
    flex-wrap: wrap;
}

.promo-left,
.promo-right {
    flex: 1 1 100%;
    max-width: 100%;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    color: #d63384;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.promo-title {
    margin-bottom: 24px;
}

.countdown-timer {
    display: flex;
    gap: 16px;
    margin-bottom: 34px;
}

.time-box {
    text-align: center;
    background-color: #f3f3f3;
    padding: 12px 16px;
    border-radius: 8px;
}

.time-box span {
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    color: #000;
}

.time-box label {
    font-size: 0.75rem;
    color: #666;
}

.countdown-promo .cta-button {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid #000;
    background-color: transparent;
    color: #000;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #d63384;
    color: #fff;
    border-color: #d63384;
}


.promo-right img {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    object-fit: cover;
}

/* Countdown */

@media (min-width: 769px) {
    .countdown-promo {
        flex-wrap: nowrap;
        gap: 60px;
    }

    .promo-left,
    .promo-right {
        flex: 1 1 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .banner-content {
        padding: 40px;
    }

    .promo-banner {
        height: auto;
    }

    h1 {
        font-size: 2rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    .product-card {
        width: calc((100% - 16px) / 2);
    }

    .promo-right img {
        height: auto;
        margin-top: 32px;
    }

    .countdown-promo {
        gap: 20px;
    }

    .countdown-timer {
        flex-wrap: wrap;
        justify-content: center;
    }

    .time-box {
        min-width: 80px;
        margin-bottom: 12px;
    }
}

@media (max-width: 480px) {
    .banner-content {
        padding: 24px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .banner-content p {
        font-size: 0.95rem;
    }

    .product-card {
        width: 100%;
    }
}