/* ================= 1. HERO SLIDER FULL BACKGROUND BANNER ================= */
.hero-section-full {
  width: 100%;
  margin-top: -74px;
  padding: 0 0 24px;
}

.hero-slider-box {
  position: relative;
  width: 100%;
  background: #23170E;
  overflow: hidden;
}

.hero-slide {
  display: none;
  position: relative;
  width: 100%;
  min-height: 520px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  align-items: center;
  animation: fadeHeroBg 0.5s ease;
}
.hero-slide.active {
  display: flex;
}

@keyframes fadeHeroBg {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.hero-slide-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(24, 15, 9, 0.58) 0%,
    rgba(24, 15, 9, 0.36) 44%,
    rgba(24, 15, 9, 0.08) 78%,
    rgba(24, 15, 9, 0) 100%
  );
  pointer-events: none;
}

.hero-slide-container {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 96px;
  padding-bottom: 56px;
}

.slide-overlay-content {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: #F4C44E;
  color: #23170E;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.slide-overlay-content h1 {
  font-size: 38px;
  line-height: 1.22;
  color: #FFFFFF;
  margin-bottom: 12px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.90);
  margin-bottom: 24px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-hero-primary,
.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, background 0.2s;
}

.btn-hero-primary {
  background: #B83D18;
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(184, 61, 24, 0.42);
}
.btn-hero-primary:hover {
  background: #9E3110;
  transform: translateY(-1px);
}

.btn-hero-secondary {
  background: #FFFFFF;
  color: #231F20;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
.btn-hero-secondary:hover {
  background: #FAF5ED;
  transform: translateY(-1px);
}

.sl-side-arrow {
  position: absolute;
  top: 54%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(24, 15, 9, 0.45);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: 0.2s;
}
.sl-side-arrow:hover {
  background: var(--brand);
  border-color: var(--brand);
}
.sl-side-arrow.prev { left: 18px; }
.sl-side-arrow.next { right: 18px; }

.sl-center-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sl-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.25s;
}
.sl-dot.active {
  width: 26px;
  background: #FFFFFF;
}

/* ================= 2. KHỐI ĐẶT QUA ỨNG DỤNG ĐỐI TÁC ================= */
.delivery-partners-section {
  padding: 6px 0 24px;
}

.partners-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.partners-eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 2px;
}

.partners-intro h2 {
  font-size: 18px;
  color: var(--text);
}

.partners-cards-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-page);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.partner-card:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(44, 29, 17, 0.06);
}
.partner-card.shopee:hover { border-color: #EE4D2D; }
.partner-card.grab:hover { border-color: #00B14F; }
.partner-card.xanh:hover { border-color: #00A88F; }

.partner-logo-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}
.partner-logo-badge.shopee-bg { background: linear-gradient(135deg, #F53D2D 0%, #FF6633 100%); }
.partner-logo-badge.grab-bg { background: linear-gradient(135deg, #009E47 0%, #00C853 100%); }
.partner-logo-badge.xanh-bg { background: linear-gradient(135deg, #008B76 0%, #00BFA5 100%); }

.partner-meta {
  flex: 1;
  min-width: 0;
}
.partner-meta strong {
  display: block;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 2px;
}
.partner-meta span {
  display: block;
  font-size: 14px;
  color: var(--muted);
}

/* ================= 3. TỪNG KHỐI DANH MỤC PHA MÀU THEO SẢN PHẨM ================= */
.cat-band {
  padding: 38px 0;
  border-top: 1px solid var(--border);
}

.cat-band.theme-berry {
  background-color: #FDF4F3;
  background-image: radial-gradient(circle at 90% 15%, rgba(200, 62, 55, 0.06) 0%, transparent 45%);
}
.cat-band.theme-berry .cb-icon {
  background: #FCE6E4;
  color: #B83730;
  border-color: rgba(184, 55, 48, 0.2);
}

.cat-band.theme-soy {
  background-color: #FAF4E8;
  background-image: radial-gradient(circle at 12% 20%, rgba(178, 110, 40, 0.07) 0%, transparent 45%);
}
.cat-band.theme-soy .cb-icon {
  background: #F4E5CE;
  color: #8F551B;
  border-color: rgba(178, 110, 40, 0.22);
}

.cat-band.theme-fresh {
  background-color: #F2F8F3;
  background-image: radial-gradient(circle at 88% 80%, rgba(46, 125, 50, 0.06) 0%, transparent 45%);
}
.cat-band.theme-fresh .cb-icon {
  background: #E2F2E5;
  color: #256D29;
  border-color: rgba(46, 125, 50, 0.2);
}

.cat-band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.cb-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cb-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-band-head h2 {
  font-size: 22px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cat-band-head p {
  font-size: 15px;
  color: var(--muted);
}

.cb-count-pill {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 600;
}

/* Lưới sản phẩm đúng 1 hàng 4 cột */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.product-card.is-hidden {
  display: none;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(178, 110, 40, 0.45);
  box-shadow: 0 12px 26px rgba(44, 29, 17, 0.09);
}

.product-img-wrap {
  aspect-ratio: 1 / 1;
  background: var(--cream);
  overflow: hidden;
  cursor: pointer;
}
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.04); }

.product-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.product-title {
  font-size: 17px;
  color: var(--text);
  line-height: 1.35;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-title:hover { color: var(--brand-dark); }

.compact-price-action {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cpa-price-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cpa-price {
  font-size: 18px;
  line-height: 1.2;
  color: var(--brand-dark);
}

.cpa-size-sub {
  font-size: 13.5px;
  font-weight: 500;
  color: #4A5D6E;
  background: transparent;
  border: none;
  padding: 0;
}

.cpa-cart-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(178, 110, 40, 0.24);
  transition: transform 0.15s, background-color 0.25s, box-shadow 0.25s;
}
.cpa-cart-btn:hover {
  background: var(--brand-dark);
  transform: scale(1.06);
}

.cpa-cart-btn.in-cart {
  background: #237A4B;
  box-shadow: 0 4px 12px rgba(35, 122, 75, 0.32);
}
.cpa-cart-btn.in-cart:hover {
  background: #1B5E3A;
}

.load-more-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid var(--brand);
  background: var(--surface);
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.btn-load-more:hover {
  background: var(--brand);
  color: #FFFFFF;
}
.btn-load-more.expanded svg {
  transform: rotate(180deg);
}

/* ================= 4. KHỐI TIN TỨC & KHUYẾN MÃI (4 CỘT) ================= */
.news-promo-section {
  padding: 42px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-page);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(178, 110, 40, 0.45);
}

.news-img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--cream);
  overflow: hidden;
}
.news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
}

.news-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.news-date {
  font-size: 14px;
  color: var(--muted);
}

.news-body h3 {
  font-size: 17px;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-body p {
  font-size: 15px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-dark);
  text-decoration: none;
}
.news-link:hover { text-decoration: underline; }

/* ================= 5. THÔNG TIN CỬA HÀNG & CAM KẾT ================= */
.store-info-section {
  padding: 40px 0 46px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.store-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.info-card, .channels-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 26px;
}

.info-eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 4px;
}

.info-card h2, .channels-card h2 {
  font-size: 21px;
  margin-bottom: 14px;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 20px;
}
.info-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; }
.info-list svg { color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.info-list strong { display: block; color: var(--text); font-size: 16px; }
.info-list span { color: var(--muted); }
.inline-link { color: var(--brand-dark); text-decoration: none; font-weight: 600; }

.channels-card p { font-size: 15px; color: var(--muted); margin-bottom: 16px; }
.quality-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-badge-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}
.q-badge-item strong { display: block; font-size: 16px; color: var(--brand-dark); margin-bottom: 4px; }
.q-badge-item span { font-size: 14px; color: var(--muted); }

/* ================= 6. MODAL TÙY CHỌN MÓN TRÊN DESKTOP ================= */
html.modal-open,
body.modal-open {
  overflow: hidden !important;
}

#product-modal.modal-backdrop {
  display: none;
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 24px !important;
  margin: 0 !important;
  z-index: 9999 !important;
  background: rgba(24, 15, 9, 0.58);
  align-items: center !important;
  justify-content: center !important;
}
#product-modal.modal-backdrop.show {
  display: flex !important;
}

#product-modal .pm-sheet-full {
  width: 100% !important;
  max-width: 560px !important;
  max-height: 88vh !important;
  margin: 0 auto !important;
  background: #FFFFFF;
  border-radius: 20px !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  animation: fadeZoomModal 0.22s ease;
}

@keyframes fadeZoomModal {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.pm-top-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 18px;
  border-bottom: 1px solid #EFECE6;
  background: #FFFFFF;
  flex-shrink: 0;
}

.pm-top-title {
  font-size: 16px;
  font-weight: 600;
  color: #231F20;
}

.pm-close-x {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #6E6A67;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pm-close-x:hover {
  background: #F4F2EE;
  color: #231F20;
}

.pm-product-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: #FFFFFF;
  flex-shrink: 0;
}

.pm-thumb {
  width: 96px;
  height: 96px;
  border-radius: 14px;
  object-fit: cover;
  background: #FAF5ED;
  flex-shrink: 0;
}

.pm-prod-info {
  flex: 1;
  min-width: 0;
}

.pm-cat-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--brand);
  margin-bottom: 3px;
}

.pm-prod-info h2 {
  font-size: 18px;
  font-weight: 600;
  color: #231F20;
  line-height: 1.3;
  margin-bottom: 4px;
}

.pm-desc {
  font-size: 14px;
  color: #7A7571;
  line-height: 1.42;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pm-price-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pm-unit-price {
  font-size: 19px;
  font-weight: 600;
  color: #D84315;
}

.pm-qty-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.pm-qty-box button {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid #D9D4CC;
  background: #FFFFFF;
  color: #231F20;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pm-qty-box button.is-plus {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.pm-qty-box span {
  font-size: 15px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.pm-scroll-options {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #FFFFFF;
}

.pm-opt-heading {
  padding: 10px 18px;
  background: #F4F2EE;
  color: #6E6A67;
  font-size: 14px;
  font-weight: 500;
}
.pm-opt-heading span {
  font-weight: 400;
  color: #8C8782;
}

.pm-opt-list {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}

.pm-opt-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  background: transparent !important;
  border: none;
  border-bottom: 1px solid #F0ECE6;
  text-align: left;
  cursor: pointer;
}
.pm-opt-row:last-child {
  border-bottom: none;
}
.pm-opt-row:hover {
  background: #FAF8F5 !important;
}

.pm-opt-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pm-size-ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pm-opt-text strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #231F20;
  margin-bottom: 2px;
}
.pm-opt-row.selected .pm-opt-text strong {
  font-weight: 600;
  color: var(--brand-dark);
}

.pm-opt-text span {
  display: block;
  font-size: 13.5px;
  color: #7A7571;
}

.pm-checkbox {
  width: 21px;
  height: 21px;
  border-radius: 5px;
  border: 1.5px solid #C8C2B8;
  background: #FFFFFF;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.15s;
}
.pm-opt-row.selected .pm-checkbox {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.pm-footer-bar {
  padding: 14px 18px;
  background: #FFFFFF;
  border-top: 1px solid #EFECE6;
  flex-shrink: 0;
}

.pm-submit-btn {
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  border: none;
  background: var(--brand);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.pm-submit-btn:hover {
  background: var(--brand-dark);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .product-grid, .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partners-cards-grid { grid-template-columns: 1fr; width: 100%; }
}

@media (max-width: 900px) {
  .hero-section-full { margin-top: 0; }
  .hero-slide { min-height: 380px; }
  .hero-slide-scrim {
    background: linear-gradient(
      180deg,
      rgba(24, 15, 9, 0.35) 0%,
      rgba(24, 15, 9, 0.82) 100%
    );
  }
  .hero-slide-container {
    padding-top: 120px;
    padding-bottom: 48px;
  }
  .slide-overlay-content h1 { font-size: 26px; }
  .sl-side-arrow { display: none; }
  .product-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .product-grid, .news-grid { grid-template-columns: 1fr; gap: 16px; }
  .quality-badges { grid-template-columns: 1fr; }
}
