/* 1. SETUP & VARIABLES */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");

:root {
  --primary-color: #10357e; /* Xanh đậm Phương Nam */
  --secondary-color: #f8f9fa;
  --accent-color: #d8232a; /* Đỏ giá tiền/Sale */
  --text-color: #333;
  --border-radius: 8px;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-color);
  background-color: #f5f5f5; /* Nền xám nhẹ cho toàn trang web */
}

a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  color: var(--primary-color);
}

/* 2. HEADER CUSTOMIZATION */
.header-main {
  background-color: var(--primary-color);
  padding: 15px 0;
  color: white;
}

.search-bar .form-control {
  border-radius: 50px 0 0 50px;
  border: none;
  padding-left: 20px;
}

.search-bar .btn {
  border-radius: 0 50px 50px 0;
  background-color: white;
  color: var(--primary-color);
  border: none;
  font-weight: bold;
}

.header-icon-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-size: 0.8rem;
  margin-left: 15px;
  cursor: pointer;
}
.header-icon-box i {
  font-size: 1.5rem;
  margin-bottom: 2px;
}
.header-icon-box:hover {
  color: #ddd;
}

/* 3. MAIN MENU */
.main-menu {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid #eee;
}

.nav-link-custom {
  color: #333;
  font-weight: 500;
  padding: 12px 15px !important;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.nav-link-custom:hover {
  color: var(--primary-color);
  background-color: #f8f9fa;
}

/* 4. PRODUCT CARD */
.product-card {
  background: white;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-img-wrap {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
}

.product-img-wrap img {
  max-height: 100%;
  transition: transform 0.5s;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

.card-title-custom {
  font-size: 0.95rem;
  height: 42px; /* Giới hạn 2 dòng */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 5px;
  line-height: 1.3;
}

.price-current {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.1rem;
}

/* 5. FOOTER & SECTIONS */
.brand-section img {
  filter: grayscale(100%);
  opacity: 0.7;
  transition: 0.3s;
  max-height: 40px;
}
.brand-section img:hover {
  filter: grayscale(0);
  opacity: 1;
}

.newsletter-section {
  background-color: white;
  border-top: 4px solid var(--primary-color);
}

.footer-main {
  background-color: white;
  padding-top: 40px;
  border-top: 1px solid #eee;
  font-size: 0.9rem;
  color: #555;
}
.footer-title {
  color: #333;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.payment-icons img {
  height: 25px;
  margin-right: 5px;
  margin-bottom: 5px;
}

/* 6. CATEGORY PAGE */
.category-card {
  background: white;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  overflow: hidden;
  position: relative;
}
