/* =========================
   HERO SECTION
   ========================= */
.hero-section {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/hero-wine.jpg');
  background-size: cover;
  background-position: center;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -1.5rem; /* pull up if needed */
}

.hero-content h1 {
  font-size: 4rem;
  letter-spacing: 5px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 30px;
}

.hero-content .btn {
  padding: 12px 40px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}


@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background-color: #ffff; /* nền trung tính, sang trọng */
  color: #251520; /* màu chữ tối pha tím rượu vang */
  margin: 0;
  padding: 0;
}

a {
  color: #7d1338;
  text-decoration: none;
}

a:hover {
  color: #a81b4c;
  text-decoration: underline;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow:
    0 0 0 0.1rem #f5f2ee,
    0 0 0 0.25rem #7d1338;
}

/* =========================
   LAYOUT & NAVBAR
   ========================= */
.navbar {
  background: linear-gradient(
    135deg,
    #1b0b14 0%,
    #3b1022 60%,
    #7d1338 100%
  ) !important;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-brand i {
  margin-right: 8px;
  color: #f0c674;
}

.nav-link {
  font-weight: 500;
}

.nav-link.active,
.nav-link:hover {
  color: #f0c674 !important;
}

.container {
  max-width: 1200px;
  /* background-color: #ffffff; */
}

/* Footer cố định dưới nhưng không tạo mảng đen quá lớn */
.footer {
  background: #151015;
  color: #d9d2d9;
  padding: 28px 0 20px;
  position: relative; /* đổi từ fixed sang relative để không che nội dung */
  width: 100%;
  font-size: 0.9rem;
  margin-top: 56px;
}

.footer h5 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  color: #cfd2d6;
}

.footer a {
  color: #cfd2d6;
}

.footer a:hover {
  color: #ffffff;
}

.text-metallic {
  color: #cfd2d6 !important; /* xám kim loại nhẹ */
}

/* =========================
   CARDS & PRODUCT LISTING
   ========================= */
.card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.card-img-top {
  height: 260px;
  object-fit: cover;
}

.card-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #2b1522;
}

.card-text {
  font-size: 0.92rem;
  color: #6b5b64;
}

.price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #c01f4d;
}

.price-old {
  font-size: 0.9rem;
  color: #a0a0a0;
  text-decoration: line-through;
}

.btn-primary {
  background: linear-gradient(135deg, #7d1338 0%, #c01f4d 100%);
  border: none;
  border-radius: 999px;
  padding-inline: 1.5rem;
  font-weight: 500;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8d163f 0%, #d22557 100%);
}

/* =========================
   ITEM PRODUCT MAIN
   ========================= */
.item_product_main {
    transition: all .3s ease;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.item_product_main:hover {
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.product-thumbnail {
    position: relative;
    overflow: hidden;
}

.action-bar {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    transition: all .3s ease;
    background: rgba(255,255,255,0.9);
    padding: 10px 0;
}

.item_product_main:hover .action-bar {
    bottom: 0;
}

.action-child {
    background: #7d1338;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all .3s ease;
    border: none;
}

.action-child:hover {
    background: #931d36;
    transform: scale(1.1);
}

.action-child i {
    font-size: 16px;
    color: #fff;
}

.action-name {
    display: none;
}

.product-name a {
    color: #333;
    transition: color .3s ease;
}

.product-name a:hover {
    color: #7d1338;
}

.price-box .price {
    font-weight: bold;
    color: #7d1338;
    font-size: 18px;
}

.price-box .compare-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-left: 10px;
}


.badge.bg-danger {
  background-color: #c01f4d !important;
}

/* =========================
   CHATBOT STYLES
   ========================= */
/* Chatbot Styles */
.chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-toggle i {
  color: white;
  font-size: 24px;
}

.chatbot-container {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h6 {
  margin: 0;
  font-weight: bold;
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f8f9fa;
}

.chatbot-message {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.chatbot-message.user {
  align-items: flex-end;
}

.chatbot-message.bot {
  align-items: flex-start;
}

.chatbot-message-content {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 15px;
  word-wrap: break-word;
}

.chatbot-message.user .chatbot-message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.chatbot-message.bot .chatbot-message-content {
  background: white;
  color: #333;
  border: 1px solid #e0e0e0;
}

.chatbot-input {
  padding: 15px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  gap: 10px;
  background: white;
}

.chatbot-input input {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 8px 15px;
  outline: none;
}

.chatbot-input input:focus {
  border-color: #667eea;
}

.chatbot-input button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-input button:hover {
  opacity: 0.9;
}

/* Loading animation */
.chatbot-loading {
  display: inline-block;
}

.chatbot-loading span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #667eea;
  margin: 0 2px;
  animation: bounce 1.4s infinite ease-in-out both;
}

.chatbot-loading span:nth-child(1) {
  animation-delay: -0.32s;
}

.chatbot-loading span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
