/* NSW Side Cart Drawer */
.nsw-sc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 99980;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.nsw-sc-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nsw-sc-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100%;
  background: #fff;
  z-index: 99990;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  transform: translateX(105%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.nsw-sc-drawer.is-open {
  transform: translateX(0);
}

.nsw-sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f7;
  flex-shrink: 0;
}
.nsw-sc-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
}
.nsw-sc-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: #f1f5f9;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #475569;
}
.nsw-sc-close:hover {
  background: #e2e8f0;
}

.nsw-sc-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 24px;
  -webkit-overflow-scrolling: touch;
}
.nsw-sc-loading,
.nsw-sc-empty {
  text-align: center;
  padding: 40px 16px;
  color: #64748b;
}

.nsw-sc-item {
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}
.nsw-sc-item-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.nsw-sc-thumb-wrap img,
.nsw-sc-thumb {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
  display: block;
}
.nsw-sc-item-info {
  flex: 1;
  min-width: 0;
}
.nsw-sc-item-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
  line-height: 1.3;
}
.nsw-sc-item-name:hover {
  color: #1c3f7a;
}
.nsw-sc-item-price {
  font-size: 13px;
  font-weight: 700;
  color: #1c3f7a;
  margin-bottom: 8px;
}
.nsw-sc-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}
.nsw-sc-qty-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: #f8fafc;
  cursor: pointer;
  font-size: 16px;
  color: #334155;
}
.nsw-sc-qty-btn:hover {
  background: #e2e8f0;
}
.nsw-sc-qty-input {
  width: 40px;
  height: 32px;
  border: 0;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
  -moz-appearance: textfield;
}
.nsw-sc-qty-input::-webkit-outer-spin-button,
.nsw-sc-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.nsw-sc-remove {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.nsw-sc-remove:hover {
  color: #c53030;
}

/* Engraving */
.nsw-sc-engraving {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.nsw-sc-eng-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  margin-bottom: 8px;
}
.nsw-sc-eng-fee {
  color: #1c3f7a;
  font-weight: 700;
}
.nsw-sc-eng-text {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}
.nsw-sc-eng-text:disabled {
  background: #f8fafc;
  opacity: 0.7;
}

/* Accessories */
.nsw-sc-accessories {
  margin-top: 8px;
  padding-top: 8px;
}
.nsw-sc-section-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1c3f7a;
}
.nsw-sc-acc-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nsw-sc-acc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #fafbfc;
}
.nsw-sc-acc-thumb img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.nsw-sc-acc-info {
  flex: 1;
  min-width: 0;
}
.nsw-sc-acc-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}
.nsw-sc-acc-price {
  font-size: 12px;
  font-weight: 700;
  color: #1c3f7a;
}
.nsw-sc-acc-add {
  border: 0;
  background: #1c3f7a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}
.nsw-sc-acc-add:hover {
  background: #142e5a;
}

/* Footer totals */
.nsw-sc-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-bottom: 8px;
}
.nsw-sc-totals {
  margin-bottom: 12px;
}
.nsw-sc-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #475569;
  margin-bottom: 6px;
}
.nsw-sc-total-main {
  font-size: 16px;
  font-weight: 800;
  color: #1c3f7a;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.nsw-sc-btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  box-sizing: border-box;
  margin-bottom: 8px;
  border: none;
  cursor: pointer;
}
.nsw-sc-btn-primary {
  background: #1c3f7a;
  color: #fff !important;
}
.nsw-sc-btn-primary:hover {
  background: #142e5a;
}
.nsw-sc-btn-ghost {
  background: #fff;
  color: #1c3f7a !important;
  border: 1px solid #e2e8f0;
}
.nsw-sc-btn-ghost:hover {
  background: #f8fafc;
}

body.nsw-sc-open {
  overflow: hidden;
}
