/* Harvest Bookstore — checkout, cart drawer, order UI */
.hm-bs-cart-panel { position:fixed; top:0; right:0; width:min(440px,100vw); height:100%; max-height:100dvh; z-index:195; background:#f5efe3; box-shadow:-8px 0 40px rgba(0,0,0,0.15); display:flex; flex-direction:column; overflow:hidden; min-height:0; animation:hmBsSlideIn .28s ease; }
@keyframes hmBsSlideIn { from { transform:translateX(100%); } to { transform:translateX(0); } }

.hm-bs-cart-head { padding:22px 24px; background:#15212e; color:#f5efe3; display:flex; align-items:center; justify-content:space-between; flex-shrink:0; }
.hm-bs-cart-head h2 { font-family:'Newsreader',serif; font-size:23px; font-weight:500; margin:0; }
.hm-bs-cart-body { flex:1 1 auto; min-height:0; overflow-y:auto; padding:20px 24px 12px; -webkit-overflow-scrolling:touch; overscroll-behavior:contain; }
.hm-bs-cart-foot { padding:18px 24px calc(20px + env(safe-area-inset-bottom)); border-top:1px solid #e4dccb; background:#f5efe3; flex-shrink:0; box-shadow:0 -4px 20px rgba(21,33,46,0.06); }
.hm-bs-cart-foot .hm-bs-summary-line { padding:6px 0; }
.hm-bs-cart-foot .hm-bs-summary-line.total { margin-top:4px; padding-top:12px; font-size:15px; }
.hm-bs-cart-foot .hm-bs-summary-line.total span:last-child { font-family:'Newsreader',serif; font-size:22px; font-weight:500; }
.hm-bs-cart-foot .hm-bs-btn-primary { margin-top:14px !important; }
.hm-bs-cart-foot > p { margin-top:10px; margin-bottom:0; line-height:1.45; padding-bottom:2px; }

.hm-bs-social-proof { background:linear-gradient(135deg,#e9f3ec,#f7f1e6); border:1px solid #c8dccf; border-radius:6px; padding:14px 16px; margin-bottom:18px; }
.hm-bs-social-proof-row { display:flex; align-items:center; gap:10px; font-size:12.5px; color:#1f5c3a; font-weight:600; }
.hm-bs-social-proof-row svg { flex:none; }
.hm-bs-social-stats { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:12px; }
.hm-bs-social-stat { text-align:center; background:rgba(255,255,255,0.7); border-radius:4px; padding:8px 6px; }
.hm-bs-social-stat strong { display:block; font-family:'Newsreader',serif; font-size:18px; color:#15212e; line-height:1.1; }
.hm-bs-social-stat span { font-size:9px; font-weight:700; letter-spacing:0.06em; color:#5b6671; text-transform:uppercase; }
.hm-bs-recent-order { display:flex; align-items:center; gap:8px; margin-top:12px; padding-top:12px; border-top:1px solid rgba(31,92,58,0.15); font-size:11.5px; color:#3c4750; }
.hm-bs-recent-dot { width:7px; height:7px; border-radius:50%; background:#1f8a5b; flex:none; animation:hmBsPulse 2s infinite; }
@keyframes hmBsPulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

.hm-bs-cart-item { display:flex; gap:14px; padding-bottom:18px; margin-bottom:18px; border-bottom:1px solid #e4dccb; }
.hm-bs-cart-item:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
.hm-bs-cart-thumb { flex:none; width:56px; height:74px; border-radius:3px; background:#fff; border:1px solid #e4dccb; overflow:hidden; position:relative; }
.hm-bs-cart-qty { display:inline-flex; align-items:center; border:1px solid #d3c7af; border-radius:3px; background:#fff; }
.hm-bs-cart-qty button { width:32px; height:32px; background:none; border:none; cursor:pointer; font-size:16px; color:#46515c; display:flex; align-items:center; justify-content:center; }
.hm-bs-cart-qty span { min-width:28px; text-align:center; font-size:13px; font-weight:700; }

.hm-bs-partner-strip { background:#15212e; color:#c4cdd6; border-radius:6px; padding:14px 16px; margin-top:16px; margin-bottom:4px; font-size:12.5px; line-height:1.55; }
.hm-bs-partner-strip strong { color:#f5efe3; }

.hm-bs-floating-cart {
  display:none; position:fixed; left:50%; transform:translateX(-50%);
  bottom:calc(78px + env(safe-area-inset-bottom)); z-index:85;
  background:#15212e; color:#fff; border:none; border-radius:999px;
  padding:12px 22px; font-size:14px; font-weight:700; cursor:pointer;
  box-shadow:0 6px 28px rgba(0,0,0,.28); align-items:center; gap:10px;
  min-height:48px; animation:hmBsFloatUp .35s ease;
}
@keyframes hmBsFloatUp { from { opacity:0; transform:translateX(-50%) translateY(12px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
.hm-bs-floating-cart .hm-bs-float-badge { background:#cf4a26; min-width:22px; height:22px; border-radius:11px; display:inline-flex; align-items:center; justify-content:center; font-size:11px; padding:0 6px; }

.hm-bs-checkout { min-height:100vh; background:#f5efe3; }
.hm-bs-checkout-wrap { max-width:1100px; margin:0 auto; padding:28px 32px 100px; }
.hm-bs-checkout-grid { display:grid; grid-template-columns:1fr minmax(300px,380px); gap:36px; align-items:start; }
.hm-bs-checkout-card { background:#fff; border:1px solid #e4dccb; border-radius:6px; padding:28px; margin-bottom:20px; }
.hm-bs-checkout-card h2 { font-family:'Newsreader',serif; font-size:22px; font-weight:500; margin:0 0 6px; }
.hm-bs-checkout-card .hm-bs-step-label { font-size:11px; font-weight:700; letter-spacing:0.12em; color:#cf4a26; margin-bottom:8px; }
.hm-bs-field { margin-bottom:16px; }
.hm-bs-field label { display:block; font-size:11px; font-weight:700; letter-spacing:0.06em; color:#46515c; margin-bottom:7px; }
.hm-bs-field input, .hm-bs-field select, .hm-bs-field textarea {
  width:100%; padding:12px 14px; border:1px solid #d3c7af; border-radius:3px;
  background:#fbf8f1; font-size:15px; outline:none; min-height:48px;
}
.hm-bs-field input:focus, .hm-bs-field select:focus, .hm-bs-field textarea:focus { border-color:#cf4a26; background:#fff; }
.hm-bs-field-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.hm-bs-field-row-3 { display:grid; grid-template-columns:1fr 1fr 120px; gap:14px; }

.hm-bs-summary { position:sticky; top:100px; }
.hm-bs-summary-line { display:flex; justify-content:space-between; align-items:baseline; padding:8px 0; font-size:14px; color:#5b6671; }
.hm-bs-summary-line.total { border-top:1px solid #e4dccb; margin-top:8px; padding-top:16px; font-size:16px; color:#15212e; font-weight:700; }
.hm-bs-summary-line.total span:last-child { font-family:'Newsreader',serif; font-size:28px; font-weight:500; }
.hm-bs-summary-item { display:flex; gap:12px; padding:12px 0; border-bottom:1px solid #f0e8d8; }
.hm-bs-summary-item:last-child { border-bottom:none; }
.hm-bs-btn-primary { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; background:#cf4a26; color:#fff; border:none; font-size:15px; font-weight:700; padding:16px; border-radius:3px; cursor:pointer; min-height:52px; }
.hm-bs-btn-primary:disabled { opacity:0.65; cursor:not-allowed; }
.hm-bs-btn-secondary { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:#15212e; color:#fff; border:none; font-size:14px; font-weight:700; padding:14px 22px; border-radius:3px; cursor:pointer; min-height:48px; text-decoration:none; }
.hm-bs-btn-outline { display:inline-flex; align-items:center; justify-content:center; gap:8px; background:transparent; color:#15212e; border:1.5px solid #d3c7af; font-size:14px; font-weight:700; padding:13px 20px; border-radius:3px; cursor:pointer; min-height:48px; text-decoration:none; }
.hm-bs-trust-row { display:flex; flex-wrap:wrap; gap:12px; margin-top:16px; font-size:11.5px; color:#8a929b; }
.hm-bs-trust-row span { display:inline-flex; align-items:center; gap:5px; }

.hm-bs-payment-box { background:linear-gradient(160deg,#15212e,#1d2c3d); color:#f5efe3; border-radius:8px; padding:24px; margin-top:20px; }
.hm-bs-payment-ref { font-family:'Newsreader',serif; font-size:36px; font-weight:500; letter-spacing:0.08em; color:#e0673f; margin:12px 0 4px; }
.hm-bs-bank-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 20px; margin:18px 0; font-size:13.5px; }
.hm-bs-bank-grid dt { font-size:9px; font-weight:700; letter-spacing:0.12em; color:#e0673f; margin-bottom:3px; }
.hm-bs-bank-grid dd { color:#f5efe3; margin:0; }
.hm-bs-copy-btn { background:rgba(245,239,227,0.12); border:1px solid rgba(245,239,227,0.25); color:#f5efe3; font-size:12px; font-weight:700; padding:8px 14px; border-radius:3px; cursor:pointer; }
.hm-bs-instructions { background:rgba(255,255,255,0.06); border-radius:6px; padding:16px 18px; margin-top:16px; }
.hm-bs-instructions ol { margin:0; padding-left:1.2em; font-size:13.5px; line-height:1.65; color:#c4cdd6; }
.hm-bs-instructions li { margin-bottom:8px; }

.hm-bs-order-timeline { display:flex; flex-direction:column; gap:0; margin:24px 0; }
.hm-bs-timeline-step { display:flex; gap:14px; position:relative; padding-bottom:22px; }
.hm-bs-timeline-step:last-child { padding-bottom:0; }
.hm-bs-timeline-step::before { content:''; position:absolute; left:11px; top:24px; bottom:0; width:2px; background:#e4dccb; }
.hm-bs-timeline-step:last-child::before { display:none; }
.hm-bs-timeline-dot { width:24px; height:24px; border-radius:50%; border:2px solid #d3c7af; background:#fff; flex:none; display:flex; align-items:center; justify-content:center; z-index:1; }
.hm-bs-timeline-step.done .hm-bs-timeline-dot { background:#1f8a5b; border-color:#1f8a5b; color:#fff; }
.hm-bs-timeline-step.active .hm-bs-timeline-dot { border-color:#cf4a26; box-shadow:0 0 0 4px rgba(207,74,38,0.15); }
.hm-bs-timeline-step.cancelled .hm-bs-timeline-dot { background:#8a929b; border-color:#8a929b; }

.hm-bs-admin { min-height:100vh; background:#0f1923; color:#f5efe3; }
.hm-bs-admin-login { max-width:400px; margin:80px auto; padding:32px; background:#15212e; border-radius:8px; border:1px solid rgba(245,239,227,0.1); }
.hm-bs-admin-layout { display:grid; grid-template-columns:240px 1fr; min-height:100vh; }
.hm-bs-admin-sidebar { background:#15212e; border-right:1px solid rgba(245,239,227,0.08); padding:24px 20px; }
.hm-bs-admin-main { padding:24px 28px 60px; overflow-x:auto; }
.hm-bs-admin-stat { background:#15212e; border:1px solid rgba(245,239,227,0.08); border-radius:6px; padding:16px; }
.hm-bs-admin-stat strong { font-family:'Newsreader',serif; font-size:28px; display:block; color:#e0673f; }
.hm-bs-admin-stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); gap:12px; margin-bottom:24px; }
.hm-bs-admin-table { width:100%; border-collapse:collapse; font-size:13px; }
.hm-bs-admin-table th { text-align:left; font-size:10px; letter-spacing:0.1em; color:#8a929b; padding:10px 12px; border-bottom:1px solid rgba(245,239,227,0.1); }
.hm-bs-admin-table td { padding:12px; border-bottom:1px solid rgba(245,239,227,0.06); vertical-align:middle; }
.hm-bs-admin-table tr:hover td { background:rgba(245,239,227,0.03); }
.hm-bs-status-pill { display:inline-block; font-size:10px; font-weight:700; letter-spacing:0.06em; padding:5px 10px; border-radius:999px; text-transform:uppercase; }
.hm-bs-status-pending_payment { background:rgba(207,74,38,0.2); color:#e0673f; }
.hm-bs-status-payment_received { background:rgba(31,138,91,0.2); color:#5dd39e; }
.hm-bs-status-processing { background:rgba(100,149,237,0.2); color:#8eb8ff; }
.hm-bs-status-shipped { background:rgba(147,112,219,0.2); color:#c4a8ff; }
.hm-bs-status-completed { background:rgba(31,138,91,0.25); color:#1f8a5b; }
.hm-bs-status-cancelled { background:rgba(138,146,155,0.2); color:#aeb8c2; }

.hm-bs-empty { text-align:center; padding:48px 24px; color:#8a7f6a; }
.hm-bs-empty h3 { font-family:'Newsreader',serif; font-size:22px; color:#46515c; margin-bottom:8px; }

body:has(.hm-bs-cart-panel) .hm-whatsapp,
body:has(.hm-bs-cart-panel) .hm-bs-floating-cart { display:none !important; }

@media (max-width:768px) {
  .hm-bs-cart-panel { width:100% !important; max-height:min(94dvh,94vh); height:min(94dvh,94vh) !important; top:auto !important; bottom:0; border-radius:14px 14px 0 0; animation:hmBsSlideUp .28s ease; }
  @keyframes hmBsSlideUp { from { transform:translateY(100%); } to { transform:translateY(0); } }
  .hm-bs-floating-cart { display:inline-flex !important; }
  .hm-bs-checkout-wrap { padding:16px 16px calc(90px + env(safe-area-inset-bottom)); }
  .hm-bs-checkout-grid { grid-template-columns:1fr; }
  .hm-bs-summary { position:fixed; left:0; right:0; bottom:calc(72px + env(safe-area-inset-bottom)); z-index:40; background:#fff; border-top:1px solid #e4dccb; padding:14px 16px; box-shadow:0 -4px 24px rgba(0,0,0,.08); border-radius:14px 14px 0 0; max-height:45vh; overflow-y:auto; }
  .hm-bs-checkout-main { padding-bottom:200px; }
  .hm-bs-field-row, .hm-bs-field-row-3 { grid-template-columns:1fr; }
  .hm-bs-bank-grid { grid-template-columns:1fr; }
  .hm-bs-payment-ref { font-size:28px; }
  .hm-bs-admin-layout { grid-template-columns:1fr; }
  .hm-bs-admin-sidebar { border-right:none; border-bottom:1px solid rgba(245,239,227,0.08); }
  .hm-bs-admin-table { font-size:12px; }
  .hm-bs-admin-table .hm-hide-mobile { display:none; }
}

@media (min-width:769px) {
  .hm-bs-mobile-summary-toggle { display:none; }
}

.hm-bs-progress { display:flex; gap:6px; margin-bottom:28px; }
.hm-bs-progress-step { flex:1; height:4px; border-radius:2px; background:#e4dccb; }
.hm-bs-progress-step.done { background:#1f8a5b; }
.hm-bs-progress-step.active { background:#cf4a26; }
