@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
/* Colors */
--main-color: #eceade;
--white-color: #fff;
--dark-color: #252525;
--primary-color: #3b141c;
--secondary-color: #f3961c;
--light-pink-color: #faf4f5;
--medium-gray-color: #ccc;


}
.header-icons .chatbot-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f5f5;
  cursor: pointer;
  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              background 0.3s ease,
              color 0.3s ease;
  backdrop-filter: blur(18px);
  text-decoration: none;
}

.header-icons .chatbot-btn:hover,
.header-icons .chatbot-btn:focus-visible {
  background: #ffffff;
  color: #13111f;
  box-shadow: 0 18px 40px rgba(11, 8, 24, 0.35);
  transform: translateY(-2px);
  outline: none;
}

.header-icons .chatbot-btn i {
  font-size: 1.05rem;
  pointer-events: none;
}

/* Điều chỉnh kích thước header-top để chứa thêm icon */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 100px; /* Tăng padding từ 80px lên 100px để có thêm không gian */
  position: relative;
  width: 100%;
}

/* CSS cho chatbot window - THÊM VÀO CUỐI FILE */
.chatbot-window {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: url('assets/images/disco.png');
  border-radius: 15px;
  z-index: 10000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-window.active {
  display: flex;
}

.chatbot-header {
    backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: none;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin: 0;
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: transparent;
}

.chatbot-input {
  display: flex;
  padding: 15px;
  backdrop-filter: blur(25px) saturate(200%);
  -webkit-backdrop-filter: blur(25px) saturate(200%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: none;
}

.chatbot-input input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--medium-gray-color);
  border-radius: 25px;
  outline: none;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
}

.chatbot-input button {
  margin-left: 10px;
  padding: 12px 20px;
  background: black;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
}
.chatbot-input button:hover {
  background: #f3961c;
}
.message-container {
  display: flex;
  margin-bottom: 15px;
  align-items: flex-start;
  gap: 10px;
}

.message-container.user {
  flex-direction: row-reverse;
}

.message {
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 280px; 
  min-width: 60px; 
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  word-wrap: break-word;
  width: fit-content;
  background: rgba(255, 255, 255, 0.9);
  color: black;
}

.message.user {
  background: #f3961c;
  color: black;
  border-bottom-right-radius: 5px;
  margin-left: auto; 
}

.message.bot {
  background: rgba(255, 255, 255, 0.9);
  color: black;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-right: auto;
}

/* Timestamp */
.timestamp {
  font-size: 11px;
  color: #999;
  margin-top: 5px;
  text-align: right;
  opacity: 0.7;
}

.message.bot .timestamp {
  text-align: left;
}
.message.long {
  max-width: 300px;
}
.message.very-long {
  max-width: 320px;
}

/* header không cố định */
header {
  position: relative;
  width: 100%;
  background: black;
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 36px rgba(4, 3, 12, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 999;
}


.nav-logo {
    text-decoration: none;
    display: inline-block;
}

.logo {
    font-weight: 700;
    font-size: 32px;
    color: #ecf0f1;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #3498db;
    transform: scale(1.05);
}

.header-icons {
  position: absolute;
  top: 60%;
  right: 0px;
  transform: translateY(-40%);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 18px;
  color: #f5f5f5;
  margin-top: 0;
}

.header-icons .header-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  cursor: pointer;
  transition: transform var(--transition-normal),
    box-shadow var(--transition-normal),
    background var(--transition-normal),
    color var(--transition-normal);
  backdrop-filter: blur(18px);
}

.header-icons .header-icon:hover,
.header-icons .header-icon:focus-visible {
  background: #ffffff;
  color: #13111f;
  box-shadow: 0 18px 40px rgba(11, 8, 24, 0.35);
  transform: translateY(-2px);
  outline: none;
}

.header-icons .header-icon i,
.header-icons .header-icon svg {
  pointer-events: none;
}

.header-icons .header-icon i {
  font-size: 1.05rem;
}

.header-icons .cart-btn {
  padding: 0;
}
/* Search Bar Styles */
.search-bar {
    position: fixed;
    top: 100%; /* Đặt ngay bên dưới header */
    left: 0;
    width: 100%;
    background-image: url('assets/images/material.png');
    backdrop-filter: blur(20px);
    padding: 10px 50px;
    z-index: 1001;
    transform: translateY(-100%); /* Ẩn lên trên */
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

.search-bar.active {
    transform: translateY(0); /* Hiện ra đúng vị trí */
    opacity: 1;
    display: block;
}

.search-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 15px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: black;
    font-size: 18px;
    padding: 15px 0;
    outline: none;
    font-family: 'Barlow', sans-serif;
}

.search-input::placeholder {
    color: black;
}

.search-close {
    background: none;
    border: none;
    color: black;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: rgba(59, 20, 28, 0.5);
    color: #c89d41;
}

/* Responsive */
@media (max-width: 768px) {
    .search-bar {
        padding: 15px 20px;
    }
    
    .search-input {
        font-size: 16px;
        padding: 12px 0;
    }
}
.badge {
  position: absolute;
  top: -6px;
  right: -4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff98f6, #ffc66a);
  color: #0a0816;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.badge.show {
  opacity: 1;
  transform: scale(1);
}

.navbar {
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-menu {
  background: transparent;
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Menu items chính */
.nav-item {
    position: relative;
}

.nav-link {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    color: #eceade;
    padding: 18px 25px;
    display: block;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-link:hover {
    background-color: var(--primary-color);
    color: #c89d41;
    border-bottom: 2px solid var(--primary-color);
}

/* SUBMENU STYLES */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: black;
    min-width: 220px;
    list-style: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 5px 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Hiển thị submenu khi hover */
.nav-item:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu items */
.submenu-link {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #eceade;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    letter-spacing: 2px;
}

.submenu-link:hover {
    background-color: #3b141c;
    color: var(--secondary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 25px;
}

/* Mũi tên chỉ xuống cho menu có submenu */
.nav-item:has(.submenu) .nav-link::after {
    font-size: 10px;
    margin-left: 8px;
    color: #bdc3c7;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-link::after {
    transform: rotate(180deg);
    color: #c89d41;
}

/* Responsive cơ bản */
@media (max-width: 768px) {
    .header-top {
        padding: 15px 0;
    }

    .header-icons {
    right: 20px;
    top: 60%;
    transform: translateY(-40%);
        gap: 12px;
    }

    .logo {
        font-size: 24px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid #2c3e50;
        text-align: center;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: #2c3e50;
        display: none;
    }
    
    .nav-item:hover .submenu {
        display: block;
    }
    
    .submenu-link {
        color: #c89d41;
        padding-left: 40px;
        text-align: left;
    }
}

@media (max-width: 480px) {
  .logo {
        font-size: 20px;
        letter-spacing: 1px;
    }
    
    .nav-link {
        font-size: 13px;
        padding: 12px 15px;
    }  
}

/*footer*/
footer{
    padding: 0;
}
.footerContainer {
    background-color: black;
    width: 100%;
    padding: 20px 50px 5px;
}
.socialIcons{
    display: flex;
    justify-content: center;
}
.socialIcons a{
    text-decoration: none;
    padding: 10px;
    background-color: black;
    margin: 10px;
    border-radius: 50%;
}
.socialIcons a i{
    font-size: 30px;
    color: #c89d41;
    opacity: 0.9;
}
/* Hover effect on social media icon */
.socialIcons a:hover {
    background-color: var(--primary-color);
    transition: 0.5s;
}
.socialIcons a:hover i{
    color: #c89d41;
    transition: 0.5s;
}
.footerNav {
    margin: 30px 0;
}
.footerNav ul{
    display: flex;
    justify-content: center;
    list-style-type: none;
    
}
.footerNav ul li a{
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    color: #c89d41;
    margin: 20px;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.7;
    transition: 0.5s;
    letter-spacing: 2px;
}
.footerNav ul li a:hover{
    opacity: 1;
}
.footerBottom{
    background-color: black;
    padding: 20px;
    text-align: center;
}
.footerBottom p{
    font-family: 'Barlow', sans-serif;
    font-style: italic;
    letter-spacing: 2px;
    color: #c89d41;
}
.designer{
    font-family: 'Barlow', sans-serif;
    font-style: italic;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 700;
    margin: 0px 5px;
}
@media (max-width: 700px){
    .footerNav ul{
        flex-direction: column;
    }
    .footerNav ul li{
        width: 100%;
        text-align: center;
        margin: 10px;
    }
}
/* User Dropdown Styles */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: black;
    min-width: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 0 0 5px 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    display: flex;
    align-items: center;
    padding: 20px;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: black;
}

.user-details {
    flex: 1;
}

.user-name {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    color: #eceade;
    font-size: 16px;
    margin-bottom: 5px;
}

.user-rank {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    color: var(--secondary-color);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0;
}

.dropdown-menu {
    list-style: none;
    padding: 10px 0;
    margin: 0;
}

.dropdown-link {
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #eceade;
    text-decoration: none;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    background-color: #3b141c;
    color: var(--secondary-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 25px;
}

.dropdown-link i {
    width: 16px;
    text-align: center;
    font-size: 14px;
}
.user-btn {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
}

