/* --- LOGO FIX --- */
.brand-logo img {
    height: 48px;           /* Logo chiều cao hợp lý, không bị phóng to */
    width: auto;            /* Tỉ lệ tự động */
    max-width: 150px;       /* Không vượt quá chiều ngang này */
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

/* Nếu muốn logo luôn căn giữa theo chiều dọc header, thêm: */
.brand-logo {
    margin-top: 5px;
    display: flex;
    align-items: center;
    height: 100%;
}

@media (max-width: 768px) {
    .brand-logo img {
        height: 36px;
        max-width: 110px;
    }
}

/* --- PHẦN CSS CŨ GIỮ NGUYÊN --- */
/* General Body & Typography */
body {
    font-family: 'Roboto', sans-serif; /* A modern, clean font */
    margin: 0;
    padding: 0;
    background-color: #f0f2f5; /* Soft light grey background */
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER & LOGO --- */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 0.5em 0;      /* Giảm padding để header nhỏ lại */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 56px;
}

.brand-logo img {
    height: 38px;
    max-width: 120px;
    width: auto;
    display: block;
    object-fit: contain;
    margin: 0;
    padding: 0;
}
.brand-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

nav {
    position: relative;
    display: flex;
    align-items: center;
}
nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    order: 1;
}
nav ul li {
    display: inline-block;
    margin-left: 25px;
}
nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    padding: 4px 0;
    position: relative;
    transition: color 0.3s;
}
nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: #3498db;
    transition: width 0.3s;
}
nav ul li a:hover::after { width: 100%; }
nav ul li a:hover { color: #3498db; }

/* Hamburger Button Styles */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 7px;
    margin-left: 18px;
    order: 2;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 22px;
    margin: 3px 0;
    background: #ecf0f1;
    border-radius: 2px;
    transition: all 0.3s;
}



/* Responsive menu for tablet/mobile */
@media (max-width: 900px) {
    header .container {
        min-height: 48px;
    }
    .brand-logo img { height: 32px; max-width: 80px; }
    nav ul li { margin-left: 15px; }
}

@media (max-width: 768px) {
        header .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    nav {
        flex: 1 1 auto;
        justify-content: flex-end;
    }
    .hamburger {
        display: flex;
    }
    nav ul {
        flex-direction: column;
        position: absolute;
        top: 110%;
        right: 0;
        background: #2c3e50;
        box-shadow: 0 4px 16px rgba(0,0,0,0.07);
        width: 180px;
        padding: 16px 0;
        border-radius: 8px 0 8px 8px;
        display: none;
        z-index: 2000;
        order: 3;
    }
    nav ul.show {
        display: flex;
    }
    nav ul li {
        display: block;
        margin: 14px 0;
        text-align: right;
        margin-left: 0;
        padding-right: 30px;
    }
}

@media (max-width: 480px) {
    .brand-logo img { height: 24px; max-width: 60px; }
    nav ul { width: 140px; }
}


.hero-banner {
    margin-bottom: 40px;
    min-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    padding: 0;
}
.hero-slider { position: relative; width: 100vw; max-width: 100vw; height: 2000px; overflow: hidden; }
.hero-slide { display: none; position: absolute; left:0; top:0; width:100%; height:100%; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100vw; max-width: 100vw; height: 2000px; object-fit: cover; object-position: 0 80%; }
.hero-banner-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: #fff;
    background: rgba(44,62,80,0.30);
    text-align: center;
    padding: 0 20px;
}
.hero-banner-overlay h2 {
    font-size: 2.7em;
    font-weight: 800;
    margin-bottom: 17px;
    color: #fff;
    text-shadow: 0 6px 24px rgba(34,54,90,0.55);
}
.hero-banner-overlay p {
    font-size: 1.18em;
    margin-bottom: 22px;
    color: #e9e9e9;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.hero-banner-overlay .btn-primary {
    font-size: 1.12em;
    padding: 14px 34px;
    font-weight: 700;
    border: none;
    outline: none;
    box-shadow: 0 2px 12px rgba(52,152,219,0.18);
    background: linear-gradient(90deg, #3498db 60%, #70c1ff 100%);
    transition: background .28s, transform .15s;
}
.hero-banner-overlay .btn-primary:hover {
    background: linear-gradient(90deg, #217dbb, #e67e22 100%);
    transform: scale(1.05) translateY(-2px);
}

/* Slider button & dots */
.hero-slider-btn {
    position: absolute; top: 50%;
    transform: translateY(-50%);
    background: rgba(44,62,80,0.82);
    color: #fff; border: none;
    font-size: 2em;
    padding: 6px 18px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 2;
    transition: background .2s, box-shadow .2s;
    box-shadow: 0 2px 8px rgba(44,62,80,0.10);
}
.hero-slider-btn.prev { left: 30px; }
.hero-slider-btn.next { right: 30px; }
.hero-slider-btn:hover { background: #3498db; box-shadow: 0 4px 16px #70c1ff55; }
.hero-slider-dots { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; z-index: 3; }
.hero-slider-dots .dot {
    display: inline-block; width: 13px; height: 13px; margin: 0 8px;
    background: #ddd; border-radius: 50%;
    cursor: pointer; transition: background .2s, box-shadow .24s;
    box-shadow: 0 1px 3px #3332;
}
.hero-slider-dots .dot.active { background: #3498db; box-shadow: 0 2px 8px #70c1ff88; }

/* Section Titles */
h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 40px;
    font-size: 2.5em;
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: #3498db;
    border-radius: 2px;
}

/* Product Section */
.products-section {
    padding: 50px 0;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-item img {
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.product-item h3 {
    font-size: 1.6em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-item p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 15px;
    min-height: 70px; /* Ensure consistent height for descriptions */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-item .price {
    font-weight: 700;
    color: #e74c3c; /* Red for price */
    font-size: 1.8em;
    margin-top: 20px;
    display: block;
}


footer {
    text-align: center;
    padding: 34px 0 10px 0;
    background: linear-gradient(90deg, #34495e 60%, #23272f 100%);
    color: #fff;
    margin-top: 45px;
    /* border-radius đã bị xóa để footer không bo góc */
    box-shadow: 0 -2px 18px rgba(44,62,80,0.09);
}
footer p { margin: 0; font-size: 1em; color: #bdc3c7; }
.contact-info h3 { color: #fff; font-size: 1.36em; margin-bottom: 8px; }
.contact-info a { color: #70c1ff; text-decoration: none; }
.contact-info a:hover { color: #fff; text-decoration: underline; }
.contact-info { font-size: 1.08em; }


/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    nav ul li {
        margin: 0 10px;
        margin-top: 15px;
    }
    .hero-banner h2 {
        font-size: 2.5em;
    }
    .hero-banner p {
        font-size: 1em;
    }
    .contact-content {
        flex-direction: column;
        align-items: center;
    }
    .contact-info, .contact-form {
        width: 100%;
        max-width: 500px;
    }
    .brand-logo img {
        height: 36px;
        max-width: 110px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8em;
    }
    nav ul li {
        display: block;
        margin: 10px 0;
    }
    .hero-banner {
        padding: 60px 20px;
    }
    .hero-banner h2 {
        font-size: 2em;
    }
    .btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }
    h2 {
        font-size: 2em;
    }
    .product-item {
        padding: 15px;
    }
}

.hero-banner {
  background: none;
  padding: 0;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 470px;
}

.hero-slider {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  height: 440px;
  margin: 0;
  overflow: hidden;
}

.hero-slide {
  display: none;
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
}
.hero-slide.active {
  display: block;
  position: absolute;
}

.hero-slide img {
  width: 100vw;
  max-width: 100vw;
  height: 440px;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.hero-banner-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  background: rgba(44,62,80,0.28);
  text-align: center;
  padding: 0 20px;
}

.hero-banner-overlay h2 {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0,0,0,0.6);
}

.hero-banner-overlay p {
  font-size: 1.2em;
  margin-bottom: 26px;
  color: #eee;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-banner-overlay .btn-primary {
  font-size: 1.15em;
  padding: 14px 32px;
  font-weight: 600;
}

.hero-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(44,62,80,0.7);
  color: #fff;
  border: none;
  font-size: 2em;
  padding: 5px 15px;
  border-radius: 3px;
  cursor: pointer;
  z-index: 2;
  transition: background .2s;
}
.hero-slider-btn.prev { left: 24px; }
.hero-slider-btn.next { right: 24px; }
.hero-slider-btn:hover { background: rgba(44,62,80,0.9); }

.hero-slider-dots {
  position: absolute;
  left: 0; right: 0; bottom: 24px;
  text-align: center;
  z-index: 3;
}
.hero-slider-dots .dot {
  display: inline-block;
  width: 11px; height: 11px;
  margin: 0 6px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s;
}
.hero-slider-dots .dot.active { background: #3498db; }

@media (max-width: 900px) {
  .hero-slider, .hero-slide img { height: 500px; }
  .hero-slide img {object-position: 65.0% 0;}
  .hero-banner-overlay h2 { font-size: 1.5em; }
}
@media (max-width: 600px) {
  .hero-slider, .hero-slide img { height: 500px; }
  .hero-banner-overlay h2 { font-size: 1.1em; }
  .hero-banner-overlay p { font-size: 0.9em; }
}