h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
    font-family: 'Manrope', sans-serif;
}

button:hover {
  cursor: pointer;
}

.mobile-menu {
    padding: 2rem;
}

header.bg-gray-dark {
    background:
        radial-gradient(circle at 82% 20%, rgba(245, 204, 133, 0.38) 0 5%, transparent 18%),
        radial-gradient(ellipse at 18% 120%, rgba(169, 196, 151, 0.30) 0 24%, transparent 25%),
        linear-gradient(135deg, rgba(20, 74, 58, 0.96), rgba(34, 92, 73, 0.96)),
        repeating-linear-gradient(115deg, transparent 0 38px, rgba(225, 238, 218, 0.045) 39px 41px);
    background-size: auto, auto, auto, 82px 82px;
    border-bottom: 1px solid rgba(226, 238, 215, 0.14);
}

.brand-phone {
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.store-contact-phone {
    display: inline-block;
    margin-top: 0.75rem;
    color: #245c49;
    font-weight: 700;
}

.content-load-notice {
    position: relative;
    z-index: 1000;
    padding: 0.75rem 1rem;
    background: #fff4d6;
    color: #573d00;
    text-align: center;
    font-size: 0.9rem;
}

.category-brand-slide {
    min-height: 9rem;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
}

.category-brand-slide img {
    width: 100%;
    height: 5rem;
    object-fit: contain;
}

.category-brand-slide span {
    font-size: 0.875rem;
    font-weight: 600;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

header .container > a:first-child img {
    display: block;
    width: clamp(10rem, 52vw, 15rem);
    max-height: 5rem;
    height: auto;
    object-fit: contain;
}

footer img[src*="moc-nhien-beauty-logo"] {
    display: block;
    width: min(100%, 16rem);
    max-height: 8rem;
    height: auto;
    object-fit: contain;
}

#subscribe .w-96 {
    width: 100%;
    max-width: 24rem;
}

#banner .flex.space-x-4 {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

#banner .flex.space-x-4 > * {
    margin: 0;
}

.dropdown-enter-active,
.dropdown-leave-active {
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}
.dropdown-enter-from,
.dropdown-leave-to {
    opacity: 0;
    transform: scale(0.9);
}

.mobile-menu ul {
    width: 100%;
    text-align: center;
}

.mobile-menu li {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.mobile-dropdown-menu li{
    border-bottom: none;
    border-top: 1px solid #e0e0e0;
}

.mobile-dropdown-menu li:last-child {
    padding-bottom: 0;
}

.mobile-dropdown-menu{
   margin-top: 12px;
}

/* .group:hover h3,
.group:hover p {
    color: #ffffff;
} */

@keyframes scaleUp {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

.group-hover\:scale-120:hover {
    animation: scaleUp 0.3s forwards;
}

@keyframes slideDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-slide-down {
    animation: slideDown 0.3s forwards;
}

/* home page */
.hero-video-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.75rem, 1.8vw, 1.5rem);
    padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 4vw, 4rem);
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 20%, rgba(245, 204, 133, 0.16), transparent 38%),
        linear-gradient(135deg, #173e32, #285b46);
}

.hero-video-heading {
    grid-column: 1 / -1;
    justify-self: start;
    margin: 0;
    padding-left: 1rem;
    border-left: 3px solid #e7c783;
    color: #fff4d6;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.6rem);
    font-weight: 700;
    font-style: italic;
    letter-spacing: 0.015em;
    line-height: 1.2;
    text-align: left;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

.hero-media-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    justify-content: center;
}

.hero-media-frame {
    display: grid;
    width: min(100%, 18rem);
    max-width: 100%;
    aspect-ratio: 9 / 16;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(235, 239, 218, 0.8);
    border-radius: 1rem;
    background: #101713;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.hero-media-link {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.hero-media-link:focus-visible {
    border-radius: 1rem;
    outline: 3px solid #e7c783;
    outline-offset: 3px;
}

.hero-media-link:hover .hero-media-name {
    color: #fff8e6;
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.hero-media-frame > img,
.hero-media-frame > video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-media-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    align-content: center;
    justify-items: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0.5rem;
    color: #fff;
    font-size: clamp(0.7rem, 1.3vw, 0.95rem);
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-align: center;
}

.hero-media-placeholder span {
    color: #dce8d7;
    font-size: 0.8em;
    font-weight: 500;
}

.hero-media-name {
    display: grid;
    min-height: 2.5rem;
    place-items: center;
    margin: 0;
    color: #f4e3b5;
    font-family: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    font-size: clamp(0.9rem, 1.35vw, 1.1rem);
    font-style: italic;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1023px) {
    .hero-video-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    header .container {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .hero-media-frame {
        width: min(100%, 12rem);
        border-radius: 0.7rem;
    }

    #brands h2 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    #banner .relative.flex {
        padding: 2rem 0.75rem;
    }

    #banner h2 {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    header .container > a:first-child img {
        width: 10rem;
    }

    header nav ul {
        gap: 0.5rem;
        font-size: 0.875rem;
    }
}

.brands-swiper-slider .swiper-button-prev, .brands-swiper-slider .swiper-button-next{
    color: #ff0042;
}

.brands-swiper-slider .swiper-button-next{
    right: 0;
}

.brands-swiper-slider .swiper-button-prev{
    left: 0;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 16px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .swiper-slide {
        padding: 25px;
    }
}

@media (max-width: 1023px) {

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}

img.cursor-pointer:hover {
    opacity: 0.8;
}

/* single product tabs */
.tab {
    padding: 0.5rem 1rem;
    color: #010717; 
    border-bottom-width: 2px;
    border-color: transparent;
    font-size: 1rem;
    font-weight: 500; 
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab:hover {
    color: #323232; 
    border-color: #ff0042; 
}
.tab.active {
    color: #ff0042; 
    border-color: #ff0042;
}
.tab-content {
    display: none;
}
.tab-content:not(.hidden) {
    display: block;
}


.custom-checkbox {
    appearance: none;
    background-color: #fff;
    border: 1px solid #d1d5db;
    padding: 0.5rem;
    display: inline-block;
    position: relative;
    cursor: pointer;
    outline: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
}

.custom-checkbox:checked {
    background-color: #ff0042;
    border-color: #ff0042;
}

.product-image-frame {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: #f8fafc;
}

#latest-products .flex.flex-wrap > div {
    display: flex;
}

#latest-products .flex.flex-wrap > div > .bg-white {
    display: flex;
    flex: 1;
    flex-direction: column;
}

#latest-products .flex.flex-wrap > div > .bg-white > button {
    margin-top: auto;
}

