:root {
    --pink: #ff9eb8;
    --pink-light: #ffe4e9;
    --pink-dark: #ff6b9d;
    --text: #333333;
    --primary: #ff4d8d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== TOP BAR ==================== */
.top-bar {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #ffe4e9;
    font-size: 14px;
}

/* ==================== HEADER ==================== */
header {
    background: linear-gradient(to bottom, #ffe4e9, #ff9eb8);
    padding: 18px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 68px;
}

.logo-text {
    font-size: 29px;
    font-weight: bold;
    color: #ff6b9d;
}

/* ==================== NAVIGATION ==================== */
nav {
    background: var(--pink);
    padding: 15px 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 15.5px;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.85;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 640px;
    background: linear-gradient(rgba(255,255,255,0.65), rgba(255,255,255,0.72)),
                url('/images/hinh-nen.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 45px;
    position: relative;
    z-index: 2;
}

.circle-img {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(255, 107, 157, 0.4);
    border: 14px solid rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
}

.circle-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center-content {
    flex: 1;
    max-width: 560px;
    text-align: center;
}

.center-content h1 {
    font-size: 41px;
    line-height: 1.15;
    color: #ff4d8d;
    margin-bottom: 12px;
}

.center-content .slogan {
    font-size: 20px;
    color: #ff6b9d;
    font-style: italic;
    margin-bottom: 20px;
}

.center-content .subtitle {
    font-size: 23px;
    color: #333;
    margin-bottom: 35px;
    font-weight: 500;
}

.category {
    background: rgba(255, 77, 141, 0.1);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==================== SERVICES & PRODUCT GRID ==================== */
.services {
    padding: 80px 0;
    background: #fff;
}

.services h2,
.section h2 {
    text-align: center;
    font-size: 36px;
    color: #ff6b9d;
    margin-bottom: 50px;
}

.services-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.15);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.25);
}

.service-card i {
    font-size: 60px;
    color: #ff6b9d;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    color: #ff4d8d;
    margin-bottom: 15px;
}

.service-card p {
    color: #555;
    font-size: 15px;
}

/* Product Card */
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* ==================== OTHER SECTIONS ==================== */
.section {
    padding: 80px 0;
}

.stats {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), 
                url('https://source.unsplash.com/random/1600x400/?farm,technology') center/cover;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item h2 {
    font-size: 52px;
    font-weight: bold;
    color: #ff9eb8;
}

.stat-item p {
    font-size: 18px;
    margin-top: 8px;
}

.why-us {
    padding: 80px 0;
    background: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.why-card {
    text-align: center;
    padding: 20px;
}

.why-card i {
    font-size: 65px;
    color: #ff6b9d;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.clients {
    background: #f8f8f8;
    padding: 70px 0;
}

.section-title {
    background: #ff6b9d;
    color: white;
    display: inline-block;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    margin-bottom: 30px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 25px;
    justify-items: center;
}

.logo-grid img {
    height: 60px;
    filter: grayscale(80%);
    transition: 0.3s;
}

.logo-grid img:hover {
    filter: grayscale(0%);
    transform: scale(1.08);
}

.about {
    background: #ffe4e9;
    padding: 80px 0;
}

.policy {
    background: #fff;
    padding: 80px 0;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.policy-card {
    background: #ffe4e9;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.15);
}

.policy-card h3 {
    color: #ff4d8d;
    margin-bottom: 15px;
    font-size: 20px;
}

.policy-card ul {
    list-style: none;
}

.policy-card li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.policy-card li:before {
    content: "✓";
    color: #ff6b9d;
    position: absolute;
    left: 0;
    font-weight: bold;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(255, 110, 160, 0.15);
    text-align: center;
}

.contact-item i {
    font-size: 42px;
    color: #ff6b9d;
    margin-bottom: 15px;
}

/* ==================== FLOATING CONTACT ==================== */
.float-contact {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.phone-btn, .zalo-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 29px;
    box-shadow: 0 6px 20px rgba(255, 77, 141, 0.5);
    margin-bottom: 12px;
    text-decoration: none;
    transition: transform 0.3s;
}

.phone-btn:hover, .zalo-btn:hover {
    transform: scale(1.1);
}

.phone-btn {
    background: #ff4d8d;
    color: white;
}

.zalo-btn {
    background: #0068ff;
    color: white;
    font-size: 33px;
}

/* ==================== FOOTER ==================== */
footer {
    background: #ff9eb8;
    color: white;
    text-align: center;
    padding: 35px 0 25px;
    font-size: 14.5px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero {
        min-height: 520px;
        padding: 50px 0;
    }
    
    .circle-img {
        width: 280px;
        height: 280px;
    }
    
    .center-content h1 {
        font-size: 32px;
    }
    
    .header-content {
        justify-content: center;
        text-align: center;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .services-grid,
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Utility */
.btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn:hover {
    background: #ff6b9d;
    transform: translateY(-2px);
}
/* ==================== AUTH PAGE ==================== */
.auth-section {
    padding: 80px 0;
    background: #fffaf5;
}

.auth-container {
    max-width: 460px;
    margin: 0 auto;
    background: white;
    padding: 40px 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.auth-container h2 {
    color: #ff6b9d;
    margin-bottom: 30px;
    font-size: 28px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid #ffe4e9;
}

.auth-tab {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
    background: #ffe4e9;
    color: #333;
}

.auth-tab.active {
    background: #ff4d8d;
    color: white;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

.form-input:focus {
    outline: none;
    border-color: #ff6b9d;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: #ff4d8d;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: 0.3s;
}

.btn-auth:hover {
    background: #ff6b9d;
}

.auth-footer-text {
    text-align: center;
    margin-top: 25px;
    color: #666;
    font-size: 14px;
}

.auth-footer-text a {
    color: #ff6b9d;
    text-decoration: none;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* ==================== PRODUCT PAGE ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    padding: 30px 0;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.12);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(255, 107, 157, 0.25);
}

.product-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.06);
}

.product-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #ff4d8d;
    margin: 8px 0 12px 0;
}

.product-desc {
    color: #666;
    font-size: 14.8px;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 16px;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.product-actions button {
    flex: 1;
    padding: 11px 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-detail {
    background: #ff4d8d;
    color: white;
}

.btn-detail:hover {
    background: #ff6b9d;
}

.btn-cart {
    background: #28a745;
    color: white;
}

.btn-cart:hover {
    background: #218838;
}

/* ==================== MODAL CHI TIẾT SẢN PHẨM ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    max-width: 920px;
    width: 92%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: #ff4d8d;
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    padding: 35px;
}

.modal-image {
    flex: 1;
    min-width: 320px;
}

.modal-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.modal-info {
    flex: 1;
    min-width: 320px;
}

.modal-info h2 {
    font-size: 26px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.modal-category {
    color: #ff6b9d;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal-price {
    font-size: 28px;
    font-weight: 700;
    color: #ff4d8d;
    margin-bottom: 20px;
}

.modal-desc {
    color: #555;
    line-height: 1.75;
    font-size: 15.8px;
    margin-bottom: 30px;
}

.btn-cart-modal {
    background: #28a745;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: 0.3s;
}

.btn-cart-modal:hover {
    background: #218838;
}