/* Healtrackwellness static store: cart, checkout and toast styles */

/* Old WordPress widgets replaced by the store's own pages */
#account-modal, .ct-cart-content,
.woocommerce-ordering, .added_to_cart { display: none !important; }

/* account: login / register / my orders */
.hlt-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.hlt-form { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1px solid #e6e6e6; border-radius: 10px; }
.hlt-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.hlt-form h3 { margin: 0 0 4px; }
.hlt-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; text-transform: capitalize; background: #eee; }
.hlt-pending { background: #fff3cd; color: #7a5b00; }
.hlt-confirmed { background: #dbeafe; color: #1e40af; }
.hlt-shipped { background: #e0e7ff; color: #3730a3; }
.hlt-delivered { background: #dcfce7; color: #166534; }
.hlt-cancelled { background: #fee2e2; color: #991b1b; }

/* order placed */
.hlt-success h2 { margin-bottom: 12px; }
.hlt-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.hlt-actions [hidden] { display: none; }

/* generic product page */
.hlt-product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.hlt-product-img img { width: 100%; border-radius: 10px; }
.hlt-product-info h1 { margin-bottom: 12px; }
.hlt-product-info .price { font-size: 22px; margin-bottom: 16px; }
.hlt-product-info form.cart { display: flex; gap: 12px; margin: 20px 0; }
.hlt-product-info input[name="quantity"] { width: 80px; }
.hlt-desc { margin-top: 40px; line-height: 1.7; }

@media (max-width: 760px) {
  .hlt-auth, .hlt-product { grid-template-columns: 1fr; }
}
#hlt-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 99999;
  transform: translate(-50%, 140%); opacity: 0;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 8px;
  background: #1f1f1f; color: #fff; font-size: 14px; line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .25s ease, opacity .25s ease;
}
#hlt-toast.show { transform: translate(-50%, 0); opacity: 1; }
#hlt-toast a { color: #f7a8c8; font-weight: 600; margin-left: 6px; }

.hlt-page { max-width: 1100px; margin: 0 auto; padding: 40px 16px 64px; }
.hlt-page h1 { text-align: center; margin-bottom: 32px; }

.hlt-empty { text-align: center; padding: 32px 0; }
.hlt-empty .button { margin-top: 12px; }

.hlt-cart-table { width: 100%; border-collapse: collapse; }
.hlt-cart-table th, .hlt-cart-table td { padding: 14px 10px; border-bottom: 1px solid #e6e6e6; text-align: left; vertical-align: middle; }
.hlt-cart-table th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.hlt-prod { display: flex; align-items: center; gap: 14px; }
.hlt-prod img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.hlt-qty { display: inline-flex; align-items: center; border: 1px solid #ddd; border-radius: 6px; }
.hlt-qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 16px; color: inherit; padding: 0; }
.hlt-qty span { min-width: 28px; text-align: center; }
.hlt-remove { border: 0; background: none; font-size: 22px; cursor: pointer; color: #999; padding: 0 6px; }
.hlt-remove:hover { color: #c0392b; }
.hlt-total { text-align: right; font-size: 20px; margin: 20px 0 36px; }

.hlt-checkout { max-width: 720px; margin: 0 auto; }
.hlt-checkout h3 { margin-bottom: 16px; }
.hlt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hlt-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.hlt-grid .hlt-wide { grid-column: 1 / -1; }
.hlt-grid input, .hlt-grid textarea { width: 100%; }
.hlt-checkout button[type="submit"] { margin-top: 18px; width: 100%; }
.hlt-error { color: #c0392b; margin-top: 12px; }
.hlt-small { font-size: 13px; opacity: .75; margin-top: 10px; }

@media (max-width: 640px) {
  .hlt-cart-table thead { display: none; }
  .hlt-cart-table tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-bottom: 1px solid #e6e6e6; }
  .hlt-cart-table td { border: 0; padding: 0; }
  .hlt-cart-table td.hlt-prod { grid-column: 1 / -1; }
  .hlt-grid { grid-template-columns: 1fr; }
}
