
/* ── Font fallbacks while web fonts load ── */
body { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; }
.nv-item-name, .nv-sec-title, .nv-sheet-title, .nv-cart-name,
.nv-qty-name, h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
}
/*
Theme Name:  Novera
Description: Novera Cafe — Mobile-first app experience
Template:    storefront
Version:     2.3
*/

/* Fonts loaded via PHP with preload for better performance */

/* ─────────────────────────────────
   TOKENS
───────────────────────────────── */
:root {
  --brand:      #21322E;
  --brand-mid:  #2d4440;
  --bg:         #F9F9F2;
  --card:       #FFFFFF;
  --border:     #EEEEE6;
  --border-mid: #E0E0D8;
  --text:       #1A1A14;
  --text-mid:   #4A4A40;
  --text-dim:   #9A9A8A;
  --success:    #2E6B3E;
  --r:          14px;
  --r-lg:       20px;
  --r-xl:       28px;
  --max:        640px;

  /* Spring motion */
  --spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --swift:    cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─────────────────────────────────
   RESET & BASE
───────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  touch-action: manipulation;
}

/* ─────────────────────────────────
   KILL STOREFRONT
───────────────────────────────── */
.site-header, .site-footer,
.storefront-primary-navigation,
.storefront-handheld-footer-bar,
.widget-area, .woocommerce-breadcrumb,
.storefront-breadcrumb,
.woocommerce-products-header { display: none !important; }
.site-content, .col-full { padding: 0 !important; max-width: 100% !important; }
.content-area { width: 100% !important; float: none !important; margin: 0 !important; }

/* ─────────────────────────────────
   HEADER
───────────────────────────────── */
#nv-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249,249,242,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nv-header-row {
  max-width: var(--max);
  margin: auto;
  height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nv-logo {
  height: 44px;
  width: 44px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}
.nv-cart-icon {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nv-cart-icon:active { background: rgba(33,50,46,0.08); transform: scale(0.92); }
.nv-cart-icon svg { width: 22px; height: 22px; }

.nv-badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 17px; height: 17px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.25s var(--spring), transform 0.25s var(--spring);
  border: 2px solid var(--bg);
}
.nv-badge.show { opacity: 1; transform: scale(1); }
@keyframes badgePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}
.nv-badge.pop { animation: badgePop 0.3s var(--spring); }

/* ─────────────────────────────────
   CATEGORY TABS
───────────────────────────────── */
#nv-cats {
  position: sticky;
  top: 60px;
  z-index: 99;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#nv-cats::-webkit-scrollbar { display: none; }
.nv-cats-row {
  display: flex;
  max-width: var(--max);
  margin: auto;
  padding: 0 16px;
}
.nv-cat {
  flex-shrink: 0;
  padding: 14px 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--swift), border-color 0.2s var(--swift);
  -webkit-tap-highlight-color: transparent;
}
.nv-cat:active { opacity: 0.6; }
.nv-cat.on {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}

/* ─────────────────────────────────
   MENU
───────────────────────────────── */
#nv-menu {
  max-width: var(--max);
  margin: auto;
  padding: 20px 16px 140px;
}

/* ─────────────────────────────────
   SECTION
───────────────────────────────── */
.nv-sec { margin-bottom: 36px; }
.nv-sec-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  color: var(--brand);
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ─────────────────────────────────
   PRODUCT CARD
───────────────────────────────── */
.nv-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
  cursor: pointer;

  /* Entrance */
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out),
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.25s;
}
.nv-item.in { opacity: 1; transform: translateY(0); }

/* Press effect */
.nv-item:active {
  background: #F5F5EE;
  transform: scale(0.99);
  transition: transform 0.1s var(--swift), background 0.1s;
}

.nv-item-body { flex: 1; min-width: 0; }
.nv-item-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}
.nv-item-desc {
  font-size: 12px;
  font-weight: 400;
  color: #7A7A6A;
  line-height: 1.5;
  margin-top: 3px;
}
.nv-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.nv-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  white-space: nowrap;
}
.nv-item-price .woocommerce-Price-amount,
.nv-item-price bdi { font-size: inherit; color: inherit; }
.nv-item-price ins { text-decoration: none; }
.nv-item-price del { opacity: 0.4; font-size: 11px; margin-right: 3px; }

/* ─────────────────────────────────
   ADD BUTTON
───────────────────────────────── */
.nv-add {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--brand);
  border: none;
  color: #fff;
  font-size: 22px;
  font-weight: 300;
  font-family: 'Montserrat', sans-serif;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s var(--spring), background 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(33,50,46,0.25);
  -webkit-tap-highlight-color: transparent;
}
.nv-add:active { transform: scale(0.88); box-shadow: none; }
.nv-add.busy  { background: #ccc; pointer-events: none; font-size: 12px; }
.nv-add.done  {
  background: var(--success);
  font-size: 14px;
  pointer-events: none;
  animation: addSuccess 0.35s var(--spring);
}
@keyframes addSuccess {
  0%  { transform: scale(1); }
  50% { transform: scale(1.25); }
  100%{ transform: scale(1); }
}

/* ─────────────────────────────────
   INSTAGRAM FOOTER
───────────────────────────────── */
.nv-ig-footer {
  text-align: center;
  padding: 28px 20px 40px;
  border-top: 1px solid var(--border);
  margin: 0 4px;
}
.nv-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.nv-ig-link:active { color: var(--brand); }

/* ─────────────────────────────────
   BACKDROP
───────────────────────────────── */
#nv-bd {
  position: fixed; inset: 0;
  background: rgba(20,25,22,0.5);
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--swift);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#nv-bd.show { opacity: 1; pointer-events: all; }

/* ─────────────────────────────────
   BOTTOM SHEET
───────────────────────────────── */
.nv-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--border-mid);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.12);
  transform: translateY(100%);
  transition: transform 0.42s var(--ease-out);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  padding-bottom: max(env(safe-area-inset-bottom), 20px);
  will-change: transform;
}
.nv-sheet.show { transform: translateY(0); }

/* Swipe handle */
.nv-handle {
  width: 40px; height: 4px;
  background: var(--border-mid);
  border-radius: 2px;
  margin: 12px auto 0;
  flex-shrink: 0;
}

.nv-sheet-head {
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.nv-sheet-back {
  background: none; border: none; cursor: pointer;
  color: var(--brand); font-size: 24px; line-height: 1;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; flex-shrink: 0;
  transition: background 0.15s;
}
.nv-sheet-back:active { background: rgba(33,50,46,0.08); transform: scale(0.9); }
.nv-sheet-label {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 2px;
}
.nv-sheet-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px; font-weight: 600; font-style: normal;
  color: var(--text); flex: 1; line-height: 1.2;
}
.nv-sheet-close {
  background: none; border: 1.5px solid var(--border);
  border-radius: 50%; cursor: pointer;
  color: var(--text-dim); font-size: 16px; line-height: 1;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nv-sheet-close:active { background: var(--border); transform: scale(0.9); }

.nv-sheet-body {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px;
  overscroll-behavior: contain;
}
.nv-sheet-foot {
  padding: 14px 16px 0;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ─────────────────────────────────
   OPTION ROW
───────────────────────────────── */
.nv-opt {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 16px;
  margin-bottom: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  cursor: pointer; gap: 12px;
  transition: border-color 0.18s, background 0.18s, transform 0.1s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.nv-opt:active { transform: scale(0.975); background: #F0F0E8; }
.nv-opt.sel { border-color: var(--brand); background: rgba(33,50,46,0.04); }
.nv-opt-name { font-size: 15px; font-weight: 400; color: var(--text); flex: 1; }
.nv-opt-r { display: flex; align-items: center; gap: 10px; }
.nv-opt-price { font-size: 13px; font-weight: 600; color: var(--text-mid); white-space: nowrap; }
.nv-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border-mid);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.15s var(--spring), background 0.15s var(--spring);
}
.nv-opt.sel .nv-dot { background: var(--brand); border-color: var(--brand); }
.nv-opt.sel .nv-dot::after {
  content: ''; width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
}

/* ─────────────────────────────────
   QTY PICKER
───────────────────────────────── */
.nv-qty-wrap {
  padding: 28px 16px 20px;
  display: flex; flex-direction: column;
  align-items: center; gap: 24px;
}
.nv-qty-info { text-align: center; }
.nv-qty-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px; font-style: normal; font-weight: 600;
  color: var(--text-mid); margin-bottom: 8px;
}
.nv-qty-price {
  font-size: 38px; font-weight: 700;
  color: var(--brand); line-height: 1;
  letter-spacing: -1px;
  transition: transform 0.2s var(--spring);
}
.nv-qty-cur { font-size: 18px; font-weight: 400; vertical-align: super; margin-right: 2px; }

.nv-qty-grid {
  display: grid; grid-template-columns: repeat(5,1fr);
  gap: 8px; width: 100%; max-width: 300px;
}
.nv-qty-btn {
  aspect-ratio: 1; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 20px; font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s var(--spring), border-color 0.15s, color 0.15s, transform 0.15s var(--spring), box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nv-qty-btn:active {
  background: var(--brand); border-color: var(--brand); color: #fff;
  transform: scale(0.9);
  box-shadow: 0 4px 12px rgba(33,50,46,0.25);
}

/* ─────────────────────────────────
   ACTION BUTTON
───────────────────────────────── */
.nv-action {
  width: 100%; padding: 16px 20px;
  background: var(--brand); color: #fff;
  border: none; border-radius: var(--r);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; text-decoration: none;
  display: flex; align-items: center; justify-content: space-between;
  transition: transform 0.15s var(--spring), background 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 16px rgba(33,50,46,0.25);
}
.nv-action:active { transform: scale(0.97); box-shadow: none; }
.nv-action:disabled { opacity: 0.3; pointer-events: none; box-shadow: none; }
.nv-action-tag {
  background: rgba(255,255,255,0.18);
  border-radius: 8px; padding: 3px 10px; font-size: 13px;
}
.nv-sub-btn {
  width: 100%; margin-top: 10px; padding: 13px;
  background: none; border: none;
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim); cursor: pointer;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.nv-sub-btn:active { color: var(--brand); }

/* ─────────────────────────────────
   CART CONTENTS
───────────────────────────────── */
.nv-empty {
  padding: 48px 20px; text-align: center;
  color: var(--text-dim); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.nv-empty-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.25; }

.nv-cart-row {
  display: flex; align-items: center;
  padding: 14px 0; gap: 12px;
  border-bottom: 1px solid var(--border);
  animation: rowIn 0.3s var(--ease-out);
}
@keyframes rowIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.nv-cart-row:last-child { border-bottom: none; }
.nv-cart-info { flex: 1; min-width: 0; }
.nv-cart-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-style: normal; font-weight: 500;
  color: var(--text); line-height: 1.3; margin-bottom: 2px;
}
.nv-cart-unit { font-size: 11px; font-weight: 300; color: var(--text-dim); }

.nv-stepper { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nv-step-btn {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--border);
  color: var(--text-mid); font-size: 18px; font-weight: 300;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1;
  transition: background 0.15s var(--spring), border-color 0.15s, color 0.15s, transform 0.15s var(--spring);
  -webkit-tap-highlight-color: transparent;
}
.nv-step-btn:active { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(0.88); }
.nv-step-n {
  font-size: 15px; font-weight: 600;
  min-width: 18px; text-align: center; color: var(--text);
  transition: transform 0.2s var(--spring);
}
.nv-cart-line {
  font-size: 13px; font-weight: 600;
  color: var(--text-mid); white-space: nowrap;
  min-width: 52px; text-align: right; flex-shrink: 0;
}

.nv-order-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0 12px; border-top: 1px solid var(--border-mid); margin-top: 4px;
}
.nv-total-lbl {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim);
}
.nv-total-amt {
  font-size: 24px; font-weight: 700;
  color: var(--brand); letter-spacing: -0.5px;
  transition: transform 0.25s var(--spring);
}

/* ─────────────────────────────────
   FAB
───────────────────────────────── */
#nv-fab {
  position: fixed;
  bottom: max(env(safe-area-inset-bottom) + 16px, 28px);
  left: 50%;
  z-index: 150;
  transform: translateX(-50%) translateY(90px);
  opacity: 0; pointer-events: none;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
  will-change: transform;

  background: var(--brand); color: #fff;
  border: none; border-radius: 999px;
  height: 54px; padding: 0 8px 0 24px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(33,50,46,0.38), 0 2px 6px rgba(33,50,46,0.2);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
#nv-fab.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1; pointer-events: all;
}
#nv-fab:active { transform: translateX(-50%) scale(0.95); }
.nv-fab-n {
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  height: 40px; min-width: 40px; padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  transition: transform 0.25s var(--spring);
}

/* ─────────────────────────────────
   PARTICLES
───────────────────────────────── */
@keyframes rise {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-60px) scale(0.5); }
}
.nv-particle {
  position: fixed; pointer-events: none; z-index: 999;
  font-size: 14px; font-weight: 800; color: var(--brand);
  animation: rise 0.7s var(--ease-out) forwards;
}

/* ─────────────────────────────────
   WC PAGES — checkout / cart
───────────────────────────────── */
body.woocommerce-checkout,
body.woocommerce-cart,
body.woocommerce-account,
body.woocommerce-order-received { background: var(--bg) !important; }

.woocommerce-checkout .entry-content,
.woocommerce-cart .entry-content,
.woocommerce-checkout .hentry,
.woocommerce-cart .hentry {
  max-width: 680px; margin: 0 auto !important;
  padding: 24px 16px 80px !important; background: transparent !important;
}

/* Titles */
.woocommerce-checkout h1.entry-title,
.woocommerce-cart h1.entry-title {
  font-family: 'Montserrat', sans-serif !important;
  font-style: normal !important; font-weight: 600 !important;
  font-size: 26px !important; color: var(--brand) !important;
  margin-bottom: 20px !important;
}
.woocommerce-checkout h3, .cart_totals h2,
.woocommerce-billing-fields h3,
.woocommerce-order-details__title {
  font-family: 'Montserrat', sans-serif !important;
  font-style: normal !important; font-weight: 600 !important;
  color: var(--text) !important; font-size: 18px !important;
  margin-bottom: 14px !important;
}

/* Tables */
.woocommerce table.shop_table {
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  background: var(--card) !important;
  font-family: 'Montserrat', sans-serif !important;
  width: 100% !important;
  table-layout: fixed !important;
}
.woocommerce table.shop_table th {
  background: var(--bg) !important; color: var(--text-mid) !important;
  font-size: 10px !important; font-weight: 500 !important;
  letter-spacing: 0.12em !important; text-transform: uppercase !important;
  border-color: var(--border) !important; padding: 10px 14px !important;
}
.woocommerce table.shop_table td {
  border-color: var(--border) !important;
  color: var(--text) !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
}
.woocommerce table.shop_table .amount { color: var(--brand) !important; font-weight: 600 !important; }

/* Checkout table columns */
.woocommerce-checkout-review-order-table td.product-name,
.woocommerce-checkout-review-order-table th.product-name {
  width: 65% !important; word-break: break-word !important;
}
.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout-review-order-table th.product-total {
  width: 35% !important; text-align: right !important; white-space: nowrap !important;
}
.woocommerce-checkout-review-order-table tfoot .order-total td,
.woocommerce-checkout-review-order-table tfoot .order-total th {
  font-size: 16px !important; font-weight: 700 !important; color: var(--brand) !important;
}

/* Inputs */
.woocommerce form .form-row { margin-bottom: 14px !important; }
.woocommerce form .form-row label {
  font-size: 10px !important; font-weight: 600 !important;
  letter-spacing: 0.1em !important; text-transform: uppercase !important;
  color: var(--text-dim) !important; font-family: 'Montserrat', sans-serif !important;
  margin-bottom: 6px !important; display: block !important;
}
.woocommerce form .form-row input,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
  background: var(--card) !important; border: 1.5px solid var(--border-mid) !important;
  border-radius: 10px !important; color: var(--text) !important;
  font-family: 'Montserrat', sans-serif !important;
  padding: 14px 16px !important; font-size: 16px !important;
  height: 50px !important;
  transition: border-color 0.15s !important;
  -webkit-appearance: none !important;
}
.woocommerce form .form-row input:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--brand) !important; outline: none !important;
  box-shadow: 0 0 0 3px rgba(33,50,46,0.08) !important;
}

/* Payment */
#payment {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
}
#payment ul.payment_methods { border-color: var(--border) !important; padding: 14px !important; }
#payment ul.payment_methods li label {
  font-size: 14px !important; font-weight: 500 !important;
  color: var(--text) !important; white-space: nowrap !important;
}
#payment .payment_box,
#payment div.payment_box {
  display: none !important; height: 0 !important;
  padding: 0 !important; margin: 0 !important;
  overflow: hidden !important; visibility: hidden !important;
}
#payment .place-order { padding: 14px !important; }

/* Totals */
.cart_totals, .woocommerce-checkout-review-order {
  background: var(--card) !important; border: 1px solid var(--border) !important;
  border-radius: var(--r) !important; padding: 0 !important; overflow: hidden !important;
}

/* Buttons */
.checkout-button, .wc-proceed-to-checkout .checkout-button, #place_order {
  background: var(--brand) !important; color: #fff !important;
  border: none !important; border-radius: var(--r) !important;
  font-family: 'Montserrat', sans-serif !important; font-weight: 600 !important;
  font-size: 13px !important; letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  padding: 16px 20px !important; width: 100% !important;
  height: 52px !important;
  transition: transform 0.15s var(--spring), box-shadow 0.15s !important;
  box-shadow: 0 4px 16px rgba(33,50,46,0.25) !important;
}
#place_order:active { transform: scale(0.98) !important; box-shadow: none !important; }

/* Hide clutter */
.woocommerce-privacy-policy-text,
.woocommerce-terms-and-conditions-wrapper,
.woocommerce-column--billing-address,
.woocommerce-column--shipping-address,
.woocommerce-columns--addresses { display: none !important; }

abbr[title] { text-decoration: none !important; color: var(--brand) !important; }

/* Notices */
.woocommerce-info, .woocommerce-message, .woocommerce-error {
  border-radius: var(--r) !important; font-family: 'Montserrat', sans-serif !important;
  border-top-color: var(--brand) !important; font-size: 13px !important;
  display: block !important;
}
/* Always show coupon toggle */
.woocommerce-form-coupon-toggle,
.woocommerce-form-coupon-toggle .woocommerce-info {
  display: block !important;
}

/* Order received */
.woocommerce-thankyou-order-received {
  font-size: 14px !important; color: var(--text-mid) !important;
  margin-bottom: 20px !important;
}
.woocommerce-order-overview,
.woocommerce-thankyou-order-details {
  background: var(--card) !important; border-radius: var(--r) !important;
  border: 1px solid var(--border) !important; list-style: none !important;
  padding: 0 !important; overflow: hidden !important;
}
.woocommerce-order-overview li,
.woocommerce-thankyou-order-details li {
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--border) !important;
  font-size: 12px !important; letter-spacing: 0.06em !important;
  text-transform: uppercase !important; color: var(--text-dim) !important;
}
.woocommerce-order-overview li:last-child,
.woocommerce-thankyou-order-details li:last-child { border-bottom: none !important; }
.woocommerce-order-overview li strong,
.woocommerce-thankyou-order-details li strong {
  display: block !important; font-size: 15px !important;
  font-weight: 600 !important; color: var(--brand) !important;
  margin-top: 3px !important; text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Mobile layout */
@media (max-width: 699px) {
  .woocommerce-checkout #customer_details,
  #order_review_heading,
  #order_review {
    width: 100% !important; float: none !important; margin: 0 0 16px !important;
  }
}
@media (min-width: 700px) {
  .woocommerce-checkout #customer_details { width: 47% !important; float: left !important; }
  #order_review_heading, #order_review { width: 47% !important; float: right !important; }
}

/* Cup message hidden for now */
#nv-cup-wrap { display: none !important; }

/* ── Order table — stack name and price on mobile ── */
@media (max-width: 768px) {
  .woocommerce-checkout-review-order-table {
    table-layout: auto !important;
  }
  .woocommerce-checkout-review-order-table thead {
    display: none !important;
  }
  .woocommerce-checkout-review-order-table tbody tr {
    display: flex !important;
    flex-direction: column !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .woocommerce-checkout-review-order-table td {
    display: block !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
  }
  .woocommerce-checkout-review-order-table td.product-name {
    font-size: 14px !important;
    color: var(--text) !important;
    margin-bottom: 4px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  .woocommerce-checkout-review-order-table td.product-total {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--brand) !important;
    text-align: left !important;
  }
  .woocommerce-checkout-review-order-table tfoot tr {
    display: flex !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .woocommerce-checkout-review-order-table tfoot td,
  .woocommerce-checkout-review-order-table tfoot th {
    border: none !important;
    padding: 0 !important;
    display: block !important;
    width: auto !important;
  }

  /* Also fix the empty Ziina box */
  #payment .payment_box,
  #payment div.payment_box {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }
}

/* ── Order table — clean layout all screens ── */
.woocommerce-checkout-review-order-table thead { display: none !important; }

.woocommerce-checkout-review-order-table tbody tr {
  display: flex !important;
  flex-direction: column !important;
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--border) !important;
}
.woocommerce-checkout-review-order-table tbody td {
  display: block !important;
  border: none !important;
  padding: 0 !important;
  width: 100% !important;
  white-space: normal !important;
  word-break: break-word !important;
}
.woocommerce-checkout-review-order-table td.product-name {
  font-size: 14px !important;
  color: var(--text) !important;
  margin-bottom: 4px !important;
  line-height: 1.4 !important;
}
.woocommerce-checkout-review-order-table td.product-total {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--brand) !important;
  text-align: left !important;
}

/* Footer rows (subtotal, total) */
.woocommerce-checkout-review-order-table tfoot tr {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid var(--border) !important;
}
.woocommerce-checkout-review-order-table tfoot tr:last-child {
  border-bottom: none !important;
}
.woocommerce-checkout-review-order-table tfoot td,
.woocommerce-checkout-review-order-table tfoot th {
  border: none !important;
  padding: 0 !important;
  width: auto !important;
}

/* ── Out of Stock ── */
.nv-item.out-of-stock {
  opacity: 0.6;
}
.nv-item.out-of-stock .nv-item-name {
  color: var(--text-dim) !important;
}
.nv-item.out-of-stock .nv-item-price {
  color: var(--text-dim) !important;
}
.nv-item.out-of-stock::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(249,249,242,0.4);
  border-radius: var(--r);
  pointer-events: none;
}

/* ── Coupon bar — branded ── */
.woocommerce-form-coupon-toggle .woocommerce-info {
  display: flex !important;
  align-items: center;
  background: rgba(33,50,46,0.05) !important;
  border-top: 3px solid var(--brand) !important;
  border-radius: var(--r) !important;
  color: var(--text-mid) !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
}
.woocommerce-form-coupon-toggle .woocommerce-info a {
  color: var(--brand) !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.checkout_coupon {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  padding: 16px !important;
  margin-bottom: 16px !important;
}
.checkout_coupon .form-row input {
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 14px !important;
}
.checkout_coupon .form-row input:focus {
  border-color: var(--brand) !important;
  outline: none !important;
}
.checkout_coupon .button {
  background: var(--brand) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 20px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

/* ── Product attribute chips ── */
.nv-item-attrs {
  font-size: 11px !important;
  font-weight: 400 !important;
  color: #B5B5A8 !important;
  margin-top: 6px !important;
  line-height: 1.6 !important;
  font-family: 'Montserrat', sans-serif !important;
  padding-top: 6px !important;
  border-top: 1px solid #F0F0E8 !important;
}
.nv-attr-label {
  font-weight: 500 !important;
  color: #B5B5A8 !important;
  font-size: 10px !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}
