/* =====================================================================
   SikhoStore — Site stylesheet
   Brand: #1E40AF (primary), #F59E0B (accent), #0F172A (dark), #F8FAFC (bg)
   Loaded AFTER Bootstrap 5.3 so it overrides where needed.
   ===================================================================== */

:root {
  --ss-primary: #1E40AF;
  --ss-primary-600: #1D3FAE;
  --ss-primary-700: #1A3690;
  --ss-primary-50:  #EFF2FB;
  --ss-accent: #F59E0B;
  --ss-accent-600: #D97706;
  --ss-dark: #0F172A;
  --ss-muted: #475569;
  --ss-light-bg: #F8FAFC;
  --ss-border: #E2E8F0;
  --ss-radius: 12px;
  --ss-radius-sm: 8px;
  --ss-shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --ss-shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, .10), 0 8px 10px -6px rgba(15, 23, 42, .06);

  --bs-primary: var(--ss-primary);
  --bs-primary-rgb: 30, 64, 175;
  --bs-link-color: var(--ss-primary);
  --bs-link-hover-color: var(--ss-primary-700);
  --bs-body-color: var(--ss-dark);
  --bs-body-bg: #ffffff;
  --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html, body { height: 100%; }
body {
  font-family: var(--bs-body-font-family);
  color: var(--ss-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;        /* defensive: any decorative element off-screen never causes horizontal scroll */
}
main { flex: 1 0 auto; }

/* Bootstrap 5 has no `.min-w-0` utility (only `.mw-100` for max-width) — but
   the markup uses `min-w-0` on flex children throughout (cart, checkout,
   addon offers, dashboard, downloads, tickets) to let long product titles
   shrink/wrap inside their flex box instead of overflowing it. Without this,
   those children default to `min-width: auto` and push title text outside
   the card on narrow viewports. */
.min-w-0 { min-width: 0; }

/* Long words / URLs in user-supplied copy must wrap, never overflow */
h1, h2, h3, h4, .product-title, .lead, .quote, .breadcrumb-item {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* --------- BUTTONS --------- */
.btn { font-weight: 500; border-radius: var(--ss-radius-sm); padding: .55rem 1.1rem; }
.btn-lg { padding: .85rem 1.5rem; }
.btn-primary { background: var(--ss-primary); border-color: var(--ss-primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--ss-primary-700); border-color: var(--ss-primary-700); }
.btn-accent { background: var(--ss-accent); border-color: var(--ss-accent); color: #fff; }
.btn-accent:hover, .btn-accent:focus { background: var(--ss-accent-600); border-color: var(--ss-accent-600); color: #fff; }
.btn-outline-primary { color: var(--ss-primary); border-color: var(--ss-primary); }
.btn-outline-primary:hover { background: var(--ss-primary); color: #fff; }
.btn { min-height: 44px; }    /* mobile-friendly tap target */

/* --------- NAVBAR --------- */
.navbar-brand img {
  height: 72px;            /* desktop: full brand mark + tagline read at a glance */
  width: auto;
  max-height: 72px;
  display: block;
}
.navbar-ss {
  background: #fff;
  border-bottom: 1px solid var(--ss-border);
  box-shadow: 0 1px 0 rgba(15,23,42,.02);
  padding-top: .35rem; padding-bottom: .35rem;
}
.navbar-ss .nav-link { color: var(--ss-dark); font-weight: 500; }
.navbar-ss .nav-link:hover, .navbar-ss .nav-link.active { color: var(--ss-primary); }

.cart-icon-wrap { position: relative; }
.cart-icon-wrap .cart-badge {
  position: absolute; top: -6px; right: -8px;
  background: var(--ss-accent); color: #fff;
  font-size: .68rem; font-weight: 700;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; line-height: 18px; text-align: center;
}

/* --------- HERO --------- */
.hero {
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 55%, #2563EB 100%);
  color: #fff;
  padding: 4rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; right: -150px; top: -150px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, .25), transparent 60%);
  pointer-events: none;
}
.hero h1 { font-weight: 800; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.2; }
.hero .lead { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 620px; }
.hero .badge-strip { color: rgba(255,255,255,.85); font-size: .85rem; gap: 1rem; }
.hero .badge-strip > div { white-space: normal; }
.hero .badge-strip i { color: var(--ss-accent); }

/* --------- SECTIONS --------- */
.section { padding: 3.5rem 0; }
.section-title {
  font-weight: 700; margin-bottom: 2rem; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 48px; height: 3px;
  background: var(--ss-accent); margin-top: .6rem; border-radius: 2px;
}
.section-title.text-center::after { margin-left: auto; margin-right: auto; }
.bg-light-ss { background: var(--ss-light-bg); }

/* --------- CATEGORY CARD --------- */
.category-card {
  display: block;
  background: #fff;
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  color: var(--ss-dark);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ss-shadow-lg);
  border-color: var(--ss-primary);
  color: var(--ss-primary);
}
.category-card .cat-icon {
  width: 56px; height: 56px; line-height: 56px;
  border-radius: 14px; margin: 0 auto .9rem;
  background: var(--ss-primary-50); color: var(--ss-primary);
  font-size: 1.6rem;
}
.category-card h6 { font-weight: 600; margin-bottom: .25rem; }
.category-card p { color: var(--ss-muted); font-size: .85rem; margin: 0; }

/* --------- PRODUCT CARD --------- */
.product-card {
  background: #fff;
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius);
  overflow: hidden;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .2s ease;
  height: 100%;
  width: 100%;
  min-width: 0;
  display: flex; flex-direction: column;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 35px -10px rgba(15, 23, 42, .15), 0 8px 12px -6px rgba(15, 23, 42, .08);
  border-color: transparent;
}

/* --- THUMBNAIL --- */
.product-card .product-thumb {
  display: block; position: relative; padding-top: 62%;
  background: var(--ss-light-bg);
  overflow: hidden;
}
.product-card .product-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,.04));
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
.product-card:hover .product-thumb::after { opacity: 1; }

.product-card .product-thumb img,
.product-card .product-thumb svg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.product-card:hover .product-thumb img,
.product-card:hover .product-thumb svg { transform: scale(1.06); }

/* --- DISCOUNT BADGE (top-right) --- */
.product-card .product-thumb .badge-discount {
  position: absolute; top: 10px; right: 10px;
  background: var(--ss-accent); color: #fff;
  font-size: .72rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px;
  box-shadow: 0 4px 8px -2px rgba(245, 158, 11, .45);
  z-index: 2;
}

/* --- RIBBON (top-left): Featured / Best Seller --- */
.product-card .ribbon {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 999px;
  z-index: 2;
}
.product-card .ribbon i { font-size: .85rem; }
.product-card .ribbon-featured {
  background: linear-gradient(135deg, #1E40AF, #2563EB);
  color: #fff; box-shadow: 0 4px 8px -2px rgba(30, 64, 175, .45);
}
.product-card .ribbon-bestseller {
  background: linear-gradient(135deg, #DC2626, #F59E0B);
  color: #fff; box-shadow: 0 4px 8px -2px rgba(245, 158, 11, .35);
}

/* --- BODY --- */
.product-card .product-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }

.product-card .product-category {
  display: inline-block;
  color: var(--ss-primary);
  font-size: .68rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  text-decoration: none; margin-bottom: .35rem;
  background: var(--ss-primary-50);
  padding: 2px 8px; border-radius: 4px;
}
.product-card .product-category:hover { background: var(--ss-primary); color: #fff; }

.product-card .product-title {
  font-size: 1rem; font-weight: 600; color: var(--ss-dark);
  text-decoration: none; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em;
  margin-bottom: .15rem;
}
.product-card .product-title:hover { color: var(--ss-primary); }

.product-card .product-meta { color: var(--ss-muted); font-size: .82rem; margin: .2rem 0 .55rem; }
.product-card .product-meta .text-accent { color: var(--ss-accent); }

.product-card .price-block { display: flex; align-items: baseline; gap: .45rem; margin-bottom: .35rem; flex-wrap: wrap; }
.product-card .price { font-weight: 800; font-size: 1.2rem; color: var(--ss-primary); letter-spacing: -.5px; }
.product-card .mrp { color: var(--ss-muted); text-decoration: line-through; font-size: .85rem; }

.product-card .product-foot-meta {
  display: flex; flex-wrap: wrap; gap: .25rem .8rem;
  font-size: .73rem; color: var(--ss-muted);
  margin-bottom: .85rem;
}
.product-card .product-foot-meta .save-amt { color: #16A34A; font-weight: 600; }
.product-card .product-foot-meta .sales-count { color: var(--ss-muted); }
.product-card .product-foot-meta i { font-size: .8rem; }

.product-card .actions { margin-top: auto; display: flex; gap: .4rem; }
.product-card .actions .btn { flex: 1; padding: .55rem .5rem; font-size: .88rem; border-radius: 8px; min-height: 40px; }
.product-card .actions .btn-primary { font-weight: 600; }
.product-card .actions .btn-outline-primary { font-weight: 500; }

/* --------- RATING STARS --------- */
.rating-stars { color: var(--ss-accent); white-space: nowrap; }
.rating-stars .bi { font-size: .9rem; }

/* --------- TRUST STRIP --------- */
.trust-card {
  text-align: center; padding: 1.5rem 1rem;
  border: 1px solid var(--ss-border); border-radius: var(--ss-radius);
  background: #fff; height: 100%;
}
.trust-card .icon {
  width: 60px; height: 60px; line-height: 60px;
  background: var(--ss-primary-50); color: var(--ss-primary);
  border-radius: 50%; margin: 0 auto 1rem; font-size: 1.6rem;
}
.trust-card h6 { font-weight: 600; }
.trust-card p { color: var(--ss-muted); font-size: .9rem; margin: 0; }

/* --------- TESTIMONIALS --------- */
.testimonial-card {
  background: #fff; border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius); padding: 1.75rem;
}
.testimonial-card .quote { color: var(--ss-muted); font-style: italic; }
.testimonial-card .author { font-weight: 600; color: var(--ss-dark); }
.testimonial-card .author small { color: var(--ss-muted); font-weight: 400; }

/* --------- FOOTER --------- */
.site-footer {
  background: var(--ss-dark); color: rgba(255,255,255,.75);
  padding: 3rem 0 1.25rem; margin-top: 3rem;
}
.site-footer h6 { color: #fff; font-weight: 600; margin-bottom: 1rem; letter-spacing: .3px; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--ss-accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: .25rem 0; font-size: .92rem; }
.site-footer .social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); margin-right: .4rem; color: #fff;
}
.site-footer .social-links a:hover { background: var(--ss-accent); }
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 2rem; padding-top: 1.25rem;
  font-size: .85rem; color: rgba(255,255,255,.5);
}
.payment-icons { color: rgba(255,255,255,.6); font-size: 1.7rem; }
.payment-icons i + i { margin-left: .55rem; }

/* --------- PRODUCT DETAIL --------- */
.product-detail-thumb {
  border: 1px solid var(--ss-border); border-radius: var(--ss-radius);
  overflow: hidden; background: var(--ss-light-bg); aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
}
.product-detail-thumb img, .product-detail-thumb svg {
  max-width: 100%; max-height: 100%;
  transition: opacity .2s ease;
}

/* Product gallery — clickable thumbnail strip below the main image */
.gallery-strip {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.gallery-thumb {
  width: 72px; height: 56px;
  padding: 0; background: var(--ss-light-bg);
  border: 2px solid var(--ss-border); border-radius: 8px;
  overflow: hidden; cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.gallery-thumb:hover { border-color: var(--ss-muted); transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--ss-primary); box-shadow: 0 2px 6px -1px rgba(30,64,175,.25); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.youtube-wrap {
  position: relative; padding-top: 56.25%; height: 0;
  border-radius: var(--ss-radius); overflow: hidden; margin-top: 1rem;
}
.youtube-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.price-tag .price { font-size: 2.1rem; font-weight: 800; color: var(--ss-primary); }
.price-tag .mrp { color: var(--ss-muted); text-decoration: line-through; font-size: 1.1rem; margin-left: .5rem; }
.price-tag .savings { color: #16A34A; font-weight: 600; margin-left: .5rem; font-size: .95rem; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: .4rem 0; color: var(--ss-muted); }
.feature-list li::before {
  content: '\F26B'; font-family: 'bootstrap-icons';
  color: #16A34A; margin-right: .5rem;
}
.nav-tabs .nav-link {
  color: var(--ss-muted); font-weight: 500; border: 0;
  border-bottom: 2px solid transparent; padding: .85rem 1.25rem;
}
.nav-tabs .nav-link.active {
  color: var(--ss-primary); background: transparent;
  border-bottom-color: var(--ss-primary);
}

/* --------- BREADCRUMB --------- */
.breadcrumb { background: transparent; padding: 1rem 0; margin-bottom: 0; font-size: .9rem; }
.breadcrumb a { color: var(--ss-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ss-primary); }
.breadcrumb-item.active { color: var(--ss-dark); }

/* --------- CART / TABLES --------- */
.cart-row {
  border-bottom: 1px solid var(--ss-border);
  padding: 1rem 0;
  min-width: 0;            /* defensive: ensures the row itself can shrink inside the card on narrow viewports */
}
.cart-row:last-child { border-bottom: 0; }
.cart-thumb {
  width: 80px; height: 80px; border-radius: var(--ss-radius-sm);
  background: var(--ss-light-bg); overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.cart-thumb img, .cart-thumb svg { width: 100%; height: 100%; object-fit: cover; }

/* Title: clamp to 2 lines instead of single-line ellipsis so long
   product names stay readable on mobile (e.g. "1500+ Website & Web App
   Source Codes — Mega Bundle"). overflow-wrap lets us break impossibly
   long words too. */
.cart-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.cart-row-body { min-width: 0; }       /* required for the clamp to actually clip inside a flex child */
.cart-row-remove .btn { min-height: 32px; }   /* override the global 44px-min so the trash button doesn't bloat the row */
.cart-subtext {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Checkout summary mini-cart row — same clamp idea but tighter (44px thumb,
   smaller font, 2-line cap so long product names don't overflow the rail). */
.summary-thumb { width: 44px; height: 44px; flex-shrink: 0; }
.summary-item-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* my-tickets: subject line clamped to 2 lines (was single-line ellipsis
   which dropped half the subject on phones). */
.ticket-subject-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.ticket-thread-title {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.3;
}

/* Product detail h1 — responsive font scale + word-break so 60-char
   product names like "1500+ Website & Web App Source Codes — Mega Bundle"
   never overflow the column on mobile. clamp() keeps the type fluid. */
.product-detail-title {
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(1.35rem, 4.5vw, 2.1rem);
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  margin-bottom: .65rem;
}
@media (max-width: 575.98px) {
  .product-detail-title { font-size: 1.35rem; line-height: 1.25; }
}

/* Page header h1 + breadcrumbs: long product names in breadcrumbs used to
   overflow on narrow viewports. Now they wrap. */
.page-header h1 { overflow-wrap: anywhere; word-break: break-word; line-height: 1.2; }
.page-header .breadcrumb { flex-wrap: wrap; overflow-wrap: anywhere; }
.page-header .breadcrumb-item { white-space: normal; }

/* Defensive: ANY .table-responsive should let the scroller take over — this
   prevents wide admin tables (orders, users, abandoned-carts) from pushing
   the whole admin-main wider than the viewport. */
.table-responsive { max-width: 100%; }
@media (max-width: 575.98px) {
  .table-responsive table { white-space: nowrap; }   /* easier to scroll than wrapped cells */
}
.summary-card {
  background: #fff; border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius); padding: 1.5rem; position: sticky; top: 90px;
}
.summary-row { display: flex; justify-content: space-between; padding: .35rem 0; }
.summary-row.total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--ss-border); margin-top: .5rem; padding-top: .8rem; }

/* --------- FILTERS SIDEBAR --------- */
.filters-card {
  background: #fff; border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius); padding: 1.25rem;
}
.filters-card h6 { font-weight: 600; margin-top: 1.25rem; margin-bottom: .75rem; font-size: .95rem; }
.filters-card h6:first-child { margin-top: 0; }
.filters-card .form-check { margin-bottom: .4rem; }
.filters-card .form-check-label { color: var(--ss-muted); font-size: .92rem; cursor: pointer; }
.filters-card .form-check-input:checked + .form-check-label { color: var(--ss-dark); }

/* Desktop sidebar stays in view while the product grid scrolls — keeps the
   filter form reachable without it eating into the page like a full block */
.shop-sidebar-sticky { position: sticky; top: 90px; }

/* Off-canvas filter drawer (mobile/tablet): the shared filters-card form is
   reused inside it, so strip its own box chrome to blend with the drawer body */
.offcanvas-body .filters-card { border: 0; padding: 0; }

/* --------- LEGAL / STATIC PAGES --------- */
.page-header {
  background: var(--ss-light-bg);
  border-bottom: 1px solid var(--ss-border);
  padding: 2.5rem 0 1.5rem;
}
.page-header h1 { font-weight: 700; margin: 0; }
.prose h2 { font-size: 1.4rem; font-weight: 600; margin: 2rem 0 .75rem; color: var(--ss-dark); }
.prose h3 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 .5rem; color: var(--ss-dark); }
.prose p, .prose li { color: var(--ss-muted); line-height: 1.75; }

/* --------- EMPTY STATES --------- */
.empty-state {
  text-align: center; padding: 4rem 1rem; color: var(--ss-muted);
}
.empty-state i { font-size: 4rem; color: var(--ss-border); display: block; margin-bottom: 1rem; }
.empty-state h4 { color: var(--ss-dark); font-weight: 600; }

/* --------- FORMS --------- */
.form-control, .form-select {
  border-radius: var(--ss-radius-sm);
  border-color: var(--ss-border);
  padding: .65rem .9rem;
  font-size: .95rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ss-primary);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, .12);
}
label.form-label { font-weight: 500; color: var(--ss-dark); margin-bottom: .35rem; }

/* --------- MOBILE STICKY ACTION BAR (product detail, app-style) --------- */
.mobile-actionbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1040;                              /* above sticky navbar's z-index 1020 */
  background: #fff;
  border-top: 1px solid var(--ss-border);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .08);
  padding: .75rem 1rem;
  padding-bottom: calc(.75rem + env(safe-area-inset-bottom));  /* iPhone notch */
  display: flex;
  align-items: center;
  gap: .65rem;
}
.mobile-actionbar .mab-price {
  display: flex; flex-direction: column;
  flex-shrink: 0; min-width: 0; line-height: 1.1;
}
.mobile-actionbar .mab-amount {
  font-size: 1.15rem; font-weight: 800; color: var(--ss-primary);
}
.mobile-actionbar .mab-mrp {
  font-size: .72rem; color: var(--ss-muted); text-decoration: line-through;
  margin-top: 2px;
}
.mobile-actionbar .mab-saving {
  font-size: .68rem; color: #16A34A; font-weight: 700;
  margin-top: 1px;
}
.mobile-actionbar .mab-actions {
  margin-left: auto;
  display: flex; gap: .4rem; align-items: center;
}
.mobile-actionbar .mab-icon-btn {
  width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.mobile-actionbar .mab-buy-btn {
  height: 44px; padding: 0 1rem;
  font-weight: 700; font-size: .95rem;
  white-space: nowrap;
}

/* Pages that render the sticky bar reserve bottom space so the content
   above never gets hidden behind it. Only applies < lg (where the bar shows). */
@media (max-width: 991.98px) {
  body.has-mobile-actionbar main { padding-bottom: 96px; }
}

/* --------- RESPONSIVE TWEAKS --------- */
@media (max-width: 575.98px) {
  .hero { padding: 2.5rem 0; }
  .hero h1 { font-size: 1.55rem; }
  .hero .lead { font-size: .95rem; }
  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.35rem; margin-bottom: 1.5rem; }

  /* Full-width product cards on phones — title can flow up to 3 lines
     since we have the whole row, no min-height clamp needed */
  .product-card .product-body { padding: .8rem .85rem .9rem; }
  .product-card .product-title { font-size: 1.05rem; min-height: 0; -webkit-line-clamp: 3; }
  .product-card .price { font-size: 1.25rem; }
  /* Tight horizontal button padding so Add+Buy Now both fit on a 360px phone */
  .product-card .actions { gap: .35rem; }
  .product-card .actions .btn { padding: .6rem .5rem; font-size: .9rem; min-height: 42px; }

  .container { padding-left: 1rem; padding-right: 1rem; }
  .navbar-brand img { height: 56px; max-height: 56px; }
}

/* --------- UTILITY --------- */
.text-accent { color: var(--ss-accent) !important; }
.bg-accent { background: var(--ss-accent) !important; }
.border-top-accent { border-top: 3px solid var(--ss-accent); }
.cursor-pointer { cursor: pointer; }
.text-primary { color: var(--ss-primary) !important; }

/* =====================================================================
   ADDON OFFER POPUP — limited 5-min upsell on the cart page
   ===================================================================== */
/* "Add all offers" callout — sits above the grid when there's more than
   one eligible add-on, so buyers can grab the whole bundle in one click
   instead of submitting each card separately. */
.addon-add-all {
  background: linear-gradient(135deg, rgba(22,163,74,.08) 0%, rgba(30,64,175,.08) 100%);
  border: 1px dashed var(--ss-primary);
  border-radius: var(--ss-radius-sm);
}

.addon-offer-card {
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-sm);
  padding: 14px;
  background: #fff;
  transition: box-shadow .15s, border-color .15s, transform .15s;
}
.addon-offer-card:hover {
  border-color: var(--ss-primary);
  box-shadow: 0 4px 14px rgba(30, 64, 175, .12);
}
.addon-offer-thumb {
  width: 72px; height: 72px;
  border-radius: var(--ss-radius-sm);
  overflow: hidden;
  background: var(--ss-light-bg);
  display: block;
}
.addon-offer-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.addon-offer-title {
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.addon-offer-price .fs-4 { line-height: 1.1; }

/* Pulsing timer badge so the urgency is hard to miss */
#addonTimerBadge {
  font-weight: 700;
  letter-spacing: .5px;
  animation: addonPulse 1.4s ease-in-out infinite;
}
@keyframes addonPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}

@media (max-width: 575.98px) {
  #addonOfferModal .modal-dialog { margin: .5rem; }
  #addonOfferModal .modal-header { flex-wrap: wrap; gap: .5rem; }
  #addonOfferModal .modal-title { font-size: 1.05rem; }
  .addon-offer-thumb { width: 64px; height: 64px; }
  .addon-offer-price .fs-4 { font-size: 1.25rem !important; }
}

/* =====================================================================
   USER DASHBOARD — purchase cards, ticket cards, mobile-friendly nav
   ===================================================================== */

/* Left nav: vertical on desktop, fit-all 4-col grid on mobile (no scrolling).
   Each tab becomes an icon-on-top, label-below button — all 4 fit even on
   a 320 px iPhone SE with full names visible. */
@media (max-width: 991.98px) {
  .dash-nav-card {
    background: transparent;
    box-shadow: none !important;
  }
  .dash-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .dash-nav .list-group-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .25rem;
    padding: .7rem .35rem;
    border: 1px solid var(--ss-border) !important;
    border-radius: var(--ss-radius-sm) !important;
    background: #fff;
    color: var(--ss-dark);
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.15;
    min-height: 64px;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  }
  .dash-nav .list-group-item i {
    margin: 0 !important;
    font-size: 1.25rem;
    color: var(--ss-muted);
  }
  .dash-nav .list-group-item span {
    display: block;
  }
  .dash-nav .list-group-item:hover {
    border-color: var(--ss-primary);
    color: var(--ss-primary);
  }
  .dash-nav .list-group-item.active {
    background: var(--ss-primary);
    border-color: var(--ss-primary) !important;
    color: #fff;
    box-shadow: 0 2px 8px rgba(30,64,175,.3);
  }
  .dash-nav .list-group-item.active i,
  .dash-nav .list-group-item:hover i { color: inherit; }
}
/* 320 px iPhone SE: squeeze a touch more */
@media (max-width: 374.98px) {
  .dash-nav { gap: .35rem; }
  .dash-nav .list-group-item { padding: .55rem .25rem; font-size: .72rem; min-height: 58px; }
  .dash-nav .list-group-item i { font-size: 1.1rem; }
}

/* My downloads — grid of cards (replaces wide table on mobile) */
.purchase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .purchase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  .purchase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.purchase-card {
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius);
  padding: 1rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  transition: box-shadow .15s, border-color .15s;
}
.purchase-card:hover {
  border-color: var(--ss-primary-50);
  box-shadow: var(--ss-shadow-lg);
}
.purchase-card-head {
  display: flex; align-items: flex-start; gap: .8rem;
}
.purchase-thumb {
  width: 60px; height: 60px;
  border-radius: var(--ss-radius-sm);
  overflow: hidden;
  background: var(--ss-light-bg);
  flex-shrink: 0;
}
.purchase-thumb img { width: 100%; height: 100%; object-fit: cover; }
.purchase-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ss-dark);
  line-height: 1.35;
}
.purchase-sub { margin-top: .25rem; font-size: .82rem; }
.purchase-actions { margin-top: auto; }
.purchase-downloads .btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: .9rem;
  padding: .55rem .8rem;
  min-height: 42px;
}

/* =====================================================================
   DASHBOARD — top action strip (always visible, mobile-friendly)
   ===================================================================== */
.dash-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
@media (min-width: 768px) {
  .dash-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.dash-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .25rem;
  background: #fff;
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius);
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: var(--ss-dark);
  transition: border-color .15s, box-shadow .15s, transform .1s, background .15s;
  min-height: 96px;
}
.dash-action:hover {
  border-color: var(--ss-primary);
  background: var(--ss-primary-50);
  color: var(--ss-primary);
  box-shadow: 0 6px 18px rgba(30,64,175,.12);
  transform: translateY(-1px);
}
.dash-action i { font-size: 1.6rem; color: var(--ss-primary); }
.dash-action:hover i { color: var(--ss-primary-700); }
.dash-action span { font-weight: 600; font-size: 1rem; line-height: 1.2; }
.dash-action-meta {
  display: block;
  font-size: .78rem;
  color: var(--ss-muted);
  margin-top: .15rem;
}
.dash-action:hover .dash-action-meta { color: var(--ss-primary); }

/* Clickable stat cards — same visual but with a subtle hover lift */
.stat-card-link { text-decoration: none; color: inherit; display: block; }
.stat-card-link .card { transition: border-color .15s, box-shadow .15s, transform .1s; cursor: pointer; }
.stat-card-link:hover .card {
  border-color: var(--ss-primary-50) !important;
  box-shadow: 0 6px 18px rgba(30,64,175,.10);
  transform: translateY(-1px);
}

/* Overview mini-cards (latest order + latest download) */
.overview-mini-card {
  background: var(--ss-light-bg);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-sm);
  padding: 1rem;
  height: 100%;
}
.overview-mini-label {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ss-muted);
  margin-bottom: .4rem;
  letter-spacing: .3px;
}

/* =====================================================================
   DASHBOARD — Orders list
   ===================================================================== */
.order-list { display: flex; flex-direction: column; gap: 1rem; }
.order-card {
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius);
  background: #fff;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.order-card:hover { border-color: var(--ss-primary-50); box-shadow: var(--ss-shadow); }
.order-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.1rem .6rem;
  border-bottom: 1px dashed var(--ss-border);
}
.order-num { font-weight: 700; color: var(--ss-primary); letter-spacing: .3px; }
.order-card-body { padding: .8rem 1.1rem; }
.order-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.order-meta > div { min-width: 0; }
.order-card-foot {
  padding: .65rem 1.1rem 1rem;
  border-top: 1px solid var(--ss-border);
  background: var(--ss-light-bg);
}

/* Items nested inside an order card (with their download buttons inline) */
.order-items { padding: 0 1.1rem 1rem; }
.order-item {
  padding: .75rem 0;
  border-top: 1px solid var(--ss-border);
}
.order-item:first-child { border-top: 0; padding-top: 0; }
.order-item-head {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .5rem;
}
.order-item-thumb { width: 48px !important; height: 48px !important; }
.order-item-title {
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.order-item-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding-left: calc(48px + .75rem);   /* line up under the title, past the thumb */
}
.order-item-downloads .btn .dl-label {
  display: inline-block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 575.98px) {
  .order-items { padding: 0 .9rem .9rem; }
  .order-item-downloads { padding-left: 0; }    /* on phones, downloads wrap full-width under */
  .order-item-downloads .btn { flex: 1 1 calc(50% - .25rem); justify-content: center; }
  .order-item-downloads .btn .dl-label { max-width: none; }
}
@media (max-width: 575.98px) {
  .order-card-head { padding: .8rem .9rem .55rem; }
  .order-card-body { padding: .65rem .9rem; }
  .order-meta { gap: .9rem; }
  .order-meta .fs-5 { font-size: 1.05rem !important; }
}

/* Ticket card list (mobile-first) */
.ticket-list {
  display: flex; flex-direction: column; gap: .6rem;
}
.ticket-row {
  display: block;
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-sm);
  padding: .85rem 1rem;
  background: #fff;
  color: var(--ss-dark);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.ticket-row:hover {
  border-color: var(--ss-primary);
  background: var(--ss-light-bg);
  color: var(--ss-dark);
}
.ticket-row-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .5rem;
}
.ticket-num { font-weight: 700; font-size: .85rem; letter-spacing: .3px; color: var(--ss-primary); }
.ticket-subject { font-weight: 500; margin: .35rem 0 .25rem; }
.ticket-meta i { vertical-align: -1px; }

/* =====================================================================
   TICKETS — chat-app style (master/detail; mobile = full-screen panes)
   ===================================================================== */

/* Hide the public page-header bar when we're rendering chat UI so the chat
   pane uses the full screen estate (especially on mobile). */
.has-chat-ui .page-header,
.has-chat-ui main > .container > .alert { /* keep flashes inside .container only */ }
.has-chat-ui main { padding-bottom: 0 !important; background: var(--ss-light-bg); }

.chat-shell {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  /* viewport-minus-navbar so the thread fills the screen, sticky composer pinned */
  height: calc(100dvh - 72px);
}
.chat-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: 100%;
  border: 1px solid var(--ss-border);
  border-radius: 0;
  overflow: hidden;
}
@media (min-width: 992px) {
  .chat-shell { margin: 1rem auto; height: calc(100dvh - 110px); }
  .chat-grid  { border-radius: var(--ss-radius); box-shadow: var(--ss-shadow); }
}

/* === LIST PANE === */
.chat-list-pane {
  border-right: 1px solid var(--ss-border);
  display: flex;
  flex-direction: column;
  background: #fff;
  min-width: 0;
  overflow: hidden;
}
.chat-list-header {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--ss-border);
  background: #fff;
  flex-shrink: 0;
}
.chat-list { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.chat-list-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--ss-border);
  color: var(--ss-dark);
  text-decoration: none;
  transition: background .12s;
}
.chat-list-row:hover { background: var(--ss-light-bg); color: var(--ss-dark); }
.chat-list-row.is-active {
  background: var(--ss-primary-50);
  color: var(--ss-dark);
  border-left: 3px solid var(--ss-primary);
  padding-left: calc(1rem - 3px);
}
.chat-list-body { flex: 1; min-width: 0; }
.chat-list-top, .chat-list-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.chat-list-name {
  font-weight: 600; font-size: .95rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.chat-list-time { font-size: .72rem; color: var(--ss-muted); flex-shrink: 0; }
.chat-list-preview {
  font-size: .85rem; color: var(--ss-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0; margin-top: .15rem;
}
.chat-list-meta { font-size: .7rem; color: var(--ss-muted); flex-shrink: 0; margin-top: .15rem; }
.chat-list-row.is-unread .chat-list-name { color: var(--ss-primary); }
.chat-list-row.is-unread .chat-list-preview { color: var(--ss-dark); font-weight: 500; }
.chat-unread-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--ss-primary); flex-shrink: 0; margin-top: .25rem;
}

/* === AVATAR (used in list rows + thread header) === */
.chat-avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; font-weight: 600;
}
.chat-avatar-sm { width: 36px; height: 36px; font-size: 1rem; }

/* === THREAD PANE === */
.chat-thread-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--ss-light-bg);
  overflow: hidden;
}
.chat-thread-header {
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem 1rem;
  background: #fff;
  border-bottom: 1px solid var(--ss-border);
  flex-shrink: 0;
}
.chat-back-btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--ss-dark); text-decoration: none;
  font-size: 1.2rem;
  transition: background .12s;
  flex-shrink: 0;
}
.chat-back-btn:hover { background: var(--ss-light-bg); color: var(--ss-primary); }
.chat-thread-title {
  font-weight: 600; font-size: .98rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-thread-sub {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: .75rem;
}

/* === MESSAGE BUBBLES === */
.chat-stream {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  display: flex; flex-direction: column; gap: .5rem;
  /* subtle dotted bg like WhatsApp */
  background-image: radial-gradient(circle at 1px 1px, rgba(15,23,42,.04) 1px, transparent 0);
  background-size: 16px 16px;
}
.chat-day {
  text-align: center;
  margin: .5rem 0 .25rem;
}
.chat-day span {
  display: inline-block;
  background: rgba(255,255,255,.85);
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ss-muted);
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}
.chat-bubble-row {
  display: flex;
}
.chat-bubble-row-in  { justify-content: flex-start; }
.chat-bubble-row-out { justify-content: flex-end; }
.chat-bubble {
  max-width: 78%;
  padding: .55rem .8rem .35rem;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 1px rgba(15,23,42,.06);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.chat-bubble-in {
  background: #fff;
  color: var(--ss-dark);
  border-top-left-radius: 4px;
}
.chat-bubble-out {
  background: var(--ss-primary);
  color: #fff;
  border-top-right-radius: 4px;
}
.chat-bubble-name {
  font-size: .72rem;
  font-weight: 700;
  color: var(--ss-primary);
  margin-bottom: .15rem;
}
.chat-bubble-text { white-space: pre-wrap; }
.chat-bubble-time {
  font-size: .68rem;
  margin-top: .15rem;
  text-align: right;
  opacity: .75;
}
.chat-bubble-out .chat-bubble-time { color: rgba(255,255,255,.85); }
.chat-bubble-in  .chat-bubble-time { color: var(--ss-muted); }

/* === COMPOSER (sticky bottom input) === */
.chat-composer {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  padding: .5rem .65rem calc(.5rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--ss-border);
  flex-shrink: 0;
}
.chat-composer-input {
  flex: 1;
  resize: none;
  border: 1px solid var(--ss-border);
  border-radius: 22px;
  padding: .65rem 1rem;
  background: var(--ss-light-bg);
  font-size: .95rem;
  line-height: 1.4;
  max-height: 160px;
  overflow-y: auto;
  outline: none;
  transition: border-color .12s, box-shadow .12s, background .12s;
  min-height: 44px;
}
.chat-composer-input:focus {
  border-color: var(--ss-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30,64,175,.12);
}
.chat-send-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--ss-primary);
  color: #fff;
  font-size: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background .12s, transform .08s;
}
.chat-send-btn:hover { background: var(--ss-primary-700); }
.chat-send-btn:active { transform: scale(.95); }

.chat-composer.chat-closed {
  display: block;
  padding: 1rem;
  color: var(--ss-muted);
  font-size: .9rem;
  text-align: center;
  background: var(--ss-light-bg);
}

/* === MOBILE: master/detail (one pane at a time) === */
@media (max-width: 991.98px) {
  /* Go full-screen like a real chat app — the site navbar would otherwise
     eat ~70px of the one screen this UI has and force an awkward scroll
     down into the marketing footer just to reach the composer. */
  body.has-chat-ui .navbar-ss { display: none; }

  .chat-shell {
    height: 100dvh;
    margin: 0 !important;
  }
  body.has-chat-ui main {
    padding: 0 !important;
    background: #fff;
  }
  /* Hide flash messages inside chat UI since the composer is sticky-bottom */
  body.has-chat-ui main > .container { display: none; }

  .chat-grid {
    grid-template-columns: 1fr;
    border-radius: 0;
    border: 0;
    height: 100%;
  }

  /* When viewing a thread on mobile, hide the list pane entirely */
  body.chat-thread-open .chat-list-pane { display: none; }
  /* When NO thread is selected, hide the (empty) thread pane */
  body.chat-list-only   .chat-thread-pane { display: none; }
}

/* Tiny screens: tighter bubble + composer */
@media (max-width: 575.98px) {
  .chat-bubble { max-width: 85%; font-size: .9rem; }
  .chat-stream { padding: .75rem; }
  .chat-composer-input { font-size: 16px; }   /* iOS won't zoom on focus when ≥16px */
}

/* =====================================================================
   DOWNLOAD CHOOSER (download.php with multiple URLs)
   ===================================================================== */
.download-link-card {
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-sm);
  background: #fff;
  color: var(--ss-dark);
  transition: border-color .15s, background .15s, box-shadow .15s;
  min-height: 76px;
}
.download-link-card:hover {
  border-color: var(--ss-primary);
  background: var(--ss-primary-50);
  color: var(--ss-dark);
  box-shadow: 0 4px 14px rgba(30, 64, 175, .08);
}
.download-link-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ss-primary-50);
  color: var(--ss-primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* =====================================================================
   ADMIN — extra polish for the multi-row download / addon editors
   ===================================================================== */
.download-row, .addon-row {
  background: var(--ss-light-bg);
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-sm);
  padding: .55rem .75rem;
}
@media (max-width: 575.98px) {
  .download-row .col-md-1, .addon-row .col-md-1 { text-align: left !important; }
}

/* =====================================================================
   GENERIC MOBILE POLISH
   ===================================================================== */
@media (max-width: 575.98px) {
  /* Stats row gets tighter so 3 cards fit before they wrap */
  .card-body .fs-3 { font-size: 1.3rem !important; }
  .page-header h1 { font-size: 1.5rem; }
  .summary-card .total { font-size: 1.05rem; }

  /* Cart rows on phones (≤ 575.98 px):
       - smaller thumb so the title gets more room
       - tighter gap
       - title clamps to 2 lines via .cart-title (set above)
       - trash button align-top so it doesn't tug the whole row vertically */
  .cart-row { padding: .85rem 0; gap: .75rem !important; }
  .cart-thumb { width: 64px; height: 64px; }
  .cart-title { font-size: .95rem; }
  .cart-row-remove { align-self: flex-start; padding-top: .1rem; }
}
