:root {
    --primary-color: #0d9488;
    --primary-hover: #0f766e;
    --dark-color: #0f172a;
    --light-bg: #f8fafc;
    --text-color: #334155;
    --border-color: #e2e8f0;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background-color: var(--light-bg); color: var(--text-color); line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header & Support Bar */
.header { background: #ffffff; box-shadow: 0 2px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 70px; 
    max-width: 100%; 
    padding: 0 40px; 
}

.logo a { font-size: 24px; font-weight: 700; color: var(--primary-color); text-decoration: none; }

/* Header Support Items */
.header-support { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.support-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.hotline-btn {
    background: #fef2f2;
    color: #ef4444;
    padding: 8px 16px;
    border: 1px solid #fca5a5;
    gap: 8px;
}
.hotline-btn:hover { background: #ef4444; color: #ffffff; }

.zalo-btn {
    background: #0088ff;
    color: #ffffff;
    width: 36px;
    height: 36px;
    font-weight: 800;
}
.zalo-btn:hover { background: #0066cc; transform: scale(1.05); }

.fb-btn {
    background: #1877f2;
    color: #ffffff;
    width: 36px;
    height: 36px;
}
.fb-btn:hover { background: #1152a8; transform: scale(1.05); }

/* Hero Slideshow */
.hero-slideshow { position: relative; background: #000; color: #fff; overflow: hidden; }
.slideshow-container { position: relative; height: 400px; }
.slide { display: none; height: 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.slide-content { position: absolute; top: 50%; left: 10%; transform: translateY(-50%); max-width: 500px; }
.slide-content h1 { font-size: 42px; margin-bottom: 15px; line-height: 1.2; }
.slide-content p { font-size: 18px; margin-bottom: 25px; }

.prev, .next { position: absolute; top: 50%; transform: translateY(-50%); width: 45px; height: 45px; background: rgba(0,0,0,0.4); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; font-size: 20px; transition: 0.3s; }
.prev { left: 20px; } .next { right: 20px; }
.prev:hover, .next:hover { background: var(--primary-color); }

.dot-container { position: absolute; bottom: 20px; width: 100%; text-align: center; }
.dot { height: 12px; width: 12px; margin: 0 5px; background-color: rgba(255,255,255,0.5); border-radius: 50%; display: inline-block; cursor: pointer; transition: 0.3s; }
.dot.active, .dot:hover { background-color: var(--primary-color); width: 28px; border-radius: 6px; }

/* Product Section */
.products-section { padding: 60px 0; }
.section-title { font-size: 28px; text-align: center; margin-bottom: 40px; color: var(--dark-color); position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--primary-color); margin: 10px auto 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }

/* Product Card */
.product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-thumb { height: 260px; overflow: hidden; position: relative; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-info { padding: 20px; text-align: center; }
.product-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--dark-color); }
.product-price { color: var(--primary-color); font-weight: 700; font-size: 18px; margin-bottom: 15px; }

/* Buttons */
.btn { display: inline-block; padding: 10px 24px; border-radius: 6px; border: none; font-weight: 600; cursor: pointer; text-decoration: none; transition: 0.3s; text-align: center; }
.btn-teal { background: var(--primary-color); color: white; }
.btn-teal:hover { background: var(--primary-hover); }
.w-100 { width: 100%; }

/* Modal Detail */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 1000; backdrop-filter: blur(4px); }
.modal-content { background: white; max-width: 900px; margin: 5vh auto; border-radius: 16px; padding: 30px; position: relative; box-shadow: var(--shadow); }
.close-btn { position: absolute; top: 15px; right: 20px; font-size: 28px; cursor: pointer; color: #94a3b8; }
.close-btn:hover { color: var(--dark-color); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.main-slide-modal { position: relative; height: 350px; background: #f1f5f9; border-radius: 8px; overflow: hidden; }
.main-slide-modal img { width: 100%; height: 100%; object-fit: cover; }
.slide-btn-modal { position: absolute; top: 50%; transform: translateY(-50%); border: none; background: rgba(0,0,0,0.4); color: white; padding: 10px; cursor: pointer; border-radius: 4px; }
.slide-btn-modal.prev { left: 10px; } .slide-btn-modal.next { right: 10px; }

.thumbnail-container { display: flex; gap: 10px; margin-top: 15px; overflow-x: auto; }
.thumbnail-container img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; opacity: 0.7; }
.thumbnail-container img.active { border-color: var(--primary-color); opacity: 1; }

.product-info-detail .price { font-size: 24px; color: var(--primary-color); font-weight: 700; margin: 15px 0; }
.divider { height: 1px; background: var(--border-color); margin: 15px 0; }
.action-buttons { display: flex; gap: 15px; margin-top: 25px; }

/* Footer */
/* Footer Redesign */
.footer {
    background: var(--dark-color);
    color: #94a3b8;
    padding-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
}

/* Danh sách liên hệ cột 2 */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-contact-list i {
    color: var(--primary-color);
    margin-top: 4px;
    width: 16px;
}

/* Social Icons cột 3 */
.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
}

.social-link.zalo-text {
    font-weight: 700;
    font-size: 13px;
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Dòng Copyright đưới cùng */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.page-btn { padding: 8px 15px; border: 1px solid var(--border-color); background: white; border-radius: 6px; cursor: pointer; transition: 0.3s; font-weight: 600; }
.page-btn:hover, .page-btn.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* Responsive Mobile */
@media (max-width: 768px) {
    .nav-container { padding: 0 15px; }
    .hotline-btn span { display: none; } /* Ẩn chữ Hotline trên mobile nhỏ, chỉ giữ lại icon */
    .hotline-btn { padding: 8px; border-radius: 50%; width: 36px; height: 36px; }
    
    .slideshow-container { height: 350px; }
    .slide-content { left: 5%; right: 5%; text-align: center; }
    .slide-content h1 { font-size: 28px; }
    
    .modal-content { width: 95%; margin: 10vh auto; padding: 20px; overflow-y: auto; max-height: 80vh; }
    .modal-grid { grid-template-columns: 1fr; gap: 15px; }
    .main-slide-modal { height: 250px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}