:root {
  --green-dark: #103B2E;
  --green-main: #175240;
  --green-light: #E8F3EE;
  --cream-bg: #FAF6EE;
  --gold: #D4A84F;
  --gold-bright: #F5C451;
  --red-price: #C9302C;
  --text-main: #1C2824;
  --text-sub: #5A6B65;
  --white: #FFFFFF;
  --border: #DCE6E1;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #E5E0D5;
  color: var(--text-main);
  line-height: 1.45;
  font-size: 14.5px;
}

.mobile-shell {
  max-width: 500px;
  margin: 0 auto;
  background: var(--cream-bg);
  min-height: 100vh;
  box-shadow: 0 0 36px rgba(0, 0, 0, 0.12);
  padding-bottom: 70px;
  overflow-x: hidden;
}

/* Header mỏng gọn kèm Logo Teamo */
.top-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--green-dark);
  color: var(--white);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold);
}

.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--white);
}

.top-logo-img {
  height: 24px;
  width: auto;
  display: block;
}

.top-brand small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-bright);
}

.top-cta-btn {
  background: var(--gold-bright);
  color: #102A20;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 99px;
}

/* Hero Banner kèm Logo Teamo nổi bật */
.hero-banner {
  background: var(--green-dark);
  color: var(--white);
}

.hero-cover-wrap {
  position: relative;
  width: 100%;
}

.hero-banner img.hero-cover {
  width: 100%;
  height: 235px;
  object-fit: cover;
  display: block;
}

.hero-logo-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(16, 59, 46, 0.88);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(245, 196, 81, 0.65);
  border-radius: 12px;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.hero-logo-img {
  height: 28px;
  width: auto;
  display: block;
}

.hero-Summary-box {
  padding: 14px 14px 16px;
  background: linear-gradient(180deg, #103B2E 0%, #175240 100%);
  text-align: center;
}

.hero-Summary-box h1 {
  font-size: 1.24rem;
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 6px;
  font-weight: 800;
}

.hero-Summary-box h1 span {
  color: var(--gold-bright);
  font-size: 1.3rem;
}

.hero-Summary-box p {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.deal-highlight {
  background: #FFF9EB;
  color: var(--text-main);
  border: 1.5px dashed #D97706;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
  text-align: center;
}

.deal-highlight strong {
  color: var(--red-price);
  font-size: 0.88rem;
}

/* ĐỒNG HỒ ĐẾM NGƯỢC ƯU ĐÃI ĐẾN 24H NGÀY 07/11 */
.countdown-box {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed rgba(217, 119, 6, 0.45);
}

.countdown-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #9A3412;
  margin-bottom: 5px;
  letter-spacing: 0.2px;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.cd-item {
  background: var(--red-price);
  color: #fff;
  border-radius: 7px;
  min-width: 48px;
  padding: 4px 6px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(201, 48, 44, 0.3);
}

.cd-item strong {
  display: block;
  color: #fff !important;
  font-size: 1.05rem !important;
  font-weight: 800;
  line-height: 1.1;
}

.cd-item span {
  display: block;
  font-size: 0.64rem;
  color: #FFE4E6;
  font-weight: 600;
  margin-top: 1px;
}

.cd-sep {
  font-weight: 800;
  font-size: 1rem;
  color: var(--red-price);
}

/* Section chung */
.sec-block {
  padding: 18px 12px;
}

.sec-head {
  text-align: center;
  margin-bottom: 12px;
}

.sec-head h2 {
  font-size: 1.18rem;
  color: var(--green-dark);
  font-weight: 800;
}

.sec-head p {
  font-size: 0.8rem;
  color: var(--text-sub);
  margin-top: 2px;
}

/* LƯỚI 6 SET THU GỌN (2 cột x 3 hàng) */
.compact-sets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.compact-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(16, 59, 46, 0.05);
}

.compact-card.selected {
  border: 2px solid var(--green-main);
  background: #F4FBF7;
}

.compact-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F4EFE6;
  cursor: pointer;
}

.compact-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compact-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(16, 59, 46, 0.9);
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

.compact-detail-hint {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 99px;
  font-weight: 600;
}

.compact-body {
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.compact-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.25;
  margin-bottom: 3px;
  cursor: pointer;
}

.compact-short-desc {
  font-size: 0.74rem;
  color: var(--text-sub);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.compact-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 7px;
}

.compact-price {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--red-price);
}

.compact-vat {
  font-size: 0.66rem;
  color: var(--text-sub);
}

.compact-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.btn-view-detail {
  padding: 7px 4px;
  border-radius: 7px;
  border: 1px solid var(--green-main);
  background: var(--white);
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-quick-pick {
  padding: 7px 4px;
  border-radius: 7px;
  border: none;
  background: var(--green-dark);
  color: var(--white);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-quick-pick.picked {
  background: var(--gold-bright);
  color: #102A20;
}

/* Khối In/Khắc lazer theo yêu cầu */
.custom-strip {
  background: var(--green-dark);
  color: var(--white);
  padding: 16px 12px;
}

.custom-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.custom-mini-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(245, 196, 81, 0.35);
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.custom-mini-item:active {
  transform: scale(0.97);
}

.custom-mini-item img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 5px;
  background: #fff;
}

.custom-mini-item strong {
  display: block;
  font-size: 0.73rem;
  color: var(--gold-bright);
  line-height: 1.25;
}

.custom-zoom-hint {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Dải trượt ngang 10 mẫu In/Khắc lazer thực tế */
.custom-samples-head {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #FFF9EB;
}

.custom-ten-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.custom-ten-scroll::-webkit-scrollbar {
  display: none;
}

.custom-sample-card {
  flex: 0 0 112px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
}

.custom-sample-card img {
  width: 100%;
  height: 112px;
  object-fit: cover;
  display: block;
  background: #fff;
}

.custom-sample-card span {
  display: block;
  font-size: 0.68rem;
  color: #fff;
  padding: 4px 5px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* FORM ĐẶT HÀNG SIÊU GỌN GÀNG */
.order-box {
  background: var(--white);
  border-radius: 14px;
  padding: 14px 12px;
  border: 2px solid var(--green-main);
  box-shadow: 0 4px 16px rgba(16, 59, 46, 0.08);
}

.form-sec-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 6px;
  display: block;
}

/* Lưới nút chọn Set dạng Chip 2 cột siêu gọn trong Form */
.mini-set-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.set-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--cream-bg);
  font-size: 0.76rem;
}

.set-chip.active {
  border-color: var(--green-main);
  background: var(--green-light);
}

.set-chip-info {
  overflow: hidden;
  padding-right: 4px;
}

.set-chip-info strong {
  display: block;
  color: var(--green-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.76rem;
}

.set-chip-info span {
  color: var(--red-price);
  font-weight: 800;
  font-size: 0.73rem;
}

.chip-qty {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
}

.chip-qty button {
  width: 22px;
  height: 24px;
  border: none;
  background: transparent;
  font-weight: 800;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 0.9rem;
}

.chip-qty span {
  width: 18px;
  text-align: center;
  font-weight: 800;
  font-size: 0.76rem;
}

.bill-bar {
  background: #FFF9EB;
  border: 1px solid #F59E0B;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  font-size: 0.78rem;
}

.bill-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 0.88rem;
  margin-top: 3px;
}

.bill-bar-row strong {
  color: var(--red-price);
  font-size: 1.05rem;
}

/* Custom tags dạng nút bấm ngang gọn */
.custom-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.custom-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  background: var(--cream-bg);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.custom-pill-label input {
  accent-color: var(--green-main);
}

.f-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.f-input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.84rem;
  margin-bottom: 8px;
}

.f-row-2 .f-input {
  margin-bottom: 0;
}

.f-input:focus {
  outline: none;
  border-color: var(--green-main);
}

.btn-main-cta {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #F5C451 0%, #D99B26 100%);
  color: #102A20;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
}

/* Ảnh Mua 4 Tặng 1 cuối trang */
.bottom-promo-banner {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 14px rgba(16, 59, 46, 0.1);
}

.bottom-promo-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Thanh cố định dưới đáy */
.bottom-fixed-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  z-index: 100;
}

.btn-call-now {
  flex: 0.42;
  background: var(--green-light);
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.btn-order-now {
  flex: 0.58;
  background: var(--red-price);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.84rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

/* POPUP XEM CHI TIẾT CÓ SLIDER VUỐT ẢNH */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  max-width: 430px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 14px;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 10;
}

/* Swipe Slider trong Popup */
.swipe-slider-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #F4EFE6;
  margin-bottom: 8px;
}

.swipe-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.swipe-track::-webkit-scrollbar {
  display: none;
}

.swipe-slide {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 4 / 3.6;
  scroll-snap-align: center;
}

.swipe-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.slider-nav-btn.prev {
  left: 8px;
}

.slider-nav-btn.next {
  right: 8px;
}

.slider-counter {
  position: absolute;
  bottom: 8px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
}

.swipe-hint-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 8px;
}

.detail-thumbs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
}

.detail-thumbs::-webkit-scrollbar {
  display: none;
}

.detail-thumb-item {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
}

.detail-thumb-item.active {
  border-color: var(--green-main);
}

.detail-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* HIỆU ỨNG NÚT NHẤP NHÔ RÕ RỆT & SINH ĐỘNG CHUẨN LADIPAGE */
@keyframes btnStrongBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 4px 12px rgba(201, 48, 44, 0.35);
  }
  50% {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 10px 24px rgba(245, 196, 81, 0.65);
  }
}

@keyframes btnZoomPulse {
  0%, 100% {
    transform: scale(1) translateY(0);
  }
  50% {
    transform: scale(1.08) translateY(-4px);
  }
}

@keyframes badgeBob {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-3.5px) scale(1.07);
  }
}

@keyframes phoneRing {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  20% { transform: translateY(-4px) rotate(-5deg) scale(1.05); }
  40% { transform: translateY(-4px) rotate(5deg) scale(1.05); }
  60% { transform: translateY(-4px) rotate(-4deg) scale(1.05); }
  80% { transform: translateY(-2px) rotate(4deg) scale(1.02); }
}

.btn-main-cta {
  animation: btnStrongBounce 0.95s ease-in-out infinite;
  will-change: transform;
}

.btn-order-now {
  animation: btnStrongBounce 0.9s ease-in-out infinite;
  will-change: transform;
}

.top-cta-btn {
  display: inline-block;
  animation: btnZoomPulse 1s ease-in-out infinite;
  will-change: transform;
}

/* Ở phần sản phẩm: chỉ nhấp nhô nút + Chọn, bỏ nhấp nhô ảnh */
.btn-quick-pick {
  animation: btnZoomPulse 1.05s ease-in-out infinite;
  will-change: transform;
}

.custom-zoom-hint {
  animation: btnZoomPulse 1s ease-in-out infinite;
}

.btn-call-now {
  animation: phoneRing 1.2s ease-in-out infinite;
  will-change: transform;
}

.deal-highlight {
  animation: btnStrongBounce 1.3s ease-in-out infinite;
  will-change: transform;
}
