/* ============================================================
   xTool F2 Store — Light Professional Theme
   Inspired by xtool.com original design
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  /* Colors - xTool inspired */
  --white: #ffffff;
  --bg: #f8f9fa;
  --bg2: #f2f4f6;
  --card: #ffffff;
  --border: #e5e7eb;
  --border2: #d1d5db;
  --text: #111827;
  --text2: #374151;
  --muted: #6b7280;
  --muted2: #9ca3af;
  --accent: #e84010;
  --accent-hover: #c73509;
  --accent-light: rgba(232,64,16,0.08);
  --accent-border: rgba(232,64,16,0.2);
  --blue: #2563eb;
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  --gold: #d97706;
  --gold-bg: #fffbeb;
  --navy: #1e293b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1), 0 4px 16px rgba(0,0,0,0.06);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: all 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--white);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ============ TYPOGRAPHY ============ */
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 0.9375rem; font-weight: 600; }
p { color: var(--muted); line-height: 1.7; }

.label-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-light); color: var(--accent);
  border: 1px solid var(--accent-border); border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; padding: 4px 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.section-title { color: var(--text); margin-bottom: 8px; }
.section-sub { font-size: 1rem; color: var(--muted); max-width: 560px; }

/* ============ LAYOUT ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ============ NAVBAR ============ */
#navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.1rem; font-weight: 800; color: var(--text);
  white-space: nowrap; flex-shrink: 0;
}
.nav-logo .logo-badge {
  background: var(--accent); color: #fff;
  font-size: 0.65rem; font-weight: 700; padding: 2px 7px;
  border-radius: 4px; letter-spacing: 0.05em;
}
.nav-links {
  display: flex; gap: 4px; list-style: none; flex: 1;
}
.nav-links a {
  display: block; padding: 6px 12px; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500; color: var(--text2);
  transition: var(--transition); white-space: nowrap;
}
.nav-links a:hover { background: var(--bg); color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

/* Language Switcher */
.lang-switcher {
  display: flex; border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
}
.lang-btn {
  padding: 6px 11px; border: none; background: transparent;
  font-size: 0.75rem; font-weight: 600; color: var(--muted);
  transition: var(--transition); letter-spacing: 0.04em;
}
.lang-btn:not(:last-child) { border-right: 1px solid var(--border); }
.lang-btn.active { background: var(--accent); color: #fff; }
.lang-btn:not(.active):hover { background: var(--bg); color: var(--text); }

.btn-nav-order {
  background: var(--accent); color: #fff; border: none;
  padding: 8px 20px; border-radius: 8px; font-size: 0.875rem;
  font-weight: 600; transition: var(--transition); white-space: nowrap;
}
.btn-nav-order:hover { background: var(--accent-hover); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: var(--transition);
}

/* ============ HERO ============ */
#hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 580px; align-items: stretch;
}
.hero-left {
  padding: 60px 48px 60px 0;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8rem; color: var(--muted); margin-bottom: 20px;
}
.hero-breadcrumb span { color: var(--muted2); }
.hero-eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.badge-new {
  background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 3px 9px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-deal {
  background: var(--green-bg); color: var(--green);
  border: 1px solid var(--green-border);
  font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 100px;
}
.hero-h1 { color: var(--text); margin-bottom: 6px; }
.hero-tagline {
  font-size: 1rem; font-weight: 600; color: var(--accent);
  margin-bottom: 16px; letter-spacing: 0.02em;
}
.hero-desc { font-size: 0.9375rem; color: var(--muted); margin-bottom: 28px; max-width: 440px; }

/* Key specs badges */
.hero-specs {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px;
}
.spec-pill {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 100px; padding: 5px 12px; font-size: 0.8rem; font-weight: 500;
}
.spec-pill strong { color: var(--text); }
.spec-pill span { color: var(--muted); }

.hero-price-block { margin-bottom: 24px; }
.hero-orig-price {
  font-size: 0.9rem; text-decoration: line-through; color: var(--muted2);
}
.hero-price-row { display: flex; align-items: baseline; gap: 12px; margin: 4px 0; }
.hero-price {
  font-size: 2.25rem; font-weight: 800; color: var(--text);
  letter-spacing: -0.02em; line-height: 1;
}
.hero-price sup { font-size: 1.1rem; vertical-align: super; font-weight: 700; }
.save-badge {
  background: #fef3c7; color: #92400e;
  border: 1px solid #fde68a; border-radius: 6px;
  font-size: 0.8rem; font-weight: 700; padding: 3px 10px;
}
.hero-tax { font-size: 0.8rem; color: var(--muted2); }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: none;
  padding: 13px 28px; border-radius: 8px; font-size: 0.9375rem;
  font-weight: 600; transition: var(--transition);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,64,16,0.3); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); color: var(--text2); border: 1.5px solid var(--border2);
  padding: 12px 24px; border-radius: 8px; font-size: 0.9375rem;
  font-weight: 600; transition: var(--transition);
}
.btn-secondary:hover { border-color: var(--text); color: var(--text); }

/* Hero image gallery */
.hero-right { position: relative; background: var(--bg); overflow: hidden; }
.hero-gallery { height: 100%; }
.gallery-main {
  width: 100%; height: calc(100% - 20%); position: relative;
  overflow: hidden; background: var(--bg2);
}
.gallery-main img {
  position: absolute; inset: 0; transition: opacity 0.4s ease;
  padding: 24px; opacity: 0;
}
.gallery-main img.active { opacity: 1; }
.gallery-thumbs {
  display: flex; gap: 8px; padding: 12px 16px;
  background: var(--white); border-top: 1px solid var(--border);
  overflow-x: auto; height: 88px; align-items: center;
}
.gallery-thumbs::-webkit-scrollbar { height: 4px; }
.gallery-thumbs::-webkit-scrollbar-track { background: var(--bg); }
.gallery-thumbs::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.thumb-btn {
  flex-shrink: 0; width: 64px; height: 64px;
  border: 2px solid var(--border); border-radius: 6px;
  overflow: hidden; background: var(--bg); cursor: pointer;
  transition: var(--transition); padding: 0;
}
.thumb-btn:hover { border-color: var(--accent); }
.thumb-btn.active { border-color: var(--accent); }
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }

/* ============ TRUST BAR ============ */
#trust-bar {
  background: var(--navy); padding: 16px 0;
}
.trust-grid {
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500; color: rgba(255,255,255,0.85);
}
.trust-item .ti { font-size: 1.1rem; }

/* ============ PACKS ============ */
#packs { background: var(--bg); }
.section-header { margin-bottom: 40px; }
.packs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: start;
}
.pack-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  transition: var(--transition); position: relative;
}
.pack-card:hover { box-shadow: var(--shadow-lg); border-color: var(--border2); }
.pack-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.pack-ribbon {
  position: absolute; top: 0; right: 0;
  background: var(--accent); color: #fff;
  font-size: 0.7rem; font-weight: 700; padding: 4px 14px 4px 20px;
  border-radius: 0 var(--radius-xl) 0 24px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.pack-image {
  background: var(--bg); overflow: hidden;
  position: relative;
}
.pack-image img {
  width: 100%; height: 100%; object-fit: contain; padding: 16px;
  transition: transform 0.3s ease;
}
.pack-card:hover .pack-image img { transform: scale(1.03); }
.pack-body { padding: 20px; }
.pack-name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.pack-desc { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.pack-price-block { margin-bottom: 14px; }
.pack-was { font-size: 0.8rem; color: var(--muted2); text-decoration: line-through; }
.pack-now {
  display: flex; align-items: baseline; gap: 10px;
}
.pack-price {
  font-size: 1.75rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em;
}
.pack-save-pill {
  background: #fef3c7; color: #92400e; border: 1px solid #fde68a;
  border-radius: 100px; font-size: 0.75rem; font-weight: 700; padding: 2px 9px;
}
.pack-items {
  margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px;
}
.pack-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.8375rem; color: var(--text2);
}
.pack-item .pi-check { color: var(--green); font-size: 0.9rem; flex-shrink: 0; margin-top: 1px; }
.btn-pack {
  width: 100%; padding: 11px 20px; border-radius: 8px; border: none;
  font-size: 0.9rem; font-weight: 600; transition: var(--transition);
}
.btn-pack-primary { background: var(--accent); color: #fff; }
.btn-pack-primary:hover { background: var(--accent-hover); }
.btn-pack-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border2); }
.btn-pack-outline:hover { border-color: var(--accent); color: var(--accent); }

/* ============ FREQUENTLY BOUGHT TOGETHER ============ */
#fbt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fbt-layout { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto; align-items: center; gap: 16px; margin: 40px 0 28px; }
.fbt-item {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; text-align: center;
  transition: var(--transition); cursor: pointer; position: relative;
}
.fbt-item:hover { border-color: var(--accent); }
.fbt-item.selected { border-color: var(--accent); background: var(--accent-light); }
.fbt-item .fbt-check {
  position: absolute; top: 10px; right: 10px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--border2); display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; transition: var(--transition);
}
.fbt-item.selected .fbt-check { background: var(--accent); color: #fff; }
.fbt-item .fbt-img { object-fit: contain; margin: 0 auto 10px; }
.fbt-item .fbt-name { font-size: 0.8rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.fbt-item .fbt-price { font-size: 0.85rem; font-weight: 700; color: var(--accent); }
.fbt-item .fbt-orig { font-size: 0.75rem; color: var(--muted2); text-decoration: line-through; }
.fbt-plus { font-size: 1.5rem; color: var(--border2); font-weight: 300; text-align: center; }
.fbt-summary {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; max-width: 380px;
  margin: 0 auto;
}
.fbt-summary h4 { margin-bottom: 12px; }
.fbt-total-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.875rem;
}
.fbt-total-line:last-of-type { border-bottom: none; }
.fbt-total-label { color: var(--muted); }
.fbt-total-val { font-weight: 600; color: var(--text); }
.fbt-grand { font-size: 1rem; font-weight: 800; color: var(--accent); }
.btn-fbt {
  width: 100%; margin-top: 16px; padding: 12px; border: none; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 0.9375rem;
  font-weight: 600; transition: var(--transition);
}
.btn-fbt:hover { background: var(--accent-hover); }

/* ============ FEATURES / CONTENT SECTIONS ============ */
#features { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  transition: var(--transition);
}
.feat-card:hover { box-shadow: var(--shadow); border-color: var(--border2); }
.feat-icon-wrap {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--accent-light); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.feat-card h3 { font-size: 1rem; margin-bottom: 8px; }

/* Content blocks with image */
.content-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  padding: 60px 0; border-bottom: 1px solid var(--border);
}
.content-block:last-child { border-bottom: none; }
.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }
.content-img {
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--bg); border: 1px solid var(--border);
}
.content-img img { width: 100%; height: 100%; object-fit: cover; }
.content-text .label-tag { margin-bottom: 16px; }
.content-text h2 { margin-bottom: 12px; }
.content-text p { margin-bottom: 20px; }
.content-text ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.content-text li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--text2);
}
.content-text li::before {
  content: '✓'; color: var(--green); font-weight: 700;
  font-size: 0.9rem; flex-shrink: 0; margin-top: 1px;
}

/* ============ SPECS ============ */
#specs { background: var(--bg); }
.specs-wrapper {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden; margin-top: 32px;
}
table.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table tr:hover { background: var(--bg); }
.specs-table td { padding: 13px 20px; font-size: 0.875rem; }
.specs-table td:first-child { color: var(--muted); width: 42%; font-weight: 500; }
.specs-table td:last-child { color: var(--text); font-weight: 600; }
.specs-table tr.group-header td {
  background: var(--bg2); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text2);
  padding: 10px 20px;
}

/* ============ MATERIALS ============ */
#materials { background: var(--white); }
.mat-tabs {
  display: flex; gap: 8px; margin-bottom: 32px;
  border-bottom: 2px solid var(--border); padding-bottom: 0;
}
.mat-tab {
  padding: 10px 20px; border: none; background: none;
  font-size: 0.875rem; font-weight: 600; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: var(--transition);
}
.mat-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.mat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mat-tag {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 12px; text-align: center;
  transition: var(--transition); display: none; flex-direction: column;
  align-items: center; gap: 6px;
}
.mat-tag.show { display: flex; }
.mat-tag:hover { border-color: var(--accent); background: var(--accent-light); }
.mat-tag .mi { font-size: 1.6rem; }
.mat-tag .mn { font-size: 0.8rem; font-weight: 600; color: var(--text2); }
.laser-badge {
  font-size: 0.65rem; font-weight: 600; padding: 1px 7px;
  border-radius: 100px; letter-spacing: 0.04em;
}
.lb-ir { background: #fef9c3; color: #854d0e; }
.lb-diode { background: #dbeafe; color: #1d4ed8; }
.lb-both { background: #f3e8ff; color: #7c3aed; }

/* ============ REVIEWS ============ */
#reviews { background: var(--bg); }
.review-summary {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 40px; padding: 28px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
}
.review-score { text-align: center; }
.score-big { font-size: 3.5rem; font-weight: 800; color: var(--text); line-height: 1; }
.score-stars { color: #f59e0b; font-size: 1.2rem; letter-spacing: 2px; margin: 4px 0; }
.score-count { font-size: 0.8rem; color: var(--muted); }
.score-bars { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: 0.8rem; }
.bar-label { color: var(--muted); width: 36px; }
.bar-track { flex: 1; height: 6px; background: var(--border); border-radius: 3px; }
.bar-fill { height: 100%; background: #f59e0b; border-radius: 3px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow); }
.rev-stars { color: #f59e0b; font-size: 0.875rem; margin-bottom: 8px; }
.rev-text { font-size: 0.875rem; color: var(--text2); margin-bottom: 16px; font-style: italic; line-height: 1.65; }
.rev-author { display: flex; align-items: center; gap: 10px; }
.rev-av {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), #ff7043);
}
.rev-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.rev-meta { font-size: 0.75rem; color: var(--muted); }

/* ============ FAQ ============ */
#faq { background: var(--white); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.faq-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.faq-item.open { border-color: var(--accent); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between;
  align-items: flex-start; gap: 12px; padding: 18px 20px;
  background: none; border: none; text-align: left;
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  cursor: pointer; line-height: 1.4;
}
.faq-arrow { color: var(--muted); font-size: 1.1rem; transition: var(--transition); flex-shrink: 0; margin-top: 1px; }
.faq-item.open .faq-arrow { transform: rotate(45deg); color: var(--accent); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: all 0.3s ease; }
.faq-item.open .faq-a { padding: 0 20px 18px; max-height: 300px; }
.faq-a p { font-size: 0.875rem; }

/* ============ CHECKOUT ============ */
#checkout { background: var(--bg); display: none; }
#checkout.active { display: block; }
.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: 40px; margin-top: 40px; }
.form-section-title {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.form-input, .form-select {
  width: 100%; background: var(--white); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 11px 14px; color: var(--text);
  font-size: 0.9rem; font-family: inherit; transition: var(--transition); outline: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,64,16,0.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px;
}
#stripe-element {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 13px 14px; transition: var(--transition);
}
.order-sidebar {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px; position: sticky; top: 80px;
  height: fit-content;
}
.order-sidebar h3 { font-size: 1rem; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.order-item {
  display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border);
}
.order-item-img {
  width: 60px; height: 60px; border-radius: 8px; background: var(--bg);
  border: 1px solid var(--border); overflow: hidden; flex-shrink: 0;
}
.order-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.order-item-name { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.order-item-meta { font-size: 0.75rem; color: var(--muted); }
.order-item-price { font-size: 0.9rem; font-weight: 700; color: var(--text); margin-left: auto; }
.order-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 0.875rem;
}
.order-line .ol-label { color: var(--muted); }
.order-line .ol-val { font-weight: 600; color: var(--text); }
.order-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 0; border-top: 2px solid var(--border); font-weight: 800;
  font-size: 1.05rem;
}
.order-total .ot-val { color: var(--accent); }
.btn-pay {
  width: 100%; padding: 14px; border: none; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 1rem;
  font-weight: 700; transition: var(--transition); margin-top: 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-pay:hover { background: var(--accent-hover); }
.secure-note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.78rem; color: var(--muted); margin-top: 10px;
}

/* ============ SUCCESS PAGE ============ */
#success { background: var(--bg); display: none; text-align: center; padding: 100px 0; }
#success.active { display: block; }
.success-box {
  background: var(--white); border: 1px solid var(--green-border);
  border-radius: var(--radius-xl); padding: 56px 48px; max-width: 520px; margin: 0 auto;
}
.success-icon { font-size: 3rem; margin-bottom: 20px; }
.success-box h2 { color: var(--green); margin-bottom: 12px; }

/* ============ FOOTER ============ */
footer { background: var(--navy); color: rgba(255,255,255,0.75); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { }
.footer-logo { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.footer-logo .logo-badge { background: var(--accent); font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
footer p { font-size: 0.875rem; color: rgba(255,255,255,0.55); }
.footer-col h5 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.65); transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 10px;
}

/* ============ ANIMATIONS ============ */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============ LOADING ============ */
.btn-loading { position: relative; pointer-events: none; opacity: 0.75; }
.btn-loading::after {
  content: ''; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ PAYMENT ERROR ============ */
.pay-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  border-radius: 8px; padding: 10px 14px; font-size: 0.85rem; margin-top: 10px;
  display: none;
}
.pay-error.show { display: block; }

/* ============ MOBILE NAV ============ */
.mobile-nav {
  position: fixed; inset: 0; z-index: 200; background: var(--white);
  display: flex; flex-direction: column; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px;
}
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
  display: block; padding: 12px 16px; border-radius: 8px;
  font-size: 1rem; font-weight: 600; color: var(--text); transition: var(--transition);
}
.mobile-nav-links a:hover { background: var(--bg); color: var(--accent); }
.btn-close-nav {
  background: none; border: none; font-size: 1.5rem; color: var(--text); padding: 4px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-left { padding: 40px 0; order: 2; }
  .hero-right { min-height: 380px; order: 1; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .packs-grid { grid-template-columns: 1fr 1fr; }
  .packs-grid .pack-card:last-child { grid-column: 1 / -1; max-width: 480px; margin: 0 auto; width: 100%; }
  .fbt-layout { grid-template-columns: 1fr; gap: 8px; }
  .fbt-plus { display: none; }
  .content-block { grid-template-columns: 1fr; gap: 32px; }
  .content-block.reverse { direction: ltr; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .review-summary { flex-wrap: wrap; }
}
@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-links, .btn-nav-order { display: none; }
  .hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .packs-grid { grid-template-columns: 1fr; }
  .packs-grid .pack-card:last-child { grid-column: auto; max-width: 100%; }
  .mat-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .trust-grid { gap: 20px; justify-content: flex-start; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .trust-grid { flex-direction: row; gap: 12px; }
  .lang-switcher { display: none; }
}

/* ============================================================
   CART SYSTEM — v3 additions
   ============================================================ */

/* ── Cart Button in Nav ── */
.btn-cart {
  position: relative;
  display: flex; align-items: center; gap: 7px;
  background: var(--navy); color: #fff;
  border: none; border-radius: 8px;
  padding: 8px 16px; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-cart:hover { background: #0f172a; }
.cart-count {
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.cart-count.bump { animation: cartBump 0.4s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes cartBump {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.7); background: #22c55e; }
  100% { transform: scale(1); }
}

/* ── Flying item animation ── */
.fly-item {
  position: fixed;
  width: 40px; height: 40px;
  border-radius: 8px; overflow: hidden;
  border: 2px solid var(--accent);
  background: #fff;
  pointer-events: none; z-index: 9999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: none;
}
.fly-item img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.fly-item.flying {
  transition: all 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Add to cart toast ── */
.cart-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff;
  padding: 12px 24px; border-radius: 100px;
  font-size: 0.875rem; font-weight: 600;
  z-index: 9000; opacity: 0; pointer-events: none;
  transition: all 0.3s ease; white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.cart-toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.toast-check { color: #22c55e; font-size: 1.1rem; }
.toast-link {
  color: #93c5fd; text-decoration: underline; cursor: pointer;
  font-size: 0.8rem;
}

/* ── Pack add to cart button ── */
.btn-add-cart {
  width: 100%; padding: 11px 20px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer;
}
.btn-add-cart-primary { background: var(--accent); color: #fff; }
.btn-add-cart-primary:hover { background: var(--accent-hover); }
.btn-add-cart-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border2); }
.btn-add-cart-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-add-cart.added { background: var(--green) !important; color: #fff !important; }

/* ── FBT add-to-cart button ── */
.btn-fbt-cart {
  width: 100%; margin-top: 16px; padding: 12px; border: none; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 0.9375rem;
  font-weight: 600; transition: var(--transition); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-fbt-cart:hover { background: var(--accent-hover); }

/* ── Hero CTA cart button ── */
.btn-primary-cart {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: none;
  padding: 13px 28px; border-radius: 8px; font-size: 0.9375rem;
  font-weight: 600; transition: var(--transition); cursor: pointer;
}
.btn-primary-cart:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,64,16,0.3); }

/* ============================================================
   IN THE BOX SECTION
   ============================================================ */
#in-the-box { background: var(--bg); }
.itb-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-top: 40px;
}
.itb-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 16px;
  text-align: center; transition: var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.itb-item:hover { box-shadow: var(--shadow); border-color: var(--border2); }
.itb-img-wrap {
  width: 100%;
  display: flex; align-items: center; justify-content: center; border-radius: 10px; flex-shrink: 0;
}
.itb-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.itb-emoji { font-size: 2rem; }
.itb-name {
  font-size: 0.8rem; font-weight: 600; color: var(--text2);
  line-height: 1.4; text-align: center;
}
.itb-qty {
  font-size: 0.7rem; color: var(--muted); font-weight: 500;
}

/* ============================================================
   CART PAGE (cart.php)
   ============================================================ */
.cart-page { min-height: calc(100vh - 64px); background: var(--bg); padding: 40px 0; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; }
.cart-main { }
.cart-title { font-size: 1.5rem; font-weight: 800; color: var(--text); margin-bottom: 24px; }
.cart-empty {
  text-align: center; padding: 80px 20px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}
.cart-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.cart-empty h3 { font-size: 1.25rem; margin-bottom: 8px; }
.cart-empty p { margin-bottom: 24px; }
.cart-items-list { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
}
.cart-item:hover { border-color: var(--border2); }
.cart-item-img {
  width: 80px; height: 80px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  overflow: hidden; flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 700; color: var(--text); font-size: 0.9375rem; margin-bottom: 4px; }
.cart-item-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }
.cart-item-orig { font-size: 0.78rem; text-decoration: line-through; color: var(--muted2); }
.cart-item-price { font-size: 1rem; font-weight: 700; color: var(--text); }
.cart-item-save { font-size: 0.75rem; color: var(--green); font-weight: 600; }
.qty-control {
  display: flex; align-items: center; gap: 4px; margin-top: 8px;
}
.qty-btn {
  width: 28px; height: 28px; border: 1.5px solid var(--border2);
  border-radius: 6px; background: var(--white); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); color: var(--text); line-height: 1;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-val {
  min-width: 32px; text-align: center; font-weight: 600;
  font-size: 0.875rem; color: var(--text);
}
.cart-item-remove {
  background: none; border: none; color: var(--muted2);
  cursor: pointer; font-size: 1.2rem; padding: 4px;
  transition: var(--transition); flex-shrink: 0;
  display: flex; align-items: center;
}
.cart-item-remove:hover { color: var(--accent); }
.cart-item-subtotal {
  font-size: 1rem; font-weight: 800; color: var(--text);
  flex-shrink: 0; min-width: 80px; text-align: right;
}

/* Cart sidebar */
.cart-sidebar {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); padding: 28px;
  position: sticky; top: 80px; height: fit-content;
}
.cart-sidebar h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.cart-sum-line {
  display: flex; justify-content: space-between;
  align-items: center; padding: 8px 0;
  font-size: 0.875rem;
}
.cart-sum-line .csl-label { color: var(--muted); }
.cart-sum-line .csl-val { font-weight: 600; color: var(--text); }
.cart-sum-line.green .csl-val { color: var(--green); }
.cart-sum-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 0; border-top: 2px solid var(--border);
  margin-top: 6px; font-weight: 800; font-size: 1.1rem;
}
.cart-sum-total .cst-val { color: var(--accent); }
.btn-checkout {
  width: 100%; padding: 14px; border: none; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: var(--transition); margin-top: 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-checkout:hover { background: var(--accent-hover); }
.btn-continue {
  width: 100%; padding: 11px; border: 1.5px solid var(--border2);
  border-radius: 8px; background: transparent; color: var(--text2);
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition);
  margin-top: 10px; text-align: center; display: block;
}
.btn-continue:hover { border-color: var(--text); color: var(--text); }
.cart-secure {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 0.75rem; color: var(--muted); margin-top: 12px;
}
.cart-promo { margin: 16px 0; }
.promo-row { display: flex; gap: 8px; }
.promo-input {
  flex: 1; padding: 9px 12px; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 0.875rem; outline: none; transition: var(--transition);
}
.promo-input:focus { border-color: var(--accent); }
.btn-promo {
  padding: 9px 16px; background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); color: var(--text2);
}
.btn-promo:hover { border-color: var(--text); }
.promo-msg { font-size: 0.78rem; margin-top: 6px; }
.promo-ok { color: var(--green); }
.promo-err { color: #dc2626; }

/* Cart checkout form */
.cart-checkout-section { margin-top: 32px; }
.cart-checkout-section.hidden { display: none; }

/* ── Suggested products ── */
.suggested-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 40px;
}
.sug-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition);
}
.sug-card:hover { box-shadow: var(--shadow); border-color: var(--border2); }
.sug-img { background: var(--bg); aspect-ratio: 1; overflow: hidden; }
.sug-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.sug-body { padding: 14px; }
.sug-name { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.sug-prices { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.sug-price { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.sug-orig { font-size: 0.75rem; text-decoration: line-through; color: var(--muted2); }
.btn-sug {
  width: 100%; padding: 8px; border: 1.5px solid var(--border2);
  border-radius: 6px; background: transparent; font-size: 0.8rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-sug:hover { border-color: var(--accent); color: var(--accent); }

/* ── responsive additions ── */
@media (max-width: 1024px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-sidebar { position: static; }
  .itb-grid { grid-template-columns: repeat(3, 1fr); }
  .suggested-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .itb-grid { grid-template-columns: repeat(2, 1fr); }
  .cart-item { flex-wrap: wrap; }
  .cart-item-subtotal { width: 100%; text-align: left; }
}
@media (max-width: 480px) {
  .itb-grid { grid-template-columns: repeat(2, 1fr); }
  .suggested-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Style the tab */
.tab {
  overflow: hidden;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  border-radius: 20px 20px 0 0;
}

/* Style the buttons that are used to open the tab content */
.tab button {
  background-color: inherit;
  float: left;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px 16px;
  transition: 0.3s;
}

/* Change background color of buttons on hover */
.tab button:hover {
  background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
  background-color: #e6420c;
    color: #fff;
}

/* Style the tab content */
.tabcontent {
  display: none;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-top: none;
  margin-bottom: 30px;
}
