/* 
 * HỒNG PHƯỚC Website Styles
 * Theme: Clean, Modern, Professional, Friendly
 * Primary Color: Red-Orange (#FF5722)
 */

:root {
  --primary-color: #ee1b24;
  --secondary-color: #333333;
  --accent-color: #FAFAFA;
  --text-color: #333;
  --text-light: #666;
  --white: #ffffff;
  --border-color: #e0e0e0;

  --font-family: 'Inter', sans-serif;

  --container-width: 1200px;
  --header-height: 80px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-white {
  color: var(--white);
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.items-center {
  align-items: center;
}

.gap-1 {
  gap: 10px;
}

.gap-2 {
  gap: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #E64A19;
}

/* Mua Le button */
.btn-mua-le {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-mua-le:hover {
  background-color: #555555;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Header */
header {
  height: var(--header-height);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--secondary-color);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-color);
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow-md);
  z-index: 1001;
  border-radius: 8px;
  padding: 10px 0;
  top: 100%;
  left: 0;
}

.dropdown-content a {
  color: var(--secondary-color);
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  text-transform: none;
  transition: var(--transition);
}

.dropdown-content a:hover {
  background-color: #f9f9f9;
  color: var(--primary-color);
}

.nav-item-dropdown:hover>.dropdown-content {
  display: block;
}

.arrow-down {
  font-size: 10px;
  margin-left: 5px;
}

.arrow-right {
  font-size: 10px;
  float: right;
  margin-top: 4px;
}

/* 3rd Level Dropdown */
.dropdown-content .nav-item-dropdown {
  display: block;
  width: 100%;
}

.dropdown-content .dropdown-content {
  left: 100%;
  top: -10px;
  /* Align with parent padding */
  margin-left: 1px;
}

.dropdown-content .nav-item-dropdown:hover>.dropdown-content {
  display: block;
}

/* Header Actions */
.header-actions {
  margin-left: 20px;
}

.mobile-menu-btn {
  display: none;
  /* Hidden on desktop */
}

/* Footer */
footer {
  background-color: #dcdcdc;
  color: #333;
  padding: 60px 0 30px;
}

.footer-col h3 {
  color: #000;
  margin-bottom: 25px;
  font-size: 1.4rem;
  font-weight: 800;
}

.footer-col p,
.footer-col strong {
  color: #333;
}

.footer-col ul li a {
  color: #444;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid #bbb;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* Hero Section (Common) */
.hero {
  height: 600px;
  position: relative;
  overflow: hidden;
  background-color: #333;
  /* Fallback */
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out 0.5s;
  /* Delay content animation */
}

.hero-slide.active .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Carousel Nav */
.carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  pointer-events: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.nav-btn:active {
  transform: scale(0.95);
}

/* Pagination Dots */
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot.active {
  background: var(--primary-color);
  width: 30px;
  border-radius: 10px;
  border-color: var(--primary-color);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Product Card */
.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.product-img {
  height: 250px;
  overflow: hidden;
  background-color: #f0f0f0;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-title {
  font-size: 1.1rem;
  margin: 10px 0;
  color: var(--secondary-color);
}

.badge-wholesale {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-color);
  color: white;
  padding: 5px 10px;
  font-size: 0.7rem;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: bold;
}

/* Floating Contact Buttons */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  animation: zoom-in-out 2s infinite ease-in-out;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn.btn-zalo {
  background-color: transparent;
  box-shadow: none;
  /* SVG will have its own shadow if needed, or we keep it? Let's keep shadow but on the SVG */
}

.floating-btn.btn-phone {
  background-color: #4caf50;
}

.floating-btn svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.btn-label {
  position: absolute;
  right: 70px;
  background: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.floating-btn:hover .btn-label {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

@keyframes zoom-in-out {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .floating-contact {
    bottom: 20px;
    right: 20px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
  }

  .btn-label {
    display: none;
  }
}