:root {
    --saffron:       #ea580c;
    --saffron-light: #f97316;
    --saffron-pale:  #FEF3E8;
    --temple:        #431407;
    --temple-mid:    #7c2d12;
    --gold:          #b45309;
    --gold-light:    #f59e0b;
    --cream:         #FFFBF5;
    --cream-deep:    #FEF0E0;
    --stone:         #78716c;
    --stone-muted:   #a8a29e;
    --green-ok:      #16a34a;
    --red-del:       #dc2626;
    --shadow-card:   0 2px 24px rgba(120,53,15,.07);
    --shadow-hover:  0 8px 40px rgba(120,53,15,.14);
    --radius:        14px;
  }

  .cart-root {
    font-family: 'Outfit', sans-serif;
    background: var(--cream);
    min-height: 100vh;
    padding: 0;
  }

  /* ── decorative mandala header band ── */
  .cart-hero {
    background: #FEF0E0;
    background-image:
      radial-gradient(circle at 10% 50%, rgba(234,88,12,0.12) 0%, transparent 55%),
      radial-gradient(circle at 90% 30%, rgba(245,158,11,0.14) 0%, transparent 50%),
      radial-gradient(circle at 50% 100%, rgba(180,83,9,0.08) 0%, transparent 45%),
      url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(180,83,9,0.10)' stroke-width='0.8'%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3Cline x1='10' y1='40' x2='70' y2='40'/%3E%3Cline x1='40' y1='10' x2='40' y2='70'/%3E%3Cline x1='19' y1='19' x2='61' y2='61'/%3E%3Cline x1='61' y1='19' x2='19' y2='61'/%3E%3C/g%3E%3C/svg%3E");
    padding: 48px 5vw 40px;
    position: relative;
    overflow: hidden;
  }

  /* marigold top border — matches footer */
  .cart-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
      transparent 0%,
      #b45309 15%,
      #ea580c 35%,
      #f59e0b 50%,
      #ea580c 65%,
      #b45309 85%,
      transparent 100%
    );
  }

  .cart-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 28px;
    background: var(--cream);
    clip-path: ellipse(55% 100% at 50% 100%);
  }

  .eyebrow {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .eyebrow::before, .eyebrow::after {
    content: '';
    display: block;
    height: 1px;
    width: 28px;
    background: linear-gradient(90deg, transparent, var(--gold));
  }
  .eyebrow::after { transform: scaleX(-1); }

  .cart-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 400;
    color: var(--temple);
    line-height: 1.15;
    margin: 0;
    letter-spacing: 0.03em;
  }
  .cart-title .count-pill {
    display: inline-flex;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--saffron);
    background: rgba(234,88,12,.1);
    border: 1px solid rgba(234,88,12,.25);
    border-radius: 999px;
    padding: 2px 12px;
    vertical-align: middle;
    margin-left: 14px;
    position: relative;
    top: -4px;
  }

  /* ── Body Layout ── */
  .cart-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 5vw 80px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
  }
  @media (max-width: 960px) {
    .cart-body { grid-template-columns: 1fr; }
  }

  /* ── Cards ── */
  .card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(234,88,12,.1);
  }

  /* ── Cart Item Cards ── */
  .item-list { display: flex; flex-direction: column; gap: 16px; }

  .cart-item {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(234,88,12,.12);
    box-shadow: var(--shadow-card);
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 16px;
    align-items: start;
    transition: box-shadow .2s, transform .2s;
    position: relative;
    overflow: hidden;
  }
  .cart-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--saffron), var(--gold));
    border-radius: 3px 0 0 3px;
  }
  .cart-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
  }

  .item-thumb {
    width: 76px; height: 76px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--cream-deep);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(234,88,12,.15);
  }
  .item-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .item-thumb .thumb-icon { font-size: 28px; }

  .item-body { min-width: 0; }

  .item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }

  .item-name {
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--temple);
    line-height: 1.3;
    letter-spacing: 0.01em;
  }

  .item-badge {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    margin-top: 4px;
    margin-right: 4px;
  }
  .badge-puja     { background: rgba(234,88,12,.08); color: var(--saffron); border: 1px solid rgba(234,88,12,.2); }
  .badge-physical { background: rgba(22,163,74,.08); color: var(--green-ok); border: 1px solid rgba(22,163,74,.2); }
  .badge-package  { background: rgba(180,83,9,.08);  color: var(--gold);    border: 1px solid rgba(180,83,9,.2); }

  .item-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }

  .meta-tag {
    font-family: 'Outfit', sans-serif;
    font-size: 11px;
    color: var(--stone);
    background: var(--cream-deep);
    border-radius: 6px;
    padding: 2px 8px;
    display: inline-flex; align-items: center; gap: 4px;
    white-space: nowrap;
    border: 1px solid rgba(234,88,12,.08);
  }

  /* ── Quantity Controls ── */
  .item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
  }

  .qty-form { display: flex; align-items: center; }

  .qty-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(234,88,12,.28);
    border-radius: 8px;
    overflow: hidden;
    background: var(--cream-deep);
  }
  .qty-btn {
    width: 34px; height: 34px;
    background: none; border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: 300;
    color: var(--temple-mid);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
    padding: 0;
  }
  .qty-btn:hover { background: rgba(234,88,12,.1); color: var(--saffron); }
  .qty-btn:disabled { opacity: .4; cursor: not-allowed; }

  .qty-input {
    width: 40px; height: 34px;
    border: none;
    border-left: 1.5px solid rgba(234,88,12,.2);
    border-right: 1.5px solid rgba(234,88,12,.2);
    background: #fff;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--temple);
    -moz-appearance: textfield;
    appearance: textfield;
  }
  .qty-input::-webkit-outer-spin-button,
  .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
  .qty-label { font-size: 12px; color: var(--stone); margin-right: 8px; font-weight: 400; font-family: 'Outfit', sans-serif; }

  .line-total {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--temple);
  }

  /* ── Remove Button ── */
  .remove-btn {
    background: none; border: none; cursor: pointer;
    color: var(--stone-muted);
    transition: color .2s, transform .2s;
    padding: 2px; display: flex; align-items: center; flex-shrink: 0;
  }
  .remove-btn:hover { color: var(--red-del); transform: scale(1.15); }

  /* ── Clear Cart ── */
  .clear-wrap { display: flex; justify-content: flex-end; padding-top: 6px; }
  .clear-btn {
    background: none; border: none; cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 12px; font-weight: 400;
    color: var(--stone-muted);
    text-decoration: underline; text-underline-offset: 3px;
    transition: color .2s;
    padding: 4px 0;
  }
  .clear-btn:hover { color: var(--red-del); }

  /* ── Order Summary ── */
  .summary-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid rgba(234,88,12,.14);
    box-shadow: var(--shadow-card);
    padding: 28px 24px;
    position: sticky;
    top: 80px;
    overflow: hidden;
  }

  /* marigold top accent on summary card */
  .summary-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg,
      transparent 0%,
      #b45309 15%,
      #ea580c 35%,
      #f59e0b 50%,
      #ea580c 65%,
      #b45309 85%,
      transparent 100%
    );
  }

  .summary-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--temple);
    margin-bottom: 24px;
    margin-top: 8px;
    display: flex; align-items: center; gap: 10px;
  }
  .summary-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(234,88,12,.3), transparent);
  }

  .summary-rows { margin-bottom: 18px; }
  .summary-row {
    display: flex; justify-content: space-between; align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 14px; color: var(--stone);
    padding: 7px 0;
    border-bottom: 1px dashed rgba(234,88,12,.12);
  }
  .summary-row:last-child { border-bottom: none; }
  .summary-row .val { color: var(--temple); font-weight: 500; }
  .summary-row .free { color: var(--green-ok); font-weight: 600; }

  .summary-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(234,88,12,.35), transparent);
    margin: 16px 0;
  }

  .summary-total {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 22px;
  }
  .total-label { font-family: 'Outfit', sans-serif; font-size: 14px; font-weight: 600; color: var(--temple); }
  .total-amount {
    font-family: 'Cinzel', serif;
    font-size: 2rem; font-weight: 600;
    color: var(--temple);
  }

  .btn-primary {
    display: block; width: 100%;
    text-align: center; text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 13px; font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 14px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
    color: #fff;
    border: none; cursor: pointer;
    box-shadow: 0 4px 18px rgba(234,88,12,.35);
    transition: box-shadow .2s, transform .2s, opacity .2s;
    margin-bottom: 10px;
  }
  .btn-primary:hover {
    box-shadow: 0 6px 28px rgba(234,88,12,.5);
    transform: translateY(-1px);
    opacity: .93;
  }

  .btn-outline {
    display: block; width: 100%;
    text-align: center; text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-size: 13px; font-weight: 400;
    padding: 11px 20px;
    border-radius: 8px;
    border: 1.5px solid rgba(234,88,12,.35);
    color: var(--temple-mid);
    background: transparent;
    transition: background .2s, border-color .2s;
  }
  .btn-outline:hover {
    background: var(--cream-deep);
    border-color: var(--saffron);
  }

  /* ── Trust Signals ── */
  .trust-list {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(234,88,12,.12);
    display: flex; flex-direction: column; gap: 9px;
  }
  .trust-item {
    display: flex; align-items: center; gap: 9px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px; color: var(--stone);
  }
  .trust-icon { width: 18px; height: 18px; flex-shrink: 0; }

  /* ── Empty State ── */
  .empty-state {
    text-align: center;
    padding: 80px 20px;
  }
  .empty-mandala {
    font-size: 72px;
    margin-bottom: 24px;
    display: block;
    animation: floatSymbol 4s ease-in-out infinite;
  }
  @keyframes floatSymbol {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
  }
  .empty-title {
    font-family: 'Cinzel', serif;
    font-size: 28px; font-weight: 400;
    color: var(--temple);
    letter-spacing: 0.03em;
    margin-bottom: 10px;
  }
  .empty-sub {
    font-family: 'Outfit', sans-serif;
    font-size: 15px; color: var(--stone);
    margin-bottom: 32px;
  }
  .empty-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
  .empty-actions .btn-primary,
  .empty-actions .btn-outline {
    width: auto; padding: 12px 28px;
    display: inline-block; text-decoration: none;
  }

  /* ── Divider ── */
  .rule-gold {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234,88,12,.3) 40%, rgba(234,88,12,.3) 60%, transparent);
  }

  /* ── Responsive tweaks ── */
  @media (max-width: 540px) {
    .cart-item { grid-template-columns: 60px 1fr; gap: 12px; padding: 14px 14px 14px 18px; }
    .item-thumb { width: 60px; height: 60px; }
    .item-name { font-size: 13px; }
    .line-total { font-size: 17px; }
  }