/* ============================================================
   Crystal Kingdom · Main Stylesheet
   Design matched to reference layout
   ============================================================ */

/* ---------- 1. CSS Reset & Variables ---------- */
:root {
  --primary: #6c5ce7;
  --primary-hover: #5a4bcf;
  --primary-light: rgba(108, 92, 231, 0.08);
  --dark: #111111;
  --text: #222222;
  --text-muted: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border: #e2e8f0;
  --transition: all 0.3s ease;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', 'Noto Sans SC', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 2. HEADER (1:1 还原参考图白色弧形顶栏) ---------- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
}

.header.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  position: relative;
}

/* Logo: 自然平滑圆弧白色背景块 */
.logo {
  text-decoration: none;
  display: inline-block;
  margin-top: -5px; /* 紧贴顶部 */
}

.logo-shape {
  background: var(--white);
  padding: 14px 60px 18px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  clip-path: none !important;
  /* 左上0, 右上0, 右下大圆弧, 左下小圆弧 */
  border-radius: 0 0 100px 25px / 0 0 80px 25px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.logo-text-en {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  white-space: nowrap;
}

.logo-text-cn {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

/* Navigation 居中 5 项 */
.nav {
  display: flex;
  align-items: center;
  margin-left: -40px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 18px;
  border-radius: 20px;
  transition: var(--transition);
}

.nav-link.active,
.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
  z-index: 1001;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--dark);
  transition: var(--transition);
}

/* Header Icons & Lang Toggle */
.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--dark);
  position: relative;
  transition: var(--transition);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-toggle {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: var(--transition);
}

.lang-toggle:hover {
  border-color: var(--primary);
}

.lang-divider {
  color: #ccc;
}

/* ---------- 3. HERO SECTION ---------- */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #fef3ef 0%, #e8e3ff 50%, #f0f3ff 100%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 50px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.btn-dark {
  background-color: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.hero-review {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 20px;
}

.review-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.review-avatars {
  display: flex;
  margin-bottom: 10px;
}

.review-avatars img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  margin-left: -8px;
}

.review-avatars img:first-child {
  margin-left: 0;
}

.review-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero Right Feature */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-featured {
  position: relative;
  width: 380px;
  height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
}

.hero-featured::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  z-index: 1;
}

.featured-image {
  position: relative;
  z-index: 2;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-image img {
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.12));
}

.featured-title {
  position: relative;
  z-index: 2;
  font-size: 20px;
  font-weight: 700;
  margin-top: 10px;
}

/* Product Slider Track */
.product-slider {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  max-width: 480px;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 12px;
}

.slider-item {
  width: 58px;
  height: 58px;
  background: var(--white);
  border-radius: 12px;
  padding: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  flex-shrink: 0;
}

.slider-item.active,
.slider-item:hover {
  border-color: var(--primary);
}

.slider-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.slider-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.slider-arrow:hover {
  background: var(--primary);
}

.slider-arrow svg {
  width: 16px;
  height: 16px;
}

/* ---------- 4. COMMON SECTION STYLES ---------- */
section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 45px;
}

.section-header.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
}

/* ---------- 5. PRODUCTS SECTION ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.product-img-wrap {
  background: #fdf6ec;
  padding: 30px 20px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-img-wrap.alt {
  background: #f3f0ff;
}

.product-img-wrap img {
  max-height: 100%;
  object-fit: contain;
}

.product-icons {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-icons {
  opacity: 1;
}

.product-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.product-icon-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.product-icon-btn svg {
  width: 16px;
  height: 16px;
}

.product-info {
  padding: 16px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

/* ---------- 6. ABOUT US ---------- */
.about-section {
  background-color: var(--bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image-box {
  background: #f5eeeb;
  border-radius: 20px;
  padding: 40px;
  display: flex;
  justify-content: center;
}

.about-stats {
  display: flex;
  gap: 30px;
  margin-top: 25px;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

.about-desc {
  color: var(--text-muted);
  margin-top: 15px;
  margin-bottom: 25px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 14px;
  height: 14px;
}

.feature-text {
  font-size: 14px;
  font-weight: 500;
}

/* ---------- 7. SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid var(--border);
  padding: 30px 24px;
  border-radius: 16px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(108, 92, 231, 0.08);
}

.service-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-desc {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- 8. PROCESS ---------- */
.process-section {
  background-color: var(--bg-light);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-num {
  font-size: 32px;
  font-weight: 800;
  color: rgba(108, 92, 231, 0.2);
  margin-bottom: 8px;
}

.process-step h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.process-step p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- 9. TESTIMONIALS ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 16px;
}

.testimonial-rating {
  color: #ffb800;
  margin-bottom: 15px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.testimonial-author strong {
  display: block;
  font-size: 15px;
}

.testimonial-author span {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- 10. CONTACT ---------- */
.contact-section {
  background-color: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-desc {
  color: var(--text-muted);
  margin-top: 15px;
  margin-bottom: 30px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  gap: 15px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
}

.contact-form-wrap {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.form-title {
  font-size: 20px;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.btn-block {
  width: 100%;
}

/* ---------- 11. FOOTER ---------- */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding-top: 70px;
  padding-bottom: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo span {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
}

.footer-logo small {
  font-family: var(--font-body);
  font-size: 12px;
  color: #888;
  font-weight: 400;
}

.footer-about {
  color: #a0a0a0;
  font-size: 14px;
  margin-top: 15px;
}

.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #a0a0a0;
  font-size: 14px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.contact-list li {
  color: #a0a0a0;
  font-size: 14px;
}

.footer-bottom {
  border-top: 1px solid #222222;
  padding-top: 25px;
  text-align: center;
  color: #777777;
  font-size: 13px;
}

/* ---------- 12. UTILITIES & OVERLAYS ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-close {
  position: absolute;
  top: 30px;
  right: 40px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 36px;
  cursor: pointer;
}

.search-box {
  display: flex;
  width: 100%;
  max-width: 500px;
  border-bottom: 2px solid var(--white);
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 20px;
  padding: 10px 0;
  outline: none;
}

.search-submit {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
}

.search-submit svg {
  width: 24px;
  height: 24px;
}

/* ---------- 13. RESPONSIVE BREAKPOINTS ---------- */
@media (max-width: 991px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    flex-direction: column;
    padding: 100px 30px 30px;
    transition: right 0.3s ease;
    margin-left: 0;
  }

  .nav.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 15px;
  }

  .nav-link {
    width: 100%;
    display: block;
  }

  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .products-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo-shape {
    padding: 12px 30px 12px 20px;
  }
}

@media (max-width: 576px) {
  .products-grid,
  .services-grid,
  .process-timeline {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-featured {
    width: 280px;
    height: 280px;
  }

  .featured-image {
    width: 180px;
    height: 180px;
  }
}

/* ============================================================
   Cart Modal / Checkout Modal / Toast
   ============================================================ */

/* -- Overlay -- */
.cart-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* -- Modal Panel -- */
.cart-modal {
  background: var(--white);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.25s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

.cart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--border);
}

.cart-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin: 0;
  color: var(--dark);
}

.cart-modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0;
}

.cart-modal-close:hover {
  color: var(--dark);
}

/* -- Body / Items -- */
.cart-modal-body {
  padding: 16px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 80px;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 32px 0;
  font-size: 0.95rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg-light);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.cart-item-qty button:hover:not(:disabled) {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.cart-item-qty button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cart-item-qty span {
  min-width: 24px;
  text-align: center;
  font-weight: 500;
  font-size: 0.9rem;
}

.cart-item-remove {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #ccc;
  padding: 4px;
  line-height: 1;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: #e74c3c;
}

/* -- Footer -- */
.cart-modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--text);
}

.cart-total strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--dark);
}

/* -- Checkout Form -- */
.checkout-form .form-group {
  margin-bottom: 10px;
}

.checkout-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.checkout-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.checkout-form input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.5;
}

.form-hint.stripe-note {
  color: #635bff; /* Stripe brand color */
}

/* -- Toast -- */
.ck-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--dark);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  z-index: 20000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.ck-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ck-toast-error {
  background: #e74c3c;
}