/* Sakthi Mariammal — frontend UX overrides */

:root {
  --brand: #0f466b;
  --brand-dark: #093652;
  --accent: #f5a623;
  --red: #d32f2f;
  --red-dark: #b71c1c;
  --ok: #1b7a3d;
  --wa: #25d366;
  --beige: #f3ebe0;
  --text: #1a1a1a;
  --muted: #777;
  --cart-bar-h: 74px;
}

html { scroll-behavior: smooth; }

body {
  color: var(--text);
  overflow-x: hidden;
  background: #fafafa;
  padding-bottom: calc(var(--cart-bar-h) + 24px);
}

img { max-width: 100%; height: auto; }

.ltn__header-area .site-logo img {
  max-height: 110px;
  width: auto;
}

.ltn__header-middle-area .site-logo {
  display: flex;
  align-items: center;
}

.ltn__top-bar-menu marquee,
.ltn__top-bar-menu div {
  font-size: 14px !important;
  line-height: 1.4;
}

.order_cover_div { padding: 0 0 40px; max-width: 100%; }

.order-hero-banner {
  display: block;
  width: 100%;
/*  max-height: 220px;*/
  object-fit: cover;
  border-bottom: 3px solid var(--accent);
}

.order-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px;
}

.order-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 16px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e8e0d2;
  border-radius: 10px;
}

.order-toolbar .hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.order-search {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 360px;
  height: 42px;
  border: 1px solid #cdb98a;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
  background: #fff;
}

/* Hide leftover third-party chat widgets if cached */
#wh-widget-send-button,
.wh-widget-send-button-wrapper,
iframe[src*="getbutton.io"] {
  display: none !important;
}

.mobile-fabs {
  display: none;
}

.mobile-cart-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 70;
  background: var(--beige);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  min-height: var(--cart-bar-h);
}

.mcb-left { min-width: 0; }

.mcb-total {
  color: var(--red);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.mcb-meta {
  color: #666;
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}

.mcb-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.mcb-btn {
  border-radius: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
}

.mcb-cart {
  background: #fff;
  color: var(--red);
  border: 1.5px solid var(--red);
}

.mcb-checkout {
  background: var(--red);
  color: #fff;
  border: 1.5px solid var(--red);
}

.mobile-cart-bar.ready .mcb-checkout {
  box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
}

/* Cart drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 120;
}

.cart-drawer-overlay[hidden] { display: none !important; }

.cart-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  max-height: min(78vh, 640px);
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  transform: translateY(110%);
  transition: transform .25s ease;
}

.cart-drawer[hidden] { display: none !important; }
.cart-drawer.open {
  display: flex !important;
  transform: translateY(0);
}

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
}

.cart-drawer-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
}

.cart-drawer-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #f3f3f3;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cart-drawer-body {
  overflow-y: auto;
  padding: 8px 12px 12px;
  flex: 1 1 auto;
}

.cart-empty {
  text-align: center;
  color: #777;
  padding: 28px 12px;
  margin: 0;
  font-weight: 600;
}

.cart-item-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px 8px;
  align-items: center;
  padding: 12px 8px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-title {
  font-weight: 800;
  font-size: 13px;
  color: #111;
  text-transform: uppercase;
}

.cart-item-meta {
  font-size: 11px;
  color: #777;
  margin-top: 2px;
}

.cart-item-controls {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--red);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.cart-qty-btn {
  width: 30px;
  height: 32px;
  border: none;
  background: #fff;
  color: var(--red);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.cart-qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 800;
  font-size: 13px;
  border-left: 1px solid #f1c7c7;
  border-right: 1px solid #f1c7c7;
  padding: 0 4px;
}

.cart-item-total {
  font-weight: 800;
  color: var(--brand);
  min-width: 64px;
  text-align: right;
}

.cart-remove-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #f1b0b0;
  border-radius: 8px;
  background: #fff5f5;
  color: var(--red);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  padding: 0;
}

.cart-remove-btn:hover,
.cart-remove-btn:focus {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.cart-drawer-foot {
  border-top: 1px solid #eee;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fffaf5;
}

.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  margin-bottom: 4px;
}

.cart-drawer-total strong {
  color: var(--red);
  font-size: 20px;
}

.cart-drawer-note {
  margin: 0 0 10px;
  font-size: 12px;
  color: #888;
  font-weight: 600;
}

.cart-drawer-note.ok { color: #027d15; }

.cart-drawer-checkout {
  width: 100%;
  min-height: 46px;
}

body.cart-open { overflow: hidden; }

/* Category bar — single horizontal line on all devices */
.cat-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 10px 4px 12px;
  margin: 0 0 10px;
  background: #fff;
  border-bottom: 1px solid #eee;
  scrollbar-width: thin;
  white-space: nowrap;
}

.cat-bar::-webkit-scrollbar {
  height: 4px;
}

.cat-bar::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.cat-pill {
  flex: 0 0 auto;
  border: 1.5px solid var(--red);
  background: #fff;
  color: var(--red);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  white-space: nowrap;
  max-width: none;
  line-height: 1.2;
  cursor: pointer;
}

.cat-pill.active {
  background: var(--red);
  color: #fff;
}

table#order-table tr.row-hidden,
table#order-table tr.product-row.row-hidden,
table#order-table tr.category-row.row-hidden {
  display: none !important;
}

#showdist,
#showdis {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: min(520px, calc(100% - 16px));
  margin: 10px auto;
  padding: 12px 16px;
  background: linear-gradient(135deg, #c62828, #8e0000);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(140, 0, 0, 0.25);
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  z-index: 40;
}

#showdis.total-appear {
  position: fixed !important;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  margin: 0;
}

#showdist .net-only,
#showdis .net-only {
  width: 100%;
}

#showdist span,
#showdis span {
  display: inline-block;
  margin-left: 6px;
  color: #ffe082;
  font-size: 18px;
}

/* Product image lightbox */
.product-thumb-btn {
  border: none;
  background: #fff;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  display: inline-block;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #e0c989;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  vertical-align: middle;
}

.product-thumb-btn img,
img.cssbox_thumb.img-width.ss,
img.product-thumb-img {
  width: 52px !important;
  height: 52px !important;
  max-width: none !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
  border: none !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.product-thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1.5px dashed #d6c39a;
  background: #fff8e8;
  color: #b08940;
  font-size: 18px;
  vertical-align: middle;
}

.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 24px;
}

.product-lightbox[hidden] {
  display: none !important;
}

.product-lightbox-close {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 100001;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}

.product-lightbox-img {
  max-width: min(920px, 92vw);
  max-height: 80vh;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}

.product-lightbox-caption {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 700;
  margin: 0;
  text-align: center;
  max-width: 90%;
}

body.lightbox-open {
  overflow: hidden;
}

.order-table-shell {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #e8e0d2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

table#order-table {
  width: 100%;
  min-width: 640px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

table#order-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, #c62828 0%, #8e0000 100%) !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 8px !important;
  text-align: center;
  white-space: nowrap;
  border: none !important;
  letter-spacing: 0.3px;
}

table#order-table td {
  background: #fdb516d1 !important;
  color: #000 !important;
  vertical-align: middle !important;
  text-align: center;
  padding: 10px 8px !important;
  border-bottom: 1px solid #f0e0b8 !important;
  font-weight: 600 !important;
}

table#order-table tr:nth-child(odd) td,
table#order-table tr:nth-child(even) td {
  background: #fdb516d1 !important;
}

table#order-table tr.product-row:hover td {
  background: #ffc93d !important;
}

table#order-table tr.product-row.has-qty td {
  background: #ffe08a !important;
}

table#order-table tr.sub td,
table#order-table td.product_name.category_name {
  background: linear-gradient(90deg, #0f466b 0%, #165a85 100%) !important;
  color: #fff !important;
  text-align: center !important;
  padding: 10px 12px !important;
  cursor: pointer;
  user-select: none;
}

table#order-table tr.category-row:hover td {
  filter: brightness(1.08);
}

table#order-table .catname-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

table#order-table .catname {
  font-size: 15px;
  line-height: 1.3;
  display: inline-block;
  text-align: center;
}

table#order-table .cat-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  flex: 0 0 auto;
}

table#order-table .cat-toggle i {
  font-size: 12px;
  color: #fff;
}

table#order-table tr.category-row.is-collapsed .cat-toggle {
  background: rgba(255,255,255,.28);
}

table#order-table tr.product-row.cat-collapsed {
  display: none !important;
}

table#order-table .product-title {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  color: #000;
  text-align: left;
  font-weight: 800;
  text-transform: uppercase;
}

table#order-table .product-unit {
  display: inline-block;
  margin-top: 3px;
  font-size: 12px;
  color: #333;
  font-weight: 600;
  text-align: left;
  text-transform: none;
}

table#order-table .price-mrp {
  color: #c62828;
  text-decoration: line-through;
  font-size: 13px;
  font-weight: 600;
}

table#order-table .price-offer {
  color: #027d15;
  font-size: 15px;
  font-weight: 800;
}

.mobile-price-stack { display: none; }
.desktop-offer-price { display: inline; }

table#order-table .line-total {
  color: var(--brand);
  font-weight: 800;
  min-width: 64px;
  display: inline-block;
}

img.cssbox_thumb.img-width.ss {
  width: 48px !important;
  height: 48px !important;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.qty-group {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  user-select: none;
  position: relative;
  min-width: 96px;
}

.qty-add-btn {
  display: none;
  min-width: 72px;
  height: 34px;
  border: 1.5px solid var(--red);
  background: var(--red);
  color: #fff;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.4px;
  padding: 0 12px;
  cursor: pointer;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--red);
  border-radius: 6px;
  overflow: hidden;
  height: 34px;
  background: #fff;
}

.qty-btn {
  width: 32px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  color: var(--red);
  line-height: 1;
}

.qty-btn:active { background: #ffeaea; }
.qty-btn i { font-size: 12px; }

.qty_control {
  width: 36px !important;
  height: 34px;
  text-align: center;
  border: none !important;
  border-left: 1px solid #f1c7c7 !important;
  border-right: 1px solid #f1c7c7 !important;
  outline: none;
  font-weight: 800;
  background: #fff;
  color: #111;
  margin: 0 !important;
  padding: 0 !important;
  -moz-appearance: textfield;
  border-radius: 0 !important;
}

.qty_control::-webkit-outer-spin-button,
.qty_control::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.customer-details-card,
.bank-details-card,
.terms-card {
  margin-top: 18px;
  background: #fff;
  border: 1px solid #ebe4d8;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.customer-details-card h3,
.bank-details-card h4,
.terms-card h5 {
  margin: 0 0 14px;
  color: var(--brand);
  font-weight: 800;
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.customer-grid .form-group { margin-bottom: 0; }
.customer-grid .form-group.full { grid-column: 1 / -1; }

.customer-grid label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--brand-dark);
}

.customer-grid .form-control,
.customer-grid textarea {
  width: 100%;
  border: 1px solid #d8d0c2;
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 15px;
  margin: 0 !important;
  background: #fff;
}

.customer-grid textarea {
  min-height: 96px;
  resize: vertical;
}

.order-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.min-order-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

#submit_btns,
.btn-green-orange {
  min-width: 180px;
  min-height: 48px;
  border: none;
  border-radius: 10px !important;
  background: linear-gradient(135deg, var(--red), var(--red-dark)) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  padding: 12px 22px !important;
  box-shadow: 0 8px 18px rgba(211, 47, 47, 0.28);
}

#submit_btns[disabled] {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.bank-details-card p { margin: 0 0 8px; line-height: 1.5; }
.terms-card ul { margin: 0; padding-left: 18px; }
.terms-card li { margin-bottom: 6px; line-height: 1.45; }

.strikeout {
  color: #9aa0a6;
  text-decoration: line-through;
}

.strikeout::after { display: none; }

/* =========================
   MOBILE — match attachment
   ========================= */
@media (max-width: 767px) {
  body {
    background: #fff;
    padding-bottom: calc(var(--cart-bar-h) + 18px);
  }

  .desktop-only,
  #showdist.desktop-only,
  #showdis.desktop-only {
    display: none !important;
  }

  .ltn__header-area .site-logo img { max-height: 88px; }

  .ltn__header-middle-area .row {
    justify-content: center;
    align-items: center;
  }

  .ltn__header-middle-area .row > .col {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
  }

  .ltn__header-middle-area .site-logo {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .ltn__header-middle-area .site-logo a {
    display: inline-block;
  }

  .ltn__header-middle-area .ltn__header-options {
    display: none;
  }

  .mobile-header-menu-fullwidth { display: none !important; }
  /*.order-hero-banner { max-height: 120px; }*/
  .order-page-wrap { padding: 0; }

  .cat-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 10px 12px 8px;
    margin: 0;
    scrollbar-width: none;
  }

  .cat-bar::-webkit-scrollbar { display: none; }

  .cat-pill {
    font-size: 12px;
    padding: 8px 14px;
  }

  .order-table-shell {
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    background: #fdb516d1;
  }

  table#order-table {
    min-width: 0 !important;
    width: 100%;
  }

  table#order-table thead { display: none; }
  table#order-table tbody { display: block; }

  table#order-table tr.category-row {
    display: block !important;
    width: 100%;
    margin: 0;
    cursor: pointer;
  }

  table#order-table tr.category-row.row-hidden {
    display: none !important;
  }

  table#order-table tr.category-row td {
    display: block !important;
    width: 100% !important;
    padding: 12px !important;
  }

  table#order-table .catname {
    font-size: 13px;
  }

  table#order-table tr.product-row.cat-collapsed {
    display: none !important;
  }

  table#order-table tr.product-row {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px 10px;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #f0e0b8 !important;
    background: #fdb516d1 !important;
  }

  table#order-table tr.product-row.has-qty {
    background: #ffe08a !important;
  }

  table#order-table tr.product-row td {
    display: block !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    text-align: left !important;
    width: auto !important;
    color: #000 !important;
  }

  table#order-table tr.product-row td.col-discount,
  table#order-table tr.product-row td.col-total,
  table#order-table tr.product-row td.col-mrp {
    display: none !important;
  }

  table#order-table tr.product-row td.col-image {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 56px !important;
    min-width: 56px !important;
    grid-column: 1;
  }

  table#order-table tr.product-row td.col-name {
    min-width: 0;
    grid-column: 2;
  }

  table#order-table tr.product-row td.col-offer {
    text-align: right !important;
    min-width: 64px;
    grid-column: 3;
  }

  table#order-table tr.product-row td.col-qty {
    justify-self: end;
    grid-column: 4;
  }

  .product-thumb-btn,
  .product-thumb-placeholder {
    display: block !important;
    width: 52px !important;
    height: 52px !important;
    visibility: visible !important;
  }

  .product-thumb-btn img,
  img.cssbox_thumb.img-width.ss,
  img.product-thumb-img {
    width: 52px !important;
    height: 52px !important;
    max-width: none !important;
    object-fit: cover !important;
    display: block !important;
    visibility: visible !important;
  }

  .desktop-offer-price { display: none !important; }

  .mobile-price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }

  .mobile-price-stack .price-mrp {
    display: block;
    font-size: 11px;
    color: #c62828;
    text-decoration: line-through;
    font-weight: 600;
    line-height: 1.1;
  }

  .mobile-price-stack .price-offer {
    display: block;
    font-size: 14px;
    color: #027d15;
    font-weight: 800;
    line-height: 1.1;
  }

  table#order-table .product-title {
    font-size: 12px;
    line-height: 1.3;
    color: #000;
  }

  table#order-table .product-unit {
    font-size: 10px;
    color: #333;
  }

  .qty-group { min-width: 88px; }

  .qty-group.qty-zero .qty-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .qty-group.qty-zero .qty-stepper { display: none; }
  .qty-group.qty-active .qty-add-btn { display: none; }
  .qty-group.qty-active .qty-stepper { display: inline-flex; }

  .qty-stepper { height: 36px; border-radius: 6px; }
  .qty-btn { width: 30px; height: 36px; }
  .qty_control { width: 34px !important; height: 36px; font-size: 14px; }
  .qty-add-btn { height: 36px; min-width: 70px; border-radius: 6px; }

  .customer-grid { grid-template-columns: 1fr; }

  .customer-details-card,
  .bank-details-card,
  .terms-card {
    margin: 14px 12px;
    padding: 14px;
    border-radius: 10px;
  }

  #submit_btns,
  .btn-green-orange { width: 100%; }

  .order-submit-row {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-fabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: fixed;
    right: 12px;
    bottom: calc(var(--cart-bar-h) + 18px);
    z-index: 60;
  }

  .fab {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    border: none;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    text-decoration: none !important;
    font-size: 18px;
    cursor: pointer;
  }

  .fab.show {
    display: inline-flex;
  }

  .fab-top { background: #6b7280; }
  .fab-call { background: var(--red); }
  .fab-wa { background: var(--wa); }

  /* At page top: only WhatsApp visible */
  .mobile-fabs:not(.scrolled) .fab-wa { display: inline-flex; }
  .mobile-fabs:not(.scrolled) .fab-call,
  .mobile-fabs:not(.scrolled) .fab-top { display: none; }

  /* On scroll: hide WhatsApp + phone; show scroll-top only */
  .mobile-fabs.scrolled .fab-wa,
  .mobile-fabs.scrolled .fab-call { display: none !important; }
  .mobile-fabs.scrolled .fab-top.show { display: inline-flex; }

  .mobile-cart-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 70;
    background: var(--beige);
    border-radius: 14px;
    padding: 10px 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    min-height: var(--cart-bar-h);
  }

  .mcb-left { min-width: 0; }

  .mcb-total {
    color: var(--red);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
  }

  .mcb-meta {
    color: #666;
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
  }

  .mcb-actions {
    display: flex;
    gap: 8px;
    flex: 0 0 auto;
  }

  .mcb-btn {
    border-radius: 8px;
    min-height: 40px;
    padding: 0 14px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
  }

  .mcb-cart {
    background: #fff;
    color: var(--red);
    border: 1.5px solid var(--red);
  }

  .mcb-checkout {
    background: var(--red);
    color: #fff;
    border: 1.5px solid var(--red);
  }

  .mobile-cart-bar.ready .mcb-checkout {
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.35);
  }
}

@media (max-width: 380px) {
  .mcb-total { font-size: 18px; }
  .mcb-btn { padding: 0 10px; font-size: 13px; }
  .cat-pill { font-size: 11px; padding: 7px 11px; }
  table#order-table .product-title { font-size: 11px; }

  table#order-table tr.product-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas:
      "img name name"
      "img price qty";
    row-gap: 6px;
  }

  table#order-table tr.product-row td.col-image { grid-area: img; width: 48px !important; }
  table#order-table tr.product-row td.col-name { grid-area: name; }
  table#order-table tr.product-row td.col-offer { grid-area: price; justify-self: start; text-align: left !important; }
  table#order-table tr.product-row td.col-qty { grid-area: qty; }

  .product-thumb-btn,
  img.cssbox_thumb.img-width.ss {
    width: 44px !important;
    height: 44px !important;
  }

  .mobile-price-stack { align-items: flex-start; }
}
