.cart-mobile-cards {
            display: none;
          }

          #cart-table .text-muted,
          #cart-table .text-muted.text-decoration-line-through {
            color: #888 !important;
          }

          @media (max-width: 767.98px) {
            .cart-mobile-card-title {
              width: 90%;
            }

            .cart-mobile-qty input {
              padding: 0 !important;
            }

            .cart-desktop-table {
              display: none !important;
            }

            .cart-mobile-cards {
              display: block !important;
            }

            .cart-mobile-card {
              background-color: var(--card-bg) !important;
              border-radius: 12px;
              box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
              margin-bottom: 16px;
              overflow: hidden;
              border-color: var(--border) !important;
            }

            .cart-mobile-card-body {
              display: flex;

              padding: 12px;
              gap: 12px;
            }

            .cart-mobile-card-img {
              width: 90px;
              height: 90px;
              flex-shrink: 0;
              border-radius: 8px;
              overflow: hidden;
              background: #f5f5f5;
            }

            .cart-mobile-card-img img {
              width: 100%;
              height: 100%;
              object-fit: cover;
            }

            .cart-mobile-card-info {
              flex: 1;
              min-width: 0;
            }

            .cart-mobile-card-title {
              font-weight: 600;
              font-size: 15px;
              color: var(--text);
              margin-bottom: 4px;
              text-decoration: none;
              display: block;
              overflow: hidden;
              text-overflow: ellipsis;

            }

            .cart-mobile-card-variant {
              font-size: 13px;
              color: #888;
              margin-bottom: 6px;
            }

            .cart-mobile-card-price {
              font-size: 16px;
              font-weight: 700;
              color: var(--text);
            }

            .cart-mobile-card-price .original-price {
              font-size: 13px;
              color: #aaa;
              text-decoration: line-through;
              margin-right: 6px;
              font-weight: 400;
            }

            .cart-mobile-card-addons {
              font-size: 12px;
              color: #666;
              margin-top: 4px;
            }

            .cart-mobile-card-footer {
              display: flex;
              align-items: center;
              justify-content: space-between;
              color: var(--text);
              padding: 10px 12px;
              background-color: var(--navbar-bg) !important;
              border-color: var(--border) !important;
            }

            .cart-mobile-qty {
              display: flex;
              align-items: center;
              gap: 0;
              background-color: var(--card-bg) !important;
              border-radius: 8px;
              border-color: var(--border) !important;
              overflow: hidden;
            }

            .cart-mobile-qty button {
              width: 36px;
              height: 36px;
              border: none;
              background: transparent;
              font-size: 18px;
              font-weight: 600;
              color: #333;
              cursor: pointer;
              transition: background 0.2s;
            }

            .cart-mobile-qty button:hover {
              background: #f0f0f0;
            }

            .cart-mobile-qty input {
              width: 48px;
              height: 36px;
              border: none;
              border-left: 1px solid #eee;
              border-right: 1px solid #eee;
              background-color: var(--navbar-bg) !important;
              text-align: center;
              font-size: 15px;
              font-weight: 500;
              color: var(--text);
              -moz-appearance: textfield;
            }

            .cart-mobile-qty input::-webkit-outer-spin-button,
            .cart-mobile-qty input::-webkit-inner-spin-button {
              -webkit-appearance: none;
              margin: 0;
            }

            .cart-mobile-total {
              text-align: right;
            }

            .cart-mobile-total-label {
              font-size: 11px;
              color: #888;
              text-transform: uppercase;
            }

            .cart-mobile-total-value {
              font-size: 17px;
              font-weight: 700;
              color: var(--text);
            }

            .cart-mobile-remove {
              position: absolute;
              top: 8px;
              right: 8px;
              width: 28px;
              height: 28px;
              border-radius: 50%;
              border: none;
              background-color: var(--navbar-bg) !important;
              border-color: var(--border) !important;
              box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
              color: #dc3545;
              cursor: pointer;
              display: flex;
              align-items: center;
              justify-content: center;
              font-size: 14px;
              transition: all 0.2s;
            }

            .cart-mobile-remove:hover {
              background: #dc3545;
              color: #fff;
            }

            .cart-mobile-card-wrapper {
              position: relative;
            }
          }
.global-upsell-section {
    padding: 40px 0;
    width: 100%;
    --upsell-card-bg: var(--card-bg, var(--bg2, var(--color-two, var(--bg-color, transparent))));
    --upsell-text: var(--text, var(--text-color, var(--white-color, var(--bs-body-color, currentColor))));
    --upsell-border: var(--border, var(--white-color-opacity-four, rgba(128, 128, 128, 0.2)));
    --upsell-accent: var(--main-color, var(--theme-color, var(--accent, var(--accent-color, var(--primary-color, var(--tf-primary, var(--bs-primary, #db541f)))))));
  }

  .global-upsell-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--upsell-text);
  }

  .global-upsell-carousel {
    position: relative;

  }

  .global-upsell-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .global-upsell-grid::-webkit-scrollbar {
    display: none;
  }

  .global-upsell-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--upsell-btn-bg, var(--upsell-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: opacity 0.2s, filter 0.2s, transform 0.2s;
    font-size: 18px;
    line-height: 1;
  }

  .global-upsell-arrow:hover {
    filter: brightness(0.95);
  }

  .global-upsell-arrow.prev {
    left: 6px;
  }

  .global-upsell-arrow.next {
    right: 6px;
  }

  .global-upsell-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
  }

  .global-upsell-arrow svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  @media (max-width: 767.98px) {
    .global-upsell-carousel {
      padding: 0;
    }

    .global-upsell-arrow {
      display: none !important;
    }

    .global-upsell-grid {
      scroll-snap-type: none;
    }
  }

  .global-upsell-card {
    flex: 0 0 240px;
    width: 240px;
    /* Fixed height so every card is identical — variable vs simple, and no
     reflow when the button label changes to "Added!". Content that overflows
     is clipped by the fixed height; the actions row stays pinned to the bottom. */
    height: 360px;
    box-sizing: border-box;
    scroll-snap-align: start;
    background: var(--upsell-card-bg);
    border: 1px solid var(--upsell-border);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
    color: var(--upsell-text);
  }

  .global-upsell-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  }

  .global-upsell-img-wrap {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    background: rgba(128, 128, 128, 0.12);
    cursor: pointer;
  }

  .global-upsell-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Wishlist heart overlay — matches the theme's product-card icons: a white
   circle by default, and a FILLED theme-accent circle (white heart) on hover
   and when wishlisted. */
  .upsell-wishlist-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    /* Default (NOT wishlisted): white circle, dark heart. */
    background: #ffffff;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s, background 0.15s, color 0.15s;
  }

  .upsell-wishlist-btn:hover {
    transform: scale(1.08);
    /* Filled accent circle + white heart, like the theme's card icons on hover. */
    background: var(--upsell-accent);
    color: #fff;
  }

  /* Wishlisted: filled accent circle with a white heart. */
  .upsell-wishlist-btn.is-wished {
    background: var(--upsell-accent);
    color: #fff;
  }

  .global-upsell-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--upsell-text);
    min-height: 38px;
    cursor: pointer;
    transition: color 0.15s;
  }

  .global-upsell-name:hover {
    color: var(--upsell-accent);
  }

  .global-upsell-desc {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.7;
    color: var(--upsell-text);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .global-upsell-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--upsell-text);
    margin-bottom: 12px;
    margin-top: auto;
    /* pushes price + actions block to the bottom of the card */
  }

  .global-upsell-price .upsell-old-price {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 0.8em;
    margin-left: 6px;
    font-weight: 500;
  }

  /* Action row: quantity stepper (left) + add/select button (right). Fixed
   height so a simple card (stepper + button) and a variable card (button only)
   occupy the exact same space, and the row never reflows on label changes. */
  .upsell-card-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    height: 40px;
    flex: 0 0 40px;
  }

  .upsell-card-actions .global-upsell-btn {
    flex: 1;
    /* button fills the rest of the row */
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Keep the label readable inside the narrow card row (the theme's .btn-dark
     uppercases + adds larger padding; tighten it here). */
    padding: 0 8px !important;
    font-size: 12px !important;
    letter-spacing: 0.3px;
    border-radius: 8px !important;
  }

  /* Per-card quantity stepper for simple products. Theme-aware borders/text. */
  .upsell-card-qty {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    border: 1.5px solid var(--upsell-border);
    border-radius: 8px;
    overflow: hidden;
  }

  .upsell-card-qty button {
    width: 26px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--upsell-text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    flex: 0 0 auto;
  }

  .upsell-card-qty button:hover {
    background: rgba(128, 128, 128, 0.12);
  }

  .upsell-card-qty input {
    width: 24px;
    height: 38px;
    border: none;
    background: transparent;
    color: var(--upsell-text);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    -moz-appearance: textfield;
  }

  .upsell-card-qty input::-webkit-outer-spin-button,
  .upsell-card-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
  }

  .upsell-incart-btn,
  .upsell-modal-add.is-incart {
    cursor: default;
    opacity: 0.45;
  }

  .upsell-incart-btn {
    pointer-events: none;
  }

  /* The button reuses the theme's own button classes (btn btn-dark
   btn-hover-primary) so it inherits the exact accent, hover and contrast the
   theme defines for its "Proceed to Checkout" button. We only enforce layout
   here (full width) and provide a themed fallback for when the active theme
   does NOT style .btn-dark (e.g. non-restaurant themes) via the CSS-variable
   accent below, kept at low specificity so the theme's rules win. */
  .global-upsell-btn {
    width: 100%;
    cursor: pointer;
    text-align: center;
  }

  /* Fallback appearance only when the theme leaves .btn-dark unstyled. Uses
   :where() to keep specificity at 0 so any real theme button rule overrides it. */
  :where(.global-upsell-btn) {
    padding: 10px;
    background: var(--upsell-btn-bg, var(--upsell-accent));
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    transition: opacity 0.2s, filter 0.2s;
  }

  :where(.global-upsell-btn):hover {
    opacity: 0.92;
    filter: brightness(0.95);
  }

  /* ── Variant selection modal (matches the site's product quick-view) ── */
  .upsell-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10800;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
  }

  .upsell-modal-overlay.open {
    display: flex;
  }

  .upsell-modal {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 16px;
    background: var(--card-bg, var(--color-two, #fff));
    color: var(--upsell-text);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
  }

  .upsell-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    flex: 0 0 auto;
    background: var(--card-bg, var(--color-two, #fff));
    border-bottom: 1px solid var(--upsell-border);
  }

  .upsell-modal-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .upsell-modal-veg-icon {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border: 1.5px solid #16a34a;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .upsell-modal-veg-icon::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
  }

  .upsell-modal-close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(128, 128, 128, 0.14);
    color: var(--upsell-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .upsell-modal-media {
    position: relative;
    background: rgba(128, 128, 128, 0.1);
    width: 100%;
    height: 230px;
    flex: 0 0 230px;
    display: flex;
    border-radius: 0px !important;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .upsell-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* crop to fill — never stretches the modal */
  }

  .upsell-modal-body {
    padding: 18px 22px 22px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* scroll internally if variant list is long */
    min-height: 0;
  }

  .upsell-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--upsell-text);
  }

  .upsell-modal-desc {
    font-size: 13.5px;
    line-height: 1.5;
    opacity: 0.75;
    margin-bottom: 14px;
    color: var(--upsell-text);
  }

  .upsell-modal-label {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--upsell-text);
  }

  .upsell-variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
  }

  .upsell-variant-pill {
    border: 1.5px solid var(--upsell-border);
    background: transparent;
    color: var(--upsell-text);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
  }

  .upsell-variant-pill.active {
    border-color: var(--upsell-accent);
    box-shadow: 0 0 0 1px var(--upsell-accent) inset;
  }

  .upsell-variant-pill:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  /* Add-ons: theme-aware pills (wrap like the variant pills). Clicking a pill
   toggles its active state; the hidden checkbox tracks selection. */
  .upsell-modal-addons-section {
    margin-bottom: 18px;
  }

  .upsell-addons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .upsell-addon-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1.5px solid var(--upsell-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--upsell-text);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  }

  .upsell-addon-item.active {
    border-color: var(--upsell-accent);
    box-shadow: 0 0 0 1px var(--upsell-accent) inset;
  }

  .upsell-addon-item input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--upsell-accent);
    flex: 0 0 auto;
    cursor: pointer;
    margin: 0;
  }

  .upsell-addon-item img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
    flex: 0 0 auto;
  }

  .upsell-addon-name {
    font-weight: 600;
  }

  .upsell-addon-price {
    font-weight: 700;
    opacity: 0.85;
    white-space: nowrap;
  }

  .upsell-modal-price {
    font-size: 21px;
    font-weight: 800;
    color: var(--upsell-accent);
    margin-bottom: 10px;
  }

  .upsell-modal-price .upsell-old-price {
    font-size: 0.65em;
    color: var(--upsell-text);
    opacity: 0.6;
    margin-left: 8px;
  }

  .upsell-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--upsell-border);
    flex-wrap: nowrap;
  }

  .upsell-qty {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    border: 1.5px solid var(--upsell-border);
    border-radius: 10px;
    overflow: hidden;
  }

  .upsell-qty button {
    width: 38px;
    height: 46px;
    border: none;
    background: transparent;
    color: var(--upsell-text);
    font-size: 18px;
    cursor: pointer;
  }

  .upsell-qty input {
    width: 40px;
    height: 46px;
    border: none;
    background: transparent;
    color: var(--upsell-text);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    -moz-appearance: textfield;
  }

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

  .upsell-modal-add {
    flex: 1;
    min-width: 0;
    height: 46px;
    border-radius: 10px;
    font-size: 14px;
  }

  @media (max-width: 640px) {
    .upsell-modal {
      max-width: 100%;
      max-height: 92vh;
    }

    .upsell-modal-media {
      height: 200px;
      flex-basis: 200px;
    }
  }