:root{ --primary:#0f172a; --accent:#06b6d4; --bg:#f8fafc; }
*{box-sizing:border-box;margin:0;padding:0;font-family:'Inter',sans-serif}
body{background:linear-gradient(180deg,#f8fafc 0%, #eef2f7 100%);min-height:100vh;color:var(--primary);}

/* Header: fixed, predictable height to avoid CLS */
header{
  position:fixed;top:0;left:0;right:0;
  background:white;z-index:1000;
  display:flex;flex-direction:column;gap:10px;
  padding:16px 20px 18px;
  box-shadow:0 2px 12px rgba(0,0,0,0.06);
}

/* Reserve space for fixed header so content doesn't jump.
   We'll also adjust via JS on load/resize for precision. */
main{ max-width:1100px;margin:0 auto;padding-left:16px;padding-right:16px;}

/* header top row */
.header-top{display:flex;align-items:center;justify-content:space-between;width:100%}
header h1{font-size:1.45rem;font-weight:700;display:flex;align-items:center;gap:10px}

/* SEARCH */
.search-wrapper{position:relative;display:flex;align-items:center;gap:8px;background:#eef2f6;padding:8px;border-radius:12px;width:420px;max-width:calc(100% - 40px);margin:0 auto;box-shadow:0 6px 18px rgba(2,6,23,0.04)}
.search-wrapper input{flex:1;border:none;outline:none;background:transparent;font-size:0.95rem;padding:6px 8px;color:var(--primary)}
.search-wrapper button{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(90deg,#4f46e5,#06b6d4);border:none;color:#fff;padding:8px 10px;border-radius:10px;cursor:pointer;box-shadow:0 8px 20px rgba(79,70,229,0.12)}
.search-wrapper .search-icon{width:16px;height:16px}

/* Suggestions */
.suggestions{position:absolute;top:calc(100% + 8px);left:0;right:0;background:#fff;border-radius:10px;box-shadow:0 12px 36px rgba(2,6,23,0.12);z-index:1200;display:none;max-height:220px;overflow:auto}
.suggestions .item{padding:10px 12px;display:flex;align-items:center;gap:10px;border-bottom:1px solid rgba(15,23,42,0.03);font-size:0.95rem;color:#0f172a;cursor:pointer}
.suggestions .meta{margin-left:auto;font-size:0.8rem;color:#6b7280}
.suggestions .item:hover{background:#f1f5f9}

/* Sidebar */
.sidebar{position:fixed;top:0;left:-300px;width:280px;height:100%;background:#111827;padding-top:84px;transition:left 0.32s ease;z-index:2000;border-right:1px solid rgba(255,255,255,0.04);color:#fff}
.sidebar .logo-row{display:flex;align-items:center;gap:12px;padding:18px 20px;position:absolute;top:16px;left:12px}
.sidebar img{width:36px;height:36px;border-radius:6px}
.sidebar ul{list-style:none;margin-top:8px}
.sidebar li{padding:16px 20px;font-weight:600;border-bottom:1px solid rgba(255,255,255,0.04);cursor:pointer}

/* Product grid */
.product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}

/* Single book — spans both columns, horizontal layout so it fills the space naturally */
.product-grid .product-card:only-child {
  grid-column: 1 / -1;
  width: 100%;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
}
.product-grid .product-card:only-child .ebook-cover {
  width: 160px;
  height: 220px;
  flex-shrink: 0;
}
.product-grid .product-card:only-child .title,
.product-grid .product-card:only-child .card-author {
  text-align: left;
}
.product-grid .product-card:only-child .card-price-row {
  justify-content: flex-start;
}
.product-grid .product-card:only-child .button-group {
  max-width: 340px;
}
@media (max-width: 480px) {
  .product-grid .product-card:only-child {
    flex-direction: column;
    align-items: center;
    padding: 16px;
  }
  .product-grid .product-card:only-child .title,
  .product-grid .product-card:only-child .card-author { text-align: center; }
  .product-grid .product-card:only-child .card-price-row { justify-content: center; }
  .product-grid .product-card:only-child .button-group { max-width: 100%; }
}

/* Cards */
.product-card{background:white;padding:16px;border-radius:14px;box-shadow:0 18px 40px rgba(0,0,0,0.06);display:flex;flex-direction:column;align-items:center;gap:10px}
.ebook-cover{width:140px;height:200px;object-fit:cover;border-radius:8px}
@media (max-width:480px){ .ebook-cover{width:110px;height:160px} }

/* title price */
.title{font-weight:700;text-align:center;font-size:.95rem}
.price{font-weight:800;font-size:1rem;color:#0f172a}

/* actions — default horizontal, stack on small width */
.button-group{display:flex;gap:8px;width:100%}
.button-group .btn{flex:1}
@media (max-width:480px){ .button-group{flex-direction:column} }

/* buttons */
.btn{padding:10px 14px;border-radius:10px;border:none;font-weight:700;cursor:pointer;width:100%}
.buy-btn{background:linear-gradient(90deg,#4f46e5,#06b6d4);color:white}
.review-btn{border:2px solid rgba(15,23,42,0.06);background:white;color:var(--primary)}

/* footer */
/* ---------------- FULL SITE FOOTER (edge-to-edge) ---------------- */
.site-footer{margin-top:48px;background:#0f172a;color:#fff;width:100%;}
.footer-top{display:flex;flex-wrap:wrap;gap:36px;max-width:1100px;margin:0 auto;padding:44px 36px 32px;box-sizing:border-box;}
.footer-col{flex:1 1 220px;min-width:0;}
.footer-brand{flex:1.5 1 260px;}
.footer-logo-row{display:flex;align-items:center;gap:10px;margin-bottom:10px;}
.footer-logo-row img{width:34px;height:34px;border-radius:7px;}
.footer-logo-row span{font-weight:700;font-size:1.1rem;color:#fbbf24;}
.footer-tagline{color:#e2e8f0;font-size:0.92rem;margin:0 0 10px;}
.footer-blurb{color:#94a3b8;font-size:0.85rem;line-height:1.6;margin:0;max-width:320px;}
.footer-heading{font-weight:700;font-size:0.85rem;letter-spacing:0.04em;text-transform:uppercase;color:#94a3b8;margin-bottom:14px;}
.footer-links{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px;}
.footer-links a{color:#e2e8f0;text-decoration:none;font-size:0.92rem;transition:color 150ms ease;}
.footer-links a:hover{color:#06b6d4;}
.footer-contact-link{display:inline-flex;align-items:center;gap:8px;word-break:break-all;}
.footer-social{display:flex;gap:10px;}
.social-btn{
  display:inline-flex;align-items:center;justify-content:center;
  width:38px;height:38px;border-radius:50%;
  background:rgba(255,255,255,0.06);color:#e2e8f0;
  transition:background-color 150ms ease,color 150ms ease,transform 150ms ease;
}
.social-btn:hover{background:linear-gradient(90deg,#4f46e5,#06b6d4);color:#fff;transform:translateY(-2px);}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.08);
  padding:20px 36px;max-width:1100px;margin:0 auto;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;
  color:#64748b;font-size:0.82rem;box-sizing:border-box;
}
.footer-secure{display:flex;align-items:center;gap:6px;color:#94a3b8;}
@media (max-width:760px){
  .footer-top{flex-direction:column;gap:28px;}
  .footer-bottom{flex-direction:column;align-items:flex-start;}
}
@media (max-width:600px){
  .section-badge{flex-basis:100%;margin:6px 0 0 58px;align-self:flex-start;}
}
footer .brand{font-weight:700;font-size:1.1rem;color:#fbbf24}
.muted{font-size:.9rem;color:#6b7280}

/* ---------------- SECTION HEADERS (Our Books / Featured) ---------------- */
/* ── SECTION HEADERS — Fintech 2026 ── */
.section-head { margin-bottom: 20px; }
.section-label-row { display: flex; align-items: center; gap: 10px; }

/* Gradient bar accent */
.section-accent {
  display: inline-block; width: 3px; height: 22px;
  border-radius: 99px; flex-shrink: 0;
  background: linear-gradient(180deg, #4f46e5 0%, #06b6d4 100%);
  box-shadow: 0 0 8px rgba(79,70,229,0.45);
}

/* Section title */
.section-head h2 {
  margin: 0; font-size: 1.05rem; font-weight: 800;
  color: var(--primary); letter-spacing: -0.01em;
}

/* Base pill */
.section-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  text-transform: uppercase;
}

/* NEW RELEASE — dark fintech with cyan glow */
.section-pill--new {
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  color: #67e8f9;
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.18), inset 0 1px 0 rgba(255,255,255,0.06);
}
.section-pill--new::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 6px #06b6d4;
  animation: pillPulse 1.6s ease-in-out infinite;
}

/* BEST OF 2026 — dark gold fintech */
.section-pill--warm {
  background: linear-gradient(135deg, #1c1107, #2d1f04);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: 0 0 10px rgba(251,191,36,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}
.section-pill--warm::before {
  content: '★';
  font-size: 0.65rem; color: #fbbf24;
}

@keyframes pillPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}
.card-author{font-size:0.78rem;color:#6b7280;margin-bottom:8px;}
.find-on-amazon-btn{text-decoration:none;display:inline-flex;}

/* small screens: grid becomes 2 across (same), search fits */
@media (max-width:860px){ .search-wrapper{width:100%;max-width:100%;margin:0} }

/* Cart icon + badge */
.icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;border:none;background:transparent;color:#1e293b;cursor:pointer;transition:background-color 150ms ease,color 150ms ease;padding:0;}
.icon-btn:hover{background-color:#f1f5f9;color:#4f46e5;}
.icon-btn:active{background-color:#e6e9ee;}
.cart-badge{
  position:absolute;top:-9px;right:-11px;
  background:linear-gradient(90deg,#4f46e5,#06b6d4);
  color:#fff;font-size:0.68rem;font-weight:700;
  min-width:18px;height:18px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  padding:0 4px;line-height:1;
}

/* Full-screen cart overlay */
.cart-overlay{
  position:fixed;inset:0;background:#fff;z-index:5000;
  display:none;flex-direction:column;
  padding:22px 18px 32px;overflow-y:auto;
  opacity:0;transform:translateY(18px);
  transition:opacity 220ms ease,transform 220ms cubic-bezier(.16,1,.3,1);
}
.cart-overlay.show{display:flex;opacity:1;transform:translateY(0);}
[aria-hidden="true"].cart-overlay { display: none !important; }
.cart-overlay-inner{max-width:640px;width:100%;margin:0 auto;}
.cart-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;}
.cart-header h2{font-size:1.25rem;color:var(--primary);display:flex;align-items:baseline;gap:8px;}
.cart-item-count{font-size:0.82rem;font-weight:600;color:#94a3b8;}
.cart-close{background:none;border:none;cursor:pointer;color:#64748b;padding:8px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;transition:background-color 150ms ease,color 150ms ease;}
.cart-close:hover{background-color:#f1f5f9;color:#0f172a;}

.cart-items-list{display:flex;flex-direction:column;gap:12px;margin-bottom:22px;}
.cart-item{
  display:flex;align-items:center;gap:12px;
  background:#fff;border-radius:12px;padding:12px 14px;
  border:1px solid #eef2f7;
  box-shadow:0 4px 14px rgba(15,23,42,0.04);
  transition:box-shadow 150ms ease;
}
.cart-item:hover{box-shadow:0 8px 22px rgba(15,23,42,0.08);}
.cart-item img{width:46px;height:64px;object-fit:cover;border-radius:6px;flex-shrink:0;box-shadow:0 2px 6px rgba(15,23,42,0.12);}
.cart-item-info{flex:1;min-width:0;}
.cart-item-title{font-weight:700;font-size:0.92rem;color:var(--primary);}
.cart-item-price{color:#6b7280;font-size:0.85rem;margin-top:2px;}
.cart-item-remove{background:none;border:none;color:#94a3b8;cursor:pointer;padding:8px;flex-shrink:0;border-radius:50%;display:inline-flex;transition:background-color 150ms ease,color 150ms ease;}
.cart-item-remove:hover{background-color:#fef2f2;color:#ef4444;}

/* Premium empty-cart state */
.cart-empty{text-align:center;padding:48px 16px 24px;color:#94a3b8;}
.cart-empty svg{margin-bottom:14px;color:#cbd5e1;}
.cart-empty h3{font-size:1.05rem;color:var(--primary);margin:0 0 6px;}
.cart-empty p{font-size:0.9rem;margin:0 0 20px;color:#94a3b8;}

.cart-summary{border-top:1px solid rgba(15,23,42,0.08);padding-top:18px;}
.cart-total-row{display:flex;justify-content:space-between;font-weight:800;font-size:1.25rem;margin-bottom:18px;color:var(--primary);}
.checkout-heading{font-weight:700;font-size:0.85rem;letter-spacing:0.03em;text-transform:uppercase;color:#94a3b8;margin-bottom:4px;}

.input-icon-field{position:relative;}
.input-icon-field .input-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#94a3b8;pointer-events:none;}
.input-icon-field input{padding-left:38px !important;}

.cart-summary input{
  width:100%;padding:11px 12px;margin-top:6px;border-radius:10px;
  border:1.5px solid #e6e9ee;font-size:0.95rem;
  transition:border-color 150ms ease,box-shadow 150ms ease;
}
.cart-summary input:focus{outline:none;border-color:#4f46e5;box-shadow:0 0 0 3px rgba(79,70,229,0.10);}
.field-hint{font-size:0.8rem;margin-top:6px;}

.checkout-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;font-size:1rem;}
.checkout-trust{
  display:flex;align-items:center;justify-content:center;gap:6px;
  margin-top:14px;color:#94a3b8;font-size:0.82rem;
}
/* ---------------- HEADER FIX ---------------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  gap: 10px;

  padding: 16px 26px 20px; /* extra bottom space for search bar */
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Push whole page down so header doesn't cover content */




/* ---------------- SEARCH BAR ---------------- */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eef2f6;
  padding: 6px 8px;
  border-radius: 12px;
  width: 420px;                 /* desktop width */
  max-width: calc(100% - 40px);
  box-shadow: 0 6px 18px rgba(2,6,23,0.04);
  margin: 0 auto;               /* center under logo */
}

.search-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.95rem;
  color: var(--primary);
  padding: 6px 8px;
}

.search-wrapper button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg,#4f46e5,#06b6d4);
  border: none;
  color: #fff;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 8px 20px rgba(79,70,229,0.12);
}

.search-wrapper .search-icon {
  width: 16px;
  height: 16px;
}

.search-wrapper .search-icon-prefix {
  width: 16px;
  height: 16px;
  color: #94a3b8;
  flex-shrink: 0;
}



/* ---------------- SUGGESTIONS DROPDOWN ---------------- */
.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 36px rgba(2,6,23,0.12);
  z-index: 1200;
  display: none;
  max-height: 220px;
  overflow-y: auto;
}

.suggestions .item {
  padding: 10px 12px;
  cursor: pointer;
  display:flex;
  align-items:center;
  gap:10px;
  border-bottom: 1px solid rgba(15,23,42,0.03);
  font-size: 0.95rem;
  color: #0f172a;
}

.suggestions .item:last-child {
  border-bottom: none;
}

.suggestions .item:hover {
  background: #f1f5f9;
}

.suggestions .meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-left: auto;
}



/* ---------------- RESPONSIVE (Mobile Perfect) ---------------- */
@media (max-width: 860px) {
  .search-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 600px) {
  .search-wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }

  header {
    padding: 14px 14px 18px;
  }
}

@media (max-width: 450px) {
  .search-wrapper {
    padding: 6px 6px;
  }
}

   /* Force logo left + hamburger right */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Ensure search sits cleanly under top row */
header {
  display: flex;
  flex-direction: column;
  gap: 12px;
} 
    

/* ==================================================================
   BOOK DETAILS PAGE (review.html)
   ================================================================== */
.book-detail-wrap{max-width:1000px;margin:0 auto;padding:0 16px;}
.book-back-link{
  display:inline-flex;align-items:center;gap:6px;color:#64748b;
  font-size:0.9rem;text-decoration:none;margin-bottom:18px;font-weight:600;
  background:none;border:none;cursor:pointer;padding:0;
}
.book-back-link:hover{color:#4f46e5;}

.book-hero{
  display:flex;gap:28px;background:#fff;border-radius:16px;
  padding:28px;box-shadow:0 18px 40px rgba(0,0,0,0.06);
  margin-bottom:24px;flex-wrap:wrap;
}
.book-hero-cover{
  width:160px;height:226px;object-fit:cover;border-radius:10px;flex-shrink:0;
  box-shadow:0 8px 24px rgba(15,23,42,0.18);
}
.book-hero-info{flex:1;min-width:220px;}
.book-hero-genre{
  display:inline-block;background:#eef2ff;color:#4f46e5;font-weight:700;
  font-size:0.74rem;letter-spacing:0.03em;text-transform:uppercase;
  padding:5px 11px;border-radius:999px;margin-bottom:10px;
}
.book-hero-info h1{font-size:1.5rem;color:var(--primary);margin-bottom:6px;line-height:1.25;}
.book-hero-author{color:#6b7280;font-size:0.95rem;margin-bottom:14px;}
.book-hero-author strong{color:var(--primary);}
.book-hero-price{font-size:1.6rem;font-weight:800;color:var(--primary);margin-bottom:18px;}
.book-hero-price-row .book-hero-price{margin-bottom:0;}
.book-hero-actions{display:flex;gap:10px;flex-wrap:wrap;}

.book-details-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:14px;background:#fff;border-radius:16px;padding:24px;
  box-shadow:0 18px 40px rgba(0,0,0,0.06);margin-bottom:24px;
}
.book-details-item{text-align:center;padding:0 8px;}
.book-details-item .bd-icon{
  width:40px;height:40px;border-radius:10px;background:#f1f5f9;color:#4f46e5;
  display:flex;align-items:center;justify-content:center;margin:0 auto 10px;
}
.book-details-item .bd-label{font-size:0.78rem;color:#94a3b8;margin-bottom:4px;}
.book-details-item .bd-value{font-size:0.92rem;font-weight:700;color:var(--primary);}

.book-tabs{display:flex;gap:24px;border-bottom:1px solid #e6e9ee;margin-bottom:18px;}
.book-tab-btn{
  background:none;border:none;padding:10px 2px;font-size:0.95rem;font-weight:700;
  color:#94a3b8;cursor:pointer;border-bottom:2px solid transparent;
  margin-bottom:-1px;transition:color 150ms ease,border-color 150ms ease;
}
.book-tab-btn.active{color:#4f46e5;border-bottom-color:#4f46e5;}
.book-tab-panel{display:none;background:#fff;border-radius:16px;padding:24px;box-shadow:0 18px 40px rgba(0,0,0,0.06);}
.book-tab-panel.active{display:block;}
.book-description{font-size:0.95rem;line-height:1.75;color:#475569;}
.book-reviews-grid{display:flex;flex-wrap:wrap;gap:10px;}
.book-reviews-grid img{width:140px;height:140px;object-fit:cover;border-radius:10px;box-shadow:0 4px 14px rgba(15,23,42,0.1);cursor:pointer;}
.book-reviews-empty{color:#94a3b8;font-size:0.9rem;}
.book-detail-skeleton{color:#94a3b8;font-size:0.9rem;padding:40px 0;text-align:center;}

@media (max-width:560px){
  .book-hero{flex-direction:column;align-items:center;text-align:center;padding:22px;}
  .book-hero-actions{justify-content:center;}
  .book-tabs{justify-content:center;}
}

/* ── Skeleton cards ── */
@keyframes skelShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}
.skel-card {
  background: #fff; border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.skel-img,.skel-line,.skel-btn {
  border-radius: 8px;
  background: linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%);
  background-size: 800px 100%;
  animation: skelShimmer 1.4s ease-in-out infinite;
}
.skel-img        { height: 160px; width: 100%; border-radius: 10px; }
.skel-line       { height: 13px; }
.skel-line.w70   { width: 70%; }
.skel-line.w45   { width: 45%; }
.skel-btn        { height: 36px; width: 100%; margin-top: 4px; }

/* ── Warming toast ── */
.warming-toast {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 16px 0;
  background: #fffbeb; border: 1px solid #fcd34d;
  border-radius: 10px; padding: 10px 14px;
  font-size: 0.88rem; color: #92400e; font-weight: 600;
}
.warming-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #f59e0b; flex-shrink: 0;
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

/* ── Retry banner ── */
.books-retry-banner {
  grid-column: 1 / -1; text-align: center; padding: 20px 16px;
}
.books-retry-banner p  { color: #6b7280; font-size: 0.9rem; margin-bottom: 12px; }
.books-retry-banner button {
  padding: 9px 22px; border-radius: 8px; border: none;
  background: #4f46e5; color: white; font-weight: 600;
  font-size: 0.9rem; cursor: pointer;
}

/* ── Slashed price row (review page + cards) ── */
.book-hero-price-row {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.book-hero-price-old {
  font-size: 1rem; color: #9ca3af;
  text-decoration: line-through; font-weight: 500;
}
.book-hero-discount-badge {
  background: #fef2f2; color: #dc2626;
  font-size: 0.78rem; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
  border: 1px solid #fecaca;
  letter-spacing: 0.03em;
}

/* ── Card slash price ── */
.card-price-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 2px 0 6px;
}
.card-price { font-size: 1rem; font-weight: 700; color: var(--primary); }
.card-price-old {
  font-size: 0.82rem; color: #9ca3af;
  text-decoration: line-through;
}
.card-discount-badge {
  background: #fef2f2; color: #dc2626;
  font-size: 0.72rem; font-weight: 700;
  padding: 2px 7px; border-radius: 20px;
  border: 1px solid #fecaca;
}

/* ── Custom Toast Notifications ── */
#toastContainer {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999; display: flex; flex-direction: column;
  align-items: center; gap: 10px; pointer-events: none;
  width: 90%; max-width: 380px;
}
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  background: white; border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  border-left: 4px solid #4f46e5;
  pointer-events: all; width: 100%;
  animation: toastIn 0.3s ease;
  font-size: 0.9rem; color: #1f2937; line-height: 1.4;
}
.toast.success { border-left-color: #10b981; }
.toast.error   { border-left-color: #ef4444; }
.toast.warning { border-left-color: #f59e0b; }
.toast.info    { border-left-color: #4f46e5; }
.toast-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.toast-msg  { flex: 1; font-weight: 500; }
.toast-close {
  background: none; border: none; cursor: pointer;
  color: #9ca3af; font-size: 1rem; padding: 0; flex-shrink: 0;
  line-height: 1;
}
.toast-close:hover { color: #374151; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px) scale(0.95); }
}
.toast.hiding { animation: toastOut 0.25s ease forwards; }
