/* ------------------------------ Header ------------------------------  */
/* Container chung */
.container {
  max-width: 120rem; /* 1200px */
  margin: 0 auto;
  padding: 0 2.4rem; /* 24px */
}

/* Header & Navbar */
#main-header {
  /* Chuy?n sang n?n H?ng kem/H?ng ph?n ph? k�nh m? (thay cho m�u tr?ng) */
  background-color: rgba(250, 240, 241, 0.85); /* M� RGB c?a m�u --pink-soft */
  backdrop-filter: blur(1.2rem);
  -webkit-backdrop-filter: blur(1.2rem);

  /* �?i vi?n du?i sang m�u h?ng d?m hon m?t ch�t d? t?o di?m nh?n */
  border-bottom: 1px solid var(--pink-main);

  position: sticky;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
  /* �?i b�ng d? sang tone h?ng ph�t s�ng nh? */
  box-shadow: 0 0.4rem 1.5rem rgba(244, 194, 194, 0.4);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 8.5rem; /* 85px */
}

.logo {
  flex: 0 0 auto;
  font-family: var(--font-heading);
  font-size: 3rem; /* 22px */
  font-weight: 700;
  color: var(--primary-black);
  text-decoration: none;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo span {
  color: var(--pink-deep);
  font-style: italic;
  font-weight: 400;
  text-transform: lowercase;
  font-size: 2.4rem;
}

.box-logo {
  flex: 0 0 10rem;
  width: 10rem;
  height: 10rem;
  margin-left: -1.2rem;
}

.box-logo .icon-logo {
  max-width: 100%;
}

/* Links */
.nav-links {
  display: flex;
  gap: clamp(1.2rem, 2.8vw, 3.6rem); /* responsive spacing */
}

#main-header > .container > .logo {
  margin-left: -1.2rem;
  margin-right: 1.2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--soft-black);
  font-weight: 500;
  font-size: 1.4rem; /* 14px */
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.8rem 0;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-black);
}

/* G?ch ch�n m?m m?i khi Hover */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 0.2rem;
  background-color: var(--pink-deep);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 0.2rem;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Action Icons */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem; /* 16px */
}

.icon-btn {
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--primary-black);
  padding: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.icon-btn:hover {
  background-color: var(--primary-black); /* Hover v�o s? chuy?n n?n �en */
  color: var(--pink-soft); /* Icon d?i sang m�u H?ng */
  transform: translateY(-0.2rem);
}

/* N�t gi? h�ng �en - H?ng hi?n d?i */
.cart-btn {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1rem;
  background-color: var(--primary-black);
  color: var(--white);
  text-decoration: none;
  padding: 1rem 2rem; /* 10px 20px */
  border-radius: 3rem; /* Bo tr�n ho�n h?o */
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 0.4rem 1.2rem rgba(18, 17, 17, 0.15);
}

.cart-btn:hover {
  background-color: var(--pink-main);
  color: var(--primary-black);
  box-shadow: 0 0.6rem 2rem var(--pink-glow);
  transform: translateY(-0.2rem);
}

.cart-count {
  background-color: var(--pink-deep);
  color: var(--white);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ------------------------------ HERO BANNER ------------------------------ */
#hero {
  padding: 2rem 0 10rem;
  /* Hi?u ?ng n?n d? b�ng nh? nh�ng t? kem sang h?ng nh?t */
  background: linear-gradient(
    135deg,
    var(--bg-cream) 0%,
    var(--pink-soft) 100%
  );
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 8rem; /* Kho?ng c�ch gi?a ch? v� ?nh */
}

.hero-content {
  flex: 1;
}

/* Th? Tag (Badge) nung n?u */
.badge {
  display: inline-block;
  background-color: var(--white);
  color: var(--pink-deep);
  padding: 0.8rem 2rem;
  border-radius: 3rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-bottom: 2.4rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 0.4rem 1rem rgba(216, 112, 124, 0.15); /* B�ng h?ng nh? */
}

/* Ti�u d? ch�nh */
.hero-title {
  font-size: 5.6rem;
  line-height: 1.15;
  margin-bottom: 2.4rem;
}

.hero-title span {
  color: var(--pink-deep);
  font-style: italic;
  font-weight: 500;
}

/* �o?n van m� t? */
.hero-desc {
  font-size: 1.6rem;
  color: var(--soft-black);
  margin-bottom: 4rem;
  max-width: 90%;
  line-height: 1.8;
}

/* C?m n�t b?m */
.hero-actions {
  display: flex;
  gap: 2rem;
}

.btn-primary {
  background-color: var(--primary-black);
  color: var(--white);
  text-decoration: none;
  padding: 1.6rem 3.6rem;
  border-radius: 4rem;
  font-size: 1.4rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 0.8rem 2rem rgba(18, 17, 17, 0.15);
}

.btn-primary:hover {
  background-color: var(--pink-main);
  color: var(--primary-black);
  transform: translateY(-0.3rem);
  box-shadow: 0 1rem 2.5rem var(--pink-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-black);
  text-decoration: none;
  padding: 1.6rem 3.6rem;
  border-radius: 4rem;
  font-size: 1.4rem;
  font-weight: 600;
  border: 1px solid var(--primary-black);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: var(--primary-black);
  color: var(--white);
}

/* ================= HERO IMAGE ================= */
.hero-image {
  flex: 1;
  position: relative;
  border-radius: 20rem 20rem 0 20rem; /* Bo tr�n ki?u gi?t nu?c ph� c�ch */
  overflow: hidden;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.08);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/5; /* T? l? ?nh d?c thanh l?ch */
  transition: transform 0.8s ease;
}

.hero-image:hover img {
  transform: scale(1.05); /* Hi?u ?ng zoom nh? khi dua chu?t v�o ?nh */
}

/* Th? k�nh m? lo l?ng */
.glass-card {
  position: absolute;
  bottom: 7rem;
  left: 9rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(1.5rem);
  -webkit-backdrop-filter: blur(1.5rem);
  padding: 1.6rem 2.8rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}

.glass-icon {
  font-size: 2.8rem;
}

.glass-text {
  display: flex;
  flex-direction: column;
}

.glass-text strong {
  font-size: 1.5rem;
  color: var(--primary-black);
  font-weight: 700;
}

.glass-text span {
  font-size: 1.5rem;
  color: #2a2828;
  font-weight: 600;
  font-family:
    "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans",
    Arial, sans-serif;
}

/* ------------------------------ THI?T L?P PH?N CHUNG ------------------------------ */
/* ------------------------------ CARD S?N PH?M N?I B?T ------------------------------ */
#featured-flowers {
  padding: 5rem 0;
  background: linear-gradient(
    to bottom,
    var(--pink-soft) 0%,
    /* �i?m d?u kh?p 100% v?i d�y Banner */ #d4c3c5 25%,
    /* Tr?m 1: H?ng tro nh?t, b?t d?u d?u xu?ng */ #8b7d7e 55%,
    /* Tr?m 2: X�m h?ng tro, chuy?n giao �m �i */ var(--soft-black) 100%
      /* �i?m cu?i: �en nh?t (--soft-black) thanh l?ch */
  );
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
}

.subtitle {
  font-size: 2rem;
  color: var(--pink-deep);
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-weight: 600;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 5rem;
  color: var(--primary-black);
}

.section-title span {
  color: var(--pink-deep);
  font-style: italic;
  font-weight: 400;
}

/* ================= GRID V� CARD S?N PH?M ================= */
.product-grid {
  display: grid;
  /* T? d?ng chia c?t: chi?u r?ng t?i thi?u 260px, t?i da l� b?ng nhau */
  grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
  gap: 3.6rem;
}

.product-card {
  background-color: var(--bg-cream); /* N?n card m�u kem nh?t */
  border-radius: 12rem 12rem 2rem 2rem; /* T?ng th? th? nh?n cong l�n tr�n */
  padding: 1.5rem 1.5rem 2.5rem 1.5rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Hi?u ?ng n?y nh? c?c sang */
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-1.5rem);
  background-color: var(--white);
  border-color: var(--border-soft);
  box-shadow: 0 1.5rem 4rem rgba(244, 194, 194, 0.25); /* B�ng d? h?ng l�ng m?n */
}

/* Khung b?c ?nh ki?u c?a v�m (Arch) */
.product-img-wrap {
  position: relative;
  border-radius: 10.5rem 10.5rem 1.5rem 1.5rem; /* Bo tr�n m?nh ? d?nh, t?o h�nh v�m */
  overflow: hidden;
  aspect-ratio: 3/4; /* T? l? chu?n cho ?nh hoa */
  margin-bottom: 2rem;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img {
  transform: scale(1.08); /* Zoom nh? ?nh khi hover */
}

/* Badge (Nh�n d�n M?i, Gi?m gi�) */
.product-badge {
  position: absolute;
  top: 3.5rem; /* H? th?p th? xu?ng 1 ch�t d? l?y kh�ng gian cho s?i d�y */
  left: 3rem;
  background-color: var(--bg-cream);
  color: var(--primary-black);
  padding: 0.8rem 1.4rem 0.6rem; /* Tang padding tr�n m?t ch�t d? ch?a ch? d?c l? */
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 0.4rem; /* �?i th�nh h�nh ch? nh?t bo g�c nh? cho gi?ng th? qu� t?ng */
  z-index: 10;
  letter-spacing: 0.1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); /* B�ng d? cho th? n?i l�n */

  /* Ch�a kh�a v?t l�: D?i t�m l?c lu l�n v? tr� chi?c "dinh" ? tr�n c�ng s?i d�y (c�ch th? 2rem) */
  transform-origin: 50% -2rem;
  animation: swingBadge 3s infinite ease-in-out;
}

.product-badge.sale {
  background-color: var(--pink-deep);
  color: var(--white);
}

/* �?c l? x? d�y tr�n th? */
.product-badge::after {
  content: "";
  position: absolute;
  top: 0.3rem; /* N?m s�t m�p tr�n c?a th? */
  left: 50%;
  transform: translateX(-50%);
  width: 0.5rem;
  height: 0.5rem;
  /* D�ng m�u den nh?t c?a n?n Card d? t?o hi?u ?ng th? gi�c nhu b? d?c th?ng th?t */
  background-color: #2a2122;
  border-radius: 50%;
  box-shadow: inset 0 0.1rem 0.2rem rgba(0, 0, 0, 0.8); /* Vi?n t?i t?o d? s�u cho l? d?c */
}

/* V? s?i d�y th?ng */
.product-badge::before {
  content: "";
  position: absolute;
  bottom: 100%; /* B?t d?u t? m�p tr�n c�ng c?a th? k�o l�n */
  left: 50%;
  transform: translateX(-50%);
  width: 0.15rem; /* �? d�y c?a s?i d�y */
  height: 2rem; /* Chi?u d�i s?i d�y */
  background-color: rgba(244, 194, 194, 0.4); /* D�y m�u h?ng tro m? ?o */
}

/* ======== HI?U ?NG �UNG �UA ======== */
@keyframes swingBadge {
  0% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(8deg);
  }
  100% {
    transform: rotate(-8deg);
  }
}

.wishlist-btn:hover {
  background-color: var(--pink-main);
  color: var(--white);
  transform: scale(1.1);
}

/* Th�ng tin s?n ph?m */
.product-info {
  text-align: center;
  padding: 0 1rem;
}

.product-category {
  font-size: 1.2rem;
  color: var(--text-muted); /* C?n khai b�o bi?n n�y ho?c d�ng m� x�m (#888) */
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  margin-bottom: 0.8rem;
}

.product-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary-black);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.product-name:hover {
  color: var(--pink-deep);
}

/* Khu v?c Gi� */
.product-price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.current-price {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pink-deep);
}

.old-price {
  font-size: 1.4rem;
  color: #999;
  text-decoration: line-through;
}

/* N�t th�m v�o gi? h�ng: �en quy?n l?c, hover nung n?u */
.btn-add-cart {
  width: 100%;
  background-color: transparent;
  color: var(--primary-black);
  border: 1px solid var(--primary-black);
  padding: 1.2rem 0;
  border-radius: 3rem;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-add-cart:hover {
  background-color: var(--primary-black);
  color: var(--pink-soft); /* Ch? m�u h?ng nh?t, n?n den */
  border-color: var(--primary-black);
  box-shadow: 0 0.5rem 1.5rem rgba(18, 17, 17, 0.2);
}

/* ================= FOOTER (CH�N TRANG) ================= */
#main-footer {
  background-color: var(--primary-black); /* �en s�u th?m */
  color: var(--pink-soft); /* Ch? m�u h?ng kem m? */
  padding-top: 8rem;
  border-top: 1px solid rgba(244, 194, 194, 0.1); /* Vi?n m?ng ph�n c�ch */
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr; /* Chia 4 c?t */
  gap: 4rem;
  margin-bottom: 6rem;
}

.footer-logo {
  color: var(--white);
  margin-bottom: 2rem;
  display: inline-block;
}

.footer-desc {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  color: #999;
}

/* M?ng x� h?i */
.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 1px solid rgba(244, 194, 194, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--pink-main);
  text-decoration: none;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--pink-deep);
  color: var(--white);
  border-color: var(--pink-deep);
  transform: translateY(-0.3rem);
}

/* C?t Link */
.footer-col h4 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 1.5rem;
}

.footer-col ul a {
  color: #999;
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.footer-col ul a:hover {
  color: var(--pink-main);
}

/* �ang k� nh?n tin */
.newsletter-col p {
  font-size: 1.4rem;
  color: #999;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  border-bottom: 1px solid var(--pink-main);
  padding-bottom: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.4rem;
}

.newsletter-form input::placeholder {
  color: #666;
}

.newsletter-form button {
  background: transparent;
  border: none;
  color: var(--pink-main);
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.newsletter-form button:hover {
  transform: translateX(0.5rem); /* Mui t�n tru?t sang ph?i */
}

/* ��y Footer */
.footer-bottom {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.3rem;
  color: #666;
}
