@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&family=Frank+Ruhl+Libre:wght@400;700;900&display=swap');

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

:root {
  --yellow: #e8d84a;
  --yellow-light: #faf6d0;
  --yellow-pale: #fffef0;
  --green: #5a9e3a;
  --green-dark: #3d7a24;
  --green-light: #e8f5e2;
  --brown: #7a5c2e;
  --brown-light: #c8a96e;
  --cream: #fffdf3;
  --text: #2d2d2d;
  --text-light: #666;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', sans-serif;
  direction: rtl;
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

/* ── Nav ── */
nav {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 28px;
  min-height: 64px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 28px;
  justify-content: flex-end;
}
.nav-logo {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--green-dark);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-promo-wrap { text-align: center; padding: 0 24px; }
.nav-promo {
  color: #c04040;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  font-style: italic;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: flex-start;
}
.nav-social {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-social a img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  transition: transform 0.2s;
}
.nav-social a:hover img { transform: scale(1.15); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Hero ── */
.hero {
  position: relative;
  height: 88vh;
  background-color: #f4f3d9;
  overflow: hidden;
  --parallax-offset: 0px;
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; left: 0; right: 0; bottom: -60px;
  background-image: url('../images/header.png');
  background-size: cover;
  background-position: center center;
  opacity: 0.55;
  z-index: 0;
  transform: translateY(var(--parallax-offset));
  will-change: transform;
}
@keyframes bookFloat {
  0%, 100% { transform: translate(-50%, calc(-50% + 0px)); }
  50%       { transform: translate(-50%, calc(-50% - 26px)); }
}
.hero-book {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  animation: bookFloat 3.6s ease-in-out infinite;
  will-change: transform;
}
.hero-book img {
  display: block;
  width: 560px;
  max-width: min(560px, 80vw);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 28px 70px rgba(0,0,0,0.28), 0 8px 20px rgba(0,0,0,0.12);
  transition: box-shadow 0.4s ease;
}
.hero-book img:hover { box-shadow: 0 40px 90px rgba(0,0,0,0.32), 0 12px 28px rgba(0,0,0,0.15); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: 'Heebo', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.btn-primary {
  background: var(--green);
  color: white;
}
.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(90,158,58,0.35);
}
.btn-secondary {
  background: var(--yellow);
  color: var(--text);
}
.btn-secondary:hover {
  background: #d4c835;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: white;
}

/* ── Section commons ── */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--brown);
  text-align: center;
  margin-bottom: 16px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 17px;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.divider {
  width: 60px;
  height: 4px;
  background: var(--yellow);
  border-radius: 2px;
  margin: 14px auto 50px;
}

/* ── About the book ── */
.about-book {
  position: relative;
  overflow: hidden;
  padding: 60px 24px;
  background-color: #c8b89a;
}
.about-book::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/page-sample.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.about-book .section-inner { position: relative; z-index: 1; }
.about-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  direction: ltr;
}
.about-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  padding: 24px;
}
.about-card-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.about-card-text {
  padding: 44px 40px;
  direction: rtl;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.about-card-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
  border: 3px solid white;
}
.about-card-text p {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.75;
}
.about-card-text .btn { align-self: center; }

/* ── Gallery ── */
.gallery-section {
  background: var(--yellow-pale);
  padding-bottom: 0;
}
.gallery-bento {
  display: grid;
  grid-template-areas:
    "tl center tr"
    "bl center br";
  grid-template-columns: 1fr 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
  height: 88vh;
  direction: ltr;
  margin-top: 40px;
}
.gb-item {
  overflow: hidden;
  cursor: pointer;
}
.gb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.gb-item img:hover { transform: scale(1.05); }
.gb-tl     { grid-area: tl; }
.gb-center { grid-area: center; }
.gb-tr     { grid-area: tr; }
.gb-bl     { grid-area: bl; }
.gb-br     { grid-area: br; }

/* ── People (author / illustrator) ── */
.people-section {
  position: relative;
  background-color: #f4f3d9;
  overflow: hidden;
}
.people-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url('../images/header.png');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 0;
}
.people-section .section-inner { position: relative; z-index: 1; }
.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.person-bio { }
.bio-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 16px;
}
.bio-content {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.bio-photo {
  width: 90px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.person-bio p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.8;
}

/* ── Buy section ── */
.buy-section { background: var(--yellow-light); }
.buy-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
  padding: 48px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.buy-card img {
  width: 200px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  margin-bottom: 24px;
}
.price-tag {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 46px;
  font-weight: 900;
  color: var(--green);
  margin-bottom: 4px;
}
.price-sub {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.coupons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.coupon-chip {
  background: var(--yellow-light);
  border: 2px dashed var(--yellow);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
}
.coupon-chip span { color: var(--green); font-size: 16px; }
.shipping-note {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 16px;
}

/* ── Contact ── */
.contact-section { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 24px;
}
.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
}
.contact-info .info-item .icon {
  width: 40px;
  height: 40px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info a { color: var(--green); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

/* Form */
.contact-form { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s;
  direction: rtl;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  display: none;
  background: var(--green-light);
  border: 2px solid var(--green);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  color: var(--green-dark);
  margin-top: 16px;
}

/* ── Footer ── */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.8);
  padding: 40px 24px;
  text-align: center;
}
footer .footer-inner { max-width: 1100px; margin: 0 auto; }
footer .footer-social { display: flex; gap: 16px; justify-content: center; margin-bottom: 20px; }
footer .footer-social a img { width: 32px; height: 32px; object-fit: contain; filter: brightness(2); opacity: 0.8; transition: opacity 0.2s; }
footer .footer-social a:hover img { opacity: 1; }
footer .footer-links { display: flex; gap: 24px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
footer .footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: color 0.2s; }
footer .footer-links a:hover { color: white; }
footer .copyright { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ── Shop page ── */
.shop-hero { background: var(--yellow-light); padding: 60px 24px; text-align: center; }
.shop-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}
.shop-image img { width: 100%; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,0.13); }
.shop-details h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 38px;
  font-weight: 900;
  color: var(--brown);
  margin-bottom: 12px;
}
.shop-price { font-size: 42px; font-weight: 800; color: var(--green); margin: 16px 0 6px; }
.shop-price-note { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }
.shop-desc { font-size: 16px; color: var(--text-light); line-height: 1.75; margin-bottom: 28px; }
.shop-coupons { margin-bottom: 28px; }
.shop-coupons h4 { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.qty-label { font-size: 15px; font-weight: 600; }
.qty-ctrl { display: flex; align-items: center; gap: 0; border: 2px solid #e5e5e5; border-radius: 10px; overflow: hidden; }
.qty-ctrl button { width: 40px; height: 40px; background: var(--cream); border: none; font-size: 20px; cursor: pointer; transition: background 0.2s; }
.qty-ctrl button:hover { background: var(--green-light); }
.qty-ctrl input { width: 54px; height: 40px; border: none; border-right: 2px solid #e5e5e5; border-left: 2px solid #e5e5e5; text-align: center; font-size: 17px; font-weight: 600; background: white; font-family: 'Heebo', sans-serif; }
.coupon-row { display: flex; gap: 10px; margin-bottom: 28px; }
.coupon-row input { flex: 1; }
.shop-note { font-size: 13px; color: var(--text-light); margin-top: 16px; line-height: 1.6; }
.order-success { display: none; background: var(--green-light); border: 2px solid var(--green); border-radius: 12px; padding: 20px; text-align: center; margin-top: 16px; }
.order-success h3 { color: var(--green-dark); font-size: 20px; }
.order-success p { color: var(--text-light); margin-top: 6px; }

/* ── Page hero (contact/shop pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--yellow-light) 0%, var(--green-light) 100%);
  padding: 60px 24px;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 900;
  color: var(--brown);
  margin-bottom: 12px;
}
.page-hero p { font-size: 18px; color: var(--text-light); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { height: 60vh; }
  .hero-book img { width: 320px; }
  .about-card { grid-template-columns: 1fr; direction: rtl; }
  .about-card-image { max-height: 280px; }
  .people-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-image img { max-width: 320px; margin: 0 auto; display: block; }
  .person-card { flex-direction: column; }
  .nav-promo-wrap { display: none; }
  .nav-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-inner { grid-template-columns: 1fr auto; padding: 10px 16px; }
  .nav-promo-wrap { display: none; }
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 100%; right: 0; left: 0; background: white; box-shadow: 0 8px 20px rgba(0,0,0,0.1); padding: 8px 0; z-index: 99; }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 12px 24px; }
  .nav-toggle { display: flex; }
  nav { position: relative; }
  .hero { height: 55vh; }
  .hero-book img { width: 240px; }
  .gallery-bento {
    grid-template-areas: "tl tr" "center center" "bl br";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
  }
  .gb-center { height: 55vw; }
  .gb-tl, .gb-tr, .gb-bl, .gb-br { height: 45vw; }
  .buy-card { padding: 28px 20px; }
  section { padding: 56px 16px; }
}

/* ── Checkout Page ── */
.checkout-body { background: white; }

.ch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  border-bottom: 1.5px solid #e8e8e8;
  direction: rtl;
}
.ch-brand {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.ch-brand-step {
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-light);
}
.ch-back {
  font-size: 14px;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ch-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: calc(100vh - 65px);
  direction: rtl;
}

/* Summary (right in RTL = first child) */
.ch-summary {
  background: #f5f5f5;
  padding: 36px 28px;
  border-left: 1px solid #e0e0e0;
}
.ch-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 20px;
}
.ch-edit-link { font-size: 16px; text-decoration: none; }
.ch-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.ch-item-img-wrap { position: relative; flex-shrink: 0; }
.ch-item-img-wrap img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: block;
}
.ch-item-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #888;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ch-item-info { flex: 1; }
.ch-item-name { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.ch-item-meta { font-size: 12px; color: var(--text-light); }
.ch-item-price { font-size: 14px; font-weight: 600; }

.ch-coupon-section { margin-bottom: 16px; }
.ch-coupon-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #c0392b;
  text-decoration: underline;
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ch-coupon-panel { display: none; padding-bottom: 8px; }
.ch-coupon-panel.open { display: block; }
.ch-coupon-row { display: flex; gap: 8px; margin-bottom: 6px; }
.ch-coupon-input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  direction: rtl;
  background: white;
}
.ch-coupon-input:focus { outline: none; border-color: var(--green); }
.ch-apply-btn {
  padding: 8px 14px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Heebo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.ch-apply-btn:hover { background: var(--green-dark); }
.ch-coupon-msg { font-size: 12px; font-weight: 600; min-height: 16px; }

.ch-divider { height: 1px; background: #ddd; margin: 14px 0; }
.ch-price-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}
.ch-total-row { font-weight: 700; font-size: 16px; margin-top: 4px; }
.ch-secure {
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

/* Form column (left in RTL = second child) */
.ch-form-col { padding: 36px 52px; }
.ch-login-note {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 28px;
  text-align: left;
}
.ch-login-note a { color: var(--green); text-decoration: underline; }
.ch-section-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.ch-field { margin-bottom: 16px; }
.ch-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
}
.ch-field input,
.ch-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #d0d0d0;
  border-radius: 6px;
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  direction: rtl;
  background: white;
  transition: border-color 0.2s;
}
.ch-field input:focus,
.ch-field select:focus { outline: none; border-color: var(--text); }
.ch-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ch-terms-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
  font-weight: 400;
}
.ch-terms-field input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  accent-color: var(--green);
}
.ch-terms-field a { color: var(--green); text-decoration: underline; }
.ch-submit-btn {
  width: 100%;
  padding: 14px;
  background: #1a1a1a;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 16px;
  transition: background 0.2s;
}
.ch-submit-btn:hover { background: #333; }
.ch-next-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #bbb;
}
.ch-next-step-sep { color: #ccc; }
.ch-pickup-notice {
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.ch-error {
  margin-top: 16px;
  background: #fdf0f0;
  border: 1px solid #e74c3c;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #c0392b;
  text-align: center;
}
.ch-success {
  margin-top: 20px;
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  text-align: center;
}
@media (max-width: 768px) {
  .ch-grid { grid-template-columns: 1fr; }
  .ch-summary { border-left: none; border-bottom: 1px solid #e0e0e0; }
  .ch-form-col { padding: 28px 24px; }
  .ch-header { padding: 14px 20px; }
}

/* ── Cart Drawer ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 360px;
  max-width: 100vw;
  height: 100%;
  background: white;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  direction: rtl;
  box-shadow: -4px 0 30px rgba(0,0,0,0.18);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e8e8e8;
  background: #111;
  color: white;
}
.cart-drawer-header h3 {
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: white;
}
.cart-drawer-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: rgba(255,255,255,0.8);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.cart-drawer-close:hover { background: rgba(255,255,255,0.15); }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 24px; }

.cart-drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}
.cart-drawer-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
  order: 3;
}
.cart-drawer-item-info { flex: 1; }
.cart-drawer-item-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--text); }
.cart-drawer-item-price { color: var(--green); font-weight: 600; font-size: 15px; }
.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  font-size: 17px;
  padding: 4px;
  order: 1;
  transition: color 0.2s;
}
.cart-remove-btn:hover { color: #c0392b; }

.cart-drawer-qty {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.cart-drawer-qty-label { font-size: 14px; font-weight: 600; }
.cart-drawer-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  direction: ltr;
}
.cart-drawer-qty-ctrl button {
  width: 34px;
  height: 34px;
  background: var(--cream);
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-drawer-qty-ctrl button:hover { background: var(--green-light); }
.cart-drawer-qty-ctrl span {
  width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  border-left: 1.5px solid #e0e0e0;
  border-right: 1.5px solid #e0e0e0;
  line-height: 34px;
}

.cart-drawer-coupon { margin-bottom: 8px; }
.cart-coupon-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color: #c0392b;
  text-decoration: underline;
  padding: 0;
  font-family: 'Heebo', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-coupon-fields {
  display: none;
  margin-top: 10px;
  gap: 8px;
}
.cart-coupon-fields.open { display: flex; }
.cart-coupon-fields input {
  flex: 1;
  padding: 9px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  direction: rtl;
  background: var(--cream);
}
.cart-coupon-fields input:focus { outline: none; border-color: var(--green); }
.cart-coupon-apply {
  padding: 9px 14px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.cart-coupon-apply:hover { background: var(--green-dark); }
.cart-coupon-msg { font-size: 13px; margin-top: 6px; min-height: 18px; font-weight: 600; }

.cart-drawer-footer {
  padding: 18px 22px;
  border-top: 1px solid #e8e8e8;
}
.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.cart-drawer-total span:last-child { color: var(--text); font-size: 17px; font-weight: 700; }
.cart-checkout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #c0392b;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s;
}
.cart-checkout-btn:hover { background: #a93226; color: white; }

/* ── Cart Page ── */
.cp-root {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}
.cp-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}
.cp-col-title {
  font-family: 'Heebo', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}
.cp-line {
  height: 1px;
  background: #e8e8e8;
  margin-bottom: 20px;
}
/* Cart item row */
.cp-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.cp-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.cp-item-info { flex: 1; }
.cp-item-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.cp-item-unit { font-size: 14px; color: var(--text-light); }
.cp-qty-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid #d0d0d0;
  border-radius: 6px;
  overflow: hidden;
}
.cp-qty-btn {
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.cp-qty-btn:hover { background: var(--green-light); }
.cp-qty-val {
  width: 38px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  border-left: 1.5px solid #d0d0d0;
  border-right: 1.5px solid #d0d0d0;
  line-height: 32px;
}
.cp-line-total {
  font-size: 15px;
  font-weight: 600;
  min-width: 64px;
  text-align: center;
}
.cp-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 17px;
  color: var(--text-light);
  padding: 4px;
  transition: color 0.2s;
}
.cp-remove-btn:hover { color: #c0392b; }
/* Extras (coupon / notes) */
.cp-extra { margin-bottom: 4px; }
.cp-extra-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #c0392b;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: underline;
}
.cp-extra-panel { display: none; padding-bottom: 12px; }
.cp-extra-panel.open { display: block; }
.cp-coupon-row { display: flex; gap: 8px; margin-bottom: 6px; }
.cp-coupon-input {
  flex: 1;
  padding: 9px 14px;
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  direction: rtl;
  background: var(--cream);
}
.cp-coupon-input:focus { outline: none; border-color: var(--green); }
.cp-apply-btn {
  padding: 9px 16px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s;
}
.cp-apply-btn:hover { background: var(--green-dark); }
.cp-extra-msg { font-size: 13px; font-weight: 600; min-height: 18px; }
.cp-notes-input {
  width: 100%;
  min-height: 80px;
  padding: 10px 14px;
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  direction: rtl;
  resize: vertical;
  background: var(--cream);
}
/* Summary column */
.cp-summary { position: sticky; top: 80px; }
.cp-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
}
.cp-country {
  font-size: 14px;
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 12px;
}
.cp-delivery-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  font-family: 'Heebo', sans-serif;
  font-size: 14px;
  direction: rtl;
  background: white;
  cursor: pointer;
  margin-bottom: 4px;
}
.cp-delivery-select:focus { outline: none; border-color: var(--green); }
.cp-total-row {
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 20px;
}
.cp-checkout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: #c0392b;
  color: white;
  border: none;
  border-radius: 6px;
  font-family: 'Heebo', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  margin-bottom: 12px;
}
.cp-checkout-btn:hover { background: #a93226; }
.cp-secure-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}
.cp-order-sent {
  margin-top: 16px;
  background: var(--green-light);
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  text-align: center;
}
/* Promo bar */
.cp-promo-bar {
  background: #1a1a1a;
  color: #e8c84a;
  text-align: center;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
@media (max-width: 768px) {
  .cp-grid { grid-template-columns: 1fr; gap: 32px; }
  .cp-summary { position: static; }
  .cart-drawer { width: 100%; }
}
