/* ==========================
   PROFESSIONAL SHIRTSHOP CSS
   Replace your whole style.css with this
========================== */

:root {
  --primary-color: #111827;
  --primary-hover: #000000;
  --accent-color: #c08a4d;

  --bg-color: #f5f3ef;
  --surface: #ffffff;
  --surface-soft: #fafafa;

  --text-dark: #1f2933;
  --text-muted: #6b7280;
  --text-light: #9ca3af;

  --border: 1px solid #e5e1da;
  --border-dark: #d6d0c7;

  --shadow-light: 0 8px 24px rgba(17, 24, 39, 0.06);
  --shadow: 0 14px 36px rgba(17, 24, 39, 0.10);

  --border-radius: 14px;
  --radius-small: 10px;
  --radius-large: 20px;

  --transition: all 0.22s ease;
}

/* ==========================
   RESET
========================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 50px;
}

h1, h2, h3, h4, h5 {
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
}

/* ==========================
   LOGIN PAGE
========================== */

body.center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    linear-gradient(rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.55)),
    radial-gradient(circle at top left, #d8c2a4, transparent 35%),
    #1f2933;
}

.login-card {
  width: 100%;
  max-width: 410px;
  margin: 0;
  padding: 2.4rem;
  background: #ffffff;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.20);
}

.login-card .brand {
  text-align: left;
  margin-bottom: 1.8rem;
}

.brand-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #111827;
  color: #ffffff;
  box-shadow: none;
}

.brand-icon::before {
  content: "S";
  font-size: 1.2rem;
  font-weight: 800;
}

.login-card h2 {
  margin: 1rem 0 0.35rem;
  font-size: 1.9rem;
  font-weight: 800;
}

.login-card .subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.login-card input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1px solid #ded8ce;
  background: #fbfaf8;
  color: var(--text-dark);
  margin: 0.7rem 0;
  font-size: 0.95rem;
}

.login-card input:focus {
  outline: none;
  border-color: #111827;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.login-card button {
  margin-top: 1rem;
  width: 100%;
  background: #111827;
  color: #ffffff;
  padding: 15px 20px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.login-card button:hover {
  background: #000000;
}

.login-card .signup-link {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.login-card .signup-link a {
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
}

#error {
  margin-top: 0.7rem;
  font-size: 0.9rem;
}

/* ==========================
   NAVBAR
========================== */

.navbar {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  color: var(--text-dark);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid #e7e2da;
  box-shadow: 0 6px 24px rgba(17, 24, 39, 0.05);
}

.navbar .brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.navbar .brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #111827;
}

.brand-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.navbar .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.navbar a {
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: var(--transition);
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  letter-spacing: 0;
}

.navbar a:hover {
  background: #f1eee8;
  color: #111827;
}

.navbar a.active {
  background: #111827;
  color: #ffffff;
}

.navbar a.logout {
  background: #f6eeee;
  color: #9f2a2a;
}

.navbar a.logout:hover {
  background: #9f2a2a;
  color: #ffffff;
}

.nav-link-icon {
  display: none;
}

/* ==========================
   MAIN LAYOUT
========================== */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 6.2rem 1.4rem 2rem;
}

.container > h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 1.3rem;
}

.page-title,
.title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

/* ==========================
   CARDS
========================== */

.card {
  background: var(--surface);
  padding: 1.4rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 1.3rem;
  border: var(--border);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-light);
  transform: none;
}

/* ==========================
   BUTTONS + FORMS
========================== */

button,
.btn,
.primary-btn {
  background: var(--primary-color);
  color: #ffffff;
  padding: 12px 18px;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  width: auto;
}

button:hover,
.btn:hover,
.primary-btn:hover {
  background: var(--primary-hover);
  transform: none;
  box-shadow: none;
}

.btn-small {
  width: auto;
  padding: 9px 14px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  margin: 10px 0;
  border-radius: 11px;
  border: 1px solid #ddd7ce;
  font-size: 0.95rem;
  background: #fffdfa;
  color: var(--text-dark);
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #111827;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.07);
}

.field-label,
.option-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.45rem;
}

.form-group {
  margin-bottom: 1.2rem;
  width: 100%;
}

/* ==========================
   PAGE HEADERS
========================== */

.page-header,
.inventory-header,
.dashboard-top-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
}

.page-header h2,
.inventory-header h2,
.dashboard-top-card h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
}

.dashboard-subtitle {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ==========================
   DASHBOARD
========================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.3rem;
}

.dashboard-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 16px;
}

.dashboard-card-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}

.dashboard-card strong {
  font-size: 1.8rem;
  color: var(--text-dark);
  display: block;
}

.dashboard-card-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: #f1eee8;
  color: #111827;
  font-size: 1.2rem;
}

/* ==========================
   SEARCH
========================== */

.search-box {
  position: relative;
  max-width: 680px;
  margin: 0 0 1.5rem;
}

.search-bar {
  width: 100%;
  padding: 14px 44px 14px 16px;
  border-radius: 12px;
  border: 1px solid #ddd7ce;
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--text-dark);
  box-shadow: none;
}

.search-bar:focus {
  border-color: #111827;
  outline: none;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.07);
}

.search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ==========================
   PRODUCTS
========================== */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.product-card {
  text-align: left;
  padding: 1rem;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e1da;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.045);
  overflow: hidden;
}

.product-card .product-img,
.product-img {
  width: 100%;
  height: 230px;
  border-radius: 13px;
  margin-bottom: 1rem;
  background:
    linear-gradient(135deg, #eeeeee 0%, #fafafa 100%);
  background-size: cover;
  background-position: center;
  border: 1px solid #eee8df;
}

.product-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  color: #111827;
  font-weight: 800;
}

.product-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product-card p:first-of-type {
  color: #111827;
  font-weight: 800;
}

.product-card button {
  width: 100%;
  margin-top: 0.6rem;
  padding: 11px 16px;
  border-radius: 11px;
  font-size: 0.9rem;
  background: #111827;
  color: #ffffff;
}

.product-card button:hover {
  background: #000000;
}

/* ==========================
   MODAL
========================== */

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.62);
  padding: 1.4rem;
  z-index: 2000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  width: min(900px, 100%);
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
  border: 1px solid #eee8df;
}

.modal-close {
  border: none;
  background: #f4f1eb;
  font-size: 1.3rem;
  line-height: 1;
  color: #111827;
  position: absolute;
  right: 1rem;
  top: 1rem;
  cursor: pointer;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  z-index: 2;
}

.modal-close:hover {
  background: #e8e2d8;
}

.modal-body {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 2rem;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-form-body {
  display: flex !important;
  flex-direction: column;
  grid-template-columns: unset !important;
  gap: 0 !important;
  max-height: unset;
  overflow-y: visible;
  padding-right: 0.5rem;
}

.modal-form-body .form-group {
  flex-shrink: 0;
}

.modal-form-body .add-to-cart-btn {
  margin-top: 1.5rem;
  width: 100%;
  cursor: pointer;
  position: relative;
  z-index: 20;
  flex-shrink: 0;
}

.modal-image {
  min-height: 330px;
  background:
    linear-gradient(135deg, #eeeeee 0%, #fafafa 100%);
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  border: 1px solid #eee8df;
}

.modal-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.modal-title {
  font-size: 1.7rem;
  margin: 0;
  font-weight: 800;
}

.modal-price {
  font-size: 1.4rem;
  color: #111827;
  margin: 0;
  font-weight: 800;
}

.modal-description {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.modal .option-group {
  margin-bottom: 1.1rem;
}

.modal .qty-input {
  width: 130px;
}

.size-options {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.size-btn {
  min-width: 54px;
  padding: 10px 14px;
  border: 1px solid #d8d2c8;
  background: #ffffff;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
}

.size-btn:hover,
.size-btn.active {
  border-color: #111827;
  background: #111827;
  color: #ffffff;
}

.add-to-cart-btn,
.checkout-btn {
  width: 100%;
  background: #111827;
  color: #ffffff;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.add-to-cart-btn:hover,
.checkout-btn:hover {
  background: #000000;
}

/* ==========================
   UPLOAD BOX
========================== */

.upload-box {
  cursor: pointer;
  border: 1.5px dashed #cfc7ba;
  background: #fbfaf8;
  border-radius: 14px;
  padding: 1.4rem;
  text-align: center;
  transition: var(--transition);
}

.upload-box:hover {
  border-color: #111827;
  background: #ffffff;
}

.upload-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.upload-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.file-input {
  display: none;
}

.image-preview {
  position: relative;
  margin-top: 1rem;
  display: block;
  width: fit-content;
  z-index: 1;
}

.image-preview.hidden {
  display: none;
}

.image-preview img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e5e1da;
  display: block;
}

.remove-image {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  padding: 0;
  background: #b42318;
  border: none;
  cursor: pointer;
  z-index: 2;
}

/* ==========================
   CART
========================== */

.combined-cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.3rem;
  align-items: start;
}

.cart-items-section,
.cart-summary {
  background: #ffffff;
  border: var(--border);
  border-radius: 16px;
  padding: 1.3rem;
  box-shadow: var(--shadow-light);
}

.cart-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: #111827;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid #eee8df;
  border-radius: 14px;
  background: #fbfaf8;
}

.cart-item-image {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  border: 1px solid #e8e2d8;
}

.cart-item-details h4 {
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.cart-item-details p {
  font-size: 0.9rem;
  margin: 0.1rem 0;
}

.cart-item-total {
  text-align: right;
}

.cart-item-total span {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.cart-item-total strong {
  display: block;
  margin: 0.3rem 0 0.7rem;
}

.remove-btn {
  background: #f6eeee;
  color: #9f2a2a;
  padding: 8px 12px;
  font-size: 0.85rem;
}

.remove-btn:hover {
  background: #9f2a2a;
  color: #ffffff;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.85rem 0;
  border-bottom: 1px solid #eee8df;
  color: var(--text-muted);
}

.total-row {
  border-bottom: none;
  margin-bottom: 1rem;
}

.summary-label,
.summary-value {
  color: #111827;
  font-weight: 800;
  font-size: 1.15rem;
}

.current-address-display {
  color: var(--text-muted);
}

/* ==========================
   ORDERS
========================== */

.orders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.order-card {
  background: #ffffff;
  border-radius: 16px;
  border: var(--border);
  box-shadow: var(--shadow-light);
  padding: 1.35rem;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.order-card-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.order-meta {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.order-status {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pending {
  background: #fff6db;
  color: #9a6a00;
}

.status-processing {
  background: #e8f0ff;
  color: #1d4ed8;
}

.status-completed {
  background: #e8f8ee;
  color: #147a3d;
}

.status-delivered {
  background: #e8f8ee;
  color: #147a3d;
}

.status-delivering {
  background: #e8f0ff;
  color: #1d4ed8;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin: 0.7rem 0;
  color: var(--text-muted);
}

.order-summary-row strong {
  color: var(--text-dark);
  text-align: right;
}

.order-items h5 {
  margin: 1.2rem 0 0.75rem;
  font-size: 0.95rem;
}

.order-items ul {
  list-style: none;
}

.order-items li {
  padding: 0.8rem 0.9rem;
  border-radius: 11px;
  background: #fbfaf8;
  margin-bottom: 0.55rem;
  color: #4b5563;
  font-size: 0.9rem;
  border: 1px solid #eee8df;
}

.order-action {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #eee8df;
}

.order-action select {
  width: 100%;
  padding: 0.85rem;
  border-radius: 11px;
  border: 1px solid #ddd7ce;
  background: #ffffff;
  color: var(--text-dark);
  font-weight: 600;
}

/* ==========================
   INVENTORY / CUSTOMERS
========================== */

.inventory-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.2rem;
}

.inventory-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
  border-radius: 15px;
  background: #ffffff;
  border: var(--border);
  box-shadow: var(--shadow-light);
}

.inventory-item h4 {
  margin: 0 0 0.4rem;
  font-weight: 800;
}

.inventory-item p {
  margin: 0.25rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.inventory-item-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.inventory-item-cta span {
  font-weight: 800;
  color: var(--text-dark);
}

/* ==========================
   TRANSACTIONS TABLE
========================== */

.tx-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tx-stat-card {
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tx-stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tx-stat-card strong {
  font-size: 1.45rem;
  color: var(--text-dark);
}

.tx-table-card {
  padding: 1rem;
  overflow-x: auto;
}

.tx-table-header,
.tx-table-row {
  min-width: 850px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1.2fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

.tx-table-header {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e5e1da;
  font-weight: 800;
  color: #374151;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tx-table-body {
  margin-top: 0.3rem;
}

.tx-table-row {
  padding: 1rem;
  border-bottom: 1px solid #eee8df;
  color: #4b5563;
  font-size: 0.9rem;
}

.tx-table-row:hover {
  background: #fbfaf8;
}

.tx-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.tx-status-badge {
  display: inline-block;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: #e8f8ee;
  color: #147a3d;
  font-size: 0.78rem;
  font-weight: 800;
}

/* ==========================
   PROFILE
========================== */

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}

.profile-card,
.security-card {
  max-width: none;
  margin: 0;
}

.profile-header,
.security-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-header h3,
.security-top h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.edit-profile-btn,
.change-password-btn {
  background: #111827;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  width: auto;
}

.security-icon {
  width: 44px;
  height: 44px;
  background: #f1eee8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.last-login-card {
  margin-top: 1rem;
  background: #fbfaf8;
  border: 1px solid #eee8df;
  padding: 1rem;
  border-radius: 12px;
}

.small-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================
   EMPTY STATES
========================== */

.empty-state {
  background: #ffffff;
  border: 1px dashed #cfc7ba;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

/* ==========================
   PRODUCT DETAIL PAGE SUPPORT
========================== */

.product-detail,
.product-detail-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  padding: 1rem 0;
}

.product-detail img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--border-radius);
}

.product-info {
  padding: 1.4rem;
  background: #ffffff;
  border-radius: 16px;
  border: var(--border);
  box-shadow: var(--shadow-light);
}

.product-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 1rem;
}

.product-description {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1.5rem;
}

.price-section {
  margin-bottom: 1.5rem;
}

.product-price,
.product-info .price {
  font-size: 1.7rem;
  font-weight: 800;
  color: #111827;
}

.product-options {
  border-top: 1px solid #eee8df;
  border-bottom: 1px solid #eee8df;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #d8d2c8;
  background: #ffffff;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  color: #111827;
}

.product-img-placeholder {
  width: 100%;
  height: 400px;
  background: linear-gradient(135deg, #eeeeee 0%, #fafafa 100%);
  border-radius: 16px;
  border: 1px solid #eee8df;
}

/* ==========================
   PAYMENT
========================== */

.payment-qr {
  text-align: center;
  padding: 2rem;
}

.payment-qr img {
  max-width: 250px;
  border-radius: 12px;
  border: 1px solid #eee8df;
}

/* ==========================
   OLD BOTTOM NAV SUPPORT
========================== */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #111827;
  display: flex;
  justify-content: space-around;
  padding: 0.7rem 0;
  z-index: 1000;
  box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.15);
}

.bottom-nav a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.85rem;
  padding: 7px;
  border-radius: 10px;
}

.bottom-nav a:hover,
.bottom-nav a.active {
  background: rgba(255, 255, 255, 0.12);
}

.bottom-nav .nav-icon {
  font-size: 1.3rem;
  margin-bottom: 3px;
}

/* ==========================
   RESPONSIVE
========================== */

@media (min-width: 700px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tx-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile-grid {
    grid-template-columns: 1fr 1fr;
  }

  .combined-cart-layout {
    grid-template-columns: 1.7fr 0.8fr;
  }
}

@media (min-width: 900px) {
  .dashboard-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .orders-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .inventory-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-detail,
  .product-detail-page {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .navbar {
    position: static;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .navbar .nav-links {
    width: 100%;
    gap: 0.4rem;
  }

  .navbar a {
    font-size: 0.82rem;
    padding: 8px 11px;
  }

  .container {
    padding-top: 1.5rem;
  }

  .modal-body {
    grid-template-columns: 1fr;
    padding: 1.4rem;
  }

  .modal-image {
    min-height: 240px;
  }

  .page-header,
  .inventory-header,
  .dashboard-top-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-btn {
    width: 100%;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 30px;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .login-card {
    padding: 1.7rem;
  }

  .cart-item-card {
    grid-template-columns: 1fr;
  }

  .cart-item-image {
    width: 100%;
    height: 180px;
  }

  .cart-item-total {
    text-align: left;
  }

  .order-card-header {
    flex-direction: column;
  }

  .order-summary-row {
    flex-direction: column;
    gap: 0.2rem;
  }

  .order-summary-row strong {
    text-align: left;
  }
}/* ==========================
   MAKE ALL HIGHLIGHTS BOX STYLE
   Add this at the bottom of style.css
========================== */

.navbar a,
.navbar a.active,
.navbar a.logout,
.primary-btn,
button,
.btn,
.login-card button,
.product-card button,
.add-to-cart-btn,
.checkout-btn,
.remove-btn,
.edit-profile-btn,
.change-password-btn,
.search-bar,
.order-status,
.tx-status-badge,
.modal-close,
.size-btn,
.bottom-nav a {
  border-radius: 8px !important;
}

/* Navbar highlight box style */
.navbar a {
  padding: 10px 14px;
}

.navbar a.active {
  background: #111827;
  color: #ffffff;
  border-radius: 8px !important;
}

/* Logout box highlight */
.navbar a.logout {
  background: #f6eeee;
  color: #9f2a2a;
  border-radius: 8px !important;
}

.navbar a.logout:hover {
  background: #9f2a2a;
  color: #ffffff;
}

/* Status badges box style */
.order-status,
.tx-status-badge {
  border-radius: 6px !important;
}

/* Search bar less oblong */
.search-bar {
  border-radius: 8px !important;
}

/* Close button square but still clean */
.modal-close {
  border-radius: 8px !important;
}

/* Size buttons square */
.size-btn {
  border-radius: 8px !important;
}

/* EXTRA ADMIN FEATURES */
.notification-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #b42318;
  color: white;
  font-size: 0.75rem;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  display: none;
}

.warning-text {
  color: #a16207;
  font-weight: 700;
}

.danger-text {
  color: #b42318;
  font-weight: 700;
}

.low-stock-card {
  border-color: #f59e0b !important;
  background: #fffbeb !important;
}

.out-stock-card,
.flagged-card {
  border-color: #b42318 !important;
  background: #fff5f5 !important;
}

.new-order-highlight {
  border-color: #2563eb !important;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.order-actions button {
  font-size: 0.85rem;
  padding: 9px 12px;
}

.terms-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.terms-check input {
  width: auto;
  margin-top: 0.25rem;
}

.profile-picture-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.profile-pic-preview {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 2px solid #e5e1da;
  background: #f1eee8;
  background-size: cover;
  background-position: center;
}

.tx-table-header,
.tx-table-row {
  grid-template-columns: 1.1fr 1fr 1fr 1.2fr .8fr .8fr 1.2fr !important;
}

.tx-actions {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}

.tx-actions button {
  padding: 6px 8px;
  font-size: .75rem;
}


/* ==========================
   PAYMENT METHOD CHOICES
========================== */

.payment-method-card {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #eee8df;
  border-radius: 14px;
  background: #fbfaf8;
}

.payment-method-card h4 {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.payment-option {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem;
  border: 1px solid #ddd7ce;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  margin-bottom: 0.7rem;
  transition: var(--transition);
}

.payment-option:hover,
.payment-option.active {
  border-color: #111827;
  background: #f4f1eb;
}

.payment-option input {
  width: auto;
  margin-top: 0.25rem;
}

.payment-option strong {
  display: block;
  color: #111827;
  font-size: 0.95rem;
}

.payment-option span {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.payment-notice {
  margin-top: 0.75rem;
  padding: 0.8rem;
  border-radius: 10px;
  background: #ecfdf3;
  color: #067647;
  font-size: 0.88rem;
  font-weight: 600;
}

.paymongo-link-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.8rem;
  padding: 10px 14px;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.paymongo-link-btn:hover {
  background: #000000;
}


/* ==========================
   MANUAL GCASH PAYMENT
========================== */
.gcash-settings-card {
  margin-bottom: 1.5rem;
}

.gcash-qr-preview,
.gcash-payment-info {
  margin-top: 0.8rem;
}

.gcash-qr-preview img,
.gcash-qr-img {
  width: 220px;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid #e5e1da;
  background: #ffffff;
  padding: 8px;
  display: block;
  margin-bottom: 0.8rem;
}

.small-text {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.warning-text {
  color: #9f2a2a;
}
