

:root {
  --qro-red:    #e53935;
  --qro-dark:   #b71c1c;
  --qro-bg:     #f5f5f5;
  --qro-white:  #ffffff;
  --qro-text:   #212121;
  --qro-muted:  #757575;
  --qro-border: #e0e0e0;
  --qro-radius: 12px;
  --qro-shadow: 0 2px 12px rgba(0,0,0,.12);
  --qro-bar-h:  64px;
}


#qro-app, #qro-app * {
  box-sizing: border-box;
}
#qro-app {
  all: initial; 
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  color: var(--qro-text);
  background: var(--qro-bg);
  max-width: 1024px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--qro-bar-h) + 16px);
  position: relative;
}

#qro-app .qro-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--qro-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
#qro-app .qro-store-name  { font-size: 1.05rem; font-weight: 700; }
#qro-app .qro-table-badge {
  display: inline-block;
  background: rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 16px;
  margin-left: 8px;
}
#qro-app .qro-cart-btn {
  background: none;
  border: 2px solid rgba(255,255,255,.7);
  color: #fff;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: .95rem;
  cursor: pointer;
  line-height: 1;
  margin: 0;
}
#qro-app .qro-badge {
  display: inline-block;
  background: #fff;
  color: var(--qro-red);
  border-radius: 10px;
  padding: 1px 5px;
  font-size: 15px;
  font-weight: 700;
  margin-left: 4px;
  min-width: 20px;
  text-align: center;
}


#qro-app .qro-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  background: var(--qro-white);
  border-bottom: 1px solid var(--qro-border);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#qro-app .qro-cats::-webkit-scrollbar { display: none; }
#qro-app .qro-cat-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 6px 16px;
  border: 1.5px solid var(--qro-border);
  border-radius: 50px;
  background: var(--qro-white);
  font-size: .88rem;
  cursor: pointer;
  color: #000;
  transition: all .15s;
  font-family: inherit;
  margin: 10px;
}
#qro-app .qro-cat-btn.active,
#qro-app .qro-cat-btn:hover {
  border-color: var(--qro-red);
  background: var(--qro-red);
  color: #fff;
}


#qro-app .qro-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

#qro-app .qro-food-card {
  background: var(--qro-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  transition: all .15s ease;
  cursor: pointer;
  position: relative;
}
#qro-app .qro-food-card:active { 

  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* Menu item image - left side */
#qro-app .qro-food-img-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: #f0f0f0;
}

#qro-app .qro-food-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#qro-app .qro-food-no-img {
  width: 100%;
  height: 100%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #ccc;
}

/* Menu item info - right side */
#qro-app .qro-food-info {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#qro-app .qro-food-name {
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
  color: var(--qro-text);
}

#qro-app .qro-food-desc-short {
  font-size: .82rem;
  color: var(--qro-muted);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#qro-app .qro-food-price-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-height: 30px;
}

#qro-app .qro-food-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--qro-red);
}

#qro-app .qro-food-orig {
  font-size: .78rem;
  color: var(--qro-muted);
  text-decoration: line-through;
}

#qro-app .qro-food-select-btn {
  position: absolute;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 5px;
  background: var(--qro-red);
  color: #fff;
  border: none;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(229, 57, 53, .3);
  align-content: center;
  margin: 0;
  bottom: 10px;
  padding: 0;
  min-height: 30px;
}

#qro-app .qro-food-select-btn:active {

  box-shadow: 0 1px 4px rgba(229, 57, 53, .2);
}

#qro-app .qro-cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(380px, 100vw);
  background: var(--qro-white);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
}
#qro-app .qro-cart.open { transform: translateX(0); }

#qro-app .qro-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--qro-border);
}
#qro-app .qro-cart-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--qro-text);
}
#qro-app #qro-cart-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--qro-muted);
  line-height: 1;
  padding: 4px;
  margin: 0;
}

#qro-app #qro-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}
#qro-app .qro-cart-empty {
  text-align: center;
  color: var(--qro-muted);
  padding: 40px 0;
  font-size: 1rem;
}
#qro-app .qro-cart-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--qro-border);
}
#qro-app .qro-cart-line-name {
  flex: 1;
  font-size: .88rem;
  color: var(--qro-text);
}
#qro-app .qro-cart-line-qty {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .88rem;
}
#qro-app .qro-cart-line-price {
  font-weight: 600;
  color: var(--qro-red);
  font-size: .88rem;
  min-width: 65px;
  text-align: right;
}
#qro-app .qro-cart-line-del {
  background: none;
  border: none;
  color: var(--qro-muted);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px;
  line-height: 1;
}
#qro-app .qro-cart-footer {
  padding: 12px 16px 20px;
  border-top: 1px solid var(--qro-border);
}
#qro-app .qro-cart-total {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--qro-text);
}
#qro-app .qro-cart-total strong {
  color: var(--qro-red);
  font-size: 1.2rem;
}
#qro-app .qro-btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--qro-red);
  color: #fff;
  border: none;
  border-radius: var(--qro-radius);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  text-transform: capitalize;
  padding: 5px 10px;
}
#qro-app .qro-btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}
#qro-app .qro-btn-primary:not(:disabled):hover { background: var(--qro-dark); }


#qro-app .qro-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
#qro-app .qro-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

#qro-overlay-modal {
  position: fixed;
  inset: 0 !important;
  background: rgba(0,0,0,.4) !important;
  z-index: 10001 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.qro-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.5);
}
.qro-modal.open {
  display: flex;
}
.qro-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 16px 16px 20px;
  width: 100%;
  max-width: 320px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.qro-modal-close {
  position: absolute;
  top: 10px; right: 12px;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #757575;
  line-height: 1;
}

#qro-qr-wrap {
  margin: 8px 0 12px;
}
#qro-qr-img {
  width: 100%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 1;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

#qro-ck-info {
  background: #f5f5f5;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  text-align: left;
}
.qro-ck-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: .88rem;
  border-bottom: 1px solid #e8e8e8;
}
.qro-ck-row:last-child { border-bottom: none; }
.qro-ck-lbl { color: #888; font-size: .82rem; }
.qro-ck-row strong { color: #212121; font-size: .9rem; }
.qro-ck-ref {
  font-size: .82rem !important;
  word-break: break-all;
  text-align: right;
  max-width: 60%;
  color: #e53935 !important;
}

.qro-pay-hint {
  font-size: .82rem;
  color: #757575;
  margin-bottom: 8px;
}
#qro-pay-status {
  font-size: .9rem;
  min-height: 20px;
  margin-bottom: 8px;
  color: #212121;
}
.qro-pay-success { color: #2e7d32 !important; font-weight: 700; }
.qro-btn-secondary {
  display: block;
  width: 100%;
  padding: 11px;
  background: #fff;
  color: #e53935;
  border: 2px solid #e53935;
  border-radius: 12px;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-top: 8px;
}

#qro-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 100vw);
  background: var(--qro-red);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--qro-bar-h);
  z-index: 9997;
  cursor: pointer;
  box-shadow: 0 -2px 12px rgba(0,0,0,.2);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
#qro-sticky-bar.visible { display: flex; }
#qro-sticky-bar-count { font-size: .88rem; opacity: .9; }
#qro-sticky-bar-label { font-weight: 600; }
#qro-sticky-bar-total { font-weight: 700; font-size: 1rem; }


#qro-app .qro-loading {
  text-align: center;
  padding: 48px 16px;
  color: var(--qro-muted);
  font-size: .95rem;
}
#qro-app .qro-error,
.qro-error {
  background: #fce4e4;
  color: #c62828;
  padding: 16px;
  border-radius: var(--qro-radius);
  margin: 16px;
  text-align: center;
  font-size: .95rem;
}


.qro-bottom-sheet {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(0,0,0,.4);
  padding: 0;
  display: flex;
  align-items: flex-end;
  animation: fadeIn .25s ease-out;
  opacity: 1 !important;
}

.qro-bottom-sheet .qro-modal-box {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: var(--qro-white);
  border-radius: 20px 20px 0 0;
  padding: 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 40px);
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}

.qro-bottom-sheet.open .qro-modal-box {
  transform: translateY(0);
}

/* Bottom sheet header - thumbnail */
.qro-bs-header {
  position: relative;
  background: #f5f5f5;
  aspect-ratio: 16 / 9;
  min-height: 140px;
  max-height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.qro-bs-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qro-bs-no-img {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ddd;
}

.qro-bs-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, .95);
    border: none;
    border-radius: 50%;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: var(--qro-text);
    transition: all .2s;
    margin: 0;
}

.qro-bs-close:active {
  transform: scale(0.9);
  background: #fff;
}

/* Bottom sheet body */
.qro-bs-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
}

.qro-bs-food-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--qro-text);
  margin-bottom: 8px;
  text-align: left;
}

.qro-bs-food-desc {
  font-size: .88rem;
  color: #2d2d2d;
  line-height: 1.4;
  margin-bottom: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  text-align: left;
}

/* Bottom sheet footer */
.qro-bs-footer {
  padding: 12px 14px 16px;
  border-top: 1px solid var(--qro-border);
  background: var(--qro-white);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* Quantity control - only in modal */
.qro-modal-qty-ctrl {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 12px;
  background: #f9f9f9;
  border-radius: 12px;
}

.qro-modal-qty-btn {
  width: 44px;
  height: 44px;
  border: 2px solid var(--qro-border);
  border-radius: 12px;
  background: var(--qro-white);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: inherit;
  padding: 0;
  color: var(--qro-text);
  transition: all .15s;
  font-weight: 500;
  margin: 0;
}

.qro-modal-qty-btn:active {
  transform: scale(0.9);
  background: var(--qro-red);
  border-color: var(--qro-red);
  color: #fff;
}

.qro-modal-qty-val {
  font-weight: 700;
  color: var(--qro-text);
  min-width: 45px;
  text-align: center;
  font-size: 1.2rem;
}

/* Options groups styling */
#qro-opts-body {
  padding: 0 2px;
}

.qro-opt-group {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--qro-border);
  padding-bottom: 14px;
}

.qro-opt-group:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}

.qro-opt-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--qro-text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qro-opt-required {
  color: var(--qro-red);
  font-size: .8rem;
  font-weight: 600;
}

.qro-opt-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qro-opt-choice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--qro-border);
  border-radius: 12px;
  font-size: .88rem;
  cursor: pointer;
  transition: all .15s ease;
  background: var(--qro-white);
  user-select: none;
  font-family: inherit;
  line-height: 1;
}



.qro-opt-choice.selected {
  border-color: var(--qro-red);
  background: #fce4e4;
  color: var(--qro-red);
  font-weight: 600;
}

.qro-opt-choice-name {
  flex: 1;
}

.qro-opt-price {
  font-size: .8rem;
  color: var(--qro-red);
  font-weight: 700;
}

.qro-opt-no-options {
  text-align: center;
  padding: 20px 0;
  color: var(--qro-muted);
  font-size: .95rem;
}

/* Ghi chÃƒÂº */
.qro-opt-note-wrap {
  margin-top: 8px;
}

.qro-opt-note-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--qro-border);
  border-radius: 12px;
  font-size: .9rem;
  font-family: inherit;
  margin-top: 8px;
  color: var(--qro-text);
  transition: border-color .15s;
}

.qro-opt-note-input:focus {
  outline: none;
  border-color: var(--qro-red);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, .1);
}

/* Add to cart button in modal */
#qro-opts-confirm {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px !important;
  font-weight: 700;
  font-size: 0.95rem;
  width: 100%;
  margin: 0;
  background: #e53935;
  border-radius: 10px;
  opacity: 1;
  color: #fff;
}

#qro-opts-price-preview {
  color: #cd0b0b !important;
  font-size: 20px;
  font-weight: 700;
}

@keyframes slideUpFromBottom {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDownToBottom {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* Button scale animation */
.qro-btn-primary:not(:disabled):active,
.qro-modal-qty-btn:active,
.qro-food-card:active {
  animation: buttonPress .15s ease-out;
}

@keyframes buttonPress {
  0% { transform: scale(1); }
  50% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

/* Overlay fade */
.qro-overlay.visible {
  animation: fadeIn .25s ease-out;
}

.qro-overlay:not(.visible) {
  animation: fadeOut .25s ease-out;
}


.qro-payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qro-payment-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s;
  background: white;
}

.qro-payment-method:hover {
  border-color: #f97316;
  background: #fff7ed;
  transform: translateX(4px);
}

.qro-payment-method-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 12px;
  font-size: 24px;
}

.qro-payment-method-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.qro-payment-method-info {
  flex: 1;
}

.qro-payment-method-name {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.qro-payment-method-desc {
  font-size: .75rem;
  color: #6b7280;
}

.qro-payment-method-arrow {
  font-size: 20px;
  color: #9ca3af;
}
@media only screen and (min-width:1280px){
    #qro-app .qro-grid{
        grid-template-columns: repeat(3, 1fr) !important;
    }
    #qro-app .qro-food-img-wrap{
         height: 235px;
    }
}
@media (min-width: 650px)  {

  :root {
    --qro-bar-h: 68px;
  }

  /* App container wider for tablet */
  #qro-app {
    max-width: 1024px;
    font-size: 17px;
    padding-bottom: calc(var(--qro-bar-h) + 20px);
  }

  /* Header with more space */
  #qro-app .qro-header {
    padding: 14px 24px;
  }

  #qro-app .qro-store-name {
    font-size: 1.2rem;
  }

  #qro-app .qro-table-badge {
    font-size: .85rem;
    padding: 3px 12px;
  }

  #qro-app .qro-cart-btn {
    padding: 8px 18px;
    font-size: 1rem;
    border: 2.5px solid rgba(255,255,255,.8);
  }

  #qro-app .qro-badge {
    font-size: .8rem;
    padding: 2px 7px;
    min-width: 22px;
  }

  /* Categories more spacious */
  #qro-app .qro-cats {
    padding: 12px 20px;
    gap: 10px;
  }

  #qro-app .qro-cat-btn {
    padding: 8px 20px;
    font-size: .95rem;
    border-width: 2px;
  }

  /* Ã¢Ëœâ€¦ GRID LAYOUT - 2 columns for tablet Ã¢Ëœâ€¦ */
  #qro-app .qro-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 18px 20px;
  }

  /* Ã¢Ëœâ€¦ Food card vertical layout for grid Ã¢Ëœâ€¦ */
  #qro-app .qro-food-card {
    flex-direction: column;
    border-radius: 14px;
  }

  #qro-app .qro-food-img-wrap {
    width: 100%;
    height: 280px;
  }

  #qro-app .qro-food-info {
    padding: 14px;
  }

  #qro-app .qro-food-name {
    font-size: 1.05rem;
    margin-bottom: 6px;
  }

  #qro-app .qro-food-desc-short {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
    margin-bottom: 8px;
  }

  #qro-app .qro-food-price {
    font-size: 1.1rem;
  }

  #qro-app .qro-food-orig {
    font-size: .85rem;
  }

  /* Ã¢Ëœâ€¦ Reposition add button for vertical cards Ã¢Ëœâ€¦ */
  #qro-app .qro-food-select-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    top: auto;
    transform: none;
    font-size: 20px;
    padding-bottom: 5px;
  }

 
/* ──────────────────────────────────────────────────────────── */
/* CART DRAWER ENHANCED - Tối ưu giỏ hàng */
/* ──────────────────────────────────────────────────────────── */

#qro-app .qro-cart {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 100vw);
  background: #fff;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#qro-app .qro-cart.open {
  transform: translateX(0);
}

/* Cart Header */
#qro-app .qro-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}

#qro-app .qro-cart-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: #212121;
  display: flex;
  align-items: center;
  gap: 8px;
}

#qro-app .qro-cart-header h2::before {
  content: "🛒";
  font-size: 1.2rem;
}

#qro-app #qro-cart-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  padding: 8px;
  margin: -8px;
  transition: all 0.2s;
  border-radius: 50%;
}

#qro-app #qro-cart-close:hover {
  background: #f5f5f5;
  color: #e53935;
}

/* Cart Items Container */
#qro-app #qro-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  background: #fafafa;
}

/* Empty Cart */
#qro-app .qro-cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  font-size: 0.95rem;
}

#qro-app .qro-cart-empty::before {
  content: "🛒";
  display: block;
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* Cart Line Item - Enhanced */
#qro-app .qro-cart-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  position: relative;
}

#qro-app .qro-cart-line:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateX(-2px);
}

/* Cart Item Image */
#qro-app .qro-cart-line-image {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f5f5f5;
}

/* Cart Item Info */
#qro-app .qro-cart-line-info {
  flex: 1;
  min-width: 0;
}

#qro-app .qro-cart-line-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #212121;
  display: block;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#qro-app .qro-cart-line-options {
  font-size: 0.7rem;
  color: #999;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#qro-app .qro-cart-line-options span {
  display: inline-block;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
  font-size: 0.65rem;
}

/* Quantity Controls */
#qro-app .qro-cart-line-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 3px;
}

#qro-app .qro-qty-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  transition: all 0.15s;
  color: #e53935;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#qro-app .qro-qty-btn:hover {
  background: #e53935;
  color: #fff;
  transform: scale(1.05);
}

#qro-app .qro-qty-btn:active {
  
  
}

#qro-app .qro-cart-line-qty span {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #212121;
}

/* Price */
#qro-app .qro-cart-line-price {
  font-weight: 700;
  color: #e53935;
  font-size: 0.9rem;
  min-width: 70px;
  text-align: right;
}

/* Delete Button */
#qro-app .qro-cart-line-del {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 6px;
  color: #ccc;
  transition: all 0.15s;
  border-radius: 50%;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qro-app .qro-cart-line-del:hover {
  color: #e53935;
  background: #fee;
  transform: scale(1.1);
}

/* Cart Footer */
#qro-app .qro-cart-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Total Section */
#qro-app .qro-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  font-size: 1rem;
  color: #666;
}

#qro-app .qro-cart-total strong {
  font-size: 1.3rem;
  font-weight: 800;
  color: #e53935;
}

/* Checkout Button */
#qro-app .qro-btn-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #e53935, #c62828);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  gap: 8px;
}

#qro-app .qro-btn-primary::before {
  content: "💳";
  font-size: 1.1rem;
}

#qro-app .qro-btn-primary::after {
  content: "→";
  font-size: 1.1rem;
  transition: transform 0.2s;
}

#qro-app .qro-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #c62828, #b71c1c);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

#qro-app .qro-btn-primary:hover:not(:disabled)::after {
  transform: translateX(4px);
}

#qro-app .qro-btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

  /* Modal sizing for tablet */
  .qro-modal-box {
    max-width: 420px;
    padding: 20px 24px 24px;
    border-radius: 20px;
  }

  #qro-qr-img {
    max-width: 320px;
  }

  #qro-ck-info {
    padding: 14px 18px;
  }

  .qro-ck-row {
    font-size: .95rem;
    padding: 6px 0;
  }

  .qro-pay-hint {
    font-size: .9rem;
  }

  #qro-pay-status {
    font-size: 1rem;
  }

  .qro-btn-secondary {
    padding: 13px;
    font-size: 1rem;
  }

  /* Bottom sheet wider on tablet */
  .qro-bottom-sheet .qro-modal-box {
    max-width: 640px;
    margin: 0 auto;
    border-radius: 24px 24px 0 0;
  }

  .qro-bs-header {
    max-height: 300px;
    min-height: 220px;
  }

  .qro-bs-close {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    top: 16px;
    right: 16px;
  }

  .qro-bs-body {
    padding: 20px 24px;
  }

  .qro-bs-food-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .qro-bs-food-desc {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .qro-bs-footer {
    padding: 18px 24px 24px;
  }

  .qro-modal-qty-ctrl {
    padding: 14px 18px;
    gap: 16px;
  }

  .qro-modal-qty-btn {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
    border-radius: 14px;
  }

  .qro-modal-qty-val {
    font-size: 1.15rem;
    min-width: 55px;
  }

  .qro-opt-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .qro-opt-label {
    font-size: 1.05rem;
    margin-bottom: 14px;
  }

  .qro-opt-required {
    font-size: .85rem;
  }

  .qro-opt-choices {
    gap: 10px;
  }

  .qro-opt-choice {
    font-size: .95rem;
    padding: 10px 18px;
    border-radius: 14px;
  }

  .qro-opt-price {
    font-size: .85rem;
  }

  .qro-opt-note-input {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 14px;
  }

  #qro-opts-confirm {
    padding: 16px 20px !important;
    font-size: 1.05rem;
    border-radius: 14px;
  }

  #qro-opts-price-preview {
    font-size: 1.15rem;
  }

  /* Sticky bar for tablet */
  #qro-sticky-bar {
    width: 720px;
    height: 68px;
    padding: 0 28px;
  }

  #qro-sticky-bar-count {
    font-size: 1rem;
  }

  #qro-sticky-bar-label {
    font-size: 1.05rem;
  }

  #qro-sticky-bar-total {
    font-size: 1.15rem;
  }

  /* Payment methods on tablet */
  .qro-payment-method {
    padding: 20px 24px;
    border-radius: 14px;
  }

  .qro-payment-method-icon {
    width: 60px;
    height: 60px;
    font-size: 30px;
    border-radius: 14px;
  }

  .qro-payment-method-icon img {
    width: 40px;
    height: 40px;
  }

  .qro-payment-method-name {
    font-size: 1.1rem;
  }

  .qro-payment-method-desc {
    font-size: .9rem;
  }

  .qro-payment-method-arrow {
    font-size: 24px;
  }
}


@media (max-width: 650px) {

  :root {
    --qro-bar-h: 56px;
  }


  #qro-app {
    max-width: 100%;
    font-size: 15px;
    padding-bottom: calc(var(--qro-bar-h) + 12px);
  }


  #qro-app .qro-header {
    padding: 10px 12px;
  }

  #qro-app .qro-store-name {
    font-size: 20px;
  }

  #qro-app .qro-cart-btn {
    padding: 5px 10px;
    font-size: 0.85rem;
  }

  #qro-app .qro-cats {
    padding: 8px 10px;
    gap: 5px;
  }

  #qro-app .qro-cat-btn {
    padding: 3px 17px;
    font-size: 14px;
    text-transform: capitalize;
  }

  
  #qro-app .qro-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }

  #qro-app .qro-food-card {
    flex-direction: row;
    border-radius: 10px;
  }

  #qro-app .qro-food-img-wrap {
    width: 120px;
    height: 110px;
  }

  #qro-app .qro-food-info {
    padding: 10px 12px;
  }

  #qro-app .qro-food-name {
    font-size: 0.9rem;
  }

  #qro-app .qro-food-desc-short {
    font-size: .78rem;
    margin-bottom: 4px;
    -webkit-line-clamp: 2;
  }

  #qro-app .qro-food-price {
    font-size: 0.95rem;
  }

 
  #qro-app .qro-food-select-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    font-size: 14px;
  }


  #qro-app .qro-cart {
    width: 100vw;
  }

  #qro-app .qro-cart-header {
    padding: 8px 15px;
  }

  #qro-app #qro-cart-items {
    padding: 10px 12px;
  }

  #qro-app .qro-cart-footer {
    padding: 12px;
  }

  .qro-modal-box {
    max-width: 92vw;
    padding: 14px;
  }

  #qro-qr-img {
    max-width: 220px;
  }

  .qro-bottom-sheet .qro-modal-box {
    border-radius: 16px 16px 0 0;
  }

  .qro-bs-body {
    padding: 14px 12px;
  }

  .qro-bs-footer {
    padding: 10px 12px 14px;
  }

  .qro-bs-header {
    aspect-ratio: 16 / 9;
    max-height: 180px;
    min-height: 120px;
  }

  .qro-bs-food-name {
    font-size: 20px;
    margin-bottom: 5px;
  }

  .qro-bs-food-desc {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .qro-modal-qty-ctrl {
    padding: 8px 10px;
    gap: 10px;
  }

  .qro-modal-qty-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin: 0;
  }

  .qro-modal-qty-val {
    font-size: 1.2rem;
    min-width: 40px;
  }

  .qro-opt-choice {
    font-size: 0.8rem;
    padding: 6px 11px;
  }

  #qro-sticky-bar {
    height: 56px;
    padding: 0 14px;
  }

  #qro-sticky-bar-label {
    font-size: 0.9rem;
  }

  #qro-sticky-bar-total {
    font-size: 0.95rem;
  }

  #qro-sticky-bar-count {
    font-size: 0.82rem;
  }

  /* Payment methods mobile */
  .qro-payment-method {
    padding: 12px;
  }

  .qro-payment-method-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .qro-payment-method-icon img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 360px) {

  #qro-app {
    font-size: 14px;
  }

  #qro-app .qro-food-card {
    border-radius: 8px;
  }

  #qro-app .qro-food-img-wrap {
    width: 80px;
    height: 80px;
  }

  #qro-app .qro-food-name {
    font-size: 0.85rem;
  }

  #qro-app .qro-food-price {
    font-size: 0.9rem;
  }

  #qro-app .qro-food-select-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  #qro-app .qro-cat-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
  }

  #qro-app .qro-cart-line-name {
    font-size: 0.82rem;
  }

  .qro-bs-food-name {
    font-size: 0.95rem;
  }

  .qro-modal-qty-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .qro-modal-qty-val {
    font-size: 0.9rem;
    min-width: 36px;
  }

  .qro-opt-choice {
    font-size: 0.76rem;
    padding: 5px 9px;
  }

  #qro-opts-confirm {
    font-size: 0.9rem;
    padding: 10px 12px !important;
  }
}

button#qro-opts-confirm span {
    text-transform: capitalize;
    color: #ffffff;
}

button#qro-opts-confirm span span#qro-opts-price-preview {
    color: red;
}


button#qro-opts-confirm img {
    border: 1px solid #737373 !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 5px;
    padding: 5px !important;
}

.qro-bs-footer button#qro-opts-confirm img {
    display: none !important;
}
span.qro-opt-optional {
    font-style: italic;
    font-size: 14px;
    color: red;
}
.btn_quantity_price .btn_price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
    padding: 0 10px;
}

/* ===== CART DRAWER ===== */
#qro-cart-drawer {
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.08);
    border-radius: 16px 0 0 16px;
    overflow: hidden;
}

/* ===== HEADER ===== */
.qro-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

#qro-cart-close {
    background: #f5f5f5;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
}

/* ===== LIST ITEMS ===== */
#qro-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: #fafafa;
}

/* ===== ITEM ===== */
.qro-cart-item {
    display: flex;
    gap: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* IMAGE */
.qro-cart-item-img-wrap {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.qro-cart-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* INFO */
.qro-cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qro-cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.qro-cart-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.qro-cart-option-tag {
    font-size: 11px;
    background: #f0f0f0;
    padding: 3px 6px;
    border-radius: 6px;
    color: #555;
}

/* PRICE */
.qro-cart-item-price {
    font-weight: 600;
    font-size: 14px;
    color: #e53935;
    white-space: nowrap;
}


.qro-qty-btn:active {
    transform: scale(0.95);
}

/* DELETE */
.qro-cart-item-delete {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 16px;
}

/* ===== FOOTER ===== */
.qro-cart-footer {
    padding: 16px;
    border-top: 1px solid #eee;
    background: #fff;
}

.qro-cart-total {
    font-size: 16px;
    margin-bottom: 10px;
}

#qro-checkout-total {
    color: #e53935;
}

/* BUTTON */
.qro-btn-primary {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #e53935, #ff7043);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.qro-btn-primary:active {
    transform: scale(0.98);
}
.qro-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f3f3f3;
    padding: 2px 4px;
    border-radius: 999px;
}

/* Nút +/- nhỏ lại */
.qro-qty-btn {
    width: 15px;
    height: 15px;
    font-size: 12px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    margin: 2px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Số lượng */
.qro-cart-item-qty span {
    min-width: 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
}
/* Giao diện mặc định cho Mobile */
#qro-cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.qro-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr; /* Ảnh bên trái, nội dung bên phải */
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.qro-cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    grid-row: span 2;
}

.qro-cart-item-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.qro-cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-column: 2;
}

.qro-cart-item-price {
    color: #e44d26;
    font-weight: 600;
}

/* Style nút bấm cho dễ chạm trên mobile */
.qro-qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
}

.qro-cart-item-qty span {
    margin: 0 10px;
    font-weight: bold;
}
/* Giao diện mặc định cho Mobile */
#qro-cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
}

.qro-cart-item {
    display: grid;
    grid-template-columns: 80px 1fr; /* Ảnh bên trái, nội dung bên phải */
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.qro-cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    grid-row: span 2;
}

.qro-cart-item-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

.qro-cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-column: 2;
}

.qro-cart-item-price {
    color: #e44d26;
    font-weight: 600;
}

/* Style nút bấm cho dễ chạm trên mobile */
.qro-qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
}

.qro-cart-item-qty span {
    margin: 0 10px;
    font-weight: bold;
}

/*cart*/
/* Container tổng */
#qro-cart-drawer {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#qro-cart-items {
    padding: 10px;
}

/* Từng dòng sản phẩm */
.qro-cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 70px 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.qro-cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    grid-row: span 2;
}

.qro-cart-item-name {
    font-weight: 600;
    font-size: 14px;
    padding-right: 20px; /* Tránh đè lên nút xóa */
}

.qro-cart-item-actions {
    grid-column: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qro-cart-item-price {
    color: #d32f2f;
    font-weight: bold;
}

/* Nút Xóa trên Mobile */
.qro-cart-item-delete {
    position: absolute;
    top: 10px;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.qro-cart-item-delete img {
    width: 18px;
}

/* Bộ tăng giảm số lượng */
.qro-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
}

.qro-qty-btn {
    border: none;
    background: #f5f5f5;
    width: 24px;
    height: 24px;
    cursor: pointer;
}


/* Giao diện tổng thể cho Mobile First */
#qro-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px;
    background-color: #f9f9f9;
}

.cart-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    gap: 12px;
}

/* 1. Phần hình ảnh */
.cart-item-col-image {
    flex-shrink: 0;
}

.cart-item-img, 
.cart-item-img-placeholder {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. Thông tin sản phẩm */
.cart-item-col-info {
    flex-grow: 1;
    min-width: 0; /* Tránh tràn chữ */
}

.cart-item-name {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-options {
    font-size: 12px;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cart-option strong {
    color: #333;
}

/* 3. Giá và Bộ tăng giảm số lượng */
.cart-item-col-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.cart-item-col-price {
    font-weight: 700;
    color: #e44d26; /* Màu nhấn cho giá tiền */
    font-size: 14px;
}

.cart-qty {
    display: flex;
    align-items: center;
    background: #f1f1f1;
    border-radius: 20px;
    padding: 2px;
}

.cart-qty-btn {
    width: 20px;
    height: 20px;
    border: none;
    background: #fff;
    border-radius: 10px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin: 0;
}

.cart-qty-num {
    padding: 0 10px;
    font-weight: 600;
    font-size: 14px;
    min-width: 25px;
    text-align: center;
}

/* Media Query cho màn hình lớn hơn (Desktop/Tablet) */
@media (min-width: 768px) {
    .cart-item {
        padding: 15px 20px;
    }
    
    .cart-item-col-actions {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
    
    .cart-item-name {
        font-size: 17px;
    }
}
/* Container chính của mỗi item */
.cart-item {
    display: flex;
    align-items: flex-start; /* Căn đỉnh để nội dung dài không bị kéo lệch */
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

/* Cột 1: Hình ảnh */
.cart-item-col-image {
    flex: 0 0 65px; /* Giữ cố định độ rộng ảnh */
}

.cart-item-img-placeholder, .cart-item-img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cart-item-img-placeholder img.emoji {
    width: 30px;
    height: 30px;
}

/* Cột 2: Thông tin sản phẩm */
.cart-item-col-info {
    flex: 1; /* Tự động chiếm hết khoảng trống còn lại */
    min-width: 0; /* Quan trọng: giúp xử lý text quá dài */
}

.cart-item-name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.3;
}

.cart-item-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 12px;
    color: #777;
}

.cart-option strong {
    color: #444;
}

/* Cột 3: Giá & Nút bấm */
.cart-item-col-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Đẩy giá và nút về bên phải */
    justify-content: space-between;
    min-height: 65px; /* Khớp với chiều cao ảnh */
}

.cart-item-col-price {
    font-weight: 700;
    color: #d32f2f; /* Màu đỏ cho giá tiền */
    font-size: 15px;
}

/* Bộ nút tăng giảm số lượng */
.cart-item-qty {
    display: flex;
    align-items: center;
    background: #f8f8f8;
    border-radius: 10px;
    border: 1px solid #ddd;
}



/* Hiệu ứng khi bấm nút */
.cart-qty-btn:active {
    background-color: #eee;
    border-radius: 6px;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}