/* Mimi3DShop Custom Styles - Blue & White Theme (Enhanced) */

:root {
    /* Primary Colors */
    --primary-color: #0D9488;
    --primary-hover: #0F766E;
    --secondary-color: #1E293B;
    --accent-color: #F59E0B;
    
    /* Status Colors */
    --success-color: #16A34A;
    --danger-color: #EF4444;
    --warning-color: #F59E0B;
    
    /* Background Colors */
    --bg-white: #F5F0EB;
    --bg-section: #EDE7E0;
    --bg-gray-light: #F1F5F9;
    
    /* Border & Divider */
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    
    /* Text Colors */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-light: #64748B;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-cta: 0 12px 25px rgba(13, 148, 136, 0.28);
}

/* General */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

main {
    flex: 1;
}

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

/* Navbar - Light Theme */
.navbar {
    background-color: var(--bg-white) !important;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.navbar-brand .brand-mimi {
    color: var(--primary-color);
}

.navbar-brand .brand-3d {
    color: var(--text-primary);
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    padding: 0.5rem 1.1rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color 0.3s;
    letter-spacing: -0.2px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar .badge {
    background-color: var(--danger-color);
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Cart icon on navbar - nổi bật */
.navbar .nav-link .fa-shopping-cart {
    font-size: 1.35rem;
    color: var(--danger-color);
    transition: transform 0.2s;
}

.navbar .nav-link:hover .fa-shopping-cart {
    transform: scale(1.15);
}

/* Mobile toggler icon - green color for visibility */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2822, 163, 74, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar-toggler {
    border-color: rgba(22, 163, 74, 0.5) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(22, 163, 74, 0.25) !important;
}

/* Hero Section - Modern Landing Page Style */
.hero-section {
    position: relative;
    min-height: 620px;
    background-color: var(--bg-white);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-section .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-section .hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    transform: translateX(80px);
    opacity: 1;
}

/* Overlay gradient - teal/warm white từ trái sang phải */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(245, 240, 235, 0.97) 0%,
        rgba(245, 240, 235, 0.88) 20%,
        rgba(245, 240, 235, 0.50) 38%,
        rgba(245, 240, 235, 0.15) 55%,
        rgba(245, 240, 235, 0.00) 100%
    );
    z-index: 1;
}


.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section .hero-content {
    position: relative;
    padding-right: 2rem;
}

/* Tiêu đề Hero - đậm, nét, chia 2 dòng */
.hero-section h1 {
    font-size: 3.75rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -1px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.hero-section .hero-highlight {
    color: var(--primary-color);
    display: block;
}

/* Feature bullets trong hero */
.hero-section .hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    margin-bottom: 2rem;
}

.hero-section .hero-feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero-section .hero-feature-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Mô tả Hero - đậm hơn để dễ đọc */
.hero-section p.lead {
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 2rem;
    line-height: 1.65;
    max-width: 500px;
    font-weight: 450;
}

/* CTA Buttons */
.hero-section .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-section .btn-primary-custom {
    background: #0D9488;
    color: var(--bg-white);
    border: none;
    padding: 0.95rem 2.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 25px rgba(13, 148, 136, 0.28);
    letter-spacing: 0.2px;
}

.hero-section .btn-primary-custom:hover {
    background: #0F766E;
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(13, 148, 136, 0.38);
}

.hero-section .btn-secondary-custom {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.95rem 2.25rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-section .btn-secondary-custom:hover {
    background-color: var(--primary-color);
    color: var(--bg-white);
    box-shadow: 0 12px 25px rgba(13, 148, 136, 0.28);
    transform: translateY(-2px);
}

/* Decorative elements - particles & blobs */
.hero-section .hero-blob-1 {
    position: absolute;
    top: 60px;
    right: 18%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    animation: floatBlob 8s ease-in-out infinite;
}

.hero-section .hero-blob-2 {
    position: absolute;
    bottom: 60px;
    right: 32%;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.10) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
    animation: floatBlob 10s ease-in-out infinite reverse;
}

.hero-section .hero-blob-3 {
    position: absolute;
    top: 35%;
    right: 45%;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(35px);
    z-index: 1;
    animation: floatBlob 12s ease-in-out infinite;
}

@keyframes floatBlob {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.95); }
}

/* Particle dots */
.hero-section .hero-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}

.hero-section .hero-particle.p1 {
    width: 8px;
    height: 8px;
    top: 25%;
    right: 40%;
    animation: particleFloat 6s ease-in-out infinite;
}

.hero-section .hero-particle.p2 {
    width: 5px;
    height: 5px;
    top: 60%;
    right: 30%;
    animation: particleFloat 7s ease-in-out infinite 1s;
}

.hero-section .hero-particle.p3 {
    width: 10px;
    height: 10px;
    top: 70%;
    right: 50%;
    animation: particleFloat 8s ease-in-out infinite 2s;
    opacity: 0.08;
}

.hero-section .hero-particle.p4 {
    width: 6px;
    height: 6px;
    top: 20%;
    right: 25%;
    animation: particleFloat 5s ease-in-out infinite 0.5s;
    background: var(--accent-color);
}

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.12; }
    50% { transform: translateY(-15px) scale(1.5); opacity: 0.25; }
}

/* Features Section */
.features-section {
    background-color: var(--bg-white);
    padding: 3rem 0 2rem;
}

.feature-box {
    text-align: center;
    padding: 2rem 1.5rem;
    background-color: #F8FAFC;
    border-radius: 18px;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
    border-color: var(--primary-color);
    background-color: var(--bg-white);
}

.feature-box .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-box h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.125rem;
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Category Menu - Modern Tech Style */
.category-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    
    padding: 6px;
    margin: 20px auto;
    
    width: fit-content;
    
    background: #f5f7fa;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-menu a {
    display: flex;
    align-items: center;
    gap: 7px;
    
    padding: 10px 16px;
    
    color: #4b5563;
    background: transparent;
    
    border-radius: 9px;
    
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    
    transition: all 0.2s ease;
}

/* Hover */
.category-menu a:hover {
    color: #111827;
    background: #ffffff;
    
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Danh mục đang chọn - màu đen graphite (tech vibe) */
.category-menu a.active {
    color: #ffffff;
    background: #18181b;
    
    font-weight: 600;
    
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

/* Icon */
.category-menu a i {
    font-size: 15px;
}

/* Mobile - horizontal scroll */
@media (max-width: 768px) {
    .category-menu {
        width: 100%;
        justify-content: flex-start;
        
        overflow-x: auto;
        white-space: nowrap;
        
        border-radius: 12px;
        
        scrollbar-width: none;
    }
    
    .category-menu::-webkit-scrollbar {
        display: none;
    }
    
    .category-menu a {
        flex-shrink: 0;
        padding: 9px 13px;
    }
}

/* Products Section */
.products-section {
    background-color: var(--bg-section);
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
}

/* Product Card - Modern Design */
.product-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.product-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s;
}

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

.product-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.product-card .card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.product-card .card-text {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
}

.product-card .price {
    color: var(--danger-color);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.product-card .product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.product-card .btn-view {
    background-color: var(--bg-white);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.product-card .btn-view:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: #f0f4ff;
}

.product-card .btn-buy {
    background-color: var(--danger-color);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    flex: 1;
    text-align: center;
    white-space: nowrap;
}

.product-card .btn-buy:hover {
    background-color: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.35);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0D9488 0%, #0F766E 100%);
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

.cta-section .btn-light-custom {
    background-color: var(--bg-white);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s;
}

.cta-section .btn-light-custom:hover {
    background-color: var(--bg-section);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-section .btn-outline-custom {
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
    padding: 1rem 2.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s;
}

.cta-section .btn-outline-custom:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 3rem 0 1.5rem;
}

footer h3, footer h4 {
    color: var(--bg-white);
    margin-bottom: 1rem;
    font-weight: 700;
}

footer .brand-mimi {
    color: var(--primary-color);
}

footer .brand-3d {
    color: var(--bg-white);
}

footer p, footer ul li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color);
}

footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.floating-contact a {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
}

.floating-contact a:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-xl);
}

.floating-contact .btn-phone {
    background-color: var(--success-color);
}

.floating-contact .btn-zalo {
    background-color: #0068FF;
}

.floating-contact .btn-messenger {
    background-color: #0084FF;
}

/* Cart Badge */
#cart-count {
    font-size: 0.7rem;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--danger-color);
}

.cart-nav-link {
    position: relative;
}

.cart-nav-link .fa-shopping-cart {
    font-size: 1.35rem;
    color: var(--danger-color);
    transition: transform 0.2s;
}

.cart-nav-link:hover .fa-shopping-cart {
    transform: scale(1.15);
}

.cart-nav-link .badge {
    font-size: 0.65rem;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
}

/* Buttons Override */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Forms */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 148, 136, 0.15);
}

.form-control::placeholder {
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section .hero-bg img {
        transform: translateX(0);
        object-position: center;
    }
    
    .hero-section .hero-features {
        gap: 0.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 480px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
        letter-spacing: -0.5px;
    }
    
    .hero-section p.lead {
        font-size: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-section .hero-features {
        justify-content: center;
    }
    
    .hero-section .hero-buttons {
        justify-content: center;
    }
    
    .hero-section .hero-bg img {
        transform: translateX(0);
    }
    
    .product-card img {
        /* aspect-ratio giữ vuông 1:1 ở mọi kích thước */
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .floating-contact {
        bottom: 1rem;
        right: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Loading Spinner */
.spinner-border {
    border-color: var(--primary-color);
    border-right-color: transparent;
}

/* Badge */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    border-radius: 6px;
}

.badge-warning {
    background-color: var(--warning-color);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Card Hover Effect */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* Link Colors */
a {
    color: var(--primary-color);
}

a:hover {
    color: var(--primary-hover);
}
