/* GoldVault Listings - Cart UI (custom cart table) */

body.page-id-cart .entry-title { display:none; }

.gv-cart-wrap { max-width: 980px; margin: 0 auto; }

.gvl-cart-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 26px rgba(0,0,0,.06);
}

.gvl-cart-table{ width:100%; border-collapse:collapse; }
.gvl-cart-table th, .gvl-cart-table td{ padding:14px 12px; border-bottom:1px solid rgba(0,0,0,.08); vertical-align:middle; }
.gvl-cart-table thead th{ font-weight:700; font-size:14px; text-align:left; }

.gvl-cart-table .col-price,
.gvl-cart-table .col-gst,
.gvl-cart-table .col-total{ text-align:right; white-space:nowrap; font-variant-numeric: tabular-nums; }
.gvl-cart-table .col-qty{ text-align:center; white-space:nowrap; }
.gvl-cart-table .col-act{ text-align:right; }

.gvl-item-link{ font-weight:700; text-decoration:none; }

.gv-qty{ width:86px; padding:8px 10px; border-radius:10px; border:1px solid rgba(0,0,0,.18); }

/* Hide manual update button (we auto-submit on change) */
.gvl-update-btn{ display:none !important; }

.gvl-remove-btn{
  background:transparent;
  border:1px solid rgba(0,0,0,.18);
  border-radius:999px;
  padding:8px 12px;
  font-weight:700;
  cursor:pointer;
}

.gvl-totals-row th,
.gvl-totals-row td{ border-bottom:0; padding-top:16px; }
.gvl-totals-label{ text-align:left; }
.gvl-totals-items{ text-align:center; font-weight:700; }
.gvl-totals-gst,.gvl-totals-grand{ text-align:right; font-weight:800; }

.gvl-cart-actions{ display:flex; gap:12px; justify-content:flex-end; margin-top:16px; flex-wrap:wrap; }

/* Make checkout button smaller than previous huge style */
.gvl-checkout-btn{ padding:10px 16px !important; font-size:14px !important; width:auto !important; }

/* Secondary button */
.gv-btn-ghost{
  background:transparent !important;
  border:1px solid rgba(0,0,0,.18) !important;
  color:#111 !important;
}


/* Hover/active states so users know it's clickable */
.gv-btn-ghost:hover,
.gv-btn-ghost:focus{
  background:#111 !important;
  border-color:#111 !important;
  color:#fff !important;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
  transform: translateY(-1px);
}
.gv-btn-ghost:active{ transform: translateY(0); box-shadow:none; }

/* Remove button should be visible */
.gvl-remove-btn{
  background:#b00020 !important;
  border-color:#b00020 !important;
  color:#fff !important;
}
.gvl-remove-btn:hover,
.gvl-remove-btn:focus{
  background:#7f0017 !important;
  border-color:#7f0017 !important;
  color:#fff !important;
}

.gv-btn-primary{ font-weight:800; }

.gvl-cart-note{ margin-top:10px; }

@media (max-width: 768px){
  .gvl-cart-table thead{ display:none; }
  .gvl-cart-table, .gvl-cart-table tbody, .gvl-cart-table tr, .gvl-cart-table td, .gvl-cart-table th{ display:block; width:100%; }
  .gvl-cart-table tr{ border:1px solid rgba(0,0,0,.10); border-radius:16px; padding:12px; margin:12px 0; }
  .gvl-cart-table td{ border:0; padding:10px 0; }
  .gvl-cart-table td.col-price:before{ content:"Price"; font-weight:700; opacity:.75; float:left; }
  .gvl-cart-table td.col-qty:before{ content:"Qty"; font-weight:700; opacity:.75; float:left; }
  .gvl-cart-table td.col-gst:before{ content:"GST"; font-weight:700; opacity:.75; float:left; }
  .gvl-cart-table td.col-total:before{ content:"Total"; font-weight:700; opacity:.75; float:left; }
  .gvl-cart-table td.col-price,
  .gvl-cart-table td.col-qty,
  .gvl-cart-table td.col-gst,
  .gvl-cart-table td.col-total{ text-align:right; }
  .gvl-cart-actions{ justify-content:stretch; }
  .gvl-cart-actions a{ width:100%; text-align:center; }
}


/* Wallet balance box on Cart */
.gvl-wallet-box{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  background:#fff;
  border:1px solid rgba(0,0,0,.10);
  border-radius:16px;
  padding:14px 16px;
  margin: 0 0 14px 0;
  box-shadow:0 8px 20px rgba(0,0,0,.05);
}
.gvl-wallet-box__label{ font-size:12px; letter-spacing:.2px; color:#555; text-transform:uppercase; font-weight:800;}
.gvl-wallet-box__amount{ font-size:22px; font-weight:900; color:#111; margin-top:2px; font-variant-numeric: tabular-nums;}
.gvl-wallet-box__hint{ font-size:12px; color:#666; margin-top:4px;}
.gvl-wallet-box__actions{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
@media (max-width: 768px){
  .gvl-wallet-box{ flex-direction:column; align-items:flex-start; }
  .gvl-wallet-box__actions{ width:100%; }
  .gvl-wallet-box__actions .gv-btn{ width:100%; text-align:center; }
}

/* Improve hover feedback for ghost buttons on cart */
.gv-cart-wrap .gv-btn.gv-btn-ghost:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  opacity: 0.98;
}

