/* ========== MARQUEE ========== */
.price-global-page-marquee-container {
  background: transparent;
  padding: 6px 0;
  overflow: visible;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 20px;
  margin-bottom: 40px;
}

.price-global-page-marquee-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #ff1f8f;
  z-index: 2;
}

.price-global-page-marquee-content {
  position: relative;
  z-index: 2;
  display: flex;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.price-global-page-marquee-text {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  padding: 0 40px;
  display: inline-block;
}

.price-global-page-marquee-text span {
  margin: 0 15px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ========== LAYOUT GRID 2 COLUMN ========== */
.price-global-layout-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  position: relative;
  z-index: 2;
  margin-top: 40px;
}

/* ========== HEADER TABS ========== */
.price-global-header-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1;
}

/* Hàng 1: BẢNG GIÁ CÀ PHÊ */
.price-global-tab-first {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-global-tab-first h1:first-child {
  color: #000;
  font-size: 82px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

span.name-global {
    position: absolute;
    top: -9999px;
    left: -9999px;
}
/* Hàng 2: HÔM NAY (bên trái) + HỒNG CHUYỆN CÀ PHÊ (bên phải) */
.price-global-header-tabs-row2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.price-global-tab-text {
  background: #000;
  color: #fff;
  padding: 13px 40px;
  border-radius: 0 60px 60px 0;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  display: inline-block;
  transition:
    background 0.2s ease,
    padding 0.2s ease;
}

/* ========== TYPEWRITER CURSOR EFFECT ========== */
.price-global-header-tabs-row2 .price-global-tab-text.typewriter-active::after {
  content: "|";
  color: #fff;
  animation: blink-cursor 0.8s step-end infinite;
  margin-left: 4px;
}

@keyframes blink-cursor {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Tab 2: HỒNG + CHUYỆN CÀ PHÊ */
.price-global-tab-second {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  position: relative;
}

.price-global-tab-label {
  color: #000;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  text-align: right;
}

.price-global-tab-second .price-global-tab-text {
  background: #a7a9ac;
  color: #000;
  padding: 10px;
  border-radius: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  position: relative;
}

/* Icon hoa hồng ở góc trên bên trái của "CHUYỆN CÀ PHÊ" */
.price-global-tab-second .price-global-tab-text::before {
  content: "✱";
  color: #ff1f8f;
  font-size: 42px;
  position: absolute;
  top: -18px;
  left: -18px;
  animation: rotate-asterisk 3s linear infinite;
  z-index: 10;
  line-height: 1;
}

@keyframes rotate-asterisk {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive for tabs */
@media (max-width: 1024px) {
  .price-global-tab-first span:first-child {
    font-size: 52px;
  }

  .price-global-tab-text {
    font-size: 38px;
    padding: 8px 32px;
  }

  .price-global-tab-second .price-global-tab-text::before {
    top: -15px;
    left: -15px;
  }
}

@media (max-width: 768px) {
  .price-global-tab-first h1:first-child {
    font-size: 48px;
    margin-bottom: 0px;
  }

  .price-global-tab-first span:first-child {
    font-size: 36px;
    margin-bottom: 0px;
  }

  .price-global-header-tabs-row2 {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .price-global-tab-text {
    font-size: 26px;
    padding: 8px 20px;
    border-radius: 0 30px 30px 0;
  }

  .price-global-tab-second {
    align-items: flex-start;
    gap: 6px;
  }

  .price-global-tab-label {
    font-size: 20px;
    text-align: left;
    letter-spacing: 0.08em;
  }

  .price-global-tab-second .price-global-tab-text {
    font-size: 22px;
    padding: 8px 18px 8px 36px;
    width: fit-content;
  }

  .price-global-tab-second .price-global-tab-text::before {
    font-size: 28px;
    top: -12px;
    left: -12px;
  }
}

@media (max-width: 480px) {
  .price-global-tab-first h1:first-child {
    font-size: 36px;
  }

  .price-global-header-tabs {
    gap: 8px;
  }

  .price-global-header-tabs-row2 {
    gap: 10px;
  }

  .price-global-tab-first span:first-child {
    font-size: 28px;
  }

  .price-global-tab-text {
    font-size: 20px;
    padding: 7px 18px;
    width: fit-content;
    border-radius: 0 26px 26px 0;
  }

  .price-global-tab-label {
    font-size: 18px;
  }

  .price-global-tab-second .price-global-tab-text {
    font-size: 20px;
    padding: 7px 16px 7px 34px;
  }

  .price-global-tab-second .price-global-tab-text::before {
    font-size: 24px;
    top: -10px;
    left: -10px;
  }
}

/* ========== SIDEBAR STICKY ========== */
.price-global-page-sidebar-content {
  position: sticky;
  top: 60px;
  align-self: start;
  z-index: 3;
}

/* ========== RESPONSIVE SIDEBAR - FLOATING BUTTON & CLOSE BUTTON ========== */
/* Overlay backdrop for mobile sidebar */
.price-global-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: rgba(0, 0, 0, 0.5); */
  /* z-index: 998; */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.price-global-sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Floating toggle button - ẨN mặc định */
.price-global-sidebar-floating-toggle {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: #ff1f8f;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 998;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.price-global-sidebar-floating-toggle:hover {
  background: #ff1f8f;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.price-global-sidebar-floating-toggle.show {
  display: flex;
}

.price-global-sidebar-floating-toggle.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.8);
}

/* Close button - ẨN mặc định */
.price-global-sidebar-close {
  position: absolute;
  top: 5px;
  right: 15px;
  width: 36px;
  height: 36px;
  background: #ff1f8f;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 1001;
  transition: all 0.3s ease;
}

.price-global-sidebar-close:hover {
  background: #ff1f8f;
  transform: rotate(90deg);
}

/* Scrollbar styling cho sidebar */
.price-global-page-sidebar-content::-webkit-scrollbar {
  width: 8px;
}

.price-global-page-sidebar-content::-webkit-scrollbar-track {
  background: #e0e0e0;
}

.price-global-page-sidebar-content::-webkit-scrollbar-thumb {
  background: #ff1f8f;
}

.price-global-page-sidebar-content::-webkit-scrollbar-thumb:hover {
  background: #ff1f8f;
}

/* ========== RESPONSIVE BREAKPOINTS - SIDEBAR ========== */
/* Tablet - Điều chỉnh layout nhưng giữ sidebar */
@media (max-width: 768px) {
  .price-global-layout-container {
    gap: 40px;
  }
}

/* Mobile - 480px trở xuống - ẨN sidebar và hiện floating button */
@media (max-width: 480px) {
  /* Grid chuyển sang 1 column */
  .price-global-layout-container {
    grid-template-columns: 1fr !important;
  }

  /* HIỆN floating button */
  .price-global-sidebar-floating-toggle.show {
    display: flex;
  }

  /* Floating button nhỏ hơn */
  .price-global-sidebar-floating-toggle {
    width: 45px;
    height: 45px;
    right: 10px;
    font-size: 18px;
  }

  /* Sidebar thành slide-in từ bên phải */
  .price-global-page-sidebar-content {
    position: fixed !important;
    top: 65 !important;
    right: -100% !important;
    width: 100% !important;
    height: 100vh !important;
    overflow-y: auto !important;
    z-index: 999 !important;
    background: #f5f5f5 !important;
    transition: right 0.3s ease !important;
    padding: 50px 15px 15px 15px !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1) !important;
    margin-top: 0 !important;
  }

  /* Sidebar active state */
  .price-global-page-sidebar-content.active {
    right: 0 !important;
  }

  /* HIỆN close button */
  .price-global-sidebar-close {
    display: flex !important;
  }
}

/* ========== SHARED SIDEBAR PARTS ========== */
.price-global-page-sidebar-content .blog-sidebar-section {
  margin-bottom: 40px;
}

.price-global-page-sidebar-content .blog-sidebar-title {
  background: #000;
  color: #fff;
  padding: 12px 15px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.price-global-page-sidebar-content .blog-sidebar-title::before {
  content: "";
  width: 16px;
  height: 16px;
  background-image: url("../../template/images/asterisk-crop.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  filter: brightness(0) saturate(100%) invert(28%) sepia(96%) saturate(6539%)
    hue-rotate(320deg) brightness(100%) contrast(105%);
  animation: price-global-rotate-icon 3s linear infinite;
}

@keyframes price-global-rotate-icon {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.price-global-page-sidebar-content .blog-sidebar-list {
  background: #f5f5f5;
  border: 1px solid #787878;
  border-top: none;
  text-transform: uppercase;
}

.price-global-page-sidebar-content .blog-sidebar-item {
  padding: 12px 15px;
  border-bottom: 1px solid #787878;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 14px;
  position: relative;
}

.price-global-page-sidebar-content .blog-sidebar-item:hover,
.price-global-page-sidebar-content .blog-sidebar-item.active {
  background: #fff;
}

.price-global-page-sidebar-content .blog-sidebar-item:last-child {
  border-bottom: none;
}

.price-global-page-sidebar-content .blog-sidebar-item-arrow {
  font-size: 18px;
  color: #666;
  padding: 12px 15px;
  margin: -12px -15px -12px 15px;
  border-left: 1px solid #787878;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
}

.price-global-page-sidebar-content .blog-sidebar-item.active .blog-sidebar-item-arrow {
  color: #ff1f8f;
}

/* ========== FOOTER MARQUEE ========== */
.about-marquee-container {
  background: #ff1f8f;
  padding: 6px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.about-marquee-container.about-marquee-footer {
  background: #000;
  margin-bottom: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.about-marquee-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: max-content;
  animation: price-global-footer-marquee 20s linear infinite;
}

.about-marquee-text {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  padding: 0 40px;
}

.about-marquee-footer .about-marquee-text {
  color: #ff1f8f !important;
}

.about-marquee-text span {
  margin: 0 15px;
}

@keyframes price-global-footer-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .about-marquee-text {
    font-size: 14px;
    padding: 0 30px;
  }
}

@media (max-width: 480px) {
  .about-marquee-text {
    font-size: 12px;
    padding: 0 20px;
  }
}
