/* ============================================================
   GYAANSHALA — CART (shopping_cart.php / shopping_cart_inner_view.php)
   page-specific styles, Task 7 of the 2026-08-28 brand rebuild.

   Ported from the "cart" section of docs/design/artifacts/gyaanshala-cart.html
   (.shop two-column layout, .items list, .item rows, the empty state, the
   "Often bought together" suggestions grid and the .panel summary rail).
   Chrome (topbar/hdr/nav/ftr) and the shared primitives (buttons, .gs-wrap,
   .eyebrow, .sec-head, .badge, the .course-card family, .price) live in
   gs-brand.css, already linked on every page by includes_top.php -- this
   file only carries what is unique to the cart page.

   SCOPED UNDER .gsx, same convention every other gs-page-*.css file uses:
   every top-level selector starts with `.gsx`, no bare selector escapes it.
   `.banner`/`.crumbs`/`.grid` are re-declared here rather than shared --
   gs-page-courses.css and gs-page-home.css do the same, each page-css file
   owning its own copy so pages can be worked on independently (see those
   files' header comments). Checked against every legacy stylesheet loaded
   by includes_top.php (style.css, new-style.css, responsive.css, custom.css,
   the minified bootstrap/owl/fontawesome bundles) for a bare selector of the
   same name before introducing any class here -- none of .item/.items/.rail/
   .empty/.panel/.pill/.grid/.band/.coupon/.glyph/.sum-row/.sum-total/.savings/
   .gstnote/.paylogos/.trust collide, so no defensive reset is needed beyond
   the .course-card/.quote/.faq ones gs-brand.css already carries (the
   suggestions grid reuses .course-card verbatim).
   ============================================================ */

/* ---------- inner-page banner ---------- */
.gsx .banner{
  background:var(--ink);color:#fff;position:relative;overflow:hidden;padding:36px 0 40px;
}
.gsx .banner::before{
  content:"";position:absolute;inset:0;background-image:var(--booti);background-size:64px 64px;opacity:.15;
}
.gsx .banner-in{position:relative;z-index:2}
.gsx .banner h1{color:#fff;font-size:clamp(28px,4vw,44px);margin-top:12px}
.gsx .crumbs{font-size:13.5px;color:rgba(255,255,255,.6);display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.gsx .crumbs a:hover{color:var(--haldi-soft)}
.gsx .crumbs span{opacity:.5}

/* ---------- section shell ---------- */
.gsx .sec{padding:56px 0 72px}
@media(max-width:640px){.gsx .sec{padding:40px 0 54px}}

/* ---------- two-column shop layout ---------- */
.gsx .shop{display:grid;grid-template-columns:minmax(0,1fr) 372px;gap:36px;align-items:start}
/* minmax(0,1fr): a bare 1fr grows to the widest line's min-content and pushed both columns past a phone viewport */
@media(max-width:980px){.gsx .shop{grid-template-columns:minmax(0,1fr);gap:26px}}
.gsx .rail{position:sticky;top:96px}
@media(max-width:980px){.gsx .rail{position:static}}

/* ---------- items list ---------- */
.gsx .items{background:var(--white);border:1px solid var(--line);border-radius:var(--r-l);overflow:hidden}
.gsx .items-hd{
  padding:18px 24px;border-bottom:1px solid var(--line);background:var(--paper-2);
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.gsx .items-hd h2{font-size:19px}
.gsx .items-hd .n{font-size:14px;color:var(--ink-2);opacity:.75}

.gsx .item{
  display:grid;grid-template-columns:132px 1fr auto;gap:20px;padding:22px 24px;
  border-bottom:1px solid var(--line);align-items:start;
}
.gsx .item:last-child{border-bottom:0}
@media(max-width:640px){
  .gsx .item{grid-template-columns:88px 1fr;gap:14px}
  .gsx .item .item-price{grid-column:2;text-align:left;display:flex;align-items:center;gap:14px}
}
.gsx .item-art{
  aspect-ratio:1/1;border-radius:var(--r-m);display:block;position:relative;
  overflow:hidden;border:1px solid var(--line);background:var(--paper-2);
}
.gsx .item-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gsx .item h3{font-size:18px;line-height:1.24}
.gsx .item h3 a:hover{color:var(--indigo)}
.gsx .item-meta{display:flex;flex-wrap:wrap;gap:5px 14px;margin-top:9px;font-size:13px;color:var(--ink-2);opacity:.78}
.gsx .item-tags{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}
.gsx .pill{
  font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  border-radius:100px;padding:4px 10px;background:var(--neem-wash);color:var(--neem);border:1.2px solid var(--neem);
}
.gsx .item-acts{display:flex;gap:16px;margin-top:14px;font-size:13.5px;font-weight:650}
.gsx .item-acts .rm{color:var(--rose);text-decoration:underline;text-underline-offset:3px}
.gsx .item-acts .rm:hover{color:#8E2246}
.gsx .item-price{text-align:right;white-space:nowrap}
.gsx .item-price b{font-family:var(--display);font-size:24px;font-weight:800;letter-spacing:-.04em;display:block}
.gsx .item-price s{font-size:13.5px;color:var(--ink-2);opacity:.5}

/* ---------- empty state ---------- */
.gsx .empty{text-align:center;padding:60px 24px}
.gsx .empty .glyph{font-size:52px}
.gsx .empty h3{font-size:24px;margin-top:16px}
.gsx .empty p{margin-top:10px;color:var(--ink-2);opacity:.8;max-width:40ch;margin-inline:auto}
.gsx .empty-acts{margin-top:24px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

/* ---------- suggestions ("Often bought together") ---------- */
.gsx .suggest{margin-top:40px}
.gsx .suggest h2{font-size:24px;margin-bottom:8px}
.gsx .suggest .lede{color:var(--ink-2);opacity:.8;margin-bottom:22px;font-size:15.5px}
.gsx .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.gsx .grid-2{grid-template-columns:repeat(2,1fr)}
@media(max-width:1000px){.gsx .grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.gsx .grid,.gsx .grid-2{grid-template-columns:1fr;gap:18px}}
.gsx .suggest .course-card-art{background:var(--paper-2)}
.gsx .suggest .course-card-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}

/* ---------- order summary panel ---------- */
.gsx .panel{background:var(--white);border:1px solid var(--line);border-radius:var(--r-l);padding:26px}
.gsx .panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.gsx .panel-head h2{font-size:21px}

.gsx .sum-row{
  display:flex;align-items:baseline;justify-content:space-between;gap:14px;padding:11px 0;
  border-bottom:1px dashed var(--line);font-size:15px;
}
.gsx .sum-row .k{color:var(--ink-2);font-weight:550}
.gsx .sum-row .v{margin:0;font-weight:700;font-variant-numeric:tabular-nums}
.gsx .sum-row.is-off .v{color:var(--neem)}
.gsx .sum-total{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin-top:16px;padding-top:18px;border-top:2px solid var(--ink);
}
.gsx .sum-total .k{font-size:13px;letter-spacing:.12em;text-transform:uppercase;font-weight:700;color:var(--ink-2)}
.gsx .sum-total .v{
  font-family:var(--display);font-weight:800;font-size:32px;letter-spacing:-.04em;font-variant-numeric:tabular-nums;
}

.gsx .coupon{display:flex;gap:8px;margin-top:6px}
.gsx .coupon .input{flex:1;min-width:0;letter-spacing:.04em;font-weight:650}
.gsx .coupon-ok{
  background:var(--neem-wash);color:var(--neem);border-radius:10px;padding:10px 13px;
  font-size:13.5px;font-weight:650;margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.gsx .coupon-ok button{text-decoration:underline;text-underline-offset:3px;font-size:13px;color:inherit;opacity:.85}
.gsx .coupon-ok button:hover{opacity:1}
.gsx .coupon-bad{
  background:#FBE4EC;color:var(--rose);border-radius:10px;padding:10px 13px;
  font-size:13.5px;font-weight:600;margin-top:12px;display:flex;align-items:center;gap:8px;
}

.gsx .savings{
  background:var(--haldi-wash);border:1.3px solid var(--haldi);border-radius:var(--r-m);
  padding:13px 16px;font-size:14px;font-weight:650;margin-top:18px;display:flex;gap:10px;align-items:center;
}

.gsx .gstnote{font-size:12.5px;color:var(--ink-2);opacity:.7;line-height:1.5;margin-top:14px}
.gsx .paylogos{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.gsx .paylogo{
  border:1px solid var(--line);border-radius:7px;padding:6px 11px;font-size:11.5px;
  font-weight:700;color:var(--ink-2);background:var(--white);letter-spacing:.03em;
}
.gsx .trust{
  display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line);
  font-size:12.5px;color:var(--ink-2);opacity:.8;font-weight:600;
}
.gsx .trust span{display:inline-flex;align-items:center;gap:7px}
