/*
Theme Name: MenuSaaS Theme
Version: 2.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #070d19;
  --bg2: #0d1628;
  --surface: rgba(255, 255, 255, .04);
  --surface2: rgba(255, 255, 255, .07);
  --border: rgba(255, 255, 255, .08);
  --txt: #f1f5f9;
  --muted: #64748b;
  --soft: #94a3b8;
  --pri: #6366f1;
  --acc: #8b5cf6;
  --success: #10b981;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, .5);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Specific for frontend drawer/cart buttons */
.ms-drawer .ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--surface);
  color: var(--txt);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}

.ms-drawer .ms-btn:hover {
  background: var(--surface2);
  transform: translateY(-1px);
}

.ms-drawer .ms-btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

#apply-coupon-btn,
.ms-hero-btn-primary {
  background: linear-gradient(135deg, var(--pri), var(--acc));
  color: #fff !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  font-weight: 700;
}

#apply-coupon-btn:hover,
.ms-hero-btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 15px rgba(99, 102, 241, 0.4);
}

.ms-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: var(--surface2);
  color: var(--txt);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none !important;
  border: 1px solid var(--border);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes slideRight {
  from {
    transform: translateX(100%)
  }

  to {
    transform: translateX(0)
  }
}

@keyframes pulse-cart {
  0% { transform: scale(1); box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 4px 20px rgba(99, 102, 241, 0.6); }
  100% { transform: scale(1); box-shadow: 0 2px 10px rgba(99, 102, 241, 0.3); }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased
}

/* ── Header hero ──── */
.ms-hero {
  background: linear-gradient(160deg, #0d1628 0%, #070d19 60%);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
}

.ms-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.ms-brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px
}

.ms-logo-img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border)
}

.ms-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
  background: linear-gradient(135deg, #fff 30%, var(--pri));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.ms-slogan {
  color: var(--muted);
  font-size: 13px;
  margin-top: 1px
}

.ms-hero-right {
  display: flex;
  align-items: center;
  gap: 12px
}

.ms-hours {
  color: var(--soft);
  font-size: 12px;
  font-weight: 500
}

/* Cart button */
.ms-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, .4);
  background: rgba(99, 102, 241, .12);
  color: var(--txt);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: all .18s ease;
  white-space: nowrap;
}

.ms-cart-btn:hover {
  background: rgba(99, 102, 241, .22);
  border-color: var(--pri);
  transform: translateY(-1px)
}

.ms-cart-btn.is-pulsing {
  animation: pulse-cart 1.5s infinite ease-in-out;
  border-color: var(--pri);
  background: rgba(99, 102, 241, 0.2);
}

.ms-cart-count {
  background: var(--pri);
  color: #fff;
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Welcome bar ──── */
.ms-welcome-bar {
  background: rgba(99, 102, 241, .07);
  border-bottom: 1px solid rgba(99, 102, 241, .15);
  padding: 10px 24px;
  text-align: center;
  color: var(--soft);
  font-size: 13px;
}

/* ── Category nav ──── */
.ms-cat-nav {
  position: sticky;
  top: 106px;
  z-index: 90;
  background: rgba(7, 13, 25, .9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.ms-cat-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 0;
}

.ms-cat-nav-inner::-webkit-scrollbar {
  display: none
}

.ms-cat-pill {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all .18s ease;
  background: none;
  font-family: var(--font);
  flex-shrink: 0;
}

.ms-cat-pill:hover,
.ms-cat-pill.active {
  background: rgba(99, 102, 241, .14);
  border-color: rgba(99, 102, 241, .35);
  color: var(--txt);
}

/* ── Main layout ──── */
.ms-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px
}

.ms-container section {
  scroll-margin-top: 150px
}

/* ── Section heading ──── */
.ms-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: linear-gradient(to bottom, var(--pri), var(--acc));
  border-radius: 2px;
  display: block;
}

/* ── Item grid ──── */
.ms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

@media (max-width:640px) {
  .ms-grid {
    grid-template-columns: 1fr
  }
}

/* ── Item card ──── */
.ms-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  animation: fadeUp .3s ease both;
}

.ms-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(99, 102, 241, .25);
}

.ms-item-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--surface2);
}

.ms-item-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(99, 102, 241, .07), rgba(139, 92, 246, .05));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--border);
}

.ms-extra-name { font-size: 15px; font-weight: 500; }
.ms-extra-price { font-size: 14px; color: #94a3b8; }

/* Product Modal - Extra Groups */
.ms-modal-extras { border-top: 1px solid var(--border); padding-top: 20px; }
.ms-extra-group { 
  background: rgba(255,255,255,0.02); 
  border: 1px solid var(--border); 
  border-radius: 12px; 
  padding: 15px; 
  margin-bottom: 20px;
}
.ms-extra-group-header { margin-bottom: 15px; }
.ms-eg-label { display: block; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.ms-eg-info { display: block; font-size: 12px; color: var(--soft); text-transform: uppercase; letter-spacing: 0.5px; }
.ms-eg-info.is-required { color: var(--acc); font-weight: 600; }

.ms-extra-option {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 8px; cursor: pointer; transition: all 0.2s;
  background: var(--surface);
}
.ms-extra-option:hover { background: var(--surface2); }
.ms-extra-option.is-selected { border-color: var(--pri); background: rgba(99,102,241,0.1); }

.ms-exo-left { display: flex; align-items: center; gap: 10px; }
.ms-exo-input { width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.ms-extra-option.is-selected .ms-exo-input { background: var(--pri); border-color: var(--pri); }
.ms-exo-input.is-radio { border-radius: 50%; }

/* History Items */
.ms-history-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  padding: 10px 12px; border-radius: 10px; text-decoration: none !important;
  transition: all 0.2s;
}
.ms-history-item:hover { background: var(--surface2); border-color: var(--soft); transform: translateX(3px); }
.ms-history-left { display: flex; flex-direction: column; gap: 2px; }
.ms-history-id { font-size: 13px; font-weight: 700; color: #fff; }
.ms-history-date { font-size: 11px; color: var(--soft); }
.ms-history-status { font-size: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.05); color: var(--soft); border: 1px solid var(--border); font-weight: 600; text-transform: uppercase; }

.ms-modal-add { width: 100%; padding: 16px; background: #6366f1; color: #fff; border: none; border-radius: 14px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 12px rgba(99,102,241,.3); }
.ms-modal-add:hover { background: #4f46e5; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(99,102,241,.4); }

/* Cart drawer fields */
.ms-cart-field { margin-bottom: 15px; }
.ms-cart-field label { display: block; font-size: 13px; font-weight: 500; color: #94a3b8; margin-bottom: 6px; }
.ms-cart-field input, .ms-cart-field select, .ms-cart-field textarea { width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px; color: #fff; font-size: 14px; transition: all .2s; }
.ms-cart-field input:focus, .ms-cart-field select:focus, .ms-cart-field textarea:focus { outline: none; border-color: #6366f1; background: rgba(255,255,255,.08); }
.ms-cart-field select option { background: #0f172a; color: #fff; }

.ms-total-amt-row { display: flex; justify-content: space-between; font-size: 14px; color: #94a3b8; margin-bottom: 5px; }
.ms-total-amt-row.is-total { font-size: 20px; font-weight: 700; color: #fff; margin-top: 10px; border-top: 1px solid rgba(255,255,255,.05); padding-top: 10px; }
.ms-total-amt-row.is-total .ms-total-amt { color: #6366f1; }

.ms-item.is-outofstock { opacity: 0.6; filter: grayscale(1); pointer-events: none; position: relative; }
.ms-item.is-outofstock::after { content: 'ESGOTADO'; position: absolute; top: 10px; right: 10px; background: #ef4444; color: #fff; padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 800; z-index: 10; }

.ms-coupon-msg.is-success { color: #10b981; }
.ms-coupon-msg.is-error { color: #ef4444; }

.ms-shop-closed-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.95); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 20px; backdrop-filter: blur(8px); display: none; }
.ms-shop-closed-overlay h2 { font-size: 32px; margin-bottom: 10px; }
.ms-shop-closed-overlay p { font-size: 18px; color: #94a3b8; margin-bottom: 20px; }
.ms-shop-closed-icon { font-size: 64px; margin-bottom: 20px; }

.ms-item-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ms-item h3 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.ms-item p {
  color: var(--soft);
  font-size: 13px;
  flex: 1;
  line-height: 1.5;
}

.ms-item-footer {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ms-price {
  font-weight: 800;
  font-size: 16px;
  background: linear-gradient(135deg, var(--txt), var(--pri));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ms-add {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--pri), var(--acc));
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: all .18s ease;
  box-shadow: 0 2px 10px rgba(99, 102, 241, .3);
  white-space: nowrap;
}

.ms-add:hover {
  filter: brightness(1.1);
  transform: scale(1.03)
}

.ms-add:active {
  transform: scale(.98)
}

.ms-add:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none
}

/* ── Cart drawer ──── */
.ms-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none
}

.ms-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
  backdrop-filter: blur(4px);
  z-index: 1;
}

.ms-drawer.open .ms-backdrop {
  opacity: 1;
  pointer-events: auto
}

.ms-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 380px;
  max-width: 95vw;
  background: var(--bg2);
  border-left: 1px solid var(--border);
  padding: 24px 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
  pointer-events: auto;
}

.ms-drawer.open .ms-panel {
  transform: none
}

.ms-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ms-panel h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px
}

.ms-panel-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all .15s ease;
}

.ms-panel-close:hover {
  background: var(--surface2);
  color: var(--txt)
}

.ms-cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.ms-cart-empty-icon {
  font-size: 42px;
  opacity: .4
}

.ms-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  gap: 10px;
}

.ms-cart-item-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3
}

.ms-cart-item-qty {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px
}

.ms-cart-item-price {
  color: var(--pri);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap
}

.ms-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
}

.ms-total-amt {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--txt), var(--pri));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ms-field {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--txt);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.ms-field:focus {
  border-color: rgba(99, 102, 241, .6);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .1)
}

.ms-field::placeholder {
  color: var(--muted)
}

.ms-checkout {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: none;
  background: linear-gradient(135deg, var(--pri), var(--acc));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(99, 102, 241, .35);
  transition: all .18s ease;
}

.ms-checkout:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, .45)
}

.ms-clear {
  width: 100%;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: all .15s ease;
}

.ms-clear:hover {
  background: var(--surface);
  color: var(--txt)
}

.ms-note {
  color: var(--muted);
  font-size: 13px
}

/* ── Product modal ──── */
.ms-pro-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: all .3s ease
}

.ms-pro-modal.open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1
}

.ms-pro-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(8px)
}

.ms-pro-panel {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transform: scale(.9) translateY(20px);
  transition: all .4s cubic-bezier(.34, 1.56, .64, 1);
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
}

.ms-pro-modal.open .ms-pro-panel {
  transform: scale(1) translateY(0)
}

.ms-pro-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, .3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all .2s ease;
  z-index: 10;
}

.ms-pro-close:hover {
  background: var(--pri);
  border-color: var(--pri);
  transform: rotate(90deg)
}

.ms-pro-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr
}

#ms-pro-img-wrap {
  width: 100%;
  background: var(--surface2)
}

.ms-pro-img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block
}

.ms-pro-img-placeholder {
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: var(--surface2)
}

.ms-pro-info {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px
}

.ms-pro-info h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.5px
}

#ms-pro-desc {
  color: var(--soft);
  font-size: 15px;
  line-height: 1.7;
  flex: 1
}

.ms-pro-footer {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ms-pro-footer .ms-price {
  font-size: 22px
}

.ms-pro-footer .ms-add {
  padding: 14px 24px;
  font-size: 15px
}

@media (max-width:768px) {
  .ms-pro-panel {
    border-radius: 20px;
    max-height: 90vh;
    overflow-y: auto
  }

  .ms-pro-content {
    grid-template-columns: 1fr
  }

  .ms-pro-info {
    padding: 20px
  }

  .ms-pro-info h2 {
    font-size: 20px
  }

  #ms-pro-desc {
    font-size: 14px
  }

  .ms-pro-img {
    max-height: 280px
  }

  .ms-pro-img-placeholder {
    height: 200px;
    font-size: 50px
  }
}

/* ── Responsive ──── */
@media (max-width:768px) {
  .ms-container section {
    scroll-margin-top: 120px
  }

  .ms-hero {
    padding: 14px 16px 12px
  }

  .ms-hero-inner {
    flex-wrap: wrap;
    gap: 10px
  }

  .ms-brand-wrap {
    gap: 10px
  }

  .ms-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px
  }

  .ms-brand {
    font-size: 17px
  }

  .ms-slogan {
    font-size: 12px
  }

  .ms-hero-right {
    width: 100%;
    justify-content: space-between
  }

  .ms-hours {
    font-size: 11px
  }

  .ms-cart-btn {
    padding: 8px 14px;
    font-size: 13px;
    flex: 1;
    justify-content: center;
    max-width: 200px
  }

  .ms-cart-count {
    min-width: 20px;
    height: 20px;
    font-size: 11px
  }

  .ms-welcome-bar {
    padding: 8px 16px;
    font-size: 12px
  }

  .ms-cat-nav {
    top: 73px;
    padding: 0 16px
  }

  .ms-cat-nav-inner {
    padding: 8px 0;
    gap: 6px
  }

  .ms-cat-pill {
    padding: 6px 12px;
    font-size: 12px
  }

  .ms-container {
    padding: 16px
  }

  .ms-grid {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .ms-item-body {
    padding: 12px
  }

  .ms-item h3 {
    font-size: 14px
  }

  .ms-item p {
    font-size: 12px
  }

  .ms-item-footer {
    padding: 10px 12px
  }

  .ms-price {
    font-size: 15px
  }

  .ms-add {
    padding: 8px 14px;
    font-size: 12px
  }

  .ms-section-title {
    font-size: 16px;
    margin-bottom: 12px
  }

  .ms-panel {
    width: 100%;
    max-width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 20px 16px
  }

  .ms-panel h2 {
    font-size: 18px
  }

  .ms-panel-close {
    width: 28px;
    height: 28px;
    font-size: 18px
  }

  .ms-cart-item {
    padding: 12px;
    gap: 10px
  }

  .ms-cart-item-img {
    width: 60px;
    height: 60px
  }

  .ms-cart-item-name {
    font-size: 13px
  }

  .ms-cart-item-price {
    font-size: 12px
  }

  .ms-qty-ctrl button {
    width: 28px;
    height: 28px;
    font-size: 16px
  }

  .ms-qty-val {
    min-width: 32px;
    font-size: 14px
  }

  .ms-total {
    font-size: 15px
  }

  .ms-total-val {
    font-size: 18px
  }

  .ms-field {
    padding: 10px 12px;
    font-size: 13px
  }

  .ms-checkout {
    padding: 12px;
    font-size: 14px
  }

  .ms-clear {
    padding: 9px;
    font-size: 13px
  }
}

/* Success Card for Order Completion */
.ms-order-success-card {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  margin-top: 10px;
  animation: ms-fade-in 0.4s ease;
}

.ms-order-success-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.ms-order-success-card h3 {
  color: #10b981;
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.ms-order-success-card p {
  font-size: 14px;
  color: var(--soft);
  margin-bottom: 16px;
  line-height: 1.5;
}

@keyframes ms-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Success Modal Specifics */
.ms-success-panel {
  max-width: 500px; /* Smaller than product modal */
}

.ms-success-content {
  display: block !important; /* Force single column list/block layout */
  padding: 40px 20px;
}

.ms-order-success-card {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  animation: none; /* Already handled by modal animation */
}