/* ==========================================================================
   SEGi Dental Society — Merchandise Catalog & DuitNow Checkout (`css/merchandise.css`)
   ========================================================================== */

.page-merchandise {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   1. Merchandise Hero & Header
   -------------------------------------------------------------------------- */
.merch-hero {
  padding: 4rem 1.5rem 2.5rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.merch-hero .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(158, 16, 39, 0.12);
  border: 1px solid var(--border-crimson);
  border-radius: 9999px;
  color: var(--maroon-bright);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.merch-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.merch-hero .hero-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.merch-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.2rem;
}

.merch-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   2. Filter & Controls Bar
   -------------------------------------------------------------------------- */
.merch-controls-wrap {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.merch-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.filter-tab-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: rgba(158, 16, 39, 0.3);
}

.filter-tab-btn.active {
  background: var(--maroon-base);
  color: #ffffff;
  border-color: var(--maroon-bright);
  box-shadow: 0 4px 14px rgba(158, 16, 39, 0.35);
}

.merch-search-sort-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.merch-search-box {
  position: relative;
  flex: 1;
  min-width: 260px;
  max-width: 480px;
}

.merch-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.merch-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: all 0.2s ease;
}

.merch-search-input:focus {
  border-color: var(--maroon-bright);
  box-shadow: 0 0 0 3px rgba(158, 16, 39, 0.15);
}

.merch-sort-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.merch-sort-box label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.merch-sort-select {
  padding: 0.55rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
}

/* Cart Trigger Floating / Top Button */
.cart-trigger-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, var(--maroon-base), var(--maroon-deep));
  color: #ffffff;
  border: 1px solid var(--border-crimson);
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(158, 16, 39, 0.3);
  transition: all 0.25s ease;
}

.cart-trigger-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(158, 16, 39, 0.45);
}

.cart-counter-badge {
  background: var(--gold-accent);
  color: #1a1002;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.12rem 0.5rem;
  border-radius: 9999px;
}

/* --------------------------------------------------------------------------
   3. Product Grid & Cards
   -------------------------------------------------------------------------- */
.merch-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.merch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}

.merch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
  position: relative;
}

.merch-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
  border-color: rgba(158, 16, 39, 0.4);
}

.merch-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.merch-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.merch-card:hover .merch-card-img {
  transform: scale(1.05);
}

.merch-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(158, 16, 39, 0.15), rgba(212, 154, 55, 0.1));
  color: var(--text-muted);
}

.merch-card-placeholder .placeholder-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.merch-stock-pill {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  z-index: 20 !important;
  pointer-events: auto !important;
}

.merch-card.is-editing .merch-stock-pill {
  right: 3.2rem !important;
}

.stock-in-stock {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.stock-pre-order {
  background: rgba(14, 165, 233, 0.2);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.4);
}

.stock-limited {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.stock-sold-out {
  background: rgba(100, 116, 139, 0.3);
  color: #94a3b8;
  border: 1px solid rgba(100, 116, 139, 0.5);
}

.merch-category-pill {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  backdrop-filter: blur(6px);
  z-index: 20 !important;
  pointer-events: auto !important;
}

.merch-card.is-editing .merch-category-pill {
  left: 3.2rem !important;
}

.merch-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.merch-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.merch-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.merch-variant-select-wrap {
  margin-bottom: 1rem;
}

.merch-variant-select-wrap label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.merch-variant-select {
  width: 100%;
  padding: 0.45rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 0.84rem;
  outline: none;
}

.merch-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  gap: 0.75rem;
}

.merch-price-tag {
  display: flex;
  flex-direction: column;
}

.merch-price-currency {
  font-size: 0.72rem;
  color: var(--gold-accent);
  font-weight: 700;
  text-transform: uppercase;
}

.merch-price-amount {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.merch-btn-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: var(--maroon-base);
  color: #ffffff;
  border: 1px solid var(--maroon-bright);
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.merch-btn-add:hover:not(:disabled) {
  background: var(--maroon-vibrant);
  box-shadow: 0 4px 14px rgba(158, 16, 39, 0.4);
}

.merch-btn-add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(100, 116, 139, 0.2);
  border-color: var(--border-subtle);
}

/* Empty Catalog State */
.merch-empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  grid-column: 1 / -1;
}

.merch-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   4. Cart Drawer & Overlay
   -------------------------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 460px;
  height: 100vh;
  background: var(--bg-main);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.6);
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.is-open .cart-drawer {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-drawer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
}

.cart-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.2s ease;
}

.cart-close-btn:hover {
  color: var(--text-main);
}

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg-card);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-variant {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-accent);
  margin-top: 0.25rem;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  padding: 0.2rem;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
}

.cart-qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cart-qty-val {
  font-size: 0.84rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.4rem;
  font-size: 1.1rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.cart-item-remove-btn:hover {
  opacity: 1;
}

.cart-drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cart-summary-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.6rem;
}

.cart-summary-total span:last-child {
  color: var(--gold-accent);
}

.btn-proceed-checkout {
  width: 100%;
  padding: 0.85rem;
  background: linear-gradient(135deg, var(--maroon-base), var(--maroon-vibrant));
  color: #ffffff;
  border: 1px solid var(--maroon-bright);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 18px rgba(158, 16, 39, 0.4);
  transition: all 0.25s ease;
}

.btn-proceed-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(158, 16, 39, 0.55);
}

/* --------------------------------------------------------------------------
   5. Interactive Checkout Modal & DuitNow QR Card
   -------------------------------------------------------------------------- */
.checkout-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10010;
  overflow-y: auto;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.checkout-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.checkout-modal-card {
  width: 100%;
  max-width: 680px;
  background: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
  margin: auto;
}

.checkout-modal-header {
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, var(--maroon-deep), rgba(18, 20, 26, 0.95));
  border-bottom: 1px solid var(--border-crimson);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-header-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.checkout-header-title h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.checkout-modal-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Checkout Step Sections */
.checkout-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.checkout-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.checkout-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.checkout-field label .req {
  color: var(--maroon-bright);
}

.checkout-field input,
.checkout-field select,
.checkout-field textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
}

.checkout-field input:focus,
.checkout-field select:focus,
.checkout-field textarea:focus {
  border-color: var(--maroon-bright);
  box-shadow: 0 0 0 3px rgba(158, 16, 39, 0.15);
}

/* Delivery Method Selector */
.delivery-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 540px) {
  .delivery-options-grid {
    grid-template-columns: 1fr;
  }
}

.delivery-option-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  position: relative;
  transition: all 0.2s ease;
}

.delivery-option-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(158, 16, 39, 0.4);
}

.delivery-option-card.is-selected {
  border-color: var(--maroon-bright);
  background: rgba(158, 16, 39, 0.08);
  box-shadow: 0 0 0 2px var(--maroon-bright);
}

.delivery-option-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.delivery-option-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.delivery-option-fee {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-accent);
}

/* --------------------------------------------------------------------------
   DuitNow QR Payment Banner & Box
   -------------------------------------------------------------------------- */
.duitnow-pay-card {
  background: linear-gradient(135deg, rgba(237, 0, 114, 0.08), rgba(158, 16, 39, 0.05));
  border: 1.5px solid rgba(237, 0, 114, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
}

.duitnow-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.duitnow-badge {
  background: #ed0072;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
  text-transform: uppercase;
}

.duitnow-qr-frame {
  background: #ffffff;
  padding: 1rem;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 220px;
  width: 100%;
}

.duitnow-qr-img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.duitnow-payee-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
}

.duitnow-instructions {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 480px;
}

.duitnow-instructions ol {
  text-align: left;
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

.duitnow-instructions li {
  margin-bottom: 0.25rem;
}

/* Proof of Payment Upload Area */
.receipt-dropzone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  background: var(--bg-card);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.receipt-dropzone:hover,
.receipt-dropzone.dragover {
  border-color: var(--maroon-bright);
  background: rgba(158, 16, 39, 0.05);
}

.receipt-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone-prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  pointer-events: none;
}

.dropzone-icon {
  font-size: 2rem;
  color: var(--gold-accent);
}

.dropzone-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.dropzone-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.receipt-preview-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  text-align: left;
}

.receipt-thumb-img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.receipt-info {
  flex: 1;
}

.receipt-filename {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  word-break: break-all;
}

.receipt-status-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
}

.btn-remove-receipt {
  background: transparent;
  border: none;
  color: #ef4444;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
}

.checkout-modal-footer {
  padding: 1.25rem 1.75rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.checkout-footer-total {
  display: flex;
  flex-direction: column;
}

.checkout-footer-total .total-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.checkout-footer-total .total-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-accent);
}

.btn-submit-order {
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--maroon-base), var(--maroon-vibrant));
  color: #ffffff;
  border: 1px solid var(--maroon-bright);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 16px rgba(158, 16, 39, 0.4);
  transition: all 0.25s ease;
}

.btn-submit-order:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(158, 16, 39, 0.55);
}

.btn-submit-order:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --------------------------------------------------------------------------
   6. Order Confirmation Modal
   -------------------------------------------------------------------------- */
.order-success-modal {
  text-align: center;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.order-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
  color: #10b981;
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.order-ref-pill {
  display: inline-block;
  padding: 0.4rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-crimson);
  border-radius: 9999px;
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-accent);
}

.order-guidelines-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 480px;
}

/* Vector Icon Enhancements */
.merch-badge-item svg,
.filter-tab-btn svg,
.delivery-option-title svg,
.receipt-status-tag svg {
  flex-shrink: 0;
}

.dropzone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   7. In-Page Administration Controls, Badges & Placeholders
   -------------------------------------------------------------------------- */
.merch-admin-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: none;
  align-items: center;
  gap: 0.35rem;
  z-index: 10;
  background: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.4rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

body.is-admin .merch-admin-actions {
  display: flex;
}

.merch-btn-ctrl {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.merch-btn-ctrl:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.merch-btn-delete:hover {
  background: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.merch-btn-eye.is-hidden {
  color: #f59e0b;
}

.merch-btn-save {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.merch-btn-save:hover {
  background: rgba(16, 185, 129, 0.4);
}

.merch-card.is-hidden-card {
  opacity: 0.55;
  border: 2px dashed rgba(245, 158, 11, 0.6) !important;
}

.merch-hidden-watermark {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: #f59e0b;
  color: #000000;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Edit Mode Visual Focus */
.merch-card.is-editing {
  border-color: var(--gold-accent) !important;
  box-shadow: 0 0 0 2px rgba(212, 154, 55, 0.35) !important;
}

.merch-card.is-editing [contenteditable="true"] {
  outline: 1px dashed rgba(212, 154, 55, 0.5);
  outline-offset: 3px;
  border-radius: 3px;
  background: rgba(212, 154, 55, 0.05);
}

.merch-card.is-editing [contenteditable="true"]:focus {
  outline: 2px solid var(--gold-accent);
  background: rgba(212, 154, 55, 0.09);
}

/* Add Merch Placeholder */
.add-merch-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 280px;
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(255, 255, 255, 0.015);
}

body.is-admin .add-merch-placeholder {
  display: flex;
}

.add-merch-placeholder:hover {
  border-color: var(--gold-accent);
  color: var(--gold-accent);
  background: rgba(212, 154, 55, 0.04);
  transform: translateY(-2px);
}

.add-merch-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212, 154, 55, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-accent);
}

/* Photo Upload Trigger Overlay */
.merch-photo-upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.4rem;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 4;
}

.merch-card.is-editing .merch-photo-upload-overlay {
  display: flex;
}


