/* =========================================================
   PRODUCT PAGE
   BOUNTIFUL BLOOMS
   STYLE: SOFT LUXURY / FEMININE FLORIST
   ========================================================= */

/* =========================================================
   1. TRANG PRODUCT
   ---------------------------------------------------------
   .product-page l� to�n b? khu v?c n?i dung c?a trang Product.
   ? d�y ch�ng ta:
   - t?o kho?ng c�ch tr�n/du?i
   - t?o background gradient
   - t?o c?m gi�c h?ng -> rose -> burgundy th?t m?m
   ========================================================= */

.product-page {
  position: relative;

  /* Kho?ng c�ch:
     4.8rem = ph�a tr�n
     0      = tr�i/ph?i
     11rem  = ph�a du?i */
  padding: 4.8rem 0 11rem;

  /* Background nhi?u l?p:
     - radial-gradient = t?o v�ng s�ng m?m
     - linear-gradient = chuy?n m�u to�n b? trang */
  background:
    radial-gradient(
      circle at 12% 5%,
      rgba(244, 194, 194, 0.22),
      transparent 32%
    ),
    radial-gradient(circle at 88% 75%, rgba(18, 17, 17, 0.16), transparent 52%),
    linear-gradient(
      180deg,
      /* Ph?n g?n Header */ #f4e5e7 0%,

      /* H?ng dusty */ #e5c0c5 18%,

      /* Rose */ #c48892 42%,

      /* Rose d?m */ #a76974 68%,

      /* Burgundy */ #794a55 100%
    );
}

/* =========================================================
   2. PAGE HEADER
   ---------------------------------------------------------
   Khu v?c ch?a:
   HOME / PRODUCT
   OUR FLOWERS
   ---------------------------------------------------------
   border-bottom:
   t?o m?t du?ng line r?t nh? du?i ti�u d?.
   ========================================================= */

.page-header {
  position: relative;

  /* Kho?ng c�ch ph�a du?i d? t�ch title
     kh?i ph?n product b�n du?i */
  margin-bottom: 4.5rem;

  /* Kho?ng c�ch b�n trong */
  padding: 0.8rem 0 2.8rem;

  /* Line c?c nh? */
  border-bottom: 1px solid rgba(255, 245, 246, 0.14);
}

/* ---------------------------------------------------------
   V?ch nh? du?i ti�u d?

   ::after l� pseudo-element.
   N� t?o m?t ph?n t? gi? m� kh�ng c?n HTML.

   Gem c? t�nh d�ng m�u tr?ng h?ng r?t nh?
   d? n� h�a v�o background thay v� n?i b?t.
   --------------------------------------------------------- */

.page-header::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -0.1rem;

  width: 7rem;
  height: 0.2rem;

  background: rgba(255, 235, 238, 0.35);

  border-radius: 1rem;
}

/* =========================================================
   3. BREADCRUMB
   ---------------------------------------------------------
   V� d?:
   HOME / PRODUCT
   ========================================================= */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 0.3rem;

  margin-bottom: 1.4rem;

  font-size: 1.2rem;
  font-weight: 600;

  /* Cho ch? vi?t hoa */
  text-transform: uppercase;

  /* Tang kho?ng c�ch gi?a c�c k� t? */
  letter-spacing: 0.13rem;

  color: #6f4d53;
}

/* Link HOME */

.breadcrumb a {
  color: #5a3f44;

  font-weight: 600;

  text-decoration: none;

  transition: color 0.3s ease;
}

/* Khi r� chu?t */

.breadcrumb a:hover {
  color: var(--pink-deep);
}

/* D?u "/" */

.breadcrumb .divider {
  margin: 0 0.8rem;

  color: #98757b;
}

/* PRODUCT hi?n t?i */

.breadcrumb .current {
  color: #b45f6c;

  font-weight: 700;
}

/* =========================================================
   4. PAGE TITLE
   ---------------------------------------------------------
   V� d?:
   Our Flowers
   ========================================================= */

.page-title {
  margin: 0;

  /* D�ng font heading d� khai b�o trong main.css */
  font-family: var(--font-heading, "Playfair Display", serif);

  /* clamp gi�p ch? responsive:
     nh? nh?t: 3.8rem
     uu ti�n: 5vw
     l?n nh?t: 5.6rem */
  font-size: clamp(3.8rem, 5vw, 5.6rem);

  line-height: 1.08;

  font-weight: 500;

  letter-spacing: -0.05rem;

  /* �en d? t?o contrast */
  color: var(--primary-black);
}

/* =========================================================
   5. SHOP LAYOUT
   ---------------------------------------------------------
   Chia trang th�nh 2 c?t:

   C?t tr�i  = Sidebar
   C?t ph?i  = Product

   23rem = d? r?ng sidebar
   1fr    = ph?n c�n l?i d�nh cho s?n ph?m
   ========================================================= */

.shop-layout {
  display: grid;

  grid-template-columns:
    23rem
    minmax(0, 1fr);

  gap: 5rem;

  align-items: start;
}

/* =========================================================
   6. SIDEBAR
   ---------------------------------------------------------
   Sidebar s? d?ng c? d?nh khi scroll.

   position: sticky
   = khi k�o trang, sidebar s? b�m theo viewport.

   max-height
   = kh�ng cho sidebar d�i v� h?n.

   overflow-y
   = n?u category qu� nhi?u th� sidebar
     t? c� scroll ri�ng.
   ========================================================= */

.shop-sidebar {
  position: sticky;

  /* Kho?ng c�ch t? d?u m�n h�nh */
  top: 10.5rem;

  /* Chi?u cao t?i da */
  max-height: calc(100vh - 13rem);

  /* N?u n?i dung qu� d�i -> scroll d?c */
  overflow-y: auto;

  /* Kho?ng c�ch b�n trong */
  padding: 2.4rem;

  /* Glass pink */
  background: rgba(255, 247, 248, 0.78);

  /* Vi?n m?ng */
  border: 1px solid rgba(255, 255, 255, 0.45);

  /* Bo g�c */
  border-radius: 2rem;

  /* Shadow ngo�i + highlight b�n trong */
  box-shadow:
    0 1.5rem 4rem rgba(24, 10, 14, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);

  /* Hi?u ?ng k�nh m? */
  backdrop-filter: blur(1.4rem);
  -webkit-backdrop-filter: blur(1.4rem);

  /* Scrollbar tr�n Chrome/Edge */
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 112, 124, 0.45) transparent;
}

/* =========================================================
   7. SIDEBAR TITLE
   ========================================================= */

.sidebar-title {
  margin: 0 0 2rem;

  padding-bottom: 1.4rem;

  font-family: var(--font-heading, "Playfair Display", serif);

  font-size: 2.35rem;

  line-height: 1.2;

  font-weight: 500;

  color: var(--primary-black);

  border-bottom: 1px solid rgba(18, 17, 17, 0.1);
}

/* =========================================================
   8. CATEGORY LIST
   ========================================================= */

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* �?nh d?ng chung cho t?t c? c�c th? li (bao g?m c? item b?m du?c) */
.category-list li.category-item,
.category-list li:not(.category-group) {
  display: flex;
  align-items: center;
  min-height: 3.8rem;
  padding: 0.8rem 1.2rem;
  margin-bottom: 0.4rem; /* Th�m ch�t kho?ng c�ch gi?a c�c d�ng cho tho�ng */
  border-radius: 1rem;
  font-size: 1.35rem;
  line-height: 1.4;
  text-decoration: none;
  color: #625457;
  cursor: pointer;
  transition:
    color 0.3s ease,
    background-color 0.3s ease,
    transform 0.3s ease;
}

/* Ti�u d? nh�m (Fresh Flowers, Plants...) kh�ng ph?i l� n�t b?m */
.category-list .category-group {
  margin: 2.4rem 0 1rem;
  font-size: 1.05rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-weight: 600;
  color: #8d6b71;
  cursor: default;
}

.category-list .category-group:first-of-type {
  margin-top: 0.6rem;
}

/* Hover category */
.category-list li.category-item:hover {
  color: var(--primary-black);
  background-color: rgba(244, 194, 194, 0.18);
  transform: translateX(0.3rem);
}

/* ---------------------------------------------------------
   Category dang du?c ch?n (S?A L?I �O?N N�Y CHO ��NG)
   --------------------------------------------------------- */
.category-list li.category-item.active {
  color: var(--primary-black);
  background: linear-gradient(
    90deg,
    rgba(244, 194, 194, 0.32),
    rgba(244, 194, 194, 0.08)
  );
  font-weight: 600;
  box-shadow:
    inset 0.2rem 0 0 var(--pink-deep),
    0 0.5rem 1.8rem rgba(216, 112, 124, 0.06);
}

/* =========================================================
   9. SHOP TOPBAR
   ---------------------------------------------------------
   Khu v?c:

   "Hi?n th? 1�12..."
                     [ M?i nh?t ]

   ========================================================= */

.shop-topbar {
  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 2rem;

  margin-bottom: 3.2rem;
}

/* ---------------------------------------------------------
   S? lu?ng s?n ph?m
   --------------------------------------------------------- */

.result-count {
  margin: 0;

  font-size: 1.3rem;

  line-height: 1.5;

  font-weight: 600;

  /* M�u t?i d? d?c r� tr�n n?n h?ng */
  color: #4b353a;
}

/* =========================================================
   10. SORT BOX
   ---------------------------------------------------------
   .sort-box ch? d�ng l�m "khung ch?a".

   Mui t�n dropdown du?c t?o ? d�y,
   thay v� v? b?ng background c?a select.
   ========================================================= */

/* =========================================================
   CUSTOM SORT DROPDOWN
   ========================================================= */

/* Khung ch?a dropdown */
.sort-box {
  position: relative;
  width: 18rem;
}

/* N�t dang hi?n th? */
.sort-trigger {
  width: 100%;
  height: 4.6rem;

  padding: 0 1.6rem;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border: 1px solid rgba(74, 38, 45, 0.15);
  border-radius: 1.3rem;

  background: rgba(255, 247, 248, 0.72);

  color: #342528;

  font-family: var(--font-body, sans-serif);
  font-size: 1.3rem;
  font-weight: 600;

  cursor: pointer;

  box-shadow:
    0 0.8rem 2rem rgba(65, 32, 40, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);

  backdrop-filter: blur(1.2rem);
  -webkit-backdrop-filter: blur(1.2rem);

  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Hover n�t */
.sort-trigger:hover {
  background: rgba(255, 247, 248, 0.9);

  border-color: rgba(216, 112, 124, 0.35);

  box-shadow: 0 1rem 2.5rem rgba(65, 32, 40, 0.1);
}

/* Mui t�n */
.sort-arrow {
  width: 0.8rem;
  height: 0.8rem;

  border-right: 1.5px solid #4b353a;
  border-bottom: 1.5px solid #4b353a;

  transform: rotate(45deg) translateY(-0.2rem);

  transition: transform 0.25s ease;
}

/* Khi m? dropdown */
.sort-box.open .sort-arrow {
  transform: rotate(225deg) translateY(-0.2rem);
}

/* =========================================================
   DANH S�CH OPTIONS
   ========================================================= */

.sort-menu {
  position: absolute;

  top: calc(100% + 0.8rem);
  left: 0;

  width: 100%;

  padding: 0.6rem;

  background: rgba(255, 247, 248, 0.96);

  border: 1px solid rgba(216, 112, 124, 0.14);

  border-radius: 1.4rem;

  box-shadow:
    0 1.5rem 3.5rem rgba(50, 24, 30, 0.16),
    0 0.3rem 1rem rgba(50, 24, 30, 0.05);

  backdrop-filter: blur(1.5rem);
  -webkit-backdrop-filter: blur(1.5rem);

  opacity: 0;

  visibility: hidden;

  transform: translateY(-0.6rem) scale(0.98);

  transform-origin: top;

  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;

  z-index: 100;
}

/* Khi m? */
.sort-box.open .sort-menu {
  opacity: 1;

  visibility: visible;

  transform: translateY(0) scale(1);
}

/* =========================================================
   T?NG OPTION
   ========================================================= */

.sort-option {
  width: 100%;

  padding: 1.1rem 1.2rem;

  border: none;

  border-radius: 0.9rem;

  background: transparent;

  color: #574247;

  font-family: var(--font-body, sans-serif);
  font-size: 1.25rem;
  font-weight: 500;

  text-align: left;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

/* Hover option */
.sort-option:hover {
  background: rgba(244, 194, 194, 0.35);

  color: #24191c;
}

/* Option dang ch?n */
.sort-option.active {
  background: #f4c2c8;

  color: #24191c;

  font-weight: 600;
}

/* Mobile */
@media (max-width: 800px) {
  .sort-box {
    width: 100%;
  }

  .sort-trigger {
    width: 100%;
  }
}

/* =========================================================
   13. PRODUCT CARD
   ---------------------------------------------------------
   Card b�n ngo�i kh�ng c� background tr?ng.

   �i?u n�y gi�p card h�a v�o background
   thay v� m?i s?n ph?m th�nh m?t "c?c tr?ng".
   ========================================================= */

.product-card {
  position: relative;

  width: 100%;
  max-width: 320px;

  justify-self: start;

  text-align: left;

  cursor: pointer;

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  border-radius: 0 !important;

  opacity: 0;

  transform: translateY(40px);

  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;

  transition: transform 0.35s ease;
}

/* =========================================================
   14. PRODUCT IMAGE WRAPPER
   ---------------------------------------------------------
   ��y l� ph?n r?t quan tr?ng.

   Kh�ng d�ng:

   border-radius: 50% 50% 0 0;

   v� n� t?o arch / vi�n thu?c / v�m.

   Thay v�o d�:
   bo g�c v?a ph?i -> hi?n d?i hon.
   ========================================================= */

.product-img-wrap {
  position: relative;

  width: 100%;

  /* T? l? ?nh 4:5 */
  aspect-ratio: 4 / 5;

  margin-bottom: 1.8rem;

  overflow: hidden;

  border-radius: 2rem;

  /* N?n ph�a sau ?nh */
  background: rgba(255, 247, 248, 0.86);

  border: 1px solid rgba(255, 255, 255, 0.38);

  box-shadow:
    0 1.2rem 3rem rgba(18, 17, 17, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);

  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

/* ---------------------------------------------------------
   Khi hover card:
   to�n b? khung ?nh n�ng l�n m?t ch�t.
   --------------------------------------------------------- */

.product-card:hover .product-img-wrap {
  background: #ead0d4 !important;
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1.5rem 3.5rem rgba(38, 18, 24, 0.18);
}

/* =========================================================
   15. PRODUCT IMAGE
   ========================================================= */

.product-img-wrap img {
  width: 100%;

  height: 100%;

  display: block;

  object-fit: cover;

  border-radius: 0;

  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------------------------------------------------------
   Hover:
   ph�ng ?nh l�n m?t ch�t.

   1.045 = 104.5%
   -> zoom r?t nh?, kh�ng b? gi?.
   --------------------------------------------------------- */

.product-card:hover .product-img-wrap img {
  transform: scale(1.03);
}

/* =========================================================
   16. PRODUCT BADGE
   ---------------------------------------------------------
   V� d?:

   BEST SELLER
   M?I
   ========================================================= */

.product-badge {
  position: absolute;

  top: 1.4rem;

  left: 1.4rem;

  z-index: 10;

  padding: 0.65rem 1rem;

  border-radius: 0.8rem;

  background: rgba(18, 17, 17, 0.92);

  color: #ffffff;

  font-size: 1rem;

  line-height: 1;

  font-weight: 600;

  letter-spacing: 0.04rem;

  box-shadow: 0 0.7rem 1.5rem rgba(18, 17, 17, 0.15);
}

/* Badge M?i d�ng m�u h?ng */

.new-badge {
  background: var(--pink-deep);

  color: #ffffff;
}

/* =========================================================
   17. ADD TO CART BUTTON
   ---------------------------------------------------------
   N�t n?m ph�a du?i ?nh.

   D�ng k�nh m? nh? d? n� n?i l�n
   nhung v?n nh�n th?y hoa ph�a sau.
   ========================================================= */

.add-to-cart-btn {
  position: absolute;

  left: 1.5rem;

  right: 1.5rem;

  bottom: 1.5rem;

  width: calc(100% - 3rem);

  padding: 1.1rem 1.6rem;

  border: 1px solid rgba(255, 255, 255, 0.8);

  border-radius: 1.2rem;

  background: rgba(255, 248, 249, 0.94);

  color: var(--primary-black);

  font-family: var(--font-body, sans-serif);

  font-size: 1.25rem;

  font-weight: 600;

  cursor: pointer;

  z-index: 10;

  box-shadow: 0 0.8rem 1.8rem rgba(18, 17, 17, 0.12);

  backdrop-filter: blur(1rem);

  -webkit-backdrop-filter: blur(1rem);

  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Hover n�t */

.add-to-cart-btn:hover {
  background: var(--primary-black);

  color: var(--pink-soft);

  transform: translateY(-0.1rem);

  box-shadow: 0 1rem 2rem rgba(18, 17, 17, 0.2);
}

/* =========================================================
   18. PRODUCT INFORMATION
   ---------------------------------------------------------
   T�n hoa + gi�
   ========================================================= */

.product-info {
  padding: 0 0.4rem;

  background: transparent !important;
}

/* T�n s?n ph?m */

.product-name {
  margin: 0 0 0.5rem;

  font-family: var(--font-heading, "Playfair Display", serif);

  font-size: 1.9rem;

  line-height: 1.25;

  font-weight: 500;

  color: #211719 !important;

  transition: color 0.3s ease;
}

/* Hover t�n hoa -> pink */

.product-card:hover .product-name {
  color: var(--pink-soft);
}

/* Gi� */

.product-price {
  margin: 0;

  font-size: 1.5rem;

  line-height: 1.4;

  font-weight: 700;

  color: #2b1b1f !important;

  letter-spacing: 0.03rem;
}

/* =========================================================
   19. SHOP CONTENT
   ========================================================= */

.shop-content {
  min-width: 0;
}

/* ---------------------------------------------------------
   Ch? BLOOM nh? ph�a tr�n result count
   --------------------------------------------------------- */

.shop-content::before {
  content: "BLOOM";

  display: block;

  margin-bottom: -1rem;

  font-family: var(--font-heading, "Playfair Display", serif);

  font-size: 1rem;

  font-weight: 500;

  letter-spacing: 0.35rem;

  /* �? r� tr�n background */
  color: rgba(126, 72, 82, 0.72);

  pointer-events: none;
}

/* =========================================================
   20. PAGINATION
   ---------------------------------------------------------
   Ph�n trang:

   1  2  3  ...  12  ?

   D�ng ? cu?i danh s�ch s?n ph?m.
   ========================================================= */

.pagination {
  display: flex;

  justify-content: center;

  align-items: center;

  gap: 0.8rem;

  margin-top: 6rem;

  padding-top: 3rem;

  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* ---------------------------------------------------------
   N�t s? trang
   --------------------------------------------------------- */

.pagination-link,
.pagination-next {
  display: flex;

  align-items: center;

  justify-content: center;

  width: 4.2rem;

  height: 4.2rem;

  border-radius: 50%;

  text-decoration: none;

  font-size: 1.3rem;

  font-weight: 600;

  color: #fff5f6;

  background: rgba(18, 17, 17, 0.22);

  border: 1px solid rgba(255, 255, 255, 0.18);

  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);

  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* Hover */

.pagination-link:hover,
.pagination-next:hover {
  transform: translateY(-0.2rem);

  background: rgba(244, 194, 194, 0.22);

  border-color: rgba(244, 194, 194, 0.45);

  box-shadow: 0 0.8rem 2rem rgba(18, 17, 17, 0.18);
}

/* Trang hi?n t?i */

.pagination-link.active {
  background: var(--primary-black);

  color: var(--pink-soft);

  border-color: var(--primary-black);

  box-shadow:
    0 0.8rem 2rem rgba(18, 17, 17, 0.25),
    0 0 0 0.3rem rgba(244, 194, 194, 0.16);
}

/* ---------------------------------------------------------
   D?u ...
   --------------------------------------------------------- */

.pagination-dots {
  display: flex;

  align-items: center;

  justify-content: center;

  width: 3rem;

  font-size: 1.4rem;

  color: rgba(255, 245, 246, 0.7);
}

/* Mui t�n Next */

.pagination-next {
  margin-left: 0.4rem;

  font-size: 1.7rem;
}

/* =========================================================
   21. TABLET
   ---------------------------------------------------------
   Khi m�n h�nh nh? hon 1100px:

   Sidebar nh? l?i
   Product c�n 2 c?t
   Card v?n gi? k�ch thu?c h?p l�
   ========================================================= */

@media (max-width: 1100px) {
  .shop-layout {
    grid-template-columns: 21rem minmax(0, 1fr);

    gap: 3rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 4rem 2.4rem;
  }

  .product-card {
    max-width: 320px;
  }
}

/* =========================================================
   22. MOBILE � TABLET NH?
   ---------------------------------------------------------
   <= 800px

   Sidebar kh�ng sticky n?a.
   Layout chuy?n th�nh 1 c?t.
   ========================================================= */

@media (max-width: 560px) {
  .product-page {
    padding-bottom: 7rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 3.2rem 1.4rem;
  }

  .product-card {
    max-width: none;
  }

  .shop-layout {
    grid-template-columns: 1fr;

    gap: 3.5rem;
  }

  /* Mobile:
     Sidebar n?m b�nh thu?ng trong flow */
  .shop-sidebar {
    position: static;

    max-height: none;

    overflow: visible;

    padding: 2rem;
  }

  /* ?n ch? BLOOM tr�n mobile
     d? giao di?n g?n hon */
  .shop-content::before {
    display: none;
  }

  .sidebar-title {
    font-size: 2.1rem;
  }

  /* Category chia th�nh 2 c?t */
  .category-list {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 0.5rem;
  }

  /* Category group chi?m c? h�ng */
  .category-list .category-group {
    grid-column: 1 / -1;

    margin-top: 2rem;
  }

  /* Topbar chuy?n th�nh d?c */
  .shop-topbar {
    align-items: flex-start;

    flex-direction: column;
  }

  /* Select chi?m full width */
  .sort-select {
    width: 100%;
  }
}

/* =========================================================
   23. MOBILE � �I?N THO?I
   ---------------------------------------------------------
   <= 560px
   ========================================================= */

@media (max-width: 560px) {
  .product-page {
    padding-bottom: 7rem;
  }

  .page-header {
    margin-bottom: 3.5rem;
  }

  .page-title {
    font-size: 3.8rem;
  }

  /* V?n 2 s?n ph?m / h�ng */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 3.2rem 1.4rem;
  }

  /* Card nh? hon tr�n di?n tho?i */
  .product-img-wrap {
    margin-bottom: 1.3rem;

    border-radius: 1.6rem;
  }

  /* Badge nh? l?i */
  .product-badge {
    top: 0.9rem;

    left: 0.9rem;

    padding: 0.55rem 0.75rem;

    font-size: 0.85rem;
  }

  /* N�t Add to Cart nh? l?i */
  .add-to-cart-btn {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;

    width: calc(100% - 1.6rem);

    padding: 0.95rem 0.8rem;

    font-size: 1.05rem;
  }

  .product-name {
    font-size: 1.55rem;
  }

  .product-price {
    font-size: 1.25rem;
  }

  /* Category v? 1 c?t */
  .category-list {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   HI?U ?NG DECOR & ANIMATION CHO PRODUCT
========================================= */

/* --- 1. Watermark ch? ch�m (Tone m�u cho n?n s�ng) --- */
.bg-watermark {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-heading, "Playfair Display", serif);
  font-size: 26vw;
  font-weight: bold;
  font-style: italic;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;

  /* Gradient x�m nh?t chuy?n sang h?ng nh?t d? n?i tr�n n?n tr?ng */
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.03) 0%,
    rgba(232, 160, 169, 0.15) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* �?y n?i dung l�n tr�n Watermark */
.page-header,
.shop-layout {
  position: relative;
  z-index: 2;
}

/* --- 2. Floating Sparkles --- */
.page-header {
  position: relative;
}

.sparkle {
  position: absolute;
  color: var(--pink-main, #e8a0a9);
  opacity: 0.8;
  animation:
    twinkle 3s infinite alternate,
    spin 10s linear infinite;
}

/* Can ch?nh v? tr� sao cho c?m ti�u d? can tr�i */
.sp-1 {
  top: -10px;
  left: 25%;
  font-size: 2.5rem;
  animation-delay: 0s;
}
.sp-2 {
  top: 40px;
  left: 40%;
  font-size: 1.5rem;
  animation-delay: 1s;
}
.sp-3 {
  bottom: 0;
  left: 35%;
  font-size: 1.2rem;
  animation-delay: 2s;
}

@keyframes twinkle {
  0% {
    opacity: 0.3;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* --- 3. Ornate Divider (Can tr�i) --- */
.ornate-divider {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ornate-divider .diamond {
  color: var(--pink-main, #e8a0a9);
  font-size: 1.8rem;
  animation: pulse 2s infinite;
}

.ornate-divider .line {
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, #ccc, transparent);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    text-shadow: 0 0 8px rgba(232, 160, 169, 0.6);
  }
}

/* --- 4. HI?U ?NG XU?T HI?N TH�C �? (CASCADING) --- */
.page-header {
  animation: fadeInDown 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.shop-sidebar {
  opacity: 0;
  animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

/* Delay l?n lu?t t?ng th? d? t?o c?m gi�c load mu?t m� */
.product-card:nth-child(1) {
  animation-delay: 0.1s;
}
.product-card:nth-child(2) {
  animation-delay: 0.2s;
}
.product-card:nth-child(3) {
  animation-delay: 0.3s;
}
.product-card:nth-child(4) {
  animation-delay: 0.4s;
}
.product-card:nth-child(5) {
  animation-delay: 0.5s;
}
.product-card:nth-child(6) {
  animation-delay: 0.6s;
}
.product-card:nth-child(n + 7) {
  animation-delay: 0.7s;
}

/* --- Keyframes --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* M�u cho c�c lo?i Tag kh�c nhau */
.product-badge.badge-new {
  background-color: #f4c2c2; /* M�u h?ng Coquette */
  color: #b84357; /* Ch? m�u d? m?n */
}

.product-badge.badge-best {
  background-color: #2b1419; /* M�u den/n�u tr?m */
  color: #ffffff; /* Ch? tr?ng */
}

.product-badge.badge-sale {
  background-color: #b84357; /* M�u d? n?i b?t cho khuy?n m�i */
  color: #ffffff;
}
