
:root {
  --primary: #ff6a00;
  --dark: #0f172a;
  --gray: #64748b;
  --bg: #f8fafc;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:#111}
.container{max-width:1200px;margin:auto;padding:0 16px}

.topbar{background:black;color:white;font-size:14px}
.topbar .container{display:flex;justify-content:space-between;align-items:center;padding:6px 16px}
.topbar a{color:#fff;text-decoration:none}

.header{background:#fff;border-bottom:1px solid #e5e7eb}
.header-inner{display:flex;align-items:center;gap:16px;padding:16px 0}
.logo{display:flex;align-items:center;gap:10px}
.logo img{height:44px}
.logo span{display:block;font-size:13px;color:var(--gray)}

.search-box{flex:1;display:flex;}
.search-box input{flex:1;padding:10px;border:1px solid #ddd;border-radius:6px 0 0 6px}
.search-box button{background:var(--primary);border:none;color:#fff;padding:0 16px;border-radius:0 6px 6px 0}
.search-box .top-search {
    display: flex;
    flex: 1; 
    width: 100%;
}
.header-icons{display:flex;gap:14px;font-size:20px}
.cart-badge{background:red;color:#fff;font-size:12px;padding:2px 6px;border-radius:999px}
/* Đồng bộ Auth Links với Topbar */
.header-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-icon {
    font-size: 1.2rem;
    color: var(--primary); /* Sử dụng màu cam đặc trưng */
}

.auth-links {
    font-family: 'Inter', sans-serif; /* Font VnExpress chúng ta đã chọn */
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    display: flex;
    align-items: center;
    white-space: nowrap; /* Không cho nhảy dòng */
}

.auth-link {
    color: #fff !important;
    text-decoration: none;
    transition: color 0.2s;
    padding: 4px 0;
}

.auth-link:hover {
    color: var(--primary) !important;
}

.divider {
    margin: 0 8px;
    color: #444; /* Màu chia vạch tinh tế */
}

/* RESPONSIVE TRÊN MỌI THIẾT BỊ */
/* --- CẤU HÌNH MENU CHUYÊN NGHIỆP --- */
.menu-wrapper { 
    display: flex; 
    align-items: center; 
    position: relative; 
}

/* 1. HIỂN THỊ TRÊN LAPTOP (Mặc định) */
.nav-list {
    display: flex; /* Hiện nằm ngang trên laptop */
    list-style: none;
    width: 100%;
}
.mobile-menu-header, .menu-toggle { 
    display: none; /* Ẩn các nút mobile trên laptop */
}

/* 2. HIỂN THỊ TRÊN MOBILE (Dưới 992px) */
@media (max-width: 992px) {
    .menu-toggle { 
        display: flex; 
        flex-direction: column; 
        gap: 5px;
        background: none; border: none; cursor: pointer; padding: 15px 0;
    }
    .menu-toggle .bar { width: 25px; height: 3px; background: #fff; border-radius: 2px; }

    .nav-list {
        display: flex; /* Chuyển về block để trượt dọc */
        flex-direction: column;
        position: fixed; 
        top: 0; 
        left: -100%; /* Giấu menu bên trái */
        width: 300px; 
        height: 100vh;
        background: #ffffff; 
        z-index: 9999;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 15px 0 30px rgba(0,0,0,0.1);
        padding: 0;
    }

    .nav-list.active { left: 0; } /* Trượt ra khi bấm */

    .mobile-menu-header {
        display: flex; justify-content: space-between; align-items: center;
        padding: 20px; background: #f8fafc; border-bottom: 1px solid #eee;
    }
    
    .nav-list li { width: 100%; border-bottom: 1px solid #f1f5f9; }
    .nav-list li a {
        color: #334155 !important;
        padding: 18px 25px !important;
        display: block;
    }
    
    /* Màu cam thương hiệu khi hover trên Mobile */
    .nav-list li a:active, .nav-list li a:hover {
        background: #fff7f2;
        color: var(--primary) !important;
    }
}


.main-menu{background:var(--primary)}
.main-menu ul{display:flex;flex-wrap:wrap;list-style:none}
.main-menu a{display:block;padding:12px 16px;color:#fff;text-decoration:none;font-weight:600}
.main-menu ul li a {
    display: block;
    padding: 12px 16px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    
    /* ÉP BUỘC VIẾT HOA Ở CẤP ĐỘ THẺ A */
    text-transform: uppercase !important; 
    
    /* Thêm font Inter để giống VnExpress như bạn muốn */
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}
/* Tối ưu Header & Menu Wrapper */
.menu-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Ẩn nút toggle trên Desktop */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 0;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* CSS CHO MOBILE (Dưới 992px) */
@media (max-width: 992px) {
    .menu-toggle { display: flex; }

    .nav-list {
        position: fixed; /* Tạo lớp phủ toàn màn hình */
        top: 0;
        left: -100%; /* Giấu menu sang trái */
        width: 280px; /* Chiều rộng menu mobile */
        height: 100vh;
        background: orange; /* Màu tối sang trọng */
        flex-direction: column;
        padding: 60px 20px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9999;
        box-shadow: 5px 0 15px rgba(0,0,0,0.3);
    }

    /* Khi Menu mở */
    .nav-list.active {
        left: 0; /* Trượt menu ra */
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .nav-list li a {
        padding: 15px 0 !important;
        font-size: 16px !important;
        color: #fff !important;
    }
}
.footer{background:#0f172a;color:#cbd5e1;margin-top:40px}
.newsletter{background:var(--primary);color:#fff;padding:30px 0;text-align:center}
.newsletter input{padding:10px;width:220px;border:none;border-radius:6px}
.newsletter button{padding:10px 16px;border:none;background:#111;color:#fff;border-radius:6px}

.footer-main{padding:40px 0}
.footer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.footer h4{margin-bottom:10px;color:#fff}
.footer ul{list-style:none}
.footer ul li{margin-bottom:6px}

.footer-bottom{text-align:center;border-top:1px solid #334155;padding:12px;font-size:14px}

/* HERO */

.hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* overlay */
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
  padding: 80px 10%;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.2;
}

.hero-content p {
  margin-top: 12px;
  font-size: 18px;
}

/* buttons */
.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 36px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 3;
}

.hero-btn.prev { left: 16px; }
.hero-btn.next { right: 16px; }

/* mobile */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
  }
  .hero-content {
    padding: 60px 20px;
  }
}




@media(max-width:992px){
  .footer-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:576px){
  .header-inner{flex-wrap:wrap}
  .search-box{order:3;width:100%}
  .footer-grid{grid-template-columns:1fr}
}


@media (max-width: 480px) {
  .category-card {
    min-height: 170px;
  }

  .category-content {
    padding: 10px;
  }
}
@media (max-width: 480px) {

  .product-card {
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
  }

  .add-to-cart {
    font-size: 15px;
    font-weight: 600;
  }
}





/* =========================
   CATEGORY SECTION
========================= */

.category-section {
    padding: 64px 0;
    background: #fff;
}

.category-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-section .sub-title {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
}

/* =========================
   CATEGORY GRID – RESPONSIVE
========================= */

.category-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;

    display: grid;
    gap: 24px;
}

/* Desktop */
@media (min-width: 1025px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .category-section {
        padding: 48px 0;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Mobile nhỏ */
@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   CATEGORY CARD
========================= */

.category-card {
    position: relative;
    display: block;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    text-decoration: none;
}

/* Mobile card thấp hơn để đẹp */
@media (max-width: 768px) {
    .category-card {
        height: 220px;
        border-radius: 14px;
    }
}

/* IMAGE */
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* OVERLAY */
.category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.15)
    );
}

/* CONTENT */
.category-content {
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: #fff;
    z-index: 2;
}

.category-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-content span {
    font-size: 13px;
    opacity: 0.9;
}

/* Mobile text nhỏ gọn hơn */
@media (max-width: 480px) {
    .category-content h3 {
        font-size: 16px;
    }

    .category-content span {
        font-size: 12px;
    }
}

/* HOVER (desktop only) */
@media (hover: hover) {
    .category-card:hover img {
        transform: scale(1.08);
    }
}




/* =========================
   PRODUCT SECTION
========================= */

.product-section {
    padding: 64px 0;
    background: #fafafa;
}

.product-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-section .sub-title {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
}

/* =========================
   PRODUCT GRID – RESPONSIVE
========================= */

.product-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;

    display: grid;
    gap: 24px;
}

/* Desktop */
@media (min-width: 1025px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .product-section {
        padding: 48px 0;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Mobile nhỏ */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   PRODUCT CARD
========================= */

.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
}

/* Hover chỉ desktop */
@media (hover: hover) {
    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    }
}

/* =========================
   IMAGE
========================= */

.product-image {
    width: 100%;
    height: 200px;
    background: #f3f3f3;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile: ảnh thấp hơn */
@media (max-width: 768px) {
    .product-image {
        height: 160px;
    }
}

/* =========================
   HOT BADGE
========================= */

.badge-hot {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff3b30;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

/* =========================
   PRODUCT INFO
========================= */

.product-info {
    padding: 16px;
}

.product-info h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Mobile: chữ gọn hơn */
@media (max-width: 480px) {
    .product-info {
        padding: 14px;
    }

    .product-info h3 {
        font-size: 14px;
    }
}

.rating {
    font-size: 13px;
    color: #f5a623;
    margin-bottom: 8px;
}

/* =========================
   PRICE
========================= */

.price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.new-price {
    font-size: 16px;
    font-weight: 700;
    color: #ff6a00;
}

.old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

/* Mobile: giá nhỏ hơn chút */
@media (max-width: 480px) {
    .new-price {
        font-size: 15px;
    }
}

/* =========================
   BUTTON
========================= */

.btn-cart {
    width: 100%;
    background: #ff6a00;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-cart:hover {
    background: #e65c00;
}

/* Mobile: nút dễ bấm hơn */
@media (max-width: 768px) {
    .btn-cart {
        padding: 12px;
        font-size: 15px;
    }
}




/* =========================
   BRANDS SECTION
========================= */

.brands-section {
    padding: 64px 0;
    background: #fff;
}

.brands-section h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.brands-section .subtitle {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
}

/* =========================
   BRANDS GRID – RESPONSIVE
========================= */

.brands-grid {
    display: grid;
    gap: 24px;

    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Desktop lớn */
@media (min-width: 1025px) {
    .brands-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .brands-section {
        padding: 48px 0;
    }

    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Mobile nhỏ */
@media (max-width: 480px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   BRAND ITEM
========================= */

.brand-item {
    background: #fff;
    border-radius: 16px;
    padding: 20px 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid #eee;
    text-align: center;
    cursor: pointer;

    transition: all 0.25s ease;
}

/* Highlight (active – giống Nissan trong Figma) */
.brand-item.active {
    border-color: #ff6a00;
    box-shadow: 0 8px 24px rgba(255,106,0,0.18);
}

/* Hover desktop */
@media (hover: hover) {
    .brand-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
    }
}

/* =========================
   BRAND IMAGE
========================= */

.brand-item img {
    width: 100%;
    max-width: 120px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 10px;
}

/* =========================
   BRAND NAME
========================= */

.brand-item span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* Mobile text nhỏ hơn */
@media (max-width: 480px) {
    .brand-item {
        padding: 16px 12px;
        border-radius: 14px;
    }

    .brand-item img {
        height: 60px;
    }

    .brand-item span {
        font-size: 13px;
    }
}





/* =========================
   CART BASE
========================= */

.cart-container {
    max-width: 1100px;
    margin: 40px auto;
    background: #fff;
    padding: 32px;
    border-radius: 14px;
}

.cart-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
}

/* =========================
   TABLE STRUCTURE
========================= */

.cart-table {
    width: 100%;
}

.cart-header,
.cart-row {
    display: grid;
    grid-template-columns: 3fr 1.2fr 1.4fr 1.4fr;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.cart-header {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #eee;
}

.cart-row {
    border-bottom: 1px solid #f0f0f0;
}

/* =========================
   PRODUCT
========================= */

.product {
    display: flex;
    align-items: center;
    gap: 14px;
}

.product img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.product strong {
    font-size: 14px;
    line-height: 1.4;
}

/* =========================
   PRICE
========================= */

.price,
.subtotal {
    font-size: 14px;
    font-weight: 600;
    color: #e53935;
}

/* =========================
   QUANTITY
========================= */

.quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quantity span {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
}

.quantity button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f2f2f2;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.quantity button:hover {
    background: #ddd;
}

/* =========================
   SUMMARY
========================= */

.cart-summary {
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total {
    font-size: 18px;
    font-weight: 700;
}

.total span {
    color: #e53935;
}

.checkout-btn {
    background: #e53935;
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.checkout-btn:hover {
    background: #d32f2f;
}

/* =========================
   LAPTOP (1024–1366)
========================= */

@media (max-width: 1366px) {
    .cart-container {
        max-width: 900px;
    }
}

/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {
    .cart-container {
        padding: 24px;
    }

    .cart-header,
    .cart-row {
        grid-template-columns: 2.8fr 1.2fr 1.5fr 1.5fr;
    }
}

/* =========================
   MOBILE (STACK)
========================= */

@media (max-width: 768px) {

    .cart-header {
        display: none;
    }

    .cart-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px 0;
    }

    .product {
        gap: 12px;
    }

    .price,
    .subtotal {
        font-size: 15px;
    }

    .quantity {
        justify-content: flex-start;
    }

    .cart-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .checkout-btn {
        width: 100%;
        text-align: center;
    }
}



/* =========================
   CHECKOUT LAYOUT
========================= */

.checkout {
    max-width: 1100px;
    margin: 48px auto;
    padding: 0 16px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

/* CARD STYLE */
.checkout .left,
.checkout .right {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* TITLES */
.checkout h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.checkout h4 {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 700;
    color: #ff6a00;
}

/* =========================
   ORDER SUMMARY
========================= */

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 0;
    border-bottom: 1px solid #eee;

    font-size: 14px;
}

.order-item span {
    font-weight: 600;
    color: #e53935;
}

/* =========================
   CUSTOMER FORM
========================= */

.checkout form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checkout input,
.checkout textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.checkout input:focus,
.checkout textarea:focus {
    border-color: #ff6a00;
}

.checkout textarea {
    min-height: 100px;
    resize: vertical;
}

/* BUTTON */
.checkout button {
    margin-top: 10px;
    padding: 14px;
    border-radius: 10px;
    border: none;

    background: #ff6a00;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkout button:hover {
    background: #e65c00;
}

/* =========================
   TABLET (<=1024px)
========================= */
@media (max-width: 1024px) {
    .checkout {
        grid-template-columns: 1fr;
        max-width: 720px;
    }
}

/* =========================
   MOBILE (<=600px)
========================= */
@media (max-width: 600px) {
    .checkout {
        margin: 24px auto;
        gap: 20px;
    }

    .checkout .left,
    .checkout .right {
        padding: 16px;
        border-radius: 12px;
    }

    .checkout h3 {
        font-size: 16px;
    }

    .checkout h4 {
        font-size: 16px;
    }

    .order-item {
        font-size: 13px;
    }

    .checkout button {
        font-size: 14px;
        padding: 12px;
    }
}




/* CART ICON */
.cart-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 22px; /* size icon */
    text-decoration: none;
    color: #333;
}

/* BADGE */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    background: #ff3b30; /* đỏ Figma */
    color: #fff;

    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;

    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* MOBILE TUNE */
@media (max-width: 768px) {
    .cart-icon {
        font-size: 20px;
    }

    .cart-badge {
        top: -5px;
        right: -8px;
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        line-height: 16px;
    }
}




.toast-cart {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #ff6a00;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.toast-cart.show {
    opacity: 1;
    transform: translateY(0);
}


.btn-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
}

.btn-remove:hover {
    color: #e53935;
}


/* ===== CLEAR CART BUTTON ===== */

.btn-clear-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 12px 20px;
    min-height: 44px;            /* chuẩn tap mobile */
    border-radius: 10px;

    background: #fff;
    border: 1.5px solid #e53935;
    color: #e53935;

    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;

    transition: all 0.25s ease;
}

.btn-clear-cart::before {
    content: "🗑";
    font-size: 16px;
}

/* Hover desktop */
@media (hover: hover) {
    .btn-clear-cart:hover {
        background: #e53935;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(229, 57, 53, 0.25);
    }
}

/* Active / tap mobile */
.btn-clear-cart:active {
    transform: scale(0.96);
}

/* ===== VỊ TRÍ NÚT TRONG CART SUMMARY ===== */

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .cart-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-clear-cart {
        width: 100%;
        justify-content: center;
        font-size: 15px;
    }
}

/* ===== TABLET ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    .btn-clear-cart {
        padding: 12px 18px;
    }
}

/* Toast đồng bộ chuyên nghiệp */
.toast-custom {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-custom.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-custom i {
    color: #28a745;
    font-size: 20px;
}

/* Container chính cho bộ nút hỗ trợ */
.mobile-action-bar {
    position: fixed;
    bottom: 100px; /* Cách đáy để tránh đè lên thanh điều hướng mobile */
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

/* Định dạng chung cho thẻ <a> */
.mobile-action-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    line-height: 1.2;
    background: #ff6a00;
}

/* Nút Gọi - Màu cam đặc trưng Hà Thành Auto */
.mobile-action-bar a[href^="tel:"] {
    background: #0084ff;
}

/* Nút Zalo - Màu xanh thương hiệu */
.mobile-action-bar a[href*="zalo.me"] {
    background: #0084ff;
}

/* Hiệu ứng vòng tròn lan tỏa (Pulse) */
.mobile-action-bar a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Hiệu ứng khi di chuột vào (Hover) */
.mobile-action-bar a:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 480px) {
    .mobile-action-bar {
        bottom: 80px;
        right: 15px;
        gap: 12px;
    }
    .mobile-action-bar a {
        width: 50px;
        height: 50px;
        font-size: 10px;
    }
}

/* Tối ưu khu vực đăng ký nhận tin */
.newsletter {
    background-color: var(--primary); /* Sử dụng màu cam chuẩn */
    padding: 30px 0;
    text-align: center;
}

.newsletter h3 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    /* Làm dịu và dãn cách chữ */
    letter-spacing: 1.5px; 
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    /* Dãn dòng để mắt dễ đọc hơn */
    line-height: 1.6;
    letter-spacing: 0.3px;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

/* Khóa màu link bảo hành không cho đổi màu xanh/tím */
.static-link {
    color: inherit !important; /* Lấy đúng màu đen/xám của chữ xung quanh */
    text-decoration: none !important; /* Xóa gạch chân */
    cursor: pointer;
    display: inline-block;
}

/* Đảm bảo khi đã bấm rồi vẫn không đổi màu */
.static-link:visited, 
.static-link:active, 
.static-link:focus {
    color: inherit !important;
    text-decoration: none !important;
}

/* Chỉ đổi màu cam khi di chuột vào (đúng phong cách chuyên nghiệp) */
.static-link:hover {
    color: var(--primary) !important; 
}