/* ==============================================================================
   TRIỀU NGUYÊN COFFEE - EDITORIAL BRAND SHOWCASE PORTFOLIO (V3)
   Layout chuẩn:
   - Sản phẩm đơn: Nền xanh co lại (32%), túi cà phê phóng to nằm 1/2 trên nền xanh, 1/2 trên nền trắng (chính giữa trên-dưới)
   - Bên dưới túi có 3-4 góc hình bấm đổi
   - Cột phải: Logo Triều Nguyên góc phải, layout tự nhiên tiêu đề + tagline + mô tả + link ảnh kèm chữ Download
   - Bỏ 4 khối màu
   - Dưới cùng: Thông tin Người chụp, Ngày chụp, Khách hàng, Đánh số trang
   - Combo: Full nền màu, ảnh dàn ngang ở trên (có nút đổi góc), text tương phản ở dưới
   ============================================================================== */

:root {
  --c-forest: #102116;
  --c-moss: #4F6D38;
  --c-sand: #D9B883;
  --c-cream: #D7DCAE;
  --c-text-dark: #102116;
  --c-text-muted: #526356;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow-artboard: 0 25px 50px -12px rgba(16, 33, 22, 0.2), 0 10px 20px -5px rgba(0, 0, 0, 0.1);
  --shadow-pack-3d: drop-shadow(0 35px 30px rgba(0, 0, 0, 0.55)) drop-shadow(15px 20px 25px rgba(0, 0, 0, 0.3));
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: #e9ece4;
  color: var(--c-text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding: 30px 16px 90px;
}

/* ==============================================================================
   FLOATING HUD (TỐI GIẢN - TRUY CẬP ADMIN & NHẢY TRANG)
   ============================================================================== */
.floating-hud {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(16, 33, 22, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(215, 220, 174, 0.3);
  border-radius: 9999px;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.hud-title {
  color: var(--c-cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.hud-nav-pills {
  display: flex;
  gap: 6px;
}

.hud-pill {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  transition: 0.2s;
}
.hud-pill:hover, .hud-pill.active {
  background: var(--c-moss);
  color: #ffffff;
}

.hud-btn-admin {
  background: var(--c-sand);
  color: var(--c-forest);
  border: none;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hud-btn-admin:hover {
  background: #ffffff;
}

/* ==============================================================================
   LAYOUT 1: SẢN PHẨM ĐƠN (CANVAS CHUẨN TỶ LỆ TRỌNG TÂM)
   ============================================================================== */
.artboard-sheet {
  max-width: 1140px;
  min-height: 920px;
  margin: 0 auto 70px;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: var(--shadow-artboard);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Nền Chia Đôi: Xanh co lại (32%) bên trái, Trắng (68%) bên phải */
.sheet-background-split {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
}

.split-bg-left {
  width: 30%;
  height: 100%;
  background-color: var(--stage-color, #4F6D38);
  transition: background-color 0.3s;
}

.split-bg-right {
  width: 70%;
  height: 100%;
  background-color: #ffffff;
}

/* TÚI CÀ PHÊ: NẰM GIỮA MÀN HÌNH (TRÊN-DƯỚI) VÀ 1/2 TRÊN NỀN XANH, 1/2 TRÊN NỀN TRẮNG */
.hero-product-anchor {
  position: absolute;
  top: 50%;
  left: 30%; /* Trọng tâm đặt ngay đường phân chia 30% giữa 2 nền */
  transform: translate(-50%, -50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
}

.hero-product-image-box {
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-product-image-box:hover {
  transform: scale(1.03) translateY(-6px);
}

.hero-product-image-box img {
  height: 680px; /* Hình to, hoành tráng, làm trọng tâm thị giác */
  max-height: 72vh;
  width: auto;
  max-width: 480px;
  object-fit: contain;
  display: block;
  filter: var(--shadow-pack-3d);
}

/* Bên dưới có 3 hoặc 4 góc hình nữa ấn vô thì đổi */
.hero-angle-dock {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  background: rgba(16, 33, 22, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.angle-thumb-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid transparent;
  padding: 2px;
  cursor: pointer;
  transition: 0.2s;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.angle-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.angle-thumb-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.angle-thumb-btn.active {
  border-color: var(--c-sand);
  background: rgba(255, 255, 255, 0.4);
}

/* CỘT PHẢI: KHỐI NỘI DUNG TỰ NHIÊN (KHÔNG KHỐI CỨNG, BỎ MÀU MẪU) */
.editorial-right-container {
  position: relative;
  z-index: 10;
  margin-left: 54%; /* Cách khoảng rộng rãi bên phải túi cà phê */
  margin-right: 50px;
  padding-top: 45px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  min-height: 840px;
  justify-content: space-between;
}

/* Logo bên góc phải */
.top-brand-logo-corner {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}

.top-brand-logo-corner img {
  max-height: 58px;
  max-width: 170px;
  object-fit: contain;
}

/* Khối Tiêu Đề + Tagline + Nội dung mô tả tự nhiên */
.editorial-text-flow {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.editorial-title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 900;
  color: #102116;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.editorial-tagline {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--c-moss);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.editorial-body-paragraphs {
  font-size: 14.5px;
  line-height: 1.8;
  color: #2b3930;
  white-space: pre-line;
}

/* Link tổng hợp các hình có chữ download để khách tự down về */
.download-links-block {
  background: #f8faf6;
  border: 1px solid #e3e8dc;
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.dl-block-title {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-moss);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dl-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dl-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e8ede3;
  font-size: 13px;
}

.dl-item-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dl-thumb-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  background: #e9ece4;
  border-radius: 4px;
}

.dl-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--c-moss);
  color: #ffffff;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  transition: 0.2s;
}
.dl-btn-link:hover {
  background: var(--c-forest);
}

/* THÔNG TIN CUỐI TRANG & ĐÁNH SỐ TRANG */
.sheet-footer-meta-bar {
  position: relative;
  z-index: 10;
  padding: 16px 50px 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--c-text-muted);
}

.meta-credits-group {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.meta-credit-item strong {
  color: #102116;
}

.meta-page-number {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-moss);
  letter-spacing: 1px;
}


/* ==============================================================================
   LAYOUT 2: SẢN PHẨM COMBO (FULL NỀN MÀU, ẢNH Ở TRÊN, NỘI DUNG Ở DƯỚI)
   ============================================================================== */
.artboard-combo-sheet {
  max-width: 1140px;
  min-height: 940px;
  margin: 0 auto 70px;
  background-color: var(--stage-color, #102116);
  border-radius: 6px;
  box-shadow: var(--shadow-artboard);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--c-cream);
}

/* Nửa Trên: Ảnh Dàn Hàng Ngang + Góc Ảnh */
.combo-upper-hero {
  padding: 45px 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.combo-upper-top-bar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.combo-upper-top-bar img {
  max-height: 54px;
  max-width: 170px;
  object-fit: contain;
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.combo-big-mockup {
  width: 96%;
  max-width: 980px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.combo-big-mockup:hover {
  transform: scale(1.02) translateY(-6px);
}

.combo-big-mockup img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 30px 35px rgba(0, 0, 0, 0.65));
}

/* Nửa Dưới: Nội Dung Dàn Ngang (Text Khác Màu) */
.combo-lower-content {
  padding: 30px 60px 40px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid rgba(215, 220, 174, 0.2);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
}

.combo-lower-content .editorial-title {
  color: #ffffff;
  font-size: 34px;
}

.combo-lower-content .editorial-tagline {
  color: var(--c-sand);
}

.combo-lower-content .editorial-body-paragraphs {
  color: rgba(251, 249, 244, 0.85);
}

.combo-lower-content .download-links-block {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(215, 220, 174, 0.2);
}

.combo-lower-content .dl-block-title {
  color: var(--c-sand);
}

.combo-lower-content .dl-item-row {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.combo-lower-content .dl-btn-link {
  background: var(--c-sand);
  color: var(--c-forest);
}

/* Footer Meta Combo */
.combo-footer-bar {
  padding: 14px 60px 18px;
  background: #08110b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: rgba(215, 220, 174, 0.7);
}

.combo-footer-bar .meta-credit-item strong {
  color: #ffffff;
}

.combo-footer-bar .meta-page-number {
  color: var(--c-sand);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(16, 33, 22, 0.96);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-modal.active { display: flex; }

.lightbox-box {
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lightbox-close {
  position: absolute;
  top: -40px; right: 0;
  background: none;
  border: none;
  color: var(--c-cream);
  font-size: 36px;
  cursor: pointer;
}

.lightbox-img-box img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
}

/* Toast */
.toast-msg {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: #102116;
  color: var(--c-sand);
  border: 1px solid var(--c-sand);
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: 0.3s;
  z-index: 3000;
  pointer-events: none;
}
.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Nút tiện ích đổi source hình / sửa sản phẩm trực tiếp từ showcase */
.angle-edit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.angle-edit-link:hover {
  color: #ffffff;
  background: rgba(0, 0, 0, 0.65);
  border-color: #d19b63;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 960px) {
  .sheet-background-split { display: none; }
  .hero-product-anchor {
    position: relative;
    top: 0; left: 0;
    transform: none;
    background: var(--stage-color, #4F6D38);
    padding: 40px 20px;
    width: 100%;
  }
  .hero-product-image-box img { height: 420px; }
  .editorial-right-container {
    margin-left: 30px;
    margin-right: 30px;
    min-height: auto;
  }
  .combo-lower-content {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }
  .sheet-footer-meta-bar, .combo-footer-bar {
    padding: 14px 24px;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}
