/* ========== HOME PAGE WRAPPER ========== */
.home-page-wrapper {
  width: 100%;
  position: relative;
}

main#home-page-content {
  margin-top: 100px !important;
}

/* Optional: Smooth scroll cho toàn trang */
.home-page-wrapper {
  scroll-behavior: smooth;
}

/* ========== HERO SLIDER STYLES ========== */
.section-hero-slide {
  position: relative;
  /* width: 100%; */
  height: 500px;
  /* min-height: 700px; */
  /* max-height: 1000px; */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.hero-slider-container {
  position: relative;
  width: 100%;
  max-width: 1800px;
  height: 100%;
  max-height: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.hero-slide-item {
  position: relative;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s ease;
  cursor: pointer;
}

.hero-slide-prev,
.hero-slide-next {
  flex: 0 0 80px;
  opacity: 0.5;
  filter: brightness(0.7);
}

.hero-slide-prev:hover,
.hero-slide-next:hover {
  opacity: 0.7;
}

.hero-slide-active {
  flex: 1;
  opacity: 1;
  filter: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.hero-slide-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Navigation Buttons */
.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
}

.hero-slider-container:hover .hero-nav-btn {
  opacity: 1;
  visibility: visible;
}

.hero-nav-btn:hover {
  background: #ff1f8f;
  color: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 31, 143, 0.4);
}

.hero-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-nav-prev {
  left: 20px;
}

.hero-nav-next {
  right: 20px;
}

.hero-nav-btn svg {
  width: 32px;
  height: 32px;
  transform: scale(3);
}

/* Dots Indicator - Hidden on Desktop */
.hero-dots {
  display: none;
  position: absolute;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  gap: 8px;
  padding: 10px;
  background: #ffffff80;
  border-radius: 50px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: #ff1f8f;
  width: 24px;
  border-radius: 4px;
}

/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 1024px) {
  .section-hero-slide {
    height: 100vh;
    min-height: 100vh;
    max-height: none;
  }

  .hero-slider-container {
    max-width: none;
    max-height: none;
    padding: 0;
    gap: 0;
  }

  .hero-slide-prev,
  .hero-slide-next {
    display: none;
  }

  .hero-nav-btn {
    display: none;
  }

  .hero-slide-active {
    flex: 1;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: none;
  }

  .hero-dots {
    display: flex;
  }
}

/* ========== MARQUEE ========== */
.marquee-container {
  background: transparent;
  padding: 12px 0;
  overflow: visible;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-bottom: 60px;
}

.marquee-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ff1f8f;
  z-index: 2;
}

.marquee-text {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  padding: 0 40px;
  display: inline-block;
}

.marquee-text span {
  margin: 0 15px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ========== ABOUT SECTION ========== */
.section-about {
  position: relative;
  z-index: 2;
  margin: 30px 0 60px;
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
  max-height: none; /* bỏ khóa chiều cao */
  height: auto;
}

.about-mobile-logo {
  display: none;
}

.about-mobile-header {
  display: none;
}

.about-left {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border-radius: 30px;
  position: relative;
  z-index: 2;
}

.about-text-wrapper {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  text-align: justify;
}

/* Icon nằm cột 1 */
.about-text-wrapper p {
  margin: 0;
  grid-column: 1;
  margin-bottom: 20px;
  font-size:18px;
}

/* Heading nằm cột 2 */
.about-text-wrapper h2 {
  margin: 0;
  grid-column: 2;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

/* Đoạn nội dung phía sau chiếm nguyên hàng */
.about-text-wrapper > :not(p):not(h2) {
  grid-column: 1 / -1;
}

.about-right {
  position: relative;
  height: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-logo-container {
  width: 100%;
  z-index: 10;
}

.about-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.about-single-image {
  position: relative;
  flex: 1;
}

.about-single-image img:not(.about-asterisk) {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.about-asterisk {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  z-index: 11;
  animation: rotate 20s linear infinite;
  filter: invert(18%) sepia(88%) saturate(5435%) hue-rotate(315deg)
    brightness(97%) contrast(107%);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .about-layout {
    grid-template-columns: 1fr 1fr;
  }

  .about-asterisk {
    right: 80px;
  }

  .about-right {
    height: 500px;
  }

  .about-asterisk {
    width: 32px;
    height: 32px;
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 480px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-right {
    display: none;
  }

  .about-mobile-logo {
    display: block;
    width: 100%;
    margin: 0 auto 30px;
  }

  .about-mobile-logo img {
    width: 100%;
    height: auto;
  }

  .about-left {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
  }

  .about-text-wrapper p img {
    width: 32px;
  }

  .about-mobile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    width: 100%;
  }

  .about-mobile-asterisk {
    width: 24px;
    height: 24px;
    filter: invert(35%) sepia(95%) saturate(4000%) hue-rotate(320deg)
      brightness(102%) contrast(101%);
    animation: rotate 20s linear infinite;
    flex-shrink: 0;
    position: absolute;
    z-index: 1;
    top: -12px;
    left: -10px;
  }

  .about-mobile-title {
    font-size: 22px;
    font-weight: 700;
    color: #000;
    margin: 0;
    background: #d1d5db;
    padding: 2px 15px;
    flex: 1;
  }
}

/* ========== PRODUCTS SECTION ========== */
.section-products {
  background: #000;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  margin: 30px auto;
  max-width: 1600px;
}

.products-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  padding-left: 180px;
}

/* Vertical MENU Sidebar */
.products-menu-sidebar {
  position: absolute;
  left: 33px;
  top: 50%;
  transform: translateY(-50%);
  width: 130px;
  height: 100%;
  background: #a7a9ac;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.products-menu-sidebar .products-menu-img {
  position: relative;
  width: 100%;
  height: auto;
}

.products-menu-sidebar .products-menu-img img {
  width: 100%;
  height: auto;
  transform: rotate(270deg) scale(3.2);
  transform-origin: center;
}

.products-menu-top {
  display: none;
}

/* Header with Asterisk */
.products-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.products-asterisk {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: invert(18%) sepia(88%) saturate(5435%) hue-rotate(315deg)
    brightness(97%) contrast(107%);
  animation: rotate 20s linear infinite;
}

.products-title {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0 !important;
}

/* Slider Wrapper */
.products-slider-wrapper {
  overflow: hidden;
  margin-bottom: 10px;
}

/* Products Grid */
.products-grid {
  display: flex;
  gap: 25px;
  transition: transform 0.5s ease;
}

.product-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex: 0 0 calc(33.333% - 17px);
}

/* Card Inner - handles the flip */
.card-inner {
  position: relative;
  width: 100%;
  height: 310px;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.product-card.flipped .card-inner {
  transform: rotateY(180deg);
}

/* Front and Back faces */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 310px;
  backface-visibility: hidden;
  background: #fff;
  border-radius: 20px;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.card-front {
  z-index: 2;
}

.card-back {
  transform: rotateY(180deg);
  background: #f8f9fa;
  padding: 30px 25px;
}

/* ========== CARD FRONT - Hình ảnh + Tên ========== */
.card-front {
  padding: 20px 10px;
  background: #fff;
  border: 2px solid #e5e5e5;
}

.card-front .product-info {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.product-detail-link{
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    justify-content: center;
}
.card-front .product-image {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 500px;
}

.card-front .product-image img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.product-price {
  display: flex;
  justify-content: center;
  gap: 10px;
}

span.price-original {
  text-decoration: line-through;
}

span.price-sale {
  color: #ff1f8f;
  font-weight: 600;
}

.card-front .product-name {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin: 0;
    text-align: center;
    line-height: 1.2;
}

i.fa-solid.fa-arrow-up-right-from-square {
  left: 10px;
  top: 255px;
  color: #ff1f8f;
}

/* ========== CARD BACK - Thành phần ========== */
.card-back .card-header {
  text-align: center;
  margin-bottom: 20px;
}

.card-back .card-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-back .card-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.card-back .ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 215px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ff1f8f #f0f0f0;
}

/* Custom scrollbar for WebKit browsers */
.card-back .ingredients-list::-webkit-scrollbar {
  width: 6px;
}

.card-back .ingredients-list::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.card-back .ingredients-list::-webkit-scrollbar-thumb {
  background: #ff1f8f;
}

.card-back .ingredients-list::-webkit-scrollbar-thumb:hover {
  background: #ff1f8f;
}

.card-back .ingredients-list li {
  font-size: 15px;
  color: #333;
  position: relative;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

/* Icon */
.product-icon {
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
  z-index: 10;
}

.product-icon i {
  font-size: 24px;
  color: #000;
}

.card-back .product-icon i {
  color: #ff1f8f;
}

.product-card:hover .product-icon {
  transform: scale(1.1);
}

/* Navigation */
.products-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 30px;
}

.nav-arrow {
  flex: 1;
  height: 4px;
  background: #ff1f8f;
  position: relative;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.nav-arrow:hover {
  opacity: 0.7;
}

.nav-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-arrow-left::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 15px solid #ff1f8f;
}

.nav-arrow-right::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #ff1f8f;
}

.nav-button {
  background: #ff1f8f;
  color: #000;
  border: none;
  padding: 16px 50px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-button:hover {
  background: #ff1f8f;
  transform: scale(1.05);
}

.btn-add-to-cart :hover {
  background-color: #ff1f8f !important;
}

/* ========== TABLET RESPONSIVE (1024px) ========== */
@media (max-width: 1024px) {
  .products-container {
    padding-left: 118px;
  }

  .products-menu-sidebar {
    left: 30px;
    width: 90px;
    height: 100%;
  }

  .products-menu-sidebar .products-menu-img {
    width: 140px;
  }

  .products-title {
    font-size: 28px;
  }

  .products-asterisk {
    width: 40px;
    height: 40px;
  }

  .products-grid {
    gap: 20px;
  }

  .card-front .product-name {
    font-size: 20px;
  }

  .card-back .card-title {
    font-size: 18px;
  }
}

/* ========== MOBILE RESPONSIVE (480px) ========== */
@media (max-width: 480px) {
  .section-products {
    padding: 50px 20px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    margin-top: 0;
  }

  .products-container {
    padding-left: 0;
  }

  .products-menu-sidebar {
    display: none;
  }

  .products-menu-top {
    background: #a7a9ac;
    padding: 15px 0;
    margin: -50px -20px 30px -20px;
    border-radius: 20px 20px 0 0;
    overflow: visible;
    display: flex;
    justify-content: space-around;
  }

  .products-menu-top .products-menu-img {
    width: 90%;
    height: auto;
  }

  .card-front .product-image {
    max-height: 300px;
  }

  .card-front .product-image img {
    width: 150px;
    height: 150px;
    object-fit: contain;
  }

  .products-menu-top .products-menu-img img {
    width: 100%;
    height: auto;
    transform: none;
  }

  .products-asterisk {
    width: 32px;
    height: 32px;
  }

  .products-title {
    font-size: 24px;
  }

  .products-grid {
    gap: 15px;
  }

  .card-back {
    padding: 20px 15px;
  }

  .card-front .product-name {
    font-size: 16px;
  }

  .card-back .card-title {
    font-size: 16px;
  }

  .card-back .card-subtitle {
    font-size: 12px;
  }

  .product-icon {
    width: 28px;
    height: 28px;
    bottom: 15px;
    right: 15px;
  }

  i.fa-solid.fa-arrow-up-right-from-square {
    font-size: 10px;
    bottom: 25px;
  }

  .product-icon i {
    font-size: 20px;
  }

  .nav-button {
    padding: 14px 40px;
    font-size: 15px;
  }

  .products-header {
    justify-content: center;
  }
}

/* ========== BLOG SECTION ========== */
.marquee-content {
  position: relative;
  z-index: 5;
  display: flex;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-bg {
  width: 500px;
  padding: 0 20px;
}

.marquee-bg-o {
  position: absolute;
  inset: 0;
  margin: auto;
  padding-bottom: 8px;
  z-index: 1;
}

img.marquee-bg.marquee-bg-blg {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 2;
}

section.section-blog {
  margin-top: 60px;
}

/* Blog Grid Layout */
.blog-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
  position: relative;
  margin-top: 60px;
}

/* Blog Card - Left Large */
.blog-card-large {
  grid-column: 1;
  grid-row: 1 / 3;
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  max-height: 520px;
}

.blog-card-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Blog Card - Right Small */
.blog-card-small-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.blog-card-small {
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
  height: 250px;
  max-height: 250px;
}

.blog-card-small:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Blog Date Badge */
.blog-date-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-date-day {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  line-height: 1;
  display: block;
}

.blog-date-month {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  margin-top: 4px;
  display: block;
}

/* Blog Image */
.blog-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.blog-image {
  width: 100%;
  height: 100%;
  object-position: top;
  object-fit: cover;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.blog-card-large:hover .blog-image,
.blog-card-small:hover .blog-image {
  transform: scale(1.05);
}

.blog-card-large .blog-image {
  height: 100%;
}

.blog-card-small .blog-image-wrapper {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.blog-card-small .blog-image {
  width: 100%;
  height: 100%;
  min-height: unset;
}

/* Blog Content Overlay - Large Card */
.blog-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    transparent 100%
  );
  padding: 40px 30px 30px;
  color: #fff;
  border-radius: 20px;
}

/* Blog Content - Small Card */
.home-blog-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.7) 50%,
    transparent 100%
  );
  padding: 20px 20px;
  color: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* Blog Category */
.blog-category {
  display: inline-block;
  background: #ff1f8f;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  width: fit-content;
  max-width: max-content;
}

.blog-card-small .blog-category {
  background: #ff1f8f;
  padding: 4px 12px;
  font-size: 11px;
  margin-bottom: 10px;
}

/* Blog Title */
.blog-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}

.blog-card-small .blog-title {
  font-size: 16px;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* Blog Description */
.blog-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 20px;
}

.blog-card-small .blog-description {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Blog Meta */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.blog-card-small .blog-meta {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  gap: 10px;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-meta-item::before {
  content: "📅";
  font-size: 14px;
}

.blog-meta-item:last-child::before {
  content: "👁";
}

/* View More Button */
.blog-view-more {
  text-align: center;
  margin: 50px;
}

.btn-view-more {
  background: #ff1f8f;
  color: #fff;
  border: none;
  padding: 16px 60px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-view-more:hover {
  background: #ff1f8f;
  transform: scale(1.05);
}

/* Blog Asterisk */
.blog-asterisk {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: invert(18%) sepia(88%) saturate(5435%) hue-rotate(315deg)
    brightness(97%) contrast(107%);
  animation: rotate 20s linear infinite;
  position: absolute;
  top: -20px;
  left: -20px;
  z-index: 10;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .blog-card-large {
    grid-column: 1 / 3;
    grid-row: 1;
  }

  .blog-card-small-grid {
    grid-column: 1 / 3;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .blog-card-large .blog-image {
    min-height: 400px;
  }

  .blog-content-overlay {
    padding: 30px 20px 20px;
  }

  .blog-title {
    font-size: 22px;
  }

  .blog-card-small:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .blog-card-small:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 480px) {
  .marquee-text {
    font-size: 14px;
    padding: 0 20px;
  }

  .blog-asterisk {
    width: 32px;
    height: 32px;
    top: -10px;
    left: -10px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card-large {
    grid-column: 1;
    grid-row: 1;
  }

  .blog-card-small:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .blog-card-small:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
  }

  .blog-card-small .blog-image {
    min-height: 250px;
    max-height: 280px;
  }

  .home-blog-content,
  .blog-content-overlay {
    padding: 20px;
  }

  .blog-title {
    font-size: 18px;
  }

  .blog-card-small .blog-title {
    font-size: 16px;
  }

  .blog-description {
    font-size: 14px;
  }

  .blog-card-small .blog-description {
    font-size: 13px;
  }

  .btn-view-more {
    padding: 14px 40px;
    font-size: 14px;
  }
}

/* ========== COFFEE PRICE SECTION ========== */
.section-coffee-price {
  padding-bottom: 60px;
  margin: 60px 0;
  position: relative;
  background: #a7a9ac;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.coffee-price-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
  max-width: 1222px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Left Section - Title */
.coffee-price-left {
  position: relative;
}

.coffee-price-header {
  position: relative;
}

.coffee-price-title-top {
  margin-bottom: 23px;
  font-size: 80px;
  font-weight: 400;
  line-height: 0.9;
  color: #000;
  text-transform: uppercase;
}

.coffee-price-title-bottom {
  font-size: 80px;
  font-weight: 600;
  line-height: 0.9;
  margin: 0;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.coffee-price-subtitle {
  position: relative;
  display: inline-block;
  background: #000;
  padding: 15px 40px;
  border-radius: 0 50px 50px 0;
  min-width: 100px;
  margin: 30px 0;
}

.coffee-price-subtitle span {
  font-size: 36px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.typewriter-cursor {
  display: inline-block;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.coffee-price-asterisk {
  position: absolute;
  top: -12px;
  right: 0;
  width: 40px;
  height: 40px;
  filter: invert(18%) sepia(88%) saturate(5435%) hue-rotate(315deg)
    brightness(97%) contrast(107%);
  animation: rotate 20s linear infinite;
}

/* Description */
.coffee-price-description {
  max-width: 500px;
}

.coffee-price-description p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin: 0;
  text-align: justify;
}

/* Decorative Lines - Hidden on Desktop */
.coffee-price-lines {
  display: none;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.price-line {
  height: 4px;
  background: #d1d5db;
  border-radius: 2px;
}

.price-line:first-child {
  width: 100%;
}

.price-line:last-child {
  width: 80%;
}

.coffee-price-chart-wrapper {
  position: relative;
}

.coffee-price-note {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px 0;
  font-style: italic;
}

.cps-dashboard.cps-dashboard-chart-only {
  padding: 0 !important;
}

.marquee-container-table-price {
  margin-bottom: 60px;
}

.marquee-container-table-price .marquee-text {
  color: #ff1f8f !important;
}

.marquee-container-table-price::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 2;
}

h2.coffee-price-title-h2 {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: start;
}

/* ========== TABLET RESPONSIVE (1024px) ========== */
@media (max-width: 1024px) {
  .coffee-price-title {
    margin-right: 20px;
  }

  .coffee-price-container {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 20px;
  }

  /* Left section - center aligned */
  .coffee-price-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 30px;
  }

  .coffee-price-header {
    display: flex;
    align-items: self-start;
    width: 100%;
    justify-content: center;
  }

  .coffee-price-title-top,
  .coffee-price-title-bottom {
    font-size: 60px;
  }

  .coffee-price-title-top {
    margin-bottom: 23px;
  }

  .coffee-price-title-bottom {
    font-size: 70px;
  }

  .coffee-price-subtitle {
    padding: 30px;
    border-radius: 0 50px 50px 0;
    margin: 0;
  }

  .coffee-price-subtitle span {
    font-size: 50px;
  }

  .coffee-price-asterisk {
    width: 36px;
    height: 36px;
    top: -10px;
  }

  .coffee-price-description {
    margin-top: 30px;
  }

  .coffee-price-description p {
    text-align: center;
  }

  /* Show decorative lines */
  .coffee-price-lines {
    display: flex;
    width: 100%;
  }

  .price-line:first-child {
    width: 100%;
  }

  .price-line:last-child {
    width: 80%;
  }

  /* Right section */
  .coffee-price-right {
    width: 100%;
  }

  .coffee-price-chart-wrapper {
    background: transparent;
    border-radius: 0;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .coffee-price-title-top,
  .coffee-price-title-bottom {
    font-size: 30px;
  }

  .coffee-price-subtitle span {
    font-size: 30px;
  }

  .coffee-price-subtitle {
    padding: 10px;
  }

  .coffee-price-title-top {
    margin-bottom: 13px;
  }
}

/* Styling cho giá chưa xác định */
.price-undetermined {
  color: #999;
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  display: block;
  opacity: 0;
}

/* Đảm bảo list items trong ingredients-list hiển thị đúng */
.card-back .ingredients-list li {
  font-size: 15px;
  color: #333;
  position: relative;
  line-height: 1.6;
  margin: 0;
  text-align: left;
  padding-left: 0;
  padding-right: 10px;
  text-align: justify;
}

/* Thêm bullet point cho list items nếu cần */
.card-back .ingredients-list li::before {
  content: "•";
  color: #ff1f8f;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-right: 0.5em;
}

/* ========== PRODUCTS SECTION - RESPONSIVE FIX ========== */

/* Desktop - 3 cards */
@media (min-width: 1025px) {
  .product-card {
    flex: 0 0 calc(33.333% - 17px);
  }
}

/* Tablet - 2 cards */
@media (max-width: 1024px) and (min-width: 481px) {
  .products-grid {
    gap: 20px;
  }

  .product-card {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: calc(50% - 10px);
  }

  .card-inner {
    height: 310px;
  }
}

/* Mobile - 2 cards */
@media (max-width: 480px) {
  .products-grid {
    gap: 15px;
  }

  .product-card {
    flex: 0 0 calc(50% - 7.5px) !important;
    max-width: calc(50% - 7.5px);
  }

  .card-inner {
    height: 200px;
  }

  /* Giảm padding cho card trên mobile */
  .card-front {
    padding: 15px 8px;
  }

  .card-back {
    padding: 20px 15px;
  }

  /* Điều chỉnh kích thước hình ảnh cho mobile */
  .card-front .product-image {
    max-height: 200px;
  }

  .card-front .product-image img {
    width: 120px;
    height: 120px;
  }

  /* Điều chỉnh font size cho mobile */
  .card-front .product-name {
    font-size: 14px;
  }

  .product-price {
    font-size: 13px;
  }

  .card-back .card-subtitle {
    font-size: 13px;
  }

  .card-back .ingredients-list {
    max-height: 63px;
    gap: 8px;
  }

  .card-back .ingredients-list li {
    font-size: 13px;
  }
  .card-front,
  .card-back {
    height: 200px;
  }
}

/* ========== BLOG SECTION HEADING WITH SEO ========== */
.blog-section-heading {
  position: absolute;
  inset: 0;
  margin: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  text-indent: -9999px;
  overflow: visible; /* Đổi từ hidden thành visible */
}

/* Images inside heading */
.blog-section-heading .marquee-bg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 500px;
  padding: 0 20px;
  text-indent: 0;
  font-size: initial;
}

.blog-section-heading .marquee-bg-blg {
  z-index: 2;
}

.blog-section-heading .marquee-bg-o {
  z-index: 1;
  padding-bottom: 8px;
}
