:root {
    --primary-text: #E84393; /* Rich Pink */
    --secondary-text: #F472B6; /* Light Pink */
    --bg-color: #FAF8F5; /* Warm Off-White / Cream background */
    --white: #ffffff;
    --light-gray: #E2E8F0; /* Clean light gray for borders */
    --accent: #E84393;
    --hover-bg: #FDF2F8; /* Extremely subtle pink hover */
    --button-bg: #E84393; /* Pink button */
    --button-text: #ffffff;
    --button-hover: #BE185D; /* Darker Pink hover */
}

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

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 15px;
    color: var(--primary-text);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: -0.5px;
}

/* Navbar */
.navbar-wrapper {
    background-color: transparent;
    position: sticky;
    top: 20px;
    z-index: 1000;
    height: 0;
    padding: 0;
}

.navbar-pill {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 50px;
    /* Pill shape */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    /* Stronger shadow to stand out over images */
    transition: all 0.3s ease;
}

.navbar-pill.scrolled {
    background: var(--primary-text);
    box-shadow: 0 8px 25px rgba(232, 67, 147, 0.2);
}

.navbar-pill.scrolled .nav-links a.text-link,
.navbar-pill.scrolled .center-links a {
    color: var(--white);
}

.navbar-pill.scrolled .nav-links a:hover {
    color: #FDF2F8; /* Sáng hơn màu light-gray trắng để nổi bật trên nền hồng */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.navbar-pill.scrolled .custom-text-logo {
    color: var(--white);
}

.navbar-pill.scrolled .logo-symbol {
    background-color: var(--white);
    color: var(--primary-text);
}

.navbar-pill.scrolled .nav-icons a {
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a.text-link,
.center-links a {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--primary-text);
}

.center-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.right-links {
    gap: 1.5rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-text);
}

.center-links a {
    position: relative;
}

.center-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-text);
}

.navbar-pill.scrolled .center-links a.active::after {
    background-color: var(--white);
}

.brand-logo {
    display: flex;
    align-items: center;
}

.custom-text-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    color: var(--primary-text);
    text-decoration: none;
}

.logo-symbol {
    background-color: var(--primary-text);
    color: var(--white);
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.5px;
}

.custom-text-logo span {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    text-transform: lowercase;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
}

.nav-icons a {
    color: var(--primary-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.nav-icons a:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.hero-pagination {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-dot.active {
    background: var(--white);
    transform: scale(1.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    font-size: 0.95rem;
    background-color: var(--button-bg);
    color: var(--button-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border: 2px solid var(--button-bg);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.6s ease;
    z-index: -1;
}

.btn:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.btn:hover {
    background-color: var(--white);
    color: var(--primary-text);
    border-color: var(--primary-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(232, 67, 147, 0.15);
}

.btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 0 0 4px rgba(232, 67, 147, 0.3);
    border: 2px solid var(--primary-text);
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(232, 67, 147, 0.4);
}

.btn-white {
    background: var(--white);
    color: var(--primary-text);
}

.btn-white:hover {
    background: var(--hover-bg);
}

.btn-outline {
    background: var(--primary-text);
    color: var(--white);
    border: 2px solid var(--primary-text);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-text);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(232, 67, 147, 0.15);
}

.btn-outline::after {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Sections */
.section-padding {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Category Circle Cards */
.category-circle-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.category-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100px; /* Thu nhỏ thẻ chứa còn 2/3 */
    transition: transform 0.3s ease;
}

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

.category-circle-image-wrapper {
    width: 90px; /* Bằng 2/3 so với 140px cũ */
    height: 90px; /* Bằng 2/3 so với 140px cũ */
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 0.6rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
    background-color: #FFFFFF;
    border: 2px solid #FAD3E0; /* Viền hồng nhạt tương tự khối Box để đồng bộ */
    transition: border-color 0.3s ease;
}

.category-circle-card:hover .category-circle-image-wrapper {
    border-color: var(--primary-text);
}

.category-circle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-circle-card:hover .category-circle-image {
    transform: scale(1.1);
}

.category-circle-title {
    font-size: 0.85rem; /* Thu nhỏ phông chữ tên danh mục 2/3 */
    font-weight: 600;
    color: var(--primary-text);
}
.products-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.filter-sidebar {
    width: 280px;
    background: var(--white);
    padding: 2.2rem;
    border-radius: 24px;
    border: 1px solid #FAD3E0;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.search-wrapper {
    position: relative;
    margin-bottom: 2.5rem;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border-radius: 50px;
    border: 1.5px solid #F3F4F6;
    background-color: #F9FAFB;
    font-size: 0.9rem;
    color: var(--primary-text);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 4px rgba(232, 67, 147, 0.08);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
}

.filter-section {
    margin-bottom: 2.5rem;
}

.filter-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-list {
    list-style: none;
}

.filter-item {
    margin-bottom: 0.1rem;
}

.filter-checkbox-item {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.6rem 0;
    cursor: pointer;
    font-size: 0.95rem;
    color: #4b5563;
    transition: all 0.2s ease;
    user-select: none;
}

.filter-checkbox-item:hover {
    color: var(--primary-text);
}

.filter-checkbox-item input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #E2E8F0;
    border-radius: 6px;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.filter-checkbox-item:hover input ~ .checkmark {
    border-color: #FAD3E0;
}

.filter-checkbox-item input:checked ~ .checkmark {
    background-color: var(--primary-text);
    border-color: var(--primary-text);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.filter-checkbox-item input:checked ~ .checkmark:after {
    display: block;
}

.filter-checkbox-item .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.filter-count {
    background: var(--hover-bg);
    color: var(--primary-text);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.products-content {
    flex: 1;
}

@media screen and (max-width: 991px) {
    .products-layout {
        flex-direction: column;
        gap: 2rem;
    }
    .filter-sidebar {
        width: 100%;
        position: static;
        padding: 1.5rem;
    }
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: #FFFFFF; /* Nền hộp màu trắng tinh để tách biệt với nền kem */
    border-radius: 24px; /* Tăng độ bo tròn góc thẻ sản phẩm */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* Đổ bóng xung quanh rõ hơn để Box tách nền */
    border: 1px solid #FAD3E0; /* Đường viền hồng nhạt giúp nhận diện rõ Box sản phẩm */
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(232, 67, 147, 0.15); /* Bóng hồng nổi bật khi Hover */
    border-color: var(--primary-text); /* Viền đậm hơn khi Hover */
}

.product-image-container {
    background-color: #f9f9f9;
    overflow: hidden;
    position: relative;
    width: 100%;
    position: relative;
    padding-top: 85%; /* Aspect Ratio reduced for compact height */
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card:hover .product-image {
    transform: scale(1.08);
}

.product-info {
    padding: 1rem 1.25rem 1.25rem; /* Reduced from 1.5rem */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.7rem;
    color: var(--primary-text);
    background-color: var(--hover-bg);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    width: fit-content;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem; /* Reduced from 0.75rem */
    font-weight: 700;
    border: 1px solid rgba(232, 67, 147, 0.1);
}

.product-title {
    font-size: 1.05rem;
    margin-bottom: 0.3rem; /* Reduced from 0.4rem */
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.6rem; /* Reduced from 0.75rem */
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7em; /* Keep uniform height even with 1 line */
}

.product-price {
    font-weight: 700;
    color: var(--primary-text);
    font-size: 1.15rem;
    margin-bottom: 0.8rem; /* Reduced from 1rem */
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: var(--hover-bg);
    color: var(--primary-text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: translateY(-5px);
    background-color: var(--primary-text);
    color: var(--white);
}

.feature-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.feature-item p {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Promo Layout */
.promo-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.promo-image {
    flex: 1;
    min-width: 300px;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.promo-content {
    flex: 1;
    padding: 4rem;
    min-width: 300px;
    position: relative; /* For stickers */
}

/* Dynamic Pink Stickers */
.sticker {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 5px 15px rgba(232, 67, 147, 0.2));
}

.sticker-star {
    animation: float 4s ease-in-out infinite, spin 10s linear infinite;
    top: 10%;
    right: 5%;
}

.sticker-blob {
    animation: pulse-pink 5s ease-in-out infinite;
    bottom: 5%;
    left: -10%;
    opacity: 0.15;
}

.sticker-sparkle {
    animation: sparkle-glow 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse-pink {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

@keyframes sparkle-glow {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Animated Intro Checkmarks */
.promo-check-animated {
    animation: check-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

@keyframes check-pop {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.promo-item-box {
    padding: 0.8rem;
    background: #FFF5F8;
    border-radius: 12px;
    border: 1px solid #FFE4ED;
    transition: all 0.3s ease;
}

.promo-item-box:hover {
    transform: translateX(5px);
    background: #FFEDF3;
    border-color: var(--primary-pink);
}

/* Testimonial Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #FFFFFF;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid #FAD3E0;
    text-align: left;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(232, 67, 147, 0.08);
}

.stars {
    color: #FBBF24;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    color: #4b5563;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.reviewer {
    font-weight: 600;
    color: var(--primary-text);
    font-size: 1rem;
}

/* Footer */
.footer {
    background: var(--primary-text); /* Đổi màu nền sang hồng Rich Pink */
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.footer-col a {
    display: block;
    color: #FDF2F8; /* Màu hồng cực sáng thay cho xám */
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-col.newsletter p {
    color: #FDF2F8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.subscribe-form {
    display: flex;
}

.subscribe-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    font-family: 'Be Vietnam Pro', sans-serif;
    color: #111;
}

.subscribe-form button {
    padding: 0.8rem 1.5rem;
    background: #BE185D; /* Tông màu hồng sẫm bordeaux cho Nút bấm */
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s;
}

.subscribe-form button:hover {
    background: #9D174D;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Viền mờ đi để lịch sự trên nền hồng */
    padding-top: 2rem;
    color: #FAD3E0;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeIn 0.8s ease forwards;
}

/* Decorative Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

@keyframes pulse-soft {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 67, 147, 0.4); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(232, 67, 147, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 67, 147, 0); }
}

.animate-pulse {
    animation: pulse-soft 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.btn-shine-effect {
    position: relative;
    overflow: hidden;
}

.btn-shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: shine 4s infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-gradient {
    background: linear-gradient(-45deg, #E84393, #F472B6, #ff758c, #ff7eb3);
    background-size: 400% 400%;
    animation: gradientBG 8s ease infinite;
    color: white !important;
    border: none !important;
}

/* Background patterns */
.pattern-dots {
    background-image: radial-gradient(var(--light-gray) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Scroll Animations (Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.fade-left {
    transform: translateX(-40px) translateY(0);
}

.reveal.fade-right {
    transform: translateX(40px) translateY(0);
}

.reveal.zoom-in {
    transform: scale(0.95);
}

.reveal.fade-left.active, 
.reveal.fade-right.active,
.reveal.zoom-in.active {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
}

/* Delay classes for staggered animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1100;
    margin-right: 1rem;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--primary-text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-pill.scrolled .menu-toggle span {
    background-color: var(--white);
}

/* Open state for toggle */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay/Backdrop */
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -85%; /* Hidden off-screen right */
    width: 85%;
    height: 100vh;
    background: var(--white);
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.menu-close {
    color: #333;
    transition: transform 0.2s;
}

.menu-close:hover {
    transform: rotate(90deg);
}

.mobile-links-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-menu a {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    width: fit-content;
    padding-bottom: 5px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.mobile-menu a.active {
    color: var(--primary-text);
    border-bottom-color: var(--primary-text);
}

.mobile-btn {
    display: block !important;
    width: 100% !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 50px !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: none;
    box-sizing: border-box;
}

.mobile-btn-primary {
    background: var(--primary-text) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(232, 67, 147, 0.2);
}

.mobile-btn-outline {
    background: white !important;
    color: var(--primary-text) !important;
    border: 1.5px solid var(--primary-text) !important;
}

.mobile-btn-logout {
    background: #F3F4F6 !important;
    color: #4B5563 !important;
    border: 1px solid #E5E7EB !important;
    font-weight: 600 !important;
    margin-top: 5px;
}

.mobile-user-card-new {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    background: #FFF5F8;
    border-radius: 18px;
    border: 1px solid #FFE4ED;
    margin-bottom: 0.5rem;
}

.mobile-user-card-new img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05);
}

.mobile-user-card-new .user-name {
    font-weight: 800;
    color: var(--primary-text);
    font-size: 0.9rem;
}


/* Tablet & Mobile (Standard) */
@media screen and (max-width: 1024px) {
    .navbar-pill {
        width: 95%;
        padding: 0.6rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }
}

/* Tablet (Portrait) */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 1.75rem;
        text-align: left;
    }

    .navbar-wrapper {
        top: 0;
        height: auto;
    }

    .navbar-pill {
        width: 100%;
        max-width: none;
        border-radius: 0;
        margin: 0;
        padding: 1.2rem 1.5rem;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
        border: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .logo-symbol {
        width: 46px; /* Slightly bigger logo as well */
        height: 46px;
        font-size: 1.3rem;
    }

    .menu-toggle {
        display: flex;
        width: 32px; /* Bigger hamburger */
        height: 22px;
        margin-right: 0;
    }

    .navbar-pill.scrolled {
        border-radius: 0;
        background: var(--white);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .navbar-pill.scrolled .nav-links a.text-link,
    .navbar-pill.scrolled .center-links a,
    .navbar-pill.scrolled .nav-icons a,
    .navbar-pill.scrolled .custom-text-logo {
        color: var(--primary-text);
    }

    .navbar-pill.scrolled .logo-symbol {
        background-color: var(--primary-text);
        color: var(--white);
    }

    .navbar-pill.scrolled .menu-toggle span {
        background-color: var(--primary-text);
    }

    /* Hide text links on mobile, keep minimal icons or implement hamburger */
    .center-links {
        display: none; /* Hide main links on mobile for simplicity, or we can use a menu */
    }

    .nav-links .text-link, 
    .nav-icons a:not([aria-label="Cart"]):not(.mobile-search-btn),
    .desktop-only-icon {
        display: none !important; 
    }

    .nav-user-dropdown {
        display: none !important;
    }

    .mobile-search-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #FFF5F8;
        color: var(--primary-text);
        border-radius: 50%;
        margin-right: 5px;
        transition: all 0.3s ease;
    }

    .mobile-search-btn:active {
        transform: scale(0.9);
        background: var(--primary-text);
        color: white;
    }

    .menu-toggle {
        display: flex;
        width: 24px;
        height: 16px;
        margin-right: 0;
    }

    .nav-icons {
        margin-left: 0;
        gap: 0;
    }
    .hero {
        height: 70vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .promo-content {
        padding: 2.5rem;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (Landscape & Portrait) */
@media screen and (max-width: 480px) {
    .navbar-pill {
        border-radius: 30px;
        padding: 0.4rem 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
        text-align: left;
    }

    .hero-content {
        padding: 0 1.5rem;
        text-align: left;
        margin-left: 0;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        width: fit-content; /* Don't force full width if aligning left */
        min-width: 160px;
        margin-bottom: 0.5rem;
    }
    
    .hero-content div[style*="flex"] {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: flex-start !important;
    }

    .hero-pagination {
        bottom: 20px;
        left: 1.5rem;
        transform: none;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .feature-icon {
        width: 48px;
        height: 48px;
    }

    .feature-item {
        padding: 0.5rem;
    }

    .feature-item h4 {
        font-size: 0.9rem;
    }

    .feature-item p {
        font-size: 0.8rem;
    }

    .category-circle-grid {
        gap: 1rem;
        justify-content: flex-start;
        padding-left: 1.5rem;
    }

    .category-circle-card {
        width: 80px;
    }

    .category-circle-image-wrapper {
        width: 70px;
        height: 70px;
    }

    .promo-image {
        padding: 1rem;
    }

    .promo-content {
        padding: 2rem 1.5rem;
        text-align: left;
    }

    .promo-content .section-title {
        text-align: left;
    }

    .testimonial-card {
        padding: 1.5rem;
        text-align: left;
    }

    .footer {
        padding: 3rem 1.5rem 6rem; /* Extra bottom padding for mobile */
        text-align: left;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-col {
        text-align: left;
    }

    .footer-col a {
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .subscribe-form {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .subscribe-form input,
    .subscribe-form button {
        border-radius: 8px;
        width: 100%;
    }

    .store-info {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
}

/* Custom fix for the "Pill" navbar to stop links from overlapping on small screens */
@media screen and (max-width: 600px) {
    .navbar-pill {
        justify-content: space-between;
        gap: 1rem;
    }
    
    .brand-logo .custom-text-logo span {
        display: none; /* Hide "store" text on very small screens to save space */
    }
    
    .nav-icons {
        margin-left: 0;
    }
}

/* Custom Toastr Theme for Muoi Thao Store */
#toast-container > .toast-success {
    background-color: var(--primary-text); /* Pink */
    box-shadow: 0 4px 15px rgba(232, 67, 147, 0.4);
}
#toast-container > .toast-success:hover {
    box-shadow: 0 6px 20px rgba(232, 67, 147, 0.6);
}