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

:root {
  --bg: #FFF5F7;
  --card: #ffffff;
  --accent: #B5183D;
  --accent-grad: #e73661;
  --accent-light: #FCE8EE;
  --accent-dark: #8B1A2B;
  --sakura: #F8C8D4;
  --text: #2C1810;
  --muted: #9B7B82;
  --border: #F0D0D8;
  --shadow-sm: 0 1px 3px rgba(181,24,61,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(181,24,61,.12), 0 1px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(181,24,61,.2), 0 4px 12px rgba(0,0,0,.08);
  --radius: 16px;
  --radius-sm: 10px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(160deg, var(--bg) 0%, var(--accent-light) 100%);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 120px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

/* ─── PAGE CONTENT ─── */
.page { max-width: 1100px; margin: 0 auto; padding: 24px 16px 16px; }

.section-label {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px;
}

/* ─── PRODUCT GRID ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 767px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (min-width: 768px) and (max-width: 1000px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ─── PRODUCT CARD ─── */
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s cubic-bezier(.34,1.3,.64,1), box-shadow .2s, border-color .15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  animation: fadeUp .45s ease both;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(181,24,61,.13); border-color: var(--accent); }
.product-card:active { transform: scale(.97); transition: transform .08s; }
.product-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181,24,61,.15), 0 4px 18px rgba(181,24,61,.12);
}
.product-card.selected:active { transform: scale(.98); }
.product-card:nth-child(1) { animation-delay: .04s; }
.product-card:nth-child(2) { animation-delay: .08s; }
.product-card:nth-child(3) { animation-delay: .12s; }
.product-card:nth-child(4) { animation-delay: .16s; }
.product-card:nth-child(5) { animation-delay: .20s; }
.product-card:nth-child(6) { animation-delay: .24s; }

/* ─── CHECK BADGE (inside image, replaces old circle button) ─── */
.card-check-badge {
  position: absolute; bottom: 8px; right: 8px; z-index: 3;
  width: 28px; height: 28px;
  background: #22c55e; border: 2.5px solid #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0);
  transition: all .22s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  pointer-events: none;
}
.product-card.selected .card-check-badge { opacity: 1; transform: scale(1); }
.card-check-badge i { font-size: .62rem; color: #fff; }

.card-img-wrap {
  width: 100%; aspect-ratio: 1/1;
  background: var(--accent-light);
  overflow: hidden; display: flex; align-items: center; justify-content: center; position: relative;
  flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease; display: block;
}
.product-card:hover .card-img-wrap img { transform: scale(1.06); }
.card-img-placeholder {
  font-size: 2.5rem; opacity: .18;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.card-img-placeholder span { font-size: .68rem; font-weight: 700; color: var(--accent); opacity: .8; }

.card-body { padding: 11px 12px 0; flex: 1; display: flex; flex-direction: column; }
@media (max-width: 767px) { .card-body { padding: 9px 10px 0; } }

.card-brand {
  font-size: .63rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px;
}

.card-name {
  font-size: .88rem; font-weight: 700; line-height: 1.32; color: var(--text); margin-bottom: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 767px) { .card-name { font-size: .8rem; } }

.card-desc {
  font-size: .69rem; color: var(--muted); margin-bottom: 5px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

.card-price { font-size: 1rem; font-weight: 800; color: var(--accent); margin-top: 4px; }
@media (max-width: 767px) { .card-price { font-size: .9rem; } }

/* Variant / size chips */
.card-variants {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; padding-bottom: 2px;
}
.variant-chip {
  padding: 3px 10px; border-radius: 5px;
  border: 1.5px solid var(--border);
  font-size: .68rem; font-weight: 700; line-height: 1.5;
  cursor: pointer; background: transparent; color: var(--muted);
  font-family: inherit; white-space: nowrap;
  transition: all .15s; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.variant-chip.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.variant-chip:hover:not(.active) { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
@media (max-width: 767px) { .variant-chip { font-size: .64rem; padding: 2px 8px; } }

/* Color swatches */
.card-colors {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; padding-bottom: 2px;
}
.color-swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.8);
  box-shadow: 0 0 0 1.5px rgba(0,0,0,.15);
  cursor: pointer; flex-shrink: 0;
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.color-swatch:hover { transform: scale(1.2); }
.color-swatch.active {
  box-shadow: 0 0 0 2.5px var(--accent);
  transform: scale(1.18);
}
@media (max-width: 767px) { .color-swatch { width: 20px; height: 20px; } }

/* Card bottom tap bar */
.card-tap-bar {
  margin-top: 10px;
  padding: 9px 12px;
  background: #f4f4f6;
  border-top: 1px solid var(--border);
  font-size: .7rem; font-weight: 700; color: var(--muted);
  text-align: center; letter-spacing: .02em;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.product-card.selected .card-tap-bar { background: var(--accent); color: #fff; }
.card-select-hint { font-size: .68rem; color: var(--muted); margin-top: 2px; font-weight: 500; }
.product-card.selected .card-select-hint { color: var(--accent); font-weight: 600; }

/* ─── FLOATING ORDER BAR ─── */
.order-bar {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(100px);
  z-index: 200;
  background: linear-gradient(135deg, var(--accent-grad) 0%, var(--accent) 100%);
  color: #fff;
  border-radius: 50px;
  padding: 14px 24px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 32px rgba(181,24,61,.45), 0 2px 8px rgba(0,0,0,.1);
  min-width: 300px; max-width: 90vw;
  transition: transform .4s cubic-bezier(.34,1.3,.64,1), opacity .3s ease;
  opacity: 0;
  cursor: default;
}
.order-bar.visible { transform: translateX(-50%) translateY(0); opacity: 1; }
.order-bar-info { flex: 1; }
.order-bar-count { font-size: .75rem; font-weight: 600; opacity: .85; }
.order-bar-total { font-size: 1.1rem; font-weight: 800; }
.order-bar-btn {
  background: #fff; color: var(--accent);
  border: none; border-radius: 30px;
  padding: 10px 22px; font-size: .9rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
  font-family: inherit;
}
.order-bar-btn:hover { transform: scale(1.04); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.order-bar-btn:active { transform: scale(.97); }

/* ─── ORDER FORM SECTION ─── */
.order-section { display: none; animation: fadeUp .4s ease both; }
.order-section.open { display: block; }

.order-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.order-header {
  background: linear-gradient(135deg, var(--accent-grad) 0%, var(--accent) 100%);
  color: #fff; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.order-header h2 { font-size: 1.1rem; font-weight: 700; }
.order-back-btn {
  background: rgba(255,255,255,.2); border: none; color: #fff;
  border-radius: 8px; padding: 6px 14px;
  font-size: .8rem; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: background .2s;
}
.order-back-btn:hover { background: rgba(255,255,255,.3); }

.order-summary {
  padding: 16px 20px;
  background: var(--accent-light);
  border-bottom: 1px solid rgba(91,79,207,.1);
}
.order-summary-title { font-size: .75rem; font-weight: 600; color: var(--accent); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .05em; }
.order-item { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: .88rem; }
.order-item-name { font-weight: 600; color: var(--text); }
.order-item-price { font-weight: 700; color: var(--accent); }
.order-item-remove {
  background: none; border: none; color: #ef4444;
  font-size: .8rem; cursor: pointer; padding: 2px 6px;
  margin-left: 8px; border-radius: 4px;
  transition: background .15s;
}
.order-item-remove:hover { background: #fee2e2; }
.order-totals { border-top: 1px solid rgba(91,79,207,.15); margin-top: 8px; padding-top: 10px; }
.order-total-row { display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); margin-bottom: 4px; }
.order-total-row.grand { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 0; margin-top: 6px; }
.order-total-row.delivery-set { color: var(--text); }
.order-total-row.delivery-set span:last-child { color: var(--accent); font-weight: 700; }

.form-body { padding: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

label { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

input[type=text], input[type=tel], textarea, select {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: .92rem; font-family: inherit; color: var(--text);
  outline: none; transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(181,24,61,.1);
}
textarea { resize: vertical; min-height: 80px; }

.phone-wrap {
  display: flex; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.phone-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181,24,61,.1); }
.phone-code {
  padding: 12px 13px; background: var(--accent-light);
  color: var(--accent); font-weight: 700; font-size: .88rem;
  border-right: 1.5px solid var(--border); white-space: nowrap;
  display: flex; align-items: center; flex-shrink: 0;
}
.phone-wrap input[type=tel] {
  flex: 1; border: none; border-radius: 0; padding: 12px 14px;
  background: transparent; box-shadow: none !important; min-width: 0;
}
.phone-wrap input[type=tel]:focus { box-shadow: none !important; }

.payment-toggle { display: flex; gap: 10px; margin-top: 2px; }
.pay-btn {
  flex: 1; padding: 12px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg); color: var(--muted);
  font-family: inherit; font-size: .88rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .2s;
}
.pay-btn.active { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }
.pay-btn i { font-size: 1rem; }

.bkash-info {
  background: #fff3f3; border: 1.5px solid #fca5a5;
  border-radius: var(--radius-sm); padding: 14px 16px;
  display: none; align-items: center; justify-content: space-between;
  margin-top: 12px;
}
.bkash-info.show { display: flex; }
.bkash-label { font-size: .75rem; font-weight: 600; color: #b91c1c; }
.bkash-number { font-size: 1.1rem; font-weight: 800; color: #dc2626; }
.copy-btn {
  background: #dc2626; color: #fff;
  border: none; border-radius: 6px;
  padding: 6px 14px; font-size: .78rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.copy-btn:hover { background: #b91c1c; }

.transaction-field { display: none; margin-top: 12px; }
.transaction-field.show { display: block; }

.submit-btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--accent-grad) 0%, var(--accent) 100%);
  color: #fff; border: none; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700; font-family: inherit;
  cursor: pointer; margin-top: 20px;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  box-shadow: 0 4px 16px rgba(181,24,61,.35);
}
.submit-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(181,24,61,.45); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ─── SUCCESS MODAL ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card); border-radius: var(--radius);
  padding: 32px 28px; max-width: 420px; width: 100%;
  text-align: center;
  transform: scale(.9) translateY(20px);
  transition: transform .35s cubic-bezier(.34,1.3,.64,1);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); }
.modal-icon { font-size: 3rem; margin-bottom: 16px; }
.modal h3 { font-size: 1.3rem; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 20px; }
.modal-close {
  background: var(--accent); color: #fff;
  border: none; border-radius: 30px;
  padding: 12px 32px; font-size: .95rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: transform .2s, box-shadow .2s;
}
.modal-close:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(181,24,61,.35); }

/* ─── SITE HEADER (logo only) ─── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  height: 62px; padding: 0 24px;
}
.site-logo {
  font-size: 1.55rem; font-weight: 800;
  font-style: italic; letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--text) 15%, var(--accent) 85%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  text-decoration: none;
}

/* scroll offset for sticky nav */
#productsSection { scroll-margin-top: 72px; }
#orderSection    { scroll-margin-top: 72px; }

/* ─── BANNER: HERO (gradient split) ─── */
.banner-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0e0306 0%, #4a0e1a 38%, #8f1e36 68%, #d4254e 100%);
  padding: 72px 40px 80px;
  min-height: 440px;
}
.banner-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 80% at 78% 50%, rgba(231,54,97,.22) 0%, transparent 68%),
    radial-gradient(ellipse 40% 50% at 8% 88%,  rgba(0,0,0,.35) 0%, transparent 55%);
}
.banner-inner {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 56px;
}
.banner-text-col { flex: 1; min-width: 0; }

.banner-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.55); margin-bottom: 20px; font-style: italic;
}
.banner-hl {
  font-size: 3.2rem; font-weight: 800;
  color: #fff; line-height: 1.06; letter-spacing: -.05em; margin-bottom: 20px;
}
.banner-sl {
  font-size: 1rem; color: rgba(255,255,255,.68);
  line-height: 1.78; margin-bottom: 40px; max-width: 440px;
}
.banner-cta-wrap { margin-top: 4px; }
.banner-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: var(--accent);
  font-weight: 700; font-size: .92rem; font-family: inherit;
  padding: 15px 40px; border-radius: 50px; border: none; cursor: pointer;
  box-shadow: 0 4px 28px rgba(0,0,0,.3);
  transition: transform .22s cubic-bezier(.34,1.3,.64,1), box-shadow .2s;
  letter-spacing: .01em;
}
.banner-cta:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.banner-cta:active { transform: scale(.97); }
.banner-cta i { font-size: .78rem; transition: transform .2s; }
.banner-cta:hover i { transform: translateX(3px); }

/* ── Right-side circular image disc ── */
.banner-disc-wrap {
  position: relative; flex-shrink: 0;
  width: 300px; height: 300px;
  display: flex; align-items: center; justify-content: center;
}
.banner-disc {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: rgba(255,255,255,.08);
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 64px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06);
  position: relative; z-index: 2;
}
.banner-disc-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-disc-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 42% 38%, rgba(255,255,255,.13) 0%, transparent 65%);
  font-size: 3.2rem; color: rgba(255,255,255,.18);
}
.banner-disc-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}
.banner-disc-ring-1 { width: 360px; height: 360px; }
.banner-disc-ring-2 { width: 420px; height: 420px; opacity: .5; }

/* Responsive */
@media (min-width: 900px) {
  .banner-hero { padding: 92px 60px 100px; min-height: 500px; }
  .banner-hl { font-size: 4rem; }
  .banner-disc-wrap { width: 360px; height: 360px; }
  .banner-disc-ring-1 { width: 430px; height: 430px; }
  .banner-disc-ring-2 { width: 500px; height: 500px; }
}
@media (max-width: 767px) {
  .banner-inner { flex-direction: column-reverse; gap: 36px; text-align: center; }
  .banner-sl { max-width: 100%; }
  .banner-disc-wrap { width: 200px; height: 200px; }
  .banner-disc-ring-1 { width: 240px; height: 240px; }
  .banner-disc-ring-2 { width: 280px; height: 280px; }
}
@media (max-width: 480px) {
  .banner-hero { padding: 48px 20px 56px; }
  .banner-hl { font-size: 2.2rem; }
  .banner-cta { padding: 13px 30px; font-size: .88rem; }
}

/* ─── bKash QR ─── */
.bkash-qr-wrap {
  display: flex; align-items: center; gap: 16px;
  background: #fff3f3; border: 1.5px solid #fca5a5;
  border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 12px;
}
.bkash-qr-img { width: 90px; height: 90px; object-fit: contain; border-radius: 8px; border: 1px solid #fca5a5; flex-shrink: 0; }
.bkash-qr-info { flex: 1; }
.bkash-qr-info .bkash-label { margin-bottom: 4px; }
@media (max-width: 400px) { .bkash-qr-wrap { flex-direction: column; align-items: flex-start; } }

/* ─── CARD AUTHOR / FOOTER ─── */
.card-author { font-size: .68rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; display: flex; align-items: center; gap: 4px; }
.card-author i { font-size: .58rem; color: var(--accent); opacity: .7; }

.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.pdf-btns { display: flex; gap: 4px; align-items: center; }
.sample-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff5f5; border: 1.5px solid #fecaca;
  color: #dc2626; border-radius: 20px;
  padding: 4px 10px; font-size: .66rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all .2s; white-space: nowrap; text-decoration: none;
}
.sample-btn:hover { background: #fee2e2; border-color: #f87171; transform: scale(1.05); }
.sample-btn i { font-size: .7rem; }
.dl-btn { padding: 4px 8px; }
.dl-btn i { margin: 0; }

/* ─── PDF VIEWER MODAL ─── */
.pdf-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.pdf-overlay.show { opacity: 1; pointer-events: all; }
.pdf-topbar {
  background: #1a1a2e; color: #fff;
  padding: 12px 16px; display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.pdf-topbar-title { flex: 1; font-size: .9rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-topbar-sub { font-size: .72rem; opacity: .6; margin-top: 1px; }
.pdf-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; border: none;
  font-size: .8rem; font-weight: 700; cursor: pointer;
  font-family: inherit; text-decoration: none;
  transition: transform .15s, opacity .15s; white-space: nowrap;
}
.pdf-action-btn:hover { transform: scale(1.04); }
.pdf-dl-btn { background: var(--accent); color: #fff; }
.pdf-close-btn { background: rgba(255,255,255,.12); color: #fff; font-size: 1rem; padding: 8px 12px; }
.pdf-close-btn:hover { background: rgba(255,255,255,.22); }
.pdf-iframe-wrap {
  flex: 1; overflow: hidden;
  transform: translateY(20px); transition: transform .35s cubic-bezier(.34,1.2,.64,1);
}
.pdf-overlay.show .pdf-iframe-wrap { transform: translateY(0); }
.pdf-iframe-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.pdf-mobile-card { display: none; flex: 1; align-items: center; justify-content: center; padding: 32px 20px; }
.pdf-mobile-inner {
  background: #fff; border-radius: 20px; padding: 32px 24px;
  max-width: 380px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  transform: translateY(20px); transition: transform .35s cubic-bezier(.34,1.2,.64,1);
}
.pdf-overlay.show .pdf-mobile-inner { transform: translateY(0); }
.pdf-mobile-icon { font-size: 3.5rem; margin-bottom: 16px; }
.pdf-mobile-title { font-size: 1.1rem; font-weight: 800; color: var(--text); margin-bottom: 6px; }
.pdf-mobile-sub { font-size: .85rem; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
.pdf-mobile-dl {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent-grad) 0%, var(--accent) 100%);
  color: #fff; border-radius: 50px; padding: 14px 28px;
  font-size: 1rem; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 16px rgba(181,24,61,.35);
  transition: transform .2s, box-shadow .2s;
}
.pdf-mobile-dl:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(181,24,61,.45); }
@media (max-width: 767px) { .pdf-iframe-wrap { display: none; } .pdf-mobile-card { display: flex; } }

/* ─── TOAST ─── */
.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e1b4b; color: #fff;
  padding: 10px 20px; border-radius: 30px;
  font-size: .85rem; font-weight: 600;
  z-index: 400; opacity: 0; transition: all .3s ease;
  white-space: nowrap; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── LOADING ─── */
.loading-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(255,255,255,.8); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.loading-overlay.show { opacity: 1; pointer-events: all; }
.spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--accent-light);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ─── SAKURA PETALS ─── */
.sakura-container { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.petal {
  position: absolute; top: -24px;
  border-radius: 80% 0 80% 0; opacity: 0;
  animation: sakuraFall linear infinite;
  background: linear-gradient(135deg, var(--sakura), var(--border)) !important;
}
@keyframes sakuraFall {
  0%   { transform: translateY(0) rotate(0deg) translateX(0); opacity: 0; }
  8%   { opacity: .75; }
  88%  { opacity: .45; }
  100% { transform: translateY(110vh) rotate(600deg) translateX(60px); opacity: 0; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── MOBILE RESPONSIVE ─── */

/* Order bar: anchored to sides on narrow screens */
@media (max-width: 460px) {
  .order-bar {
    left: 12px; right: 12px; min-width: unset; max-width: unset;
    transform: translateY(100px); padding: 12px 16px;
  }
  .order-bar.visible { transform: translateY(0); }
  .order-bar-total { font-size: 1rem; }
  .order-bar-btn { padding: 9px 16px; font-size: .84rem; }
}

/* Order form spacing on mobile */
@media (max-width: 500px) {
  .order-header { padding: 15px 16px; }
  .order-header h2 { font-size: 1rem; }
  .order-summary { padding: 12px 14px; }
  .form-body { padding: 14px; }
  .order-back-btn { padding: 5px 11px; font-size: .76rem; }
}

/* Payment buttons: keep readable on very small screens */
@media (max-width: 380px) {
  .pay-btn { font-size: .78rem; padding: 10px 6px; gap: 5px; }
  .pay-btn i { font-size: .85rem; }
}

/* Card name slightly smaller on very small phones */
@media (max-width: 360px) {
  .card-name { font-size: .76rem; }
  .card-price { font-size: .86rem; }
  .products-grid { gap: 8px; }
  .card-body { padding: 8px 8px 0; }
}

/* Ensure page wrapper never creates horizontal scroll */
.page { max-width: 100%; }
@media (max-width: 767px) {
  .page { padding: 20px 12px 12px; }
}

/* Toast: never overflow on small screens */
.toast { max-width: calc(100vw - 32px); white-space: normal; text-align: center; }

