/* =========================================================
   Fast Shop — Stylesheet
   Matches checkout UI from design reference (beige/warm theme)
   ========================================================= */

/* ---- Variables ---- */
:root {
  --fs-bg:         #f5f0ea;
  --fs-card-bg:    #ede8e0;
  --fs-white:      #ffffff;
  --fs-border:     #d9d2c8;
  --fs-text:       #2c2c2c;
  --fs-muted:      #888880;
  --fs-accent:     #7dbcb8;   /* teal-ish button */
  --fs-accent-hov: #5fa9a5;
  --fs-danger:     #e04040;
  --fs-success:    #2a8a4a;
  --fs-radius:     10px;
  --fs-radius-lg:  18px;
  --fs-shadow:     0 2px 12px rgba(0,0,0,.08);
  --fs-font:       'Be Vietnam Pro', 'Segoe UI', sans-serif;
}

/* ---- Reset ---- */
.fs-checkout-wrap *, .fs-product-page *, .fs-success-wrap * {
  box-sizing: border-box;
}

/* =====================================================
   CHECKOUT LAYOUT
   ===================================================== */
.fs-checkout-wrap {
  display: flex;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  font-family: var(--fs-font);
  color: var(--fs-text);
  align-items: flex-start;
}

/* Left column */
.fs-checkout-left {
  flex: 1 1 480px;
  min-width: 0;
}

/* Right column */
.fs-checkout-right {
  flex: 0 0 420px;
  position: sticky;
  top: 80px;
}

@media (max-width: 860px) {
  .fs-checkout-wrap { flex-direction: column; }
  .fs-checkout-right { position: static; flex: none; width: 100%; }
}

/* ---- Page title ---- */
.fs-page-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--fs-text);
}

/* ---- Section ---- */
.fs-section {
  margin-bottom: 24px;
}
.fs-section-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--fs-text);
}
.fs-section-invoice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.fs-section-invoice .fs-section-title { margin-bottom: 0; flex: 1; }

/* ---- Form elements ---- */
.fs-form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.fs-form-row > * { flex: 1; min-width: 0; }
.fs-form-row .fs-field-wrap { display: flex; flex-direction: column; }

.fs-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--fs-white);
  border: 1.5px solid var(--fs-border);
  border-radius: var(--fs-radius);
  font-size: 14px;
  font-family: var(--fs-font);
  color: var(--fs-text);
  outline: none;
  transition: border-color .18s;
  appearance: none;
}
.fs-input:focus { border-color: var(--fs-accent); }
.fs-input::placeholder { color: var(--fs-muted); }

.fs-select-wrap { position: relative; }
.fs-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--fs-muted);
  font-size: 13px;
}
.fs-textarea {
  height: 100px;
  resize: vertical;
}

/* Invoice toggle button */
.fs-btn-invoice {
  padding: 8px 16px;
  background: var(--fs-accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--fs-font);
  transition: background .18s;
}
.fs-btn-invoice:hover { background: var(--fs-accent-hov); }
.fs-btn-invoice-active { background: var(--fs-muted); }

/* ---- Payment options ---- */
.fs-payment-options { display: flex; flex-direction: column; gap: 10px; }
.fs-payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--fs-white);
  border: 1.5px solid var(--fs-border);
  border-radius: var(--fs-radius);
  cursor: pointer;
  font-size: 14px;
  transition: border-color .18s;
}
.fs-payment-option:has(input:checked) {
  border-color: var(--fs-accent);
  background: #f0faf9;
}
.fs-payment-option input[type=radio] {
  accent-color: var(--fs-accent);
  width: 16px; height: 16px;
}

/* QR panel */
.fs-qr-panel {
  margin-top: 16px;
  padding: 16px;
  background: var(--fs-white);
  border: 1.5px solid var(--fs-border);
  border-radius: var(--fs-radius);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.fs-qr-img {
  width: 120px; height: 120px;
  object-fit: contain;
  border-radius: 6px;
}
.fs-bank-info p { margin: 4px 0; font-size: 14px; }
.fs-copyable {
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
}

/* =====================================================
   CART BOX (right side)
   ===================================================== */
.fs-cart-box {
  background: var(--fs-card-bg);
  border-radius: var(--fs-radius-lg);
  padding: 24px 20px;
}
.fs-cart-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 18px;
}

/* Cart items */
.fs-cart-items { margin-bottom: 16px; }
.fs-cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--fs-border);
  position: relative;
}
.fs-cart-item:last-child { border-bottom: none; }
.fs-remove-item {
  position: absolute;
  top: 10px;
  left: -6px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--fs-muted);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.fs-remove-item:hover { background: var(--fs-danger); }
.fs-item-image {
  width: 68px; height: 68px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  margin-left: 16px;
}
.fs-no-img {
  background: var(--fs-border);
}
.fs-item-details { flex: 1; min-width: 0; }
.fs-item-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--fs-text);
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 6px;
}
.fs-item-name:hover { color: var(--fs-accent); }

.fs-item-qty-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.fs-item-qty-btn {
  width: 26px; height: 26px;
  border: 1.5px solid var(--fs-border);
  background: var(--fs-white);
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s;
}
.fs-item-qty-btn:hover { border-color: var(--fs-accent); }
.fs-item-qty { font-weight: 600; min-width: 20px; text-align: center; }
.fs-item-price-unit { color: var(--fs-muted); font-size: 12px; }
.fs-item-line-total {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Coupon ---- */
.fs-coupon-wrap {
  margin: 4px 0 16px;
  border-top: 1.5px dashed var(--fs-border);
  border-bottom: 1.5px dashed var(--fs-border);
  padding: 14px 0;
}
.fs-coupon-label {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 10px;
}
.fs-coupon-select-btn {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1.5px solid var(--fs-border);
  border-radius: 30px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-family: var(--fs-font);
  color: var(--fs-muted);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.fs-coupon-icon { font-size: 16px; }
.fs-coupon-input-row {
  display: flex; gap: 8px;
}
.fs-coupon-input {
  flex: 1;
  padding: 11px 14px;
  border: 1.5px solid var(--fs-border);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--fs-font);
  background: var(--fs-white);
  outline: none;
}
.fs-coupon-input:focus { border-color: var(--fs-accent); }
.fs-btn-apply {
  padding: 11px 18px;
  background: var(--fs-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--fs-font);
  cursor: pointer;
  transition: background .18s;
  font-weight: 600;
}
.fs-btn-apply:hover { background: var(--fs-accent-hov); }
.fs-coupon-msg { font-size: 13px; margin: 6px 0 0; }

/* ---- Totals ---- */
.fs-totals { margin-bottom: 16px; }
.fs-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
  color: var(--fs-text);
}
.fs-total-final {
  border-top: 1.5px solid var(--fs-border);
  margin-top: 6px;
  padding-top: 10px;
  font-size: 20px;
  font-weight: 700;
}

/* ---- Place order button ---- */
.fs-btn-order {
  width: 100%;
  padding: 16px;
  background: var(--fs-accent);
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--fs-font);
  cursor: pointer;
  transition: background .18s, transform .12s;
  letter-spacing: .02em;
}
.fs-btn-order:hover  { background: var(--fs-accent-hov); transform: translateY(-1px); }
.fs-btn-order:active { transform: translateY(0); }
.fs-btn-order:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.fs-order-error {
  color: var(--fs-danger);
  font-size: 13px;
  margin-top: 8px;
  text-align: center;
}

.fs-empty-cart {
  color: var(--fs-muted);
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}
.fs-cart-loading {
  color: var(--fs-muted);
  font-size: 14px;
  padding: 16px 0;
  text-align: center;
}

/* =====================================================
   PRODUCT PAGE
   ===================================================== */
.fs-product-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px;
  font-family: var(--fs-font);
}
.fs-product-inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}
@media (max-width: 700px) {
  .fs-product-inner { flex-direction: column; }
}
.fs-product-gallery { flex: 0 0 46%; }
.fs-main-image {
  width: 100%;
  border-radius: var(--fs-radius-lg);
  display: block;
}
.fs-product-info { flex: 1; }
.fs-product-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}
.fs-product-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.fs-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--fs-danger);
}
.fs-old-price {
  font-size: 16px;
  color: var(--fs-muted);
  text-decoration: line-through;
}
.fs-product-excerpt {
  font-size: 15px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Quantity */
.fs-qty-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
  border: 1.5px solid var(--fs-border);
  border-radius: var(--fs-radius);
  overflow: hidden;
  width: fit-content;
}
.fs-qty-btn {
  width: 40px; height: 40px;
  background: var(--fs-bg);
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: var(--fs-text);
  transition: background .15s;
}
.fs-qty-btn:hover { background: var(--fs-border); }
.fs-qty-input {
  width: 52px;
  text-align: center;
  border: none;
  border-left: 1.5px solid var(--fs-border);
  border-right: 1.5px solid var(--fs-border);
  font-size: 15px;
  font-family: var(--fs-font);
  font-weight: 600;
  outline: none;
  padding: 0;
  height: 40px;
  -moz-appearance: textfield;
}
.fs-qty-input::-webkit-outer-spin-button,
.fs-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Product action buttons */
.fs-product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.fs-btn-primary, .fs-btn-secondary {
  padding: 13px 22px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--fs-font);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .18s;
}
.fs-btn-primary {
  background: var(--fs-accent);
  color: #fff;
  border-color: var(--fs-accent);
}
.fs-btn-primary:hover { background: var(--fs-accent-hov); border-color: var(--fs-accent-hov); }
.fs-btn-secondary {
  background: transparent;
  color: var(--fs-accent);
  border-color: var(--fs-accent);
}
.fs-btn-secondary:hover { background: var(--fs-accent); color: #fff; }
.fs-btn-secondary.fs-added {
  background: var(--fs-success);
  border-color: var(--fs-success);
  color: #fff;
}

/* =====================================================
   ORDER SUCCESS PAGE
   ===================================================== */
.fs-success-wrap {
  max-width: 540px;
  margin: 60px auto;
  text-align: center;
  padding: 0 20px;
  font-family: var(--fs-font);
}
.fs-success-icon { font-size: 52px; margin-bottom: 16px; }
.fs-success-title { font-size: 26px; font-weight: 700; margin: 0 0 8px; }
.fs-success-sub { color: var(--fs-muted); font-size: 15px; margin: 0 0 28px; }
.fs-success-details {
  background: var(--fs-card-bg);
  border-radius: var(--fs-radius-lg);
  padding: 20px 24px;
  text-align: left;
  margin-bottom: 24px;
}
.fs-success-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--fs-border);
}
.fs-success-row:last-child { border: none; }
.fs-btn-home {
  display: inline-block;
  padding: 13px 28px;
  background: var(--fs-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: background .18s;
}
.fs-btn-home:hover { background: var(--fs-accent-hov); }

/* =====================================================
   TOAST
   ===================================================== */
.fs-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #222;
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-family: var(--fs-font);
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  z-index: 99999;
  white-space: nowrap;
  max-width: calc(100vw - 40px);
}
.fs-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =====================================================
   CART COUNT BADGE
   ===================================================== */
.fs-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fs-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  vertical-align: super;
  font-family: var(--fs-font);
}


/* ---- Field wrap — chứa input + error span ---- */
.fs-field-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.fs-field-wrap .fs-input,
.fs-field-wrap .fs-select-wrap { width: 100%; }

.fs-field-error {
  display: none;
  color: var(--fs-danger);
  font-size: 12px;
  margin-top: 5px;
  line-height: 1.4;
}

/* =====================================================
   COUPON MODAL
   ===================================================== */
.fs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .2s;
}
.fs-modal-overlay.fs-modal-show { opacity: 1; }

.fs-modal {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  transform: translateY(12px);
  transition: transform .2s;
  overflow: hidden;
}
.fs-modal-overlay.fs-modal-show .fs-modal { transform: translateY(0); }

.fs-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid #eee;
}
.fs-modal-header h3 { margin: 0; font-size: 17px; }
.fs-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #aaa;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s;
}
.fs-modal-close:hover { background: #f5f5f5; color: #333; }

.fs-modal-body {
  overflow-y: auto;
  padding: 12px 16px 20px;
  flex: 1;
}

.fs-no-coupon {
  text-align: center;
  color: var(--fs-muted);
  padding: 24px 0;
  font-size: 14px;
}

.fs-coupon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px dashed var(--fs-border);
  border-radius: 10px;
  margin-bottom: 10px;
  background: #fafaf8;
  transition: border-color .15s, background .15s;
}
.fs-coupon-card:hover { border-color: var(--fs-accent); background: #f0faf9; }
.fs-coupon-card:last-child { margin-bottom: 0; }

.fs-coupon-card-left { flex: 1; min-width: 0; }
.fs-coupon-code {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--fs-text);
  font-family: monospace;
  background: #e8f5e9;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
}
.fs-coupon-desc {
  font-size: 13px;
  color: var(--fs-text);
  margin-bottom: 3px;
}
.fs-coupon-min {
  font-size: 11px;
  color: var(--fs-muted);
}

.fs-coupon-card-right {
  text-align: right;
  flex-shrink: 0;
}
.fs-coupon-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--fs-danger);
  margin-bottom: 8px;
}
.fs-coupon-pick-btn {
  padding: 7px 16px;
  background: var(--fs-accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--fs-font);
  transition: background .15s;
  white-space: nowrap;
}
.fs-coupon-pick-btn:hover { background: var(--fs-accent-hov); }

/* =====================================================
   PRODUCT GRID & CARD
   ===================================================== */
.fs-products-grid {
  display: grid;
  gap: 20px;
  font-family: var(--fs-font);
}
.fs-cols-1 { grid-template-columns: 1fr; }
.fs-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fs-cols-3 { grid-template-columns: repeat(3, 1fr); }
.fs-cols-4 { grid-template-columns: repeat(4, 1fr); }
.fs-cols-5 { grid-template-columns: repeat(5, 1fr); }
.fs-cols-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 900px) {
  .fs-cols-4, .fs-cols-5, .fs-cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .fs-cols-3, .fs-cols-4, .fs-cols-5, .fs-cols-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .fs-products-grid { grid-template-columns: 1fr !important; }
}

.fs-product-card {
  background: #fff;
  border-radius: var(--fs-radius-lg);
  overflow: hidden;
  box-shadow: var(--fs-shadow);
  display: flex;
  flex-direction: column;
  transition: transform .18s, box-shadow .18s;
  position: relative;
}
.fs-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* Image */
.fs-card-image-link { display: block; position: relative; }
.fs-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.fs-card-no-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--fs-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

/* Badge giảm giá */
.fs-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--fs-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  font-family: var(--fs-font);
}

/* Body */
.fs-card-body {
  padding: 12px 14px 8px;
  flex: 1;
}
.fs-card-cat {
  font-size: 11px;
  color: var(--fs-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  margin-bottom: 4px;
}
.fs-card-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fs-card-title a {
  color: var(--fs-text);
  text-decoration: none;
}
.fs-card-title a:hover { color: var(--fs-accent); }

.fs-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.fs-card-price-main {
  font-size: 16px;
  font-weight: 700;
  color: var(--fs-danger);
}
.fs-card-price-old {
  font-size: 12px;
  color: var(--fs-muted);
  text-decoration: line-through;
}

/* Actions */
.fs-card-actions {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.fs-card-btn-cart {
  width: 100%;
  padding: 9px;
  background: var(--fs-accent);
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--fs-font);
  transition: background .15s;
}
.fs-card-btn-cart:hover  { background: var(--fs-accent-hov); }
.fs-card-btn-cart.fs-added { background: var(--fs-success); }

.fs-card-btn-detail {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--fs-muted);
  text-decoration: none;
  transition: color .15s;
}
.fs-card-btn-detail:hover { color: var(--fs-accent); }

.fs-no-products {
  color: var(--fs-muted);
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
  font-family: var(--fs-font);
}

/* =====================================================
   CUSTOM OVERRIDES (từ theme người dùng)
   ===================================================== */
.fs-cart-box {
    background: white;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, .15);
}
select#fs-ward {
    line-height: normal;
    height: 50px;
}
.fs-checkout-wrap :is(input,select) {
    height: 50px;
    border-radius: 5px;
    overflow: hidden;
    color: #333;
}
.fs-checkout-wrap input {
    box-shadow: none;
}
.fs-checkout-wrap :is(input,select):focus {
    border-color: var(--main-cl);
}
.fs-checkout-wrap input::placeholder {
    color: #333;
}
.fs-section-title {
    font-size: 18px;
    font-weight: 700;
}
.fs-section:not(:last-child) {
    border-bottom: 1px solid #e3e3e3;
    padding-bottom: 24px;
}
.fs-section .fs-form-row:last-child {
    margin: 0;
}
.fs-textarea {
    min-height: 85px;
    height: 85px;
}
.fs-payment-option:has(input:checked) {
    background: #FDF1F1;
    border: 1px solid #ff7878;
}
.fs-payment-option input[type=radio] {
    accent-color: white;
}
.fs-payment-option input[type=radio] {
    position: relative;
    overflow: unset;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    color: unset;
}
.fs-payment-option input[type=radio]:before {
    position: absolute;
    content: '';
    left: 50%;
    top: 50%;
    width: 120%;
    height: 120%;
    border-radius: 100%;
    background: var(--main-cl);
    transform: translate(-50%,-50%);
    opacity: 0;
}
.fs-payment-option input[type=radio]:after {
    position: absolute;
    content: '';
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background: white;
    width: 50%;
    height: 50%;
    z-index: 1;
    border-radius: 100%;
    opacity: 0;
}
.fs-payment-option input[type=radio]:checked:after,
.fs-payment-option input[type=radio]:checked:before {
    opacity: 1;
}
.fs-qr-panel {
    background: #F1F8F5;
    border: 1px solid #C2E4DB;
}
.fs-bank-info strong {
    color: #719a88;
    opacity: 1;
}
.fs-remove-item {
    line-height: normal;
    left: unset;
    right: 0;
    background: #F4F4F6;
    color: black;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 22px !important;
    height: 22px !important;
    border-radius: 100%;
    min-height: unset;
    text-align: center;
    transition: .7s all;
}
.fs-remove-item:hover {
    color: white;
    background: var(--fs-danger);
    transition: .7s all;
}
.fs-item-line-total {
    margin-top: auto;
    font-size: 16px;
}
.fs-item-qty-btn {
    width: 15px !important;
    height: 35px !important;
    min-width: unset !important;
    min-height: unset;
    max-width: unset;
    padding: .8rem;
}
.fs-total-row.fs-total-final #fs-total {
    color: var(--main-cl);
    font-size: 26px;
}
.fs-btn-apply {
    background: #288668;
}
.fs-checkout-left {
    padding-right: 1.5rem;
    border-right: 1px solid #f0f0f0;
}

/* =====================================================
   CART DRAWER (sidebar giỏ hàng)
   ===================================================== */
.fs-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 99990;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s, visibility .28s;
}
.fs-drawer-overlay.fs-drawer-open {
  opacity: 1;
  visibility: visible;
}

.fs-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: #fff;
  z-index: 99991;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  font-family: var(--fs-font);
}
.fs-drawer-overlay.fs-drawer-open .fs-drawer {
  transform: translateX(0);
}

/* Header */
.fs-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #c0392b;
  color: #fff;
  flex-shrink: 0;
}
.fs-drawer-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.fs-drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: .85;
  transition: opacity .15s;
}
.fs-drawer-close:hover { opacity: 1; }

/* Items list */
.fs-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.fs-drawer-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.fs-drawer-item:last-child { border-bottom: none; }

.fs-drawer-item-img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f5f5f5;
}
.fs-drawer-item-img-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  background: #f0f0f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.fs-drawer-item-info {
  flex: 1;
  min-width: 0;
}
.fs-drawer-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #222;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Qty row */
.fs-drawer-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fs-drawer-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
}
.fs-drawer-qty-btn {
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: none;
  font-size: 17px;
  cursor: pointer;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.fs-drawer-qty-btn:hover { background: #e8e8e8; }
.fs-drawer-qty-val {
  width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border-left: 1.5px solid #ddd;
  border-right: 1.5px solid #ddd;
  line-height: 32px;
}
.fs-drawer-item-price {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  white-space: nowrap;
}
.fs-drawer-item-del {
  background: #f4f4f6;
  border: none;
  cursor: pointer;
  color: #666;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background .15s, color .15s;
  align-self: flex-start;
}
.fs-drawer-item-del:hover { background: #e04040; color: #fff; }

/* Empty state */
.fs-drawer-empty {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
  font-size: 15px;
}
.fs-drawer-empty-icon { font-size: 48px; margin-bottom: 12px; }

/* Footer */
.fs-drawer-footer {
  border-top: 1px solid #eee;
  padding: 16px 18px;
  flex-shrink: 0;
  background: #fff;
}
.fs-drawer-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}
.fs-drawer-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-bottom: 14px;
}
.fs-drawer-actions {
  display: flex;
  gap: 10px;
}
.fs-drawer-btn-continue {
  flex: 1;
  padding: 13px;
  background: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--fs-font);
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .15s;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fs-drawer-btn-continue:hover { background: #444; }

.fs-drawer-btn-checkout {
  flex: 1;
  padding: 13px;
  background: #e8380d;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--fs-font);
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: background .15s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fs-drawer-btn-checkout:hover { background: #c0390d; }

@media (max-width: 480px) {
  .fs-drawer { max-width: 100%; }
}

/* =====================================================
   VARIANT SELECTOR
   ===================================================== */
.fs-variant-selector { margin-bottom: 18px; }
.fs-variant-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fs-muted);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.fs-variant-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fs-variant-btn {
  padding: 8px 18px;
  border: 2px solid var(--fs-border);
  border-radius: 20px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--fs-font);
  color: var(--fs-text);
  transition: all .15s;
}
.fs-variant-btn:hover {
  border-color: var(--fs-accent);
  color: var(--fs-accent);
}
.fs-variant-btn.active {
  border-color: var(--fs-accent);
  background: var(--fs-accent);
  color: #fff;
}

/* Unit tag trong giỏ hàng / checkout */
.fs-item-unit-tag,
.fs-drawer-item-unit {
  display: inline-block;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 4px;
  vertical-align: middle;
}

/* Brand tag trong card sản phẩm */
.fs-card-brand {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #7c3aed;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 2px;
}

/* =====================================================
   BADGE / TAG
   ===================================================== */
.fs-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Badges trên card — overlay góc trên trái ảnh */
.fs-badges-card {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  flex-direction: column;
  align-items: flex-start;
}

/* Badges trên trang chi tiết — inline trước tiêu đề */
.fs-badges-detail {
  margin-bottom: 10px;
}

.fs-badge {
  display: inline-block;
  padding: 4px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.4;
  white-space: nowrap;
  font-family: var(--fs-font);
}
