/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --primary-color: #f473b9;
    --primary-sub: #ffa6d2;
    --text-color: #1c1c1c;
    --text-white: #ffffff;
    --bg-dark: #1c1b1b;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --gradient: linear-gradient(135deg, #f473b9 0%, #ffa6d2 100%);
    --gradient-dark: linear-gradient(135deg, #1c1b1b 0%, #2d2d2d 100%);
}

/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: url('https://image.dienthoaivui.com.vn/x,webp,q90/https://dashboard.dienthoaivui.com.vn/uploads/dashboard/editor_upload/hinh-nen-mau-xanh-duong-1-1.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* overlay tối 40% */
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--gradient-dark);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    height: 42px;
    width: auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-nap-tien {
    background: var(--gradient);
    padding: 10px 20px;
    border-radius: 25px;
    color: var(--text-white) !important;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-nap-tien:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 10px 45px 10px 20px;
    color: var(--text-white);
    width: 250px;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    width: 300px;
}

.search-btn {
    position: absolute;
    right: 5px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: var(--text-white);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.search-btn:hover {
    transform: scale(1.1);
}

.notification {
    position: relative;
    color: var(--text-white);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.notification:hover {
    color: var(--primary-color);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: var(--text-white);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-white);
    cursor: pointer;
    transition: color 0.3s ease;
}

.user-menu:hover {
    color: var(--primary-color);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: var(--gradient-dark);
    padding: 10px 0;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-actions {
    display: flex;
    gap: 15px;
}

.mobile-actions button {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-actions button:hover {
    color: var(--primary-color);
}

/* Hero Slider */
.hero-slider {
    margin: 20px 0;
}

.hero-carousel .slide {
    position: relative;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.hero-carousel .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--text-white);
    padding: 40px 30px 30px;
    text-align: center;
}

.slide-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-primary {
    background: var(--gradient);
    color: var(--text-white);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: var(--text-white);
}

/* Quick Links */
.quick-links {
    margin: 30px 0;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.quick-link {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    color: var(--text-white);
}

.quick-link i {
    font-size: 2rem;
    color: var(--primary-color);
}

.quick-link span {
    font-weight: 500;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title i {
    font-size: 2rem;
    color: var(--primary-color);
}

.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.view-all:hover {
    color: var(--primary-sub);
    transform: translateX(5px);
}

/* Flash Sale */
.flash-sale {
    margin: 40px 0;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-white);
}

.countdown i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.timer {
    display: flex;
    gap: 10px;
}

.time-unit {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    min-width: 60px;
}

.time-unit span:first-child {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.time-unit span:last-child {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.flash-sale-tabs {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.tab-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px 20px;
    color: var(--text-white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--gradient);
    border-color: var(--primary-color);
}

.tab-btn span:first-child {
    font-size: 1.2rem;
    font-weight: 700;
}

.tab-btn span:last-child {
    font-size: 0.8rem;
    opacity: 0.8;
}

.success-list {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.success-list marquee {
    color: var(--primary-color);
    font-weight: 500;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: var(--text-white);
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.product-info {
    padding: 20px;
    color: var(--text-white);
}

.product-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-white);
}

.product-id,
.product-count,
.attributes {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.old-price {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
    font-size: 0.9rem;
}

.new-price {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-buy {
    width: 100%;
    background: var(--gradient);
    color: var(--text-white);
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* About Section */
.about-section {
    margin: 40px 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    color: var(--text-white);
}

.about-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 25px 0 15px;
    color: var(--text-white);
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.about-content ul {
    list-style: none;
    padding-left: 20px;
}

.about-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.about-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Commitments */
.commitments {
    margin: 40px 0;
}

.commitments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.commitment-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: var(--text-white);
    transition: all 0.3s ease;
}

.commitment-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.commitment-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.commitment-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-white);
}

.commitment-item p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-info p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.footer-info ul {
    list-style: none;
    padding-left: 0;
}

.footer-info li {
    margin-bottom: 8px;
    padding-left: 15px;
    position: relative;
}

.footer-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
}

.social-link i {
    font-size: 1.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-logo img {
    height: 36px;
    width: auto;
}

/* Support Button */
.support-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.support-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    color: var(--text-white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow-hover);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.support-link:hover {
    transform: scale(1.1);
    color: var(--text-white);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 115, 185, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 115, 185, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 115, 185, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .search-box input:focus {
        width: 250px;
    }
    
    .hero-carousel .slide {
        height: 300px;
    }
    
    .slide-content h2 {
        font-size: 1.8rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .countdown {
        flex-direction: column;
        gap: 10px;
    }
    
    .timer {
        justify-content: center;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .commitments-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-carousel .slide {
        height: 250px;
    }
    
    .slide-content {
        padding: 20px 15px;
    }
    
    .slide-content h2 {
        font-size: 1.5rem;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .about-section {
        padding: 20px;
    }
    
    .about-content h2 {
        font-size: 1.5rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
} 