* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    width: 100%;
}

a { 
    text-decoration: none;
}

.header {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1200;
    border-bottom: 1px solid #eee;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    gap: 20px;
    padding: 0 20px;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 54px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #333;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #f57c00;
}

.cat-item {
    position: relative;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
}

.cat-item:hover {
    color: #f57c00;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    list-style: none;
    padding: 12px 0;
    margin-top: 8px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
}

.cat-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: #333;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background: #fff8f0;
    color: #f57c00;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #555;
    cursor: pointer;
    border: none;
    background: #f8f8f8;
    border-radius: 50%;
}

.icon-btn:hover {
    background: #f0f0f0;
    color: #f57c00;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #f57c00;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.simple-banner {
    position: relative;
    height: 520px;
    overflow: hidden;
    margin-top: -1px;
    background: #f5f5f5;
    z-index: 1;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: #f57c00;
    transform: scale(1.3);
}

.section-title {
    margin: 60px 0 32px;
    text-align: center;
    color: #222;
    font-size: clamp(1.6rem, 5vw, 2.1rem);
}

.section-header h3 {
    font-size: 1.55rem;
    color: #f57c00;
    border-bottom: 3px solid #f57c00;
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 32px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 70px;
    width: 100%;
    max-width: 100%;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.09);
    transition: all 0.4s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}

.product-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    min-height: 54px;
    line-height: 1.3;
}

.rating {
    color: #f57c00;
    font-size: 15px;
    margin-bottom: 14px;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15.5px;
    font-weight: 600;
    margin-top: 12px;
}

.price {
    color: #f57c00;
    font-size: 16px;
    font-weight: 600;
}

.orange-bar {
    background: #f57c00;
    padding: 32px 0;
    color: white;
}

.orange-search {
    display: flex;
    max-width: 740px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

.orange-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 18px 28px;
    font-size: 1.1rem;
    color: #333;
}

.orange-btn {
    background: #f57c00;
    color: white;
    border: none;
    padding: 0 52px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.orange-btn:hover {
    background: #e36b00;
}

.mind-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: #f57c00 #f5e8d3;
}

.mind-item {
    text-align: center;
    min-width: 140px;
    flex-shrink: 0;
}

.mind-item img {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid #f57c00;
    margin-bottom: 14px;
    transition: transform 0.4s;
}

.mind-item:hover img {
    transform: scale(1.08);
}

.mind-item p {
    font-weight: 600;
    font-size: 15px;
}

.personalized {
    background: #fff8f0;
    padding-bottom: 80px;
}

.footer {
    background: #c8102e;
    color: white;
    padding: 70px 0 30px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px 30px;
    align-items: flex-start;
}

.footer-logo {
    flex: 1 1 220px;
    min-width: 200px;
}

.footer-logo-img {
    height: 78px;
    width: auto;
}

.footer-column {
    flex: 1 1 160px;
    min-width: 160px;
}

.footer-column h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 11px;
}

.footer-column a {
    color: #f8e8e8;
    text-decoration: none;
    font-size: 14.8px;
}

.footer-column a:hover {
    color: #fff;
}

.social-column {
    flex: 1 1 200px;
    min-width: 180px;
}

.social-column h4 {
    margin-bottom: 16px;
}

.social-icons {
    display: flex;
    gap: 20px;
    font-size: 28px;
}

.social-icons a {
    color: white;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #ffcc00;
    transform: translateY(-4px);
}

.zalo-icon {
    width: 34px;
    height: 34px;
    background: #0084ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 19px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.18);
    padding: 22px 0;
    margin-top: 60px;
    text-align: center;
    font-size: 14.5px;
    color: #f0d8d8;
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #fff8f0;
    color: #f57c00;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #f57c00;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(245, 124, 0, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    opacity: 0;
}

.back-to-top:hover {
    background: #e36b00;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(245, 124, 0, 0.5);
}

.back-to-top.show {
    display: flex;
    opacity: 1;
}

.add-to-cart-btn {
    background: #f57c00;
    color: white;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.add-to-cart-btn:hover {
    background: #e36b00;
    transform: scale(1.1);
}

.cart-btn {
    position: relative !important;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8;
    border-radius: 50%;
    font-size: 20px;
    color: #555;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.cart-btn:hover {
    background: #fff0e6;
    color: #f57c00;
    transform: scale(1.08);
}

.cart-count {
    position: absolute !important;
    top: -4px;
    right: -4px;
    background: #ff3b30;
    color: white;
    font-size: 13px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 3px 8px rgba(255, 59, 48, 0.5);
    border: 2.5px solid #ffffff;
    z-index: 20;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.3s ease;
    line-height: 1;
}

.cart-count.show {
    opacity: 1;
    transform: scale(1);
    animation: cartPop 0.45s ease forwards;
}

@keyframes cartPop {
    0%   { transform: scale(0.5) rotate(-15deg); }
    60%  { transform: scale(1.3) rotate(8deg); }
    100% { transform: scale(1) rotate(0); }
}

.map-btn {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f8f8f8;
    border-radius: 50%;
    font-size: 20px;
    color: #555;
    transition: all 0.3s ease;
}

.map-btn:hover {
    background: #fff0e6;
    color: #f57c00;
    transform: scale(1.08);
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

@media (max-width: 992px) {
    .cat-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-height: 420px;
    overflow-y: auto;
    z-index: 1100;
    display: none;
    border-top: 1px solid #eee;
}

.dropdown-results {
    padding: 8px 0;
}

.search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f5f5f5;
}

.search-item:hover {
    background: #fff8f0;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item-info h4 {
    margin: 0 0 4px 0;
    font-size: 15.5px;
    color: #222;
}

.search-item-info .price {
    color: #f57c00;
    font-weight: 700;
    font-size: 15px;
}

.search-item .add-to-cart-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f57c00;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.search-item .add-to-cart-btn:hover {
    background: #e36b00;
    transform: scale(1.1);
}