/* ═══════════════════════════════════════
   Loyalty Portal – Mẹ Leo Shop
   ═══════════════════════════════════════ */

:root {
  --lp-pink:    #E91E8C;
  --lp-pink-d:  #C2185B;
  --lp-blue:    #1E40AF;
  --lp-blue-l:  #3B82F6;
  --lp-dark:    #1E293B;
  --lp-gray:    #64748B;
  --lp-light:   #F1F5F9;
  --lp-bg:      #EEF2FF;
  --lp-white:   #FFFFFF;
  --lp-shadow:  0 4px 20px rgba(0,0,0,.08);
  --lp-radius:  16px;
}

/* ── Reset ───────────────────────────── */
.lp-root *, .lp-root *::before, .lp-root *::after { box-sizing: border-box; }
.lp-root { font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--lp-dark); line-height: 1.5; }

/* ── Screens ─────────────────────────── */
.lp-screen { min-height: 100vh; }

/* Centered screens (phone-input, not-found) */
.lp-screen--center {
  background: #1a1a3e url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23ffffff10'/%3E%3C/svg%3E");
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 24px 16px;
}

.lp-screen--notfound {
  background: linear-gradient(135deg, #fff5ee 0%, #ffe0d0 50%, #ffd0e0 100%);
}

/* App layout (dashboard + sidebar) */
.lp-screen--app {
  display: flex; background: var(--lp-bg); min-height: 100vh;
}

/* ── Card ────────────────────────────── */
.lp-card {
  background: var(--lp-white);
  border-radius: var(--lp-radius);
  box-shadow: var(--lp-shadow);
  padding: 28px;
}

.lp-card--intro {
  width: 100%; max-width: 420px; text-align: center;
  padding: 36px 32px;
}

.lp-card--notfound { width: 100%; max-width: 420px; text-align: center; padding: 40px 32px; }
.lp-card--table    { padding: 20px; }
.lp-card--success  { max-width: 480px; text-align: center; padding: 48px 36px; }

/* ── Intro screen ────────────────────── */
.lp-intro-logo {
  width: 80px; height: 80px; border-radius: 20px; overflow: hidden;
  margin: 0 auto 16px; background: var(--lp-light);
}
.lp-intro-logo img { width: 100%; height: 100%; object-fit: cover; }

.lp-intro-title {
  font-size: 22px; font-weight: 700; color: var(--lp-pink);
  margin: 0 0 6px; position: relative; display: inline-block;
}
.lp-intro-title::after {
  content: ''; display: block; width: 40px; height: 3px;
  background: #ff6b35; border-radius: 2px; margin: 6px auto 0;
}

.lp-intro-desc { color: var(--lp-gray); font-size: 14px; margin: 0 0 24px; }

/* ── Field ───────────────────────────── */
.lp-field-group { text-align: left; margin-bottom: 16px; }
.lp-label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 6px; }
.lp-input-wrap { position: relative; }
.lp-input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; }
.lp-input {
  width: 100%; padding: 13px 16px;
  border: 1px solid #E2E8F0; border-radius: 40px;
  font-size: 15px; background: var(--lp-light);
  outline: none; transition: border .2s;
}
.lp-input:focus { border-color: var(--lp-blue); background: #fff; }
.lp-error { color: #EF4444; font-size: 13px; margin: 6px 0 0; min-height: 18px; }

/* ── Buttons ─────────────────────────── */
.lp-btn {
  display: block; width: 100%; padding: 14px 20px;
  border: none; border-radius: 40px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .2s; text-align: center; text-decoration: none;
}
.lp-btn--primary  { background: var(--lp-blue); color: #fff; }
.lp-btn--primary:hover { background: #1d3a9e; }
.lp-btn--ghost    { background: #E2E8F0; color: var(--lp-dark); }
.lp-btn--ghost:hover { background: #cbd5e1; }
.lp-btn--pink     { background: var(--lp-pink); color: #fff; }
.lp-btn--pink:hover { background: var(--lp-pink-d); }
.lp-btn--redeem-banner { background: var(--lp-pink); color: #fff; display: inline-block; width: auto; padding: 10px 24px; font-size: 14px; margin-top: 12px; }
.lp-btn-link { background: none; border: none; color: var(--lp-gray); font-size: 13px; cursor: pointer; padding: 0; }
.lp-mt8  { margin-top: 8px !important; }
.lp-mt16 { margin-top: 16px !important; }

/* ── Divider ─────────────────────────── */
.lp-divider {
  display: flex; align-items: center; gap: 10px;
  color: var(--lp-gray); font-size: 12px; margin: 14px 0;
}
.lp-divider::before, .lp-divider::after { content:''; flex:1; height:1px; background:#E2E8F0; }

/* ── Promo badge ─────────────────────── */
.lp-promo-badge {
  display: inline-block; margin-top: 20px;
  background: #FFF3CD; color: #92400E; border: 1px solid #F59E0B;
  padding: 8px 18px; border-radius: 40px; font-size: 13px; font-weight: 600;
}

/* ── Footer text ─────────────────────── */
.lp-footer-text { color: rgba(255,255,255,.6); font-size: 13px; margin-top: 20px; }
.lp-footer-text--dark { color: var(--lp-gray); }

/* ── Not-found ───────────────────────── */
.lp-nf-icon  { font-size: 48px; margin-bottom: 16px; }
.lp-nf-title { font-size: 24px; font-weight: 700; margin: 0 0 12px; }
.lp-nf-desc  { color: var(--lp-gray); margin: 0 0 24px; font-size: 14px; }

/* ── Sidebar ─────────────────────────── */
.lp-sidebar {
  width: 220px; min-width: 220px; background: var(--lp-white);
  display: flex; flex-direction: column;
  box-shadow: 2px 0 12px rgba(0,0,0,.06);
  padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}

.lp-sidebar-header { padding: 8px 20px 20px; border-bottom: 1px solid var(--lp-light); }
.lp-sidebar-avatar  {
  width: 60px; height: 60px; border-radius: 50%; overflow: hidden;
  background: var(--lp-light); margin: 0 auto 10px;
}
.lp-sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lp-sidebar-meta     { text-align: center; }
.lp-sidebar-store    { font-size: 14px; font-weight: 700; color: var(--lp-pink); }
.lp-sidebar-sub      { font-size: 11px; color: var(--lp-gray); }

.lp-nav { padding: 16px 12px; flex: 1; }
.lp-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 10px; color: var(--lp-dark);
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: all .15s; margin-bottom: 4px;
}
.lp-nav-item:hover         { background: var(--lp-light); }
.lp-nav-item--active       { background: #EEF2FF; color: var(--lp-blue); font-weight: 700; }
.lp-sidebar-footer         { padding: 12px 20px; border-top: 1px solid var(--lp-light); }

/* ── Main ────────────────────────────── */
.lp-main  { flex: 1; padding: 28px; overflow-y: auto; }
.lp-page  { max-width: 900px; }
.lp-page--center { display: flex; justify-content: center; align-items: center; min-height: 70vh; width: 100%; }

.lp-page-title { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.lp-page-sub   { color: var(--lp-gray); font-size: 14px; margin: 0 0 24px; }

/* ── Banner ──────────────────────────── */
.lp-banner {
  background: linear-gradient(135deg, #E91E8C 0%, #C2185B 100%);
  border-radius: var(--lp-radius); padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; color: #fff;
}
.lp-banner-greeting { font-size: 15px; margin: 0; line-height: 1.6; }
.lp-banner-sub      { font-size: 13px; margin: 4px 0 12px; opacity: .9; }
.lp-pts-highlight   { font-size: 22px; font-weight: 800; color: #FFD700; }
.lp-banner-img      { font-size: 56px; line-height: 1; }

.lp-banner--combo {
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  cursor: pointer;
  margin-bottom: 20px;
}

/* ── Section ─────────────────────────── */
.lp-section      { margin-bottom: 28px; }
.lp-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lp-section-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.lp-see-all      { font-size: 13px; color: var(--lp-blue); text-decoration: none; font-weight: 600; }
.lp-section-label { font-size: 15px; font-weight: 700; margin: 0 0 16px; }

/* ── Order cards ─────────────────────── */
.lp-order-list { display: flex; flex-direction: column; gap: 10px; }

.lp-order-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--lp-white); border-radius: 12px;
  padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .2s; cursor: pointer;
}
.lp-order-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.lp-order-thumb {
  width: 48px; height: 48px; border-radius: 10px;
  object-fit: cover; background: var(--lp-light); flex-shrink: 0;
}
.lp-order-thumb--placeholder {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--lp-light); display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.lp-order-info    { flex: 1; min-width: 0; }
.lp-order-name    { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-order-meta    { font-size: 12px; color: var(--lp-gray); }
.lp-order-right   { text-align: right; flex-shrink: 0; }
.lp-order-total   { font-size: 15px; font-weight: 700; color: var(--lp-blue); }
.lp-order-pts     { font-size: 12px; color: var(--lp-pink); font-weight: 600; }

/* ── Status badges ───────────────────── */
.lp-status {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
}
.lp-status--completed  { background: #D1FAE5; color: #065F46; }
.lp-status--processing { background: #FEF3C7; color: #92400E; }
.lp-status--pending    { background: #FEF3C7; color: #92400E; }
.lp-status--cancelled  { background: #FEE2E2; color: #991B1B; }
.lp-status--default    { background: var(--lp-light); color: var(--lp-gray); }

/* ── Stats row ───────────────────────── */
.lp-stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px;
}
.lp-stat-card {
  background: var(--lp-white); border-radius: 12px; padding: 18px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.lp-stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--lp-gray); margin-bottom: 6px; }
.lp-stat-value { font-size: 22px; font-weight: 800; }
.lp-stat-card:nth-child(1) .lp-stat-value { color: var(--lp-dark); }
.lp-stat-card:nth-child(2) .lp-stat-value { color: #059669; }
.lp-stat-card:nth-child(3) .lp-stat-value { color: #D97706; }
.lp-stat-card:nth-child(4) .lp-stat-value { color: var(--lp-blue); }

/* ── Orders table ────────────────────── */
#lp-orders-table .lp-order-list { margin-top: 12px; }
.lp-table { width: 100%; min-width: 520px; border-collapse: collapse; }
.lp-table th { text-align: left; font-size: 12px; color: var(--lp-gray); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; padding: 0 12px 12px; border-bottom: 1px solid #F1F5F9; white-space: nowrap; }
.lp-table td { padding: 14px 12px; border-bottom: 1px solid #F8FAFC; font-size: 14px; vertical-align: middle; }
.lp-table tr:last-child td { border-bottom: none; }
.lp-table tr:hover td { background: #FAFBFF; }
.lp-table .lp-num { font-weight: 700; color: var(--lp-blue); }
.lp-table-title { font-size: 15px; font-weight: 700; margin: 0 0 16px; }

/* ── Pagination ──────────────────────── */
.lp-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.lp-page-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid #E2E8F0;
  background: #fff; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.lp-page-btn--active { background: var(--lp-blue); color: #fff; border-color: var(--lp-blue); }
.lp-page-btn:hover:not(.lp-page-btn--active) { background: var(--lp-light); }

/* ── Order detail ────────────────────── */
.lp-breadcrumb { font-size: 13px; color: var(--lp-gray); margin-bottom: 12px; }
.lp-breadcrumb a { color: var(--lp-gray); text-decoration: none; }
.lp-breadcrumb a:hover { color: var(--lp-blue); }

.lp-od-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }
.lp-od-header h2 { margin: 0; font-size: 22px; font-weight: 800; }

.lp-badge { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.lp-badge--status   { background: #D1FAE5; color: #065F46; }
.lp-badge--pts      { background: #FFF9C4; color: #7B5800; }
.lp-badge--freeship { background: #E0F2FE; color: #0369A1; }
.lp-badge--sale     { background: #FEF3C7; color: #92400E; }
.lp-badge--nopt     { background: #FEE2E2; color: #991B1B; }
.lp-od-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.lp-od-info-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 20px; }
.lp-od-info-card { background: var(--lp-white); border-radius: 12px; padding: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.lp-od-info-label { font-size: 12px; color: var(--lp-gray); font-weight: 600; text-transform: uppercase; letter-spacing:.4px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.lp-od-info-val   { font-size: 15px; font-weight: 700; }
.lp-od-info-sub   { font-size: 12px; color: var(--lp-gray); margin-top: 4px; }

.lp-od-item-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid #F8FAFC;
}
.lp-od-item-row:last-child { border-bottom: none; }
.lp-od-item-img {
  width: 72px; height: 72px; border-radius: 12px;
  object-fit: contain; background: var(--lp-light);
  flex-shrink: 0; padding: 4px;
}
.lp-od-item-img--placeholder {
  width: 72px; height: 72px; border-radius: 12px;
  background: var(--lp-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.lp-od-item-info  { flex: 1; min-width: 0; }
.lp-od-item-name  { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.lp-od-item-price { font-size: 13px; color: var(--lp-gray); }
.lp-od-item-qty   { background: #EEF2FF; border-radius: 20px; padding: 2px 10px; font-weight: 700; color: var(--lp-blue); }
.lp-od-item-total { font-size: 15px; font-weight: 700; color: var(--lp-blue); flex-shrink: 0; text-align: right; }

.lp-od-footer-row { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; margin-top: 16px; }
.lp-od-vouchers h4 { margin: 0 0 12px; font-size: 14px; }
.lp-coupon-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--lp-light); border-radius: 6px; padding: 6px 12px; font-size: 13px; font-weight: 600; margin: 4px; }

.lp-od-summary { }
.lp-summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 14px; border-bottom: 1px solid #F8FAFC; }
.lp-summary-row:last-child { border-bottom: none; }
.lp-summary-row--total { font-size: 18px; font-weight: 800; color: var(--lp-blue); margin-top: 6px; padding-top: 10px; border-top: 2px solid #F1F5F9; }
.lp-summary-discount { color: #059669; }

/* ── Gifts ───────────────────────────── */
.lp-gifts-header {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--lp-white); border-radius: var(--lp-radius); padding: 24px 28px;
  box-shadow: var(--lp-shadow); margin-bottom: 24px;
}
.lp-gifts-header h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.lp-gifts-header p  { margin: 0; font-size: 14px; color: var(--lp-gray); }
.lp-gift-hero-img { width: 80px; height: 80px; object-fit: contain; }

.lp-gifts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.lp-gift-card {
  background: var(--lp-white); border-radius: var(--lp-radius); overflow: hidden;
  box-shadow: var(--lp-shadow); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.lp-gift-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.lp-gift-img { width: 100%; height: 200px; object-fit: contain; background: #fff; padding: 8px; display: block; transition: opacity .15s; }
.lp-gift-img--placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, #ffeef8, #fff0f5); display: flex; align-items: center; justify-content: center; font-size: 56px; }
.lp-gift-img-wrap { position: relative; overflow: hidden; }
.lp-gift-img-wrap--gallery:hover .lp-gift-img { opacity: .9; }
.lp-gift-img-count {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px;
  border-radius: 20px; padding: 3px 8px; pointer-events: none;
}
.lp-gift-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.lp-gift-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.lp-gift-desc {
  font-size: 13px; color: var(--lp-gray); margin-bottom: 4px;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.lp-gift-desc.is-expanded { display: block; overflow: visible; -webkit-line-clamp: unset; }
.lp-gift-see-more {
  font-size: 12px; color: var(--lp-pink); background: none; border: none;
  cursor: pointer; padding: 0; margin-bottom: 10px; text-align: left; font-weight: 600;
}
.lp-gift-pts  { font-size: 13px; color: var(--lp-pink); font-weight: 700; margin-bottom: 12px; margin-top: auto; }
.lp-gift-pts span { font-size: 18px; }
.lp-gift-btn  { width: 100%; padding: 11px; border: none; border-radius: 40px; background: var(--lp-pink); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .2s; }
.lp-gift-btn:hover   { background: var(--lp-pink-d); }
.lp-gift-btn:disabled { background: #CBD5E1; cursor: not-allowed; }
.lp-gift-locked { font-size: 12px; color: var(--lp-gray); text-align: center; margin-top: 8px; }

/* ── Redeem success ──────────────────── */
.lp-success-icon { font-size: 64px; margin-bottom: 16px; }
.lp-card--success h2 { font-size: 22px; font-weight: 800; margin: 0 0 12px; }
.lp-card--success p  { color: var(--lp-gray); margin: 0 0 24px; font-size: 14px; }
.lp-success-pts-row  { display: flex; align-items: center; justify-content: space-between; background: var(--lp-light); border-radius: 12px; padding: 14px 20px; margin-bottom: 24px; font-size: 14px; }
.lp-success-pts-row strong { font-size: 20px; font-weight: 800; color: var(--lp-blue); }
.lp-success-thanks { font-size: 13px; color: var(--lp-gray); margin-top: 16px !important; margin-bottom: 0 !important; }

/* ── Account ─────────────────────────── */
.lp-account-card { text-align: center; max-width: 400px; }
.lp-account-avatar { font-size: 56px; margin-bottom: 12px; }
.lp-account-name   { font-size: 20px; font-weight: 700; }
.lp-account-phone  { color: var(--lp-gray); font-size: 14px; margin-bottom: 16px; }
.lp-account-pts-row{ display: flex; justify-content: space-between; align-items: center; background: var(--lp-light); border-radius: 12px; padding: 14px 20px; font-size: 14px; margin-top: 16px; }

/* ── Bottom nav (mobile only) ─────────── */
.lp-bottom-nav { display: none; }

/* ── Spinner ─────────────────────────── */
.lp-spinner {
  display: flex; align-items: center; justify-content: center; padding: 40px;
  color: var(--lp-gray); font-size: 14px;
}
.lp-spinner::before {
  content: ''; width: 22px; height: 22px; border: 3px solid #E2E8F0;
  border-top-color: var(--lp-blue); border-radius: 50%;
  animation: lp-spin .7s linear infinite; margin-right: 10px;
}
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* ── Empty state ─────────────────────── */
.lp-empty { text-align: center; padding: 48px 20px; color: var(--lp-gray); }
.lp-empty-icon { font-size: 44px; margin-bottom: 12px; }
.lp-empty p { margin: 0; font-size: 14px; }

/* ── Toast ───────────────────────────── */
#lp-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: #1E293B; color: #fff; padding: 12px 24px; border-radius: 40px;
  font-size: 14px; z-index: 9999; transition: transform .3s; pointer-events: none;
  white-space: nowrap;
}
#lp-toast.show { transform: translateX(-50%) translateY(0); }
#lp-toast.error { background: #EF4444; }

/* ── Confirm dialog ──────────────────── */
#lp-confirm {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 9998; align-items: center; justify-content: center;
}
#lp-confirm.show { display: flex; }
.lp-confirm-box {
  background: #fff; border-radius: var(--lp-radius); padding: 32px;
  max-width: 400px; width: 90%; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.lp-confirm-box h3 { margin: 0 0 10px; font-size: 18px; }
.lp-confirm-box p  { color: var(--lp-gray); font-size: 14px; margin: 0 0 24px; }
.lp-confirm-btns   { display: flex; gap: 10px; }
.lp-confirm-btns .lp-btn { flex: 1; }

/* ── Responsive ──────────────────────── */
@media (max-width: 768px) {
  .lp-sidebar    { display: none; }
  .lp-main       { padding: 16px 14px 80px; }
  .lp-bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid #E2E8F0; z-index: 100; height: 64px;
  }
  .lp-bnav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: 10px; color: var(--lp-gray); text-decoration: none; padding: 8px 0;
  }
  .lp-bnav-item span:first-child { font-size: 20px; }
  .lp-bnav-item--active { color: var(--lp-pink); }

  .lp-stats-row { grid-template-columns: repeat(2, 1fr); }
  .lp-od-info-row   { grid-template-columns: 1fr; }
  .lp-od-footer-row { grid-template-columns: 1fr; }
  .lp-banner { flex-direction: column; text-align: center; }
  .lp-banner-img { display: none; }
  .lp-gifts-header { flex-direction: column; gap: 12px; }
  .lp-gift-hero-img { display: none; }
}

@media (max-width: 480px) {
  .lp-card--intro, .lp-card--notfound { padding: 28px 20px; }
  .lp-stats-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lp-stat-value { font-size: 18px; }
  .lp-card { padding: 16px; }
  .lp-main { padding: 16px; }
}

/* ── Combos ──────────────────────────── */
.lp-combos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.lp-combo-card {
  background: var(--lp-white);
  border-radius: 12px;
  box-shadow: var(--lp-shadow);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.lp-combo-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }

.lp-combo-hero { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--lp-light); }
.lp-combo-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-combo-hero-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; }

.lp-combo-count {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px;
  border-radius: 20px; padding: 2px 8px;
}

.lp-combo-body { padding: 12px 14px 14px; }
.lp-combo-name { font-weight: 700; font-size: 14px; color: var(--lp-dark); margin-bottom: 4px; }
.lp-combo-desc { font-size: 12px; color: var(--lp-gray); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }

.lp-combo-buy-btn {
  display: block; text-align: center;
  background: var(--lp-pink); color: #fff;
  border-radius: 50px; padding: 9px 16px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.lp-combo-buy-btn:hover { background: var(--lp-pink-d); color: #fff; }

/* ── Gallery Modal ───────────────────── */
.lp-gallery-modal {
  position: fixed; inset: 0; z-index: 9998;
  display: flex; align-items: center; justify-content: center;
}
.lp-gallery-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); }
.lp-gallery-box {
  position: relative; z-index: 1;
  background: var(--lp-white); border-radius: 16px;
  width: 520px; max-width: 95vw; max-height: 90vh;
  overflow-y: auto; padding: 24px;
}
.lp-gallery-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--lp-light); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.lp-gallery-title { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.lp-gallery-desc  { font-size: 13px; color: var(--lp-gray); margin: 0 0 16px; }
.lp-gallery-hero  { border-radius: 10px; overflow: hidden; background: var(--lp-light); margin-bottom: 12px; }
.lp-gallery-main-img { width: 100%; max-height: 320px; object-fit: cover; display: block; }
.lp-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-gallery-thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
  cursor: pointer; border: 2px solid transparent; transition: border-color .12s;
}
.lp-gallery-thumb--active { border-color: var(--lp-pink); }
.lp-gallery-thumb:hover { border-color: var(--lp-pink-d); }
