/* ==========================================================================
   VM Impex — B2B Enquiry Cart Foundation Styles
   Scoped strictly with .vmg-cart-* classes to avoid global CSS conflicts.
   Palette mirrors site-redesign.css (--vmg-green, --vmg-green-dark, --vmg-lime,
   --vmg-coir, --vmg-cream, --vmg-ink, --vmg-muted).
   ========================================================================== */

:root {
  --vmg-cart-green: var(--vmg-green, #236342);
  --vmg-cart-green-dark: var(--vmg-green-dark, #123b29);
  --vmg-cart-lime: var(--vmg-lime, #9bb946);
  --vmg-cart-coir: var(--vmg-coir, #9f5226);
  --vmg-cart-cream: var(--vmg-cream, #f7f5ee);
  --vmg-cart-ink: var(--vmg-ink, #14231b);
  --vmg-cart-muted: var(--vmg-muted, #637267);
  --vmg-cart-border: rgba(20, 35, 27, 0.14);
  --vmg-cart-shadow: 0 18px 40px rgba(18, 59, 41, 0.18);
  --vmg-cart-font: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------------------
   Reusable Trigger Buttons / Links (Inline, Header, Floating)
   -------------------------------------------------------------------------- */
.vmg-cart-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--vmg-cart-font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(18, 59, 41, 0.22);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--vmg-cart-green-dark);
  background-color: #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.vmg-cart-trigger:hover,
.vmg-cart-trigger:focus-visible {
  background-color: var(--vmg-cart-cream);
  border-color: var(--vmg-cart-green);
  color: var(--vmg-cart-green-dark);
  outline: none;
}

.vmg-cart-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(35, 99, 66, 0.24);
}

.vmg-cart-icon {
  flex: 0 0 auto;
  display: block;
}

.vmg-cart-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Count Badge */
.vmg-cart-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  background-color: var(--vmg-cart-green);
  color: #ffffff;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.vmg-cart-count-badge.is-empty {
  background-color: rgba(20, 35, 27, 0.12);
  color: var(--vmg-cart-muted);
}

/* Header Variant */
.vmg-cart-trigger--header {
  padding: 8px 14px;
  font-size: 13px;
  background-color: rgba(255, 255, 255, 0.94);
  border-color: rgba(18, 59, 41, 0.16);
}

/* Floating Bottom-Left Access Button
   Kept strictly on bottom-left so it never overlaps existing bottom-right
   WhatsApp / Phone .floating-buttons (right: 30px; bottom: 50px; z-index: 2147483647).
   z-index 4500 sits below slide-over nav drawers (.sheet-panel: 9998). */
.vmg-cart-float-btn {
  display: none !important;
  position: fixed;
  left: 24px;
  right: auto;
  bottom: 28px;
  z-index: 4500;
  padding: 11px 18px;
  background-color: var(--vmg-cart-green-dark);
  border: 1px solid rgba(155, 185, 70, 0.45);
  color: #ffffff;
  box-shadow: var(--vmg-cart-shadow);
}

.vmg-cart-float-btn:hover,
.vmg-cart-float-btn:focus-visible {
  background-color: var(--vmg-cart-green);
  border-color: var(--vmg-cart-lime);
  color: #ffffff;
  transform: translateY(-2px);
}

.vmg-cart-float-btn .vmg-cart-count-badge {
  background-color: var(--vmg-cart-lime);
  color: var(--vmg-cart-ink);
}

.vmg-cart-float-btn .vmg-cart-count-badge.is-empty {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Reusable Compact Preview List ([data-vmg-cart-preview])
   -------------------------------------------------------------------------- */
.vmg-cart-empty-text {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background-color: var(--vmg-cart-cream);
  border: 1px dashed var(--vmg-cart-border);
  color: var(--vmg-cart-muted);
  font-family: var(--vmg-cart-font);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: start;
}

.vmg-cart-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--vmg-cart-font);
}

.vmg-cart-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid var(--vmg-cart-border);
  box-sizing: border-box;
}

.vmg-cart-preview-title {
  min-width: 0;
  flex: 1 1 auto;
  text-align: start;
}

.vmg-cart-preview-title a {
  color: var(--vmg-cart-ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-word;
}

.vmg-cart-preview-title a:hover {
  color: var(--vmg-cart-green);
  text-decoration: underline;
}

.vmg-cart-preview-qty {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: var(--vmg-cart-cream);
  border: 1px solid var(--vmg-cart-border);
  color: var(--vmg-cart-green-dark);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Product Detail Page Multi-Product Cart Controls (Phase 2)
   Matches .pd-usage-box & .pd-btn styling while staying scoped to .vmg-cart-*
   -------------------------------------------------------------------------- */
.product-details-page .pd-top-bar {
  flex-wrap: wrap;
  gap: 10px;
}

.vmg-cart-pd-box {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbf8 100%);
  border: 1px solid rgba(35, 99, 66, 0.22);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 18px 0;
  box-shadow: 0 8px 24px rgba(18, 59, 41, 0.06);
  box-sizing: border-box;
  font-family: var(--vmg-cart-font);
  max-width: 100%;
  overflow-x: hidden;
}

.vmg-cart-pd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(20, 35, 27, 0.09);
}

.vmg-cart-pd-heading {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vmg-cart-green-dark);
  letter-spacing: 0.01em;
  min-width: 0;
  overflow-wrap: break-word;
}

.vmg-cart-pd-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background-color: rgba(35, 99, 66, 0.12);
  border: 1px solid rgba(35, 99, 66, 0.2);
  color: var(--vmg-cart-green-dark);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 100%;
  white-space: normal;
}

.vmg-cart-pd-status[hidden] {
  display: none !important;
}

.vmg-cart-pd-controls {
  display: grid;
  grid-template-columns: minmax(76px, 0.6fr) minmax(112px, 1fr) minmax(138px, auto);
  align-items: end;
  gap: 10px 12px;
}

.vmg-cart-pd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.vmg-cart-pd-field--qty,
.vmg-cart-pd-field--unit {
  min-width: 0;
}

.vmg-cart-pd-label {
  font-size: 12px;
  font-weight: 700;
  color: #2f4f3c;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.vmg-cart-pd-qty,
.vmg-cart-pd-unit {
  width: 100%;
  height: 44px;
  padding-block: 8px;
  padding-inline-start: 12px;
  padding-inline-end: 12px;
  border: 1px solid rgba(20, 35, 27, 0.22);
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--vmg-cart-ink);
  font-family: var(--vmg-cart-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.vmg-cart-pd-qty {
  font-variant-numeric: tabular-nums;
}

.vmg-cart-pd-unit {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23123b29' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  text-overflow: ellipsis;
  cursor: pointer;
}

.vmg-cart-pd-qty:hover,
.vmg-cart-pd-unit:hover {
  border-color: rgba(35, 99, 66, 0.45);
}

.vmg-cart-pd-qty:focus,
.vmg-cart-pd-unit:focus {
  border-color: var(--vmg-cart-green);
  box-shadow: 0 0 0 3px rgba(35, 99, 66, 0.16);
  outline: none;
}

.vmg-cart-pd-qty.is-invalid {
  border-color: #b91c1c;
  background-color: #fef2f2;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.16);
}

.vmg-cart-pd-submit {
  display: flex;
  min-width: 0;
}

.vmg-cart-pd-box .pd-btn.vmg-cart-pd-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  background-color: var(--vmg-cart-green-dark);
  color: #ffffff;
  font-family: var(--vmg-cart-font);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  box-sizing: border-box;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.vmg-cart-pd-box .pd-btn.vmg-cart-pd-add-btn:hover,
.vmg-cart-pd-box .pd-btn.vmg-cart-pd-add-btn:focus-visible {
  background-color: var(--vmg-cart-green);
  box-shadow: 0 6px 16px rgba(18, 59, 41, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.vmg-cart-pd-box .pd-btn.vmg-cart-pd-add-btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(35, 99, 66, 0.28);
}

.vmg-cart-pd-box .pd-btn.vmg-cart-pd-add-btn.is-added {
  background-color: #0c9b5a;
  transform: none;
}

/* --------------------------------------------------------------------------
   Non-Blocking Notification Toast
   Positioned top-right below fixed header so it never overlaps WhatsApp/phone buttons.
   -------------------------------------------------------------------------- */
.vmg-cart-toast {
  position: fixed;
  top: 104px;
  right: 24px;
  left: auto;
  z-index: 10500;
  max-width: min(380px, calc(100vw - 32px));
  padding: 12px 18px;
  border-radius: 12px;
  font-family: var(--vmg-cart-font);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
  background-color: var(--vmg-cart-green-dark);
  border-inline-start: 4px solid var(--vmg-cart-lime);
  box-shadow: var(--vmg-cart-shadow);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
  box-sizing: border-box;
  text-align: start;
}

.vmg-cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vmg-cart-toast.is-error {
  background-color: #7f1d1d;
  border-inline-start-color: #fca5a5;
}

.vmg-cart-toast.is-info {
  background-color: var(--vmg-cart-green);
  border-inline-start-color: var(--vmg-cart-cream);
}

/* --------------------------------------------------------------------------
   RTL & Multilingual Support (ar / ur)
   Keep floating cart on bottom-left because .floating-buttons remains fixed
   on bottom-right across LTR and RTL pages, preventing overlap.
   -------------------------------------------------------------------------- */
[dir="rtl"] .vmg-cart-trigger,
.vmg-cart-trigger[dir="rtl"],
[dir="rtl"] .vmg-cart-preview-item,
[data-vmg-cart-preview][dir="rtl"] .vmg-cart-preview-item,
[dir="rtl"] .vmg-cart-toast,
.vmg-cart-toast[dir="rtl"],
[dir="rtl"] .vmg-cart-empty-text,
[data-vmg-cart-preview][dir="rtl"] .vmg-cart-empty-text,
[dir="rtl"] .vmg-cart-pd-box,
.vmg-cart-pd-box[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .vmg-cart-toast,
.vmg-cart-toast[dir="rtl"] {
  right: auto;
  left: 24px;
}

[dir="rtl"] .vmg-cart-float-btn,
.vmg-cart-float-btn[dir="rtl"] {
  left: 24px;
  right: auto;
}

[dir="rtl"] .vmg-cart-pd-box .vmg-cart-pd-unit,
.vmg-cart-pd-box[dir="rtl"] .vmg-cart-pd-unit {
  background-position: left 12px center;
}

[dir="rtl"] .vmg-cart-pd-box .vmg-cart-pd-qty,
.vmg-cart-pd-box[dir="rtl"] .vmg-cart-pd-qty {
  direction: ltr;
  unicode-bidi: plaintext;
  text-align: right;
}

[dir="rtl"] body.product-details-page .pd-top-bar {
  direction: ltr;
}

[dir="rtl"] body.product-details-page .pd-back-btn,
[dir="rtl"] body.product-details-page #pd-cart-link {
  direction: rtl;
}

[dir="rtl"] body.product-details-page .pd-usage-box {
  border-left: none;
  border-right: 5px solid #0c9b5a;
}

[dir="rtl"] body.product-details-page .pd-spec-table th,
[dir="rtl"] body.product-details-page .faq-question {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1120px) and (min-width: 901px) {
  .vmg-cart-pd-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }

  .vmg-cart-pd-submit {
    grid-column: 1 / -1;
    width: 100%;
  }

  .vmg-cart-pd-box .pd-btn.vmg-cart-pd-add-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .vmg-cart-trigger {
    font-size: 13px;
    padding: 8px 14px;
  }

  .vmg-cart-float-btn {
    left: 14px;
    right: auto;
    bottom: 20px;
    max-width: calc(100vw - 110px);
    padding: 10px 14px;
  }

  [dir="rtl"] .vmg-cart-float-btn,
  .vmg-cart-float-btn[dir="rtl"] {
    left: 14px;
    right: auto;
  }

  .vmg-cart-toast {
    top: 96px;
    left: 16px;
    right: 16px;
    max-width: none;
    margin: 0 auto;
    font-size: 13px;
  }

  [dir="rtl"] .vmg-cart-toast,
  .vmg-cart-toast[dir="rtl"] {
    left: 16px;
    right: 16px;
  }
}

@media (max-width: 600px) {
  .vmg-cart-pd-box {
    padding: 14px;
    margin: 14px 0 16px;
    border-radius: 10px;
  }

  .vmg-cart-pd-header {
    padding-bottom: 10px;
    margin-bottom: 12px;
  }

  .vmg-cart-pd-heading {
    font-size: 14.5px;
  }

  .vmg-cart-pd-controls {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 10px;
  }

  .vmg-cart-pd-qty,
  .vmg-cart-pd-unit {
    height: 44px;
    font-size: 16px;
  }

  .vmg-cart-pd-submit {
    grid-column: 1 / -1;
    width: 100%;
  }

  .vmg-cart-pd-box .pd-btn.vmg-cart-pd-add-btn {
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    justify-content: center;
    white-space: normal;
  }
}

@media (max-width: 359px) {
  .vmg-cart-pd-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .vmg-cart-float-btn {
    left: 12px;
    bottom: 16px;
    max-width: calc(100vw - 96px);
    padding: 9px 12px;
    font-size: 12.5px;
    gap: 6px;
  }

  [dir="rtl"] .vmg-cart-float-btn,
  .vmg-cart-float-btn[dir="rtl"] {
    left: 12px;
    right: auto;
  }

  .vmg-cart-preview-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  [dir="rtl"] .vmg-cart-preview-item,
  [data-vmg-cart-preview][dir="rtl"] .vmg-cart-preview-item {
    align-items: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {

  .vmg-cart-trigger,
  .vmg-cart-count-badge,
  .vmg-cart-toast,
  .vmg-cart-pd-qty,
  .vmg-cart-pd-unit,
  .vmg-cart-pd-box .pd-btn.vmg-cart-pd-add-btn,
  .pd-btn.vmg-cart-pd-add-btn {
    transition: none;
  }
}

/* ==========================================================================
   Phase 3: Multi-Product Enquiry Page Cart & Quotation List (.vmg-eq-*)
   Scoped strictly to enquiry page containers; matches VM Impex green/cream palette.
   ========================================================================== */
.vmg-eq-shell {
  width: 100%;
  max-width: 840px;
}

.vmg-eq-header-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vmg-eq-lang-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vmg-eq-lang-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--vmg-cart-muted);
}

.vmg-eq-lang-select {
  width: auto;
  min-width: 110px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--vmg-cart-border);
  background-color: #ffffff;
  color: var(--vmg-cart-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.vmg-eq-subtitle {
  text-align: center;
  margin: 0 0 22px 0;
  color: var(--vmg-cart-muted);
  font-size: 14px;
  font-weight: 500;
}

.vmg-eq-notice,
.vmg-eq-form-status {
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 18px;
  border: 1px solid rgba(18, 59, 41, 0.18);
  background-color: #f3f7f4;
  color: var(--vmg-cart-green-dark);
  text-align: start;
}

.vmg-eq-notice.is-warning,
.vmg-eq-form-status.is-error {
  background-color: #fef2f2;
  border-color: rgba(185, 28, 28, 0.28);
  color: #991b1b;
}

.vmg-eq-form-status.is-success {
  background-color: #ecfdf5;
  border-color: rgba(22, 101, 52, 0.28);
  color: #166534;
}

.vmg-eq-cart-section {
  background-color: #f8faf8;
  border: 1px solid rgba(20, 35, 27, 0.12);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: start;
}

.vmg-eq-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.vmg-eq-section-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.vmg-eq-section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--vmg-cart-green-dark);
}

.vmg-eq-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid rgba(185, 28, 28, 0.25);
  background-color: #ffffff;
  color: #991b1b;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.vmg-eq-clear-btn:hover,
.vmg-eq-clear-btn:focus-visible {
  background-color: #fef2f2;
  border-color: #b91c1c;
  outline: none;
}

.vmg-eq-clear-btn[hidden] {
  display: none !important;
}

.vmg-eq-cart-empty {
  padding: 24px 18px;
  border-radius: 10px;
  border: 1px dashed rgba(20, 35, 27, 0.22);
  background-color: #ffffff;
  text-align: center;
}

.vmg-eq-empty-title {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--vmg-cart-ink);
}

.vmg-eq-empty-desc {
  margin: 0 0 12px 0;
  font-size: 13.5px;
  color: var(--vmg-cart-muted);
  line-height: 1.5;
}

.vmg-eq-browse-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vmg-cart-green);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.vmg-eq-browse-link:hover {
  text-decoration: underline;
}

.vmg-eq-cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vmg-eq-cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 10px;
  background-color: #ffffff;
  border: 1px solid rgba(20, 35, 27, 0.12);
  box-shadow: 0 2px 8px rgba(18, 59, 41, 0.04);
  box-sizing: border-box;
}

.vmg-eq-cart-item.is-highlighted {
  border-color: var(--vmg-cart-green);
  box-shadow: 0 0 0 2px rgba(35, 99, 66, 0.16);
}

.vmg-eq-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(20, 35, 27, 0.1);
  background-color: var(--vmg-cart-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.vmg-eq-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vmg-eq-thumb-fallback {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--vmg-cart-green);
  background-color: #edf4ef;
  font-size: 14px;
  font-weight: 700;
}

.vmg-eq-thumb.is-fallback img {
  display: none;
}

.vmg-eq-thumb.is-fallback .vmg-eq-thumb-fallback {
  display: flex;
}

.vmg-eq-item-info {
  min-width: 0;
  text-align: start;
}

.vmg-eq-item-title {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--vmg-cart-ink);
  line-height: 1.3;
  word-break: break-word;
}

.vmg-eq-item-title a {
  color: var(--vmg-cart-ink);
  text-decoration: none;
}

.vmg-eq-item-title a:hover,
.vmg-eq-item-title a:focus-visible {
  color: var(--vmg-cart-green);
  text-decoration: underline;
}

.vmg-eq-item-sub {
  margin: 0 0 6px 0;
  font-size: 12.5px;
  color: var(--vmg-cart-muted);
  line-height: 1.35;
}

.vmg-eq-item-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--vmg-cart-green);
  text-decoration: none;
}

.vmg-eq-item-link:hover {
  text-decoration: underline;
}

.vmg-eq-item-controls {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.vmg-eq-control-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vmg-eq-control-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--vmg-cart-muted);
  line-height: 1.1;
}

.vmg-eq-qty-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(20, 35, 27, 0.2);
  border-radius: 8px;
  background-color: #fafafa;
  overflow: hidden;
  height: 36px;
}

.vmg-eq-step-btn {
  width: 28px;
  height: 100%;
  border: none;
  background: transparent;
  color: var(--vmg-cart-green-dark);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vmg-eq-step-btn:hover {
  background-color: #e6efe9;
}

.vmg-eq-qty-input {
  width: 64px;
  height: 100%;
  padding: 4px 6px;
  border: none;
  border-inline: 1px solid rgba(20, 35, 27, 0.14);
  background-color: #ffffff;
  color: var(--vmg-cart-ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  border-radius: 0;
}

.vmg-eq-qty-input.is-invalid {
  background-color: #fef2f2;
  color: #991b1b;
}

.vmg-eq-unit-select {
  height: 36px;
  min-width: 104px;
  padding: 4px 10px;
  border: 1px solid rgba(20, 35, 27, 0.2);
  border-radius: 8px;
  background-color: #ffffff;
  color: var(--vmg-cart-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
}

.vmg-eq-update-btn,
.vmg-eq-remove-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.vmg-eq-update-btn {
  border: 1px solid rgba(35, 99, 66, 0.35);
  background-color: #eef6f1;
  color: var(--vmg-cart-green-dark);
}

.vmg-eq-update-btn:hover,
.vmg-eq-update-btn:focus-visible {
  background-color: var(--vmg-cart-green);
  border-color: var(--vmg-cart-green);
  color: #ffffff;
  outline: none;
}

.vmg-eq-remove-btn {
  border: 1px solid rgba(185, 28, 28, 0.22);
  background-color: #ffffff;
  color: #b91c1c;
}

.vmg-eq-remove-btn:hover,
.vmg-eq-remove-btn:focus-visible {
  background-color: #fef2f2;
  border-color: #b91c1c;
  outline: none;
}

.vmg-eq-add-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(20, 35, 27, 0.1);
}

.vmg-eq-add-heading {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--vmg-cart-ink);
}

.vmg-eq-add-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.8fr) minmax(88px, 0.6fr) minmax(110px, 0.8fr) auto;
  gap: 10px;
  align-items: end;
}

.vmg-eq-add-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.vmg-eq-add-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--vmg-cart-muted);
}

.vmg-eq-add-select,
.vmg-eq-add-qty,
.vmg-eq-add-unit {
  width: 100%;
  height: 40px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(20, 35, 27, 0.2);
  background-color: #ffffff;
  color: var(--vmg-cart-ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  box-sizing: border-box;
}

.vmg-eq-add-btn {
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background-color: var(--vmg-cart-green-dark);
  color: #ffffff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.vmg-eq-add-btn:hover,
.vmg-eq-add-btn:focus-visible {
  background-color: var(--vmg-cart-green);
  outline: none;
}

.vmg-eq-form-section-title {
  margin: 0 0 16px 0;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--vmg-cart-green-dark);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(20, 35, 27, 0.1);
  text-align: start;
}

[dir="rtl"] .vmg-eq-cart-section,
[dir="rtl"] .vmg-eq-item-info,
[dir="rtl"] .vmg-eq-form-section-title,
[dir="rtl"] .vmg-eq-notice,
[dir="rtl"] .vmg-eq-form-status {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .back-btn i {
  transform: scaleX(-1);
}

@media (max-width: 760px) {
  .vmg-eq-cart-item {
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: start;
  }

  .vmg-eq-thumb {
    width: 56px;
    height: 56px;
  }

  .vmg-eq-item-controls {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .vmg-eq-add-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vmg-eq-add-field--product {
    grid-column: 1 / -1;
  }

  .vmg-eq-add-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .vmg-eq-cart-section {
    padding: 14px;
  }

  .vmg-eq-add-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Phase 4: Root Header & Mobile Drawer Cart Access (index.html / products.html)
   -------------------------------------------------------------------------- */
/* Header Cart Button Visibility Control:
   When enquiry cart is empty, completely hide the button from the header
   (no 0 badge, no unnecessary empty space).
   When at least one product is added, show the button. */
.header .vmg-header-cart-link.is-empty,
.header.fixed-header .vmg-header-cart-link.is-empty,
.header .vmg-header-cart-link:not(.has-items),
.header.fixed-header .vmg-header-cart-link:not(.has-items) {
  display: none !important;
}

.header .vmg-header-cart-link.has-items,
.header.fixed-header .vmg-header-cart-link.has-items {
  display: inline-flex !important;
}

.header.fixed-header .vmg-header-actions>.vmg-header-cart-link,
.header.fixed-header .vmg-header-cart-link {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 0 !important;
  order: 2;
  align-self: flex-end;
  z-index: 5100;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 5px 12px;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--vmg-cart-green-dark);
  background-color: #ffffff;
  border: 1px solid rgba(35, 99, 66, 0.24);
  box-shadow: 0 2px 8px rgba(18, 59, 41, 0.06);
}

.header.fixed-header .vmg-header-cart-link .vmg-cart-icon {
  width: 15px;
  height: 15px;
}

.header.fixed-header .vmg-header-cart-link .vmg-cart-count-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
}

[dir="rtl"] .header.fixed-header .vmg-header-cart-link {
  direction: rtl;
}

.header.fixed-header .vmg-header-cart-link:hover,
.header.fixed-header .vmg-header-cart-link:focus-visible {
  background-color: var(--vmg-cart-cream);
  border-color: var(--vmg-cart-green);
  color: var(--vmg-cart-green-dark);
}

.sheet-links .sheet-link.vmg-cart-trigger--drawer,
.mobile-menu-links .mobile-menu-link.vmg-cart-trigger--drawer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(35, 99, 66, 0.24);
  background-color: #f4f8f5;
  color: var(--vmg-cart-green-dark);
  font-size: 15px;
  font-weight: 700;
  white-space: normal;
  box-sizing: border-box;
  text-decoration: none;
}

.sheet-links .sheet-link.vmg-cart-trigger--drawer:hover,
.sheet-links .sheet-link.vmg-cart-trigger--drawer:focus-visible,
.mobile-menu-links .mobile-menu-link.vmg-cart-trigger--drawer:hover,
.mobile-menu-links .mobile-menu-link.vmg-cart-trigger--drawer:focus-visible {
  background-color: #e9f2ec;
  border-color: var(--vmg-cart-green);
  color: var(--vmg-cart-green-dark);
}

.vmg-cart-drawer-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.header .vmg-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header:not(.fixed-header) .vmg-header-actions {
  margin-left: auto;
  margin-right: 14px;
}

.header .vmg-header-cart-link {
  min-height: 34px;
  padding: 6px 14px;
  gap: 7px;
}

@media (max-width: 1240px) and (min-width: 993px) {
  .header .vmg-header-cart-link {
    min-height: 31px;
    padding: 4px 10px;
    gap: 5px;
    font-size: 12px;
  }
}

@media (max-width: 992px) {
  .header .vmg-header-cart-link {
    min-height: 30px;
    padding: 4px 10px;
    gap: 5px;
    font-size: 12px;
    margin-right: 0;
  }

  .header:not(.fixed-header) .vmg-header-actions {
    margin-right: 12px;
  }
}

@media (max-width: 480px) {
  .header .vmg-header-cart-link {
    min-height: 28px;
    padding: 3px 9px;
    gap: 5px;
    font-size: 11.5px;
    margin-right: 0;
  }

  .header .vmg-header-cart-link .vmg-cart-icon {
    width: 14px;
    height: 14px;
  }

  .header .vmg-header-cart-link .vmg-cart-count-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10.5px;
  }
}