/* Professional Color Scheme Variables */
:root {
  /* Primary Brand Colors - Dark Gray */
  --primary-color: #2c3e50;
  --primary-light: #34495e;
  --primary-dark: #1a252f;
  
  /* Secondary Colors - Medium Gray (replacing blue) */
  --secondary-color: #6c757d;
  --secondary-light: #868e96;
  --secondary-dark: #495057;
  
  /* Accent Colors - Warm Orange */
  --accent-color: #e67e22;
  --accent-light: #f39c12;
  --accent-dark: #d35400;
  
  /* Success Colors - Golf Course Green (Fairway Stripe Effect) */
  --success-color: #75ad4b; /* Light Green */
  --success-light: #75ad4b; /* Light stripe - same as main */
  --success-dark: #75ad4b; /* Light Green (site-wide, header/footer/category excluded) */
  
  /* Warning Colors - Professional Yellow */
  --warning-color: #f39c12;
  --warning-light: #f1c40f;
  --warning-dark: #e67e22;
  
  /* Info Colors - Green (replacing blue) */
  --info-color: #75ad4b;
  --info-light: #75ad4b;
  --info-dark: #75ad4b;
  
  /* Neutral Colors */
  --light-color: #f8f9fa;
  --light-gray: #e9ecef;
  --medium-gray: #6c757d;
  --dark-gray: #495057;
  --dark-color: #212529;
  
  /* Text Colors */
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --text-muted: #95a5a6;
  --text-light: #D8C28A;
  --text-navbar: #D8C28A;
  
  /* Border and Shadow Colors */
  --border-color: #dee2e6;
  --border-light: #e9ecef;
  --shadow-light: 0 2px 8px rgba(44, 62, 80, 0.08);
  --shadow-medium: 0 4px 16px rgba(44, 62, 80, 0.12);
  --shadow-heavy: 0 8px 32px rgba(44, 62, 80, 0.16);
  
  /* Plain Colors (replaced gradients) */
  --gradient-primary: #2c3e50;
  --gradient-secondary: #6c757d;
  --gradient-success: #75ad4b;
  --gradient-accent: #e67e22;
  --gradient-warning: #f39c12;
  
  /* Brand Specific Colors - Consistent with existing theme */
  --brand-primary: #2c3e50;
  --brand-secondary: #6c757d;
  --brand-accent: #e67e22;
  --brand-success: #75ad4b;
  --brand-warning: #f39c12;
  --brand-info: #75ad4b;
  
  /* Fairway Stripe Colors - Alternating light and dark greens */
  --fairway-light: #75ad4b; /* Light Green */
  --fairway-dark: #75ad4b;  /* Light Green */
}

/* Sell form: size (UK / numeric) range slider — thumb & accent match site green */
#sizeSliderContainer .form-range,
#SizeSlider.form-range {
  accent-color: var(--success-color);
}

#SizeSlider.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.125rem;
  height: 1.125rem;
  /* center thumb on ~6px track inside Bootstrap’s 1.5rem-tall range */
  margin-top: calc((0.375rem - 1.125rem) / 2);
  border-radius: 50%;
  background: var(--success-color);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

#SizeSlider.form-range::-webkit-slider-runnable-track {
  height: 0.375rem;
  border-radius: 0.25rem;
  background-color: var(--border-light, #e9ecef);
}

#SizeSlider.form-range:focus {
  outline: none;
}

#SizeSlider.form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 0.2rem rgba(117, 173, 75, 0.35);
}

#SizeSlider.form-range::-moz-range-thumb {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--success-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

#SizeSlider.form-range::-moz-range-track {
  height: 0.375rem;
  border-radius: 0.25rem;
  background-color: var(--border-light, #e9ecef);
}

#SizeSlider.form-range:focus::-moz-range-thumb {
  box-shadow: 0 0 0 0.2rem rgba(117, 173, 75, 0.35);
}

/* Fairway Stripe Effect - Apply to elements that should have alternating green stripes */
.fairway-stripe {
  background: repeating-linear-gradient(
    90deg,
    var(--fairway-light) 0px,
    var(--fairway-light) 20px,
    var(--fairway-dark) 20px,
    var(--fairway-dark) 40px
  );
}

/* Base Styles — root px scales all rem-based typography (Bootstrap + site) */
html {
  font-size: 12px;
  scroll-behavior: smooth;
  height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 13px;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-primary);
  background-color: #f8f9fa;
  line-height: 1.6;
  position: relative;
}

/* Prevents horizontal overflow caused by negative margins in Bootstrap rows */
.page-wrapper-row {
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.375rem;
}

h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
h5 { font-size: 0.9rem; }
h6 { font-size: 0.85rem; }

/* Container and Layout */
.container {
  flex: 1 0 auto;
  padding-bottom: 0.5rem;
}

.container-fluid {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  padding-bottom: 0.5rem;
}

main.flex-grow-1 {
  flex: 1 0 auto;
  min-height: calc(100vh - 200px);
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
}

/* Professional Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.card-header {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  font-weight: 600;
}

.card-body {
  padding: 0.75rem;
}

.card-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Professional Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border: none;
  text-transform: none;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-primary {
  background: var(--success-color);
  color: white !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--success-color);
  color: white !important;
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-success:hover {
  background: var(--success-color);
  color: white !important;
}

.btn-outline-primary {
  border: 2px solid var(--success-color);
  color: var(--success-color);
  background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
  background: var(--success-color);
  color: white !important;
  border-color: var(--success-color);
}

.btn-outline-secondary {
  border: 2px solid var(--light-gray);
  color: var(--text-secondary);
  background: transparent;
}

.btn-outline-secondary:hover {
  background: var(--light-gray);
  color: var(--dark-color);
  border-color: var(--light-gray);
}

.btn-outline-success {
  border: 2px solid var(--success-color);
  color: var(--success-color);
  background: transparent;
}

.btn-outline-success:hover {
  background: var(--success-color);
  color: white !important;
  border-color: var(--success-color);
}

/* Hover rule for buttons with light green background (including inline styles) */
.btn[style*="background-color: #75ad4b"]:hover,
button[style*="background-color: #75ad4b"]:hover,
a.btn[style*="background-color: #75ad4b"]:hover {
  color: white !important;
}

/* Ensure white text on all primary/success-style buttons (site standard) */
.btn-primary,
.btn-success,
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-success:hover, .btn-success:focus, .btn-success:active,
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active,
.btn-outline-success:hover, .btn-outline-success:focus, .btn-outline-success:active {
  color: white !important;
}

/* Brand Button */
.brand-button {
  background: var(--gradient-primary);
  border: none;
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.brand-button:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

/* Destructive buttons: solid red + white text; no white→red hover transition */
.btn-outline-danger {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff !important;
  transition: none;
}

.btn-outline-danger:hover:not(:disabled):not(.disabled),
.btn-outline-danger:focus:not(:disabled):not(.disabled),
.btn-outline-danger:active:not(:disabled):not(.disabled) {
  background-color: #dc3545;
  border-color: #dc3545;
  color: #fff !important;
}

.btn-danger {
  transition: none;
}

.btn-danger:hover:not(:disabled):not(.disabled),
.btn-danger:focus:not(:disabled):not(.disabled),
.btn-danger:active:not(:disabled):not(.disabled) {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: #fff !important;
}

/* Cancel / close text controls: solid dark gray + white label; no transparent “outline” idle or lift-on-hover */
.btn.btn-outline-secondary[data-bs-dismiss="modal"],
.btn.btn-secondary[data-bs-dismiss="modal"]:not(.btn-success):not(.btn-primary):not(.btn-danger):not(.btn-warning),
.btn-mm-modal-cancel {
  background-color: #495057 !important;
  border-color: #495057 !important;
  color: #fff !important;
  transition: none !important;
}

.btn.btn-outline-secondary[data-bs-dismiss="modal"]:hover:not(:disabled):not(.disabled),
.btn.btn-outline-secondary[data-bs-dismiss="modal"]:focus-visible:not(:disabled):not(.disabled),
.btn.btn-outline-secondary[data-bs-dismiss="modal"]:active:not(:disabled):not(.disabled),
.btn.btn-secondary[data-bs-dismiss="modal"]:not(.btn-success):not(.btn-primary):not(.btn-danger):not(.btn-warning):hover:not(:disabled):not(.disabled),
.btn.btn-secondary[data-bs-dismiss="modal"]:not(.btn-success):not(.btn-primary):not(.btn-danger):not(.btn-warning):focus-visible:not(:disabled):not(.disabled),
.btn.btn-secondary[data-bs-dismiss="modal"]:not(.btn-success):not(.btn-primary):not(.btn-danger):not(.btn-warning):active:not(:disabled):not(.disabled),
.btn-mm-modal-cancel:hover:not(:disabled):not(.disabled),
.btn-mm-modal-cancel:focus-visible:not(:disabled):not(.disabled),
.btn-mm-modal-cancel:active:not(:disabled):not(.disabled) {
  background-color: #343a40 !important;
  border-color: #343a40 !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

.mm-modal-style-form .mm-form-footer-btn-row > a.btn.btn-secondary.brand-button,
.mm-modal-style-form .mm-form-footer-btn-row > button.btn.btn-secondary.brand-button[type="button"] {
  background-color: #495057 !important;
  border-color: #495057 !important;
  color: #fff !important;
  transition: none !important;
}

.mm-modal-style-form .mm-form-footer-btn-row > a.btn.btn-secondary.brand-button:hover,
.mm-modal-style-form .mm-form-footer-btn-row > a.btn.btn-secondary.brand-button:focus-visible,
.mm-modal-style-form .mm-form-footer-btn-row > button.btn.btn-secondary.brand-button[type="button"]:hover,
.mm-modal-style-form .mm-form-footer-btn-row > button.btn.btn-secondary.brand-button[type="button"]:focus-visible {
  background-color: #343a40 !important;
  border-color: #343a40 !important;
  color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

.brand-button.btn-outline-danger,
.btn-outline-danger.brand-button,
.brand-button.btn-danger,
.btn-danger.brand-button {
  transition: none !important;
}

.brand-button.btn-outline-danger:hover,
.btn-outline-danger.brand-button:hover,
.brand-button.btn-danger:hover,
.btn-danger.brand-button:hover,
.brand-button.btn-outline-danger:focus,
.btn-outline-danger.brand-button:focus,
.brand-button.btn-danger:focus,
.btn-danger.brand-button:focus {
  transform: none !important;
  box-shadow: none !important;
}

/* Brand Wallet Button */
.brand-wallet-button {
  display: inline-block;
  background: var(--gradient-accent);
  color: var(--text-light);
  border-radius: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-light);
  transition: all 0.2s ease;
  min-width: 90px;
  text-align: center;
  cursor: pointer;
  padding: 0.5rem 1rem;
  text-decoration: none;
}

.brand-wallet-button:hover {
  background: var(--accent-dark);
  color: var(--text-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
}

.wallet-balance {
  font-size: 0.9rem;
}

/* Notification bell in header: keep .nav-link as Bootstrap display:block; inner span handles flex + badge anchor */
.navbar .notification-icon-link {
  padding: 0.5rem 0.65rem;
  margin-right: 0.25rem;
  transition: opacity 0.2s ease;
}
.navbar .navbar-notification-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  vertical-align: middle;
}
.navbar .notification-icon-link:hover {
  opacity: 0.9;
  color: white !important;
}
.navbar .navbar-notification-bell i {
  font-size: 1em;
}
.navbar .notification-badge {
  position: absolute;
  top: -2px;
  right: -10px;
  min-width: 1.25em;
  height: 1.25em;
  padding: 0 0.35em;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.25em;
  color: white;
  background: #dc3545;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Professional Tables */
.table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
}

.table thead th {
  background: #f8f9fa;
  color: #000000;
  border: none;
  padding: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.875rem;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
  transform: scale(1.01);
}

.table tbody td {
  padding: 1rem;
  border-color: var(--border-color);
  vertical-align: middle;
}

/* Professional Forms */
.form-control, .form-select {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: white;
}

.form-control:focus, .form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.25);
  outline: none;
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-check-input:checked {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Narrow form page shell (matches Sell / product upload layout) */
.mm-form-page-shell {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 3rem;
  width: 100%;
}
.mm-form-page-shell .brand-title {
  text-align: center;
}
.mm-form-page-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  margin-top: -0.35rem;
  line-height: 1.45;
}
.mm-form-section-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.mm-form-section-heading:first-child {
  margin-top: 0;
}
.mm-form-section-heading i {
  color: var(--success-color);
  opacity: 0.95;
}

/* Highlight box for consent / footnotes (same as Sell transaction fee block) */
.transaction-fee-acceptance {
  background: var(--light-gray);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.transaction-fee-acceptance .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin: 0;
  min-height: auto;
}
.transaction-fee-acceptance .form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  margin-top: 0.2rem;
  flex-shrink: 0;
}
.transaction-fee-acceptance .form-check-label {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-primary);
  padding-top: 0;
  cursor: pointer;
}

/* Login form - constrained and centered on desktop and mobile */
.login-form-wrapper {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.login-submit-btn {
  width: 100%;
}
@media (max-width: 767.98px) {
  .login-form-wrapper {
    max-width: none;
    width: calc(100% - 0.5rem);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: auto;
    margin-right: auto;
  }
  .login-submit-btn {
    width: 100% !important;
    max-width: none;
    min-height: 56px;
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Password field with eye toggle inside input */
.password-input-wrapper {
  position: relative;
}
.password-input-wrapper .form-control {
  padding-right: 2.75rem;
}
.password-toggle-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s ease, background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-toggle-btn:hover {
  color: #495057;
  background-color: rgba(0, 0, 0, 0.04);
}
.password-toggle-btn:focus {
  outline: none;
  color: #2c3e50;
}
.password-toggle-btn i {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Professional Alerts */
.alert {
  border: none;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-light);
}

.alert-success {
  background: rgba(45, 90, 39, 0.1);
  color: var(--success-dark);
}

.alert-danger {
  background: rgba(231, 76, 60, 0.1);
  color: #c0392b;
}

.alert-info {
  background-color: var(--light-gray);
  border-color: var(--success-color);
  color: var(--text-primary);
}

.alert-warning {
  background: rgba(243, 156, 18, 0.1);
  color: #d68910;
}

/* Professional Badges */
.badge {
  font-size: 0.75rem;
  padding: 0.5em 0.75em;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.badge.bg-success {
  background: #75ad4b !important;
  background-color: #75ad4b !important;
  color: white !important;
}

/* Current offer and Price badges - use light green with white text */
/* Applies to both Current Offer (when offers enabled) and Price (when offers disabled) */
.product-details .badge.bg-success,
.current-offer-price .badge.bg-success {
  background: var(--success-color) !important;
  background-color: #75ad4b !important;
  color: white !important;
}

.badge.bg-warning {
  background: var(--gradient-warning) !important;
}

.badge.bg-info {
  background: var(--success-color) !important;
}

.badge.bg-primary {
  background: var(--success-color) !important;
}

/* Professional Navigation */
.navbar {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-medium);
}

.navbar-brand {
  font-weight: 700;
  color: white !important;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: white !important;
  transform: translateY(-1px);
}

.dropdown-menu {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-heavy);
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--light-color);
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Professional Summary Cards - Compact */
.summary-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  text-align: center;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.summary-card .card-title {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.25rem;
}

.summary-card .card-value {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
}

.summary-card .fa-2x {
  font-size: 1.5rem !important;
  margin-bottom: 0.5rem;
}

/* Professional Images */
.img-thumbnail {
  border-radius: 8px;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.img-thumbnail:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-medium);
}

/* Professional Switches */
.form-check-input.styled-check {
  width: 3rem;
  height: 1.5rem;
  border-radius: 1rem;
  border: 2px solid var(--light-gray);
  background-color: var(--light-gray);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.form-check-input.styled-check:focus {
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-check-input.styled-check:checked {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

.form-check-input.styled-radio {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background-color: #fff;
  margin-right: 0.5rem;
  margin-top: 0;
  transition: all 0.2s ease;
}

.form-check-input.styled-radio:checked {
  background-color: var(--success-color);
  border-color: var(--success-color);
  box-shadow: 0 0 0 0.15rem rgba(45, 90, 39, 0.25);
}

/* Professional Communication Channel Cards */
.preferred-channel-group {
  margin-top: 1.5rem;
}

.channel-card {
  position: relative;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  height: 100%;
}

.channel-card:hover {
  border-color: var(--success-color);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.1);
  transform: translateY(-2px);
}

.channel-card-selected {
  border-color: var(--success-color);
  background: linear-gradient(135deg, rgba(45, 90, 39, 0.05) 0%, rgba(45, 90, 39, 0.02) 100%);
  box-shadow: 0 4px 16px rgba(45, 90, 39, 0.15);
}

.channel-card .channel-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.channel-card .channel-label {
  display: flex;
  align-items: center;
  padding: 1.25rem 1rem;
  margin: 0;
  cursor: pointer;
  width: 100%;
  position: relative;
}

.channel-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.channel-card-selected .channel-icon {
  background: linear-gradient(135deg, var(--success-color) 0%, #3a7a2e 100%);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

.channel-icon i {
  font-size: 1.5rem;
  color: #666;
  transition: all 0.3s ease;
}

.channel-card-selected .channel-icon i {
  color: #ffffff;
}

.channel-text {
  flex: 1;
  min-width: 0;
}

.channel-name {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
  letter-spacing: 0.2px;
  display: block;
  transition: color 0.3s ease;
}

.channel-card-selected .channel-name {
  color: var(--success-color);
  font-weight: 700;
}

.channel-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.channel-card-selected .channel-check {
  opacity: 1;
  transform: scale(1);
  background: var(--success-color);
}

.channel-check i {
  font-size: 0.875rem;
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .channel-card .channel-label {
    padding: 1rem 0.875rem;
  }
  
  .channel-icon {
    width: 40px;
    height: 40px;
    margin-right: 0.75rem;
  }
  
  .channel-icon i {
    font-size: 1.25rem;
  }
  
  .channel-name {
    font-size: 0.9375rem;
  }
}

.marketing-toggle {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.marketing-toggle .form-check-input.styled-check {
  margin-left: 0;
  margin-right: 0;
}

.marketing-toggle .form-check-label {
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
}

.register-page .register-login-link a {
  color: #000 !important;
}
.register-page .register-login-link a:hover {
  color: #333 !important;
}

.mm-form-page-shell .preferred-channel-group > .form-label.text-uppercase {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* Professional Footer */
.footer {
  background: var(--gradient-primary);
  color: white;
  padding: 2rem 0;
  margin-top: auto;
  position: relative;
  bottom: 0;
}

.footer h5 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: white;
  text-decoration: none;
}

/* Social Icons Styling */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

.social-icons a {
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icons a i {
  font-size: 1.5rem;
  color: #fff;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  color: #fff;
  transform: translateY(-2px);
}

.social-icons a:hover i {
  color: #fff;
  transform: scale(1.1);
}

/* Page Content Wrapper */
.page-content {
  min-height: calc(100vh - 200px);
  padding-bottom: 3rem;
}

/* On desktop: constrain content width so page headers match content below */
@media (min-width: 992px) {
  .page-content-inner {
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .table thead th,
  .table tbody td {
    padding: 0.75rem 0.5rem;
  }
  
  .page-content {
    min-height: calc(100vh - 150px);
    padding-bottom: 2rem;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--light-color);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-dark);
}

/* Focus States */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

/* Product Card Spacing Fixes */
/* Product item carousel - use aspect ratio for consistency */
.product-item .product-carousel {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  position: relative;
  background: #f8f9fa;
}

.product-item .product-carousel img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 16px 16px 0 0;
  transition: transform 0.3s ease;
  background-color: #f8f9fa;
  height: 100%;
}

.product-item .product-carousel:hover img {
  transform: scale(1.03);
}

.product-item .card-img-top {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  transition: transform 0.3s ease;
  cursor: pointer;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-item .card-img-top:hover {
  transform: scale(1.03);
}

/* Product card images - consistent professional fit across all cards */
.card-img-top img,
.home-product-cards .card-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Product card image carousel — circular green controls (same as home #categoryCarousel) */
.product-item .card-img-top .carousel {
  position: relative;
}
.product-item .card-img-top .carousel-control-prev,
.product-item .card-img-top .carousel-control-next {
  width: 36px;
  height: 36px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  opacity: 0.92;
  background: #75ad4b;
  border-radius: 50%;
  border: none;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.product-item .card-img-top .carousel-control-prev {
  left: 0.35rem;
}
.product-item .card-img-top .carousel-control-next {
  right: 0.35rem;
}
.product-item .card-img-top .carousel-control-prev:hover,
.product-item .card-img-top .carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
  background: #75ad4b;
  box-shadow: 0 4px 12px rgba(117, 173, 75, 0.45);
}
.product-item .card-img-top .carousel-control-prev-icon,
.product-item .card-img-top .carousel-control-next-icon {
  width: 1.125rem;
  height: 1.125rem;
  filter: brightness(0) invert(1);
}

/* Image zoom styling */
.product-image-zoom {
  cursor: zoom-in;
}

.product-image-zoom:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Product card — “Read more” on truncated description (home cards) */
.product-item .js-read-more-product-desc {
  color: var(--success-color, #75ad4b) !important;
}

.product-item .js-read-more-product-desc:hover,
.product-item .js-read-more-product-desc:focus {
  color: #5f8f3a !important;
}

.product-item .js-read-more-product-desc:focus-visible {
  outline: 2px solid var(--success-color, #75ad4b);
  outline-offset: 2px;
  box-shadow: none;
}

.products-bottom-spacing {
  margin-bottom: 2rem;
}

.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: white;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.card-body {
  padding: 0.875rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: white;
  min-height: 0;
  justify-content: space-between;
}

/* Professional spacing between content elements in product cards */
.card-body .mb-2 {
  margin-bottom: 0.5rem !important;
}

.card-body .mb-3 {
  margin-bottom: 0.625rem !important;
}

.card-body .mb-4 {
  margin-bottom: 0.75rem !important;
}

.card-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.35;
  min-height: 2.84rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  flex-grow: 1;
  font-size: 0.875rem;
  line-height: 1.4;
  min-height: 2.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  line-height: 1.4;
}

/* Add separation between product specifications and pricing details */
.product-meta:last-of-type {
  margin-bottom: 0.75rem;
}

.product-details {
  margin-top: 0.5rem;
  margin-bottom: 0.625rem;
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Consistent spacing for all pricing detail elements */
.product-details p {
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 0.15rem 0;
  line-height: 1.2;
}

/* Fixed Price indicator badge */
.product-details .badge.bg-info {
  background-color: #adb5bd !important; /* Light grey */
  color: white;
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  font-weight: 500;
}

/* Reduce spacing after Fixed Price badge - handled by bidding-disabled rule below */

/* Starting Price - consistent spacing */
.product-details .starting-price {
  margin-top: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Offers End - reduced spacing */
.product-details .offers-end {
  margin-bottom: 0.1rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Align price/current offer to bottom - works for both enabled and disabled */
.product-details .current-offer-price {
  margin-top: auto;
  margin-bottom: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* For bidding-enabled cards: reduce gap between Offers End and Current Offer */
.product-details.bidding-enabled .offers-end + .current-offer-price,
.product-details.bidding-enabled p.mb-1 + .current-offer-price {
  margin-top: 0 !important;
}

/* Reduce spacing between Offers End and Current Offer paragraphs */
.product-details.bidding-enabled p.mb-1 {
  margin-bottom: 0.1rem !important;
}

.product-details.bidding-enabled p.mb-1 + p.current-offer-price {
  margin-top: 0 !important;
}

/* For bidding-disabled cards, keep Fixed Price badge at top with minimal spacing */
.product-details.bidding-disabled p.mb-2 {
  margin-bottom: 0.1rem !important;
  margin-top: 0;
}

/* Ensure Fixed Price badge stays at top for bidding-disabled cards */
.product-details.bidding-disabled {
  margin-top: 0.5rem;
}

.product-details.bidding-disabled p.mb-2:first-child {
  margin-top: 0;
}

.product-details strong {
  color: var(--primary-color);
  font-weight: 600;
  margin-right: 0.5rem;
  font-size: 0.85rem;
}

/* Like button styling improvements */
.like-section {
  flex-shrink: 0;
}

.like-btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.5rem;
}

.product-details .badge {
  margin-left: 0.5rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.35em 0.7em;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-offer, .btn-purchase {
  width: 100%;
  margin-top: 0.625rem;
  font-size: 0.85rem;
  padding: 0.625rem 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.btn-offer:hover, .btn-purchase:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
}

/* Purchase: white label on green; icon uses Mulligan Mall gold (--text-light) */
.btn-primary.btn-purchase,
.btn-primary.btn-purchase:hover,
.btn-primary.btn-purchase:focus,
.btn-primary.btn-purchase:active {
  color: white !important;
}

.btn-primary.btn-purchase i,
.btn-primary.btn-purchase:hover i,
.btn-primary.btn-purchase:focus i,
.btn-primary.btn-purchase:active i {
  color: var(--text-light) !important;
}

/* Logged-out Purchase uses same classes as Make Offer (btn-outline-secondary + btn-purchase); no extra overrides */

/* Confirm Purchase in modal footer */
#purchaseModal .modal-footer .btn-success,
#purchaseModal .modal-footer .btn-success:hover,
#purchaseModal .modal-footer .btn-success:focus,
#purchaseModal .modal-footer .btn-success:active {
  color: white !important;
}

#purchaseModal .modal-footer .btn-success i {
  color: var(--text-light) !important;
}

/* Confirm Purchase — disabled until shipping is calculated (same inactive gray as Submit Offer) */
#purchaseModal #confirmPurchaseBtn.btn-success:disabled {
  background-color: #e9ecef !important;
  border-color: #dee2e6 !important;
  color: #868e96 !important;
  opacity: 1;
  cursor: not-allowed;
}
#purchaseModal #confirmPurchaseBtn.btn-success:disabled:hover,
#purchaseModal #confirmPurchaseBtn.btn-success:disabled:focus {
  background-color: #e9ecef !important;
  border-color: #dee2e6 !important;
  color: #868e96 !important;
  box-shadow: none;
}
#purchaseModal #confirmPurchaseBtn.btn-success:disabled i {
  color: #868e96 !important;
}

/* Product cards: equal-width action buttons; stack uses gap only (no extra margin-top) */
.home-product-cards .product-card-actions > .btn.btn-sm {
  margin-top: 0 !important;
  min-height: 2.375rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* Enhanced card styling - no top bar or dark border */
.card {
  border-top: none !important;
}
.card::before {
  display: none;
}

/* Product grid layout improvements - Using Bootstrap Grid System */
.product-item {
  display: flex;
  height: 100%;
}

/* Ensure cards have consistent height */
.product-item .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

/* Product images - consistent aspect ratio to prevent cutting off */
.product-item .card-img-top,
.product-item .product-carousel,
.product-item .product-carousel .carousel-inner,
.product-item .product-carousel .carousel-item,
.product-item .product-carousel .carousel-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
}

.product-item .product-carousel {
  position: relative;
  overflow: hidden;
}

.product-item .product-carousel .carousel-inner {
  height: 100%;
}

.product-item .product-carousel .carousel-item {
  height: 100%;
}

.product-item .product-carousel .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Card body - flex to push footer down */
.product-item .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Ensure content alignment */
.product-item .card-body > * {
  width: 100%;
}

.product-item .card-body .d-flex {
  align-items: flex-start;
}

/* Card footer - stays at bottom */
.product-item .card-footer {
  margin-top: auto;
  padding: 0.75rem 1rem;
}

/* Consistent text alignment */
.product-item .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.product-item .card-text {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #6c757d;
  flex-grow: 1;
}

/* Product details alignment */
.product-item .product-details {
  margin-top: auto;
  padding-top: 0.75rem;
}

.product-item .product-details p {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  font-size: 0.9375rem;
  line-height: 1;
}

/* Reduce spacing between Starting Price, Offers End and Current Offer */
.product-item .product-details p.mb-1 {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.product-item .product-details p.mb-0 {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  line-height: 1;
}

.product-item .product-details .current-offer-price {
  margin-top: 0 !important;
  margin-bottom: 0.5rem;
  line-height: 1;
  padding-top: 0 !important;
}

.product-item .product-details p + p {
  margin-top: 0 !important;
}

.product-item .product-meta {
  font-size: 0.875rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

/* Responsive adjustments for product cards - maintain aspect ratio */
@media (max-width: 1200px) {
  .product-item .product-carousel,
  .product-item .product-carousel .carousel-inner,
  .product-item .product-carousel .carousel-item {
    aspect-ratio: 1 / 1;
    height: auto;
  }
  
  .product-item .product-carousel .carousel-item img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    height: 100%;
  }
  
  .product-item .product-carousel img,
  .product-item .card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    height: auto;
    width: 100%;
  }
  
  .product-item .card-body {
    padding: 0.75rem;
  }
  
  .product-item .card-title {
    font-size: 1.05rem;
  }
  
  .product-item .card-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .product-item .product-carousel,
  .product-item .product-carousel img,
  .product-item .card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    height: auto;
    width: 100%;
  }
  
  .product-item .card-body {
    padding: 0.7rem;
  }
  
  .card-title {
    font-size: 1rem;
    min-height: 2.47rem;
  }
  
  .card-text {
    font-size: 0.875rem;
    min-height: 2.24rem;
  }
  
  .product-details p {
    font-size: 0.8125rem;
  }
  
  .btn-offer, .btn-purchase {
    font-size: 0.8rem;
    padding: 0.55rem 0.875rem;
  }
}

@media (max-width: 576px) {
  .product-carousel {
    height: 140px;
  }
  
  .product-item .product-carousel,
  .product-item .product-carousel img,
  .product-item .card-img-top {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    height: auto;
    width: 100%;
  }
  
  .card-body {
    padding: 0.65rem;
  }
  
  .card-title {
    font-size: 0.95rem;
    min-height: 2.34rem;
  }
  
  .card-text {
    font-size: 0.8125rem;
    min-height: 2.1rem;
  }
  
  .badge {
    font-size: 0.7rem;
    padding: 0.3em 0.6em;
  }
  
  .product-details p {
    font-size: 0.8125rem;
  }
}

/* Enhanced Image zoom modal styling */
#imageZoomModal .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  background: #000;
}

#imageZoomModal .modal-header {
  border-bottom: 1px solid var(--border-light);
  background: var(--light-color);
  border-radius: 16px 16px 0 0;
}

#imageZoomModal .modal-body {
  padding: 0;
  background: #000;
  position: relative;
}

#imageZoomModal .carousel {
  background: #000;
}

#imageZoomModal .carousel-inner {
  min-height: 45vh;
}

.zoom-modal-slide-pane {
  position: relative;
  max-height: 82vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
}

/* Per-slide zoom toggle (100% / 150%) — top-right over image area */
.zoom-modal-toggle-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 20;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--success-color, #75ad4b);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.zoom-modal-toggle-btn:hover {
  background: #fff;
  transform: scale(1.06);
}

.zoom-modal-toggle-btn.is-active {
  background: var(--success-color, #75ad4b);
  color: #fff;
}

.zoom-modal-toggle-btn.is-active:hover {
  background: var(--success-dark, #5a8a3a);
  color: #fff;
}

.zoom-modal-toggle-btn:focus-visible {
  outline: 2px solid var(--success-color, #75ad4b);
  outline-offset: 2px;
}

.zoom-modal-slide-pane.is-zoomed {
  align-items: flex-start;
  justify-content: flex-start;
}

.zoom-modal-image {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transform-origin: center center;
  transition: transform 0.12s ease-out;
}

/* Zoom modal carousel arrows — match product card (.product-item .card-img-top .carousel) */
#imageZoomModal #zoomCarousel .zoom-carousel-control-prev,
#imageZoomModal #zoomCarousel .zoom-carousel-control-next {
  width: 36px;
  height: 36px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  opacity: 0.92;
  background: #75ad4b;
  border-radius: 50%;
  border: none;
  padding: 0;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

#imageZoomModal #zoomCarousel .zoom-carousel-control-prev {
  left: 0.35rem;
  right: auto;
}

#imageZoomModal #zoomCarousel .zoom-carousel-control-next {
  right: 0.35rem;
  left: auto;
}

#imageZoomModal #zoomCarousel .zoom-carousel-control-prev:hover,
#imageZoomModal #zoomCarousel .zoom-carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.08);
  background: #75ad4b;
  box-shadow: 0 4px 12px rgba(117, 173, 75, 0.45);
}

#imageZoomModal #zoomCarousel .zoom-carousel-control-prev .carousel-control-prev-icon,
#imageZoomModal #zoomCarousel .zoom-carousel-control-next .carousel-control-next-icon {
  width: 1.125rem;
  height: 1.125rem;
  filter: brightness(0) invert(1);
}

/* Image Counter Styling */
.zoom-image-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10;
  backdrop-filter: blur(10px);
}

/* Hide controls when only one image */
#imageZoomModal #zoomCarousel:has(.carousel-item:only-child) .zoom-carousel-control-prev,
#imageZoomModal #zoomCarousel:has(.carousel-item:only-child) .zoom-carousel-control-next {
  display: none;
}

@media (max-width: 768px) {
  .zoom-modal-image {
    max-height: 70vh;
  }
  
  .zoom-image-counter {
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    padding: 6px 12px;
  }
}

/* Product Image Carousel Styling */
.product-carousel {
  height: 400px;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  position: relative;
  background: #f8f9fa;
  flex-shrink: 0;
}

.product-carousel .carousel-inner {
  height: 100%;
}

.product-carousel .carousel-item {
  height: 100%;
}

.product-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 20px 20px 0 0;
  transition: transform 0.3s ease;
  background-color: #f8f9fa;
}

.product-carousel .carousel-control-prev,
.product-carousel .carousel-control-next {
  opacity: 0;
  transition: opacity 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
}

.product-carousel:hover .carousel-control-prev,
.product-carousel:hover .carousel-control-next {
  opacity: 1;
}

.product-carousel .carousel-control-prev-icon,
.product-carousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.product-carousel:hover .carousel-control-prev-icon,
.product-carousel:hover .carousel-control-next-icon {
  filter: brightness(0) invert(1);
}

.product-carousel .carousel-indicators {
  bottom: 10px;
}

.product-carousel .carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  margin: 0 3px;
}

.product-carousel .carousel-indicators button.active {
  background-color: white;
}

/* Responsive carousel adjustments */
@media (max-width: 1200px) {
  .product-carousel {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .product-carousel {
    height: 320px;
  }
}

@media (max-width: 576px) {
  .product-carousel {
    height: 300px;
  }
}

/* Product Details Height Consistency */
.product-details {
  min-height: 120px;
  display: flex;
  flex-direction: column;
}

.product-details p {
  margin-bottom: 0.5rem;
}

/* Bidding enabled products - spread content */
.product-details.bidding-enabled {
  justify-content: space-between;
}

/* Bidding disabled products - align price to bottom */
.product-details.bidding-disabled {
  justify-content: flex-end;
}

.product-details.bidding-disabled::after {
  display: none;
}

/* Golf Ad Carousel Styling */
#golfAdCarousel {
  max-height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#golfAdCarousel .carousel-item img {
  max-height: 400px;
  object-fit: cover;
  width: 100%;
}

#golfAdCarousel .carousel-caption {
  background: rgba(0, 0, 0, 0.6) !important;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

#golfAdCarousel .carousel-caption h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

#golfAdCarousel .carousel-caption p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Highlight target offer card (e.g. deep link from notification to My Offers) */
.mm-offer-card-highlight {
  outline: 3px solid #75ad4b;
  outline-offset: 4px;
  border-radius: 12px;
  transition: outline-color 0.3s ease, outline-offset 0.3s ease;
}

/* Login Required Modal Styling — default “standard” modal chrome site-wide (same pattern as Contact Us: modal-content.login-required-modal, green header, btn-close-white, modal-footer + brand-button). */
.login-required-modal {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-heavy);
  background: white;
  overflow: hidden;
}

.login-required-modal .modal-header {
  background: linear-gradient(90deg, #75ad4b 0%, #75ad4b 100%);
  color: #ffffff;
  border: none !important;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 2rem;
  margin: 0;
  margin-top: -1px;
  margin-left: -1px;
  margin-right: -1px;
}

.login-required-modal .modal-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

.login-required-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.login-required-modal .btn-close:hover {
  opacity: 1;
}

.login-required-modal .modal-body {
  padding: 2rem;
  background: white;
}

.login-required-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.login-required-icon i {
  color: #75ad4b;
  opacity: 0.9;
}

.login-required-prompt-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(117, 173, 75, 0.18) 0%, rgba(73, 128, 48, 0.12) 100%);
  box-shadow: 0 8px 24px rgba(73, 128, 48, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.login-required-prompt-icon-wrap i {
  font-size: 2rem;
  color: #498030;
  opacity: 1;
}

.login-required-modal h6 {
  color: #75ad4b;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.login-required-modal p {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.login-required-modal .text-accent {
  color: #75ad4b;
  font-weight: 600;
}

.login-required-modal .text-muted {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.login-required-modal .modal-footer {
  background: var(--light-color);
  border: none;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem 2rem;
}

.login-required-modal .brand-button,
.mm-modal-style-form .brand-button {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
}

.login-required-modal .brand-button:hover,
.mm-modal-style-form .brand-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
}

.login-required-modal .btn-primary.brand-button,
.mm-modal-style-form .btn-primary.brand-button {
  background: #75ad4b;
  border: none;
  color: white;
}

.login-required-modal .btn-primary.brand-button:hover,
.mm-modal-style-form .btn-primary.brand-button:hover {
  background: #75ad4b;
  color: white;
}

.login-required-modal .btn-success.brand-button,
.mm-modal-style-form .btn-success.brand-button {
  background: #75ad4b;
  border: none;
  color: white;
}

.login-required-modal .btn-success.brand-button:hover,
.mm-modal-style-form .btn-success.brand-button:hover {
  background: #75ad4b;
  color: white;
}

.login-required-modal .btn-secondary.brand-button,
.mm-modal-style-form .btn-secondary.brand-button {
  background: #495057;
  border: none;
  color: white;
}

.login-required-modal .btn-secondary.brand-button:hover,
.mm-modal-style-form .btn-secondary.brand-button:hover {
  background: #343a40;
  color: white;
  transform: none;
  box-shadow: none;
}

.login-required-modal .btn-outline-secondary.brand-button,
.mm-modal-style-form .btn-outline-secondary.brand-button {
  background: transparent;
  border: 2px solid #6c757d;
  color: #495057;
}

.login-required-modal .btn-outline-secondary.brand-button:hover,
.mm-modal-style-form .btn-outline-secondary.brand-button:hover {
  background: #6c757d;
  border-color: #6c757d;
  color: white;
}

/* Cancel / close with outline+brand in modals: solid neutral (not “empty” until hover) */
.login-required-modal .btn-outline-secondary.brand-button[data-bs-dismiss="modal"],
.mm-modal-style-form .btn-outline-secondary.brand-button[data-bs-dismiss="modal"] {
  background: #495057;
  border: 2px solid #495057;
  color: #fff;
  transition: none;
}

.login-required-modal .btn-outline-secondary.brand-button[data-bs-dismiss="modal"]:hover,
.login-required-modal .btn-outline-secondary.brand-button[data-bs-dismiss="modal"]:focus-visible,
.mm-modal-style-form .btn-outline-secondary.brand-button[data-bs-dismiss="modal"]:hover,
.mm-modal-style-form .btn-outline-secondary.brand-button[data-bs-dismiss="modal"]:focus-visible {
  background: #343a40;
  border-color: #343a40;
  color: #fff;
  transform: none;
  box-shadow: none;
}

.login-required-modal .btn-outline-danger.brand-button,
.mm-modal-style-form .btn-outline-danger.brand-button {
  background: #dc3545;
  border: 2px solid #dc3545;
  color: #fff;
  transition: none;
}

.login-required-modal .btn-outline-danger.brand-button:hover,
.login-required-modal .btn-outline-danger.brand-button:focus,
.mm-modal-style-form .btn-outline-danger.brand-button:hover,
.mm-modal-style-form .btn-outline-danger.brand-button:focus {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

.login-required-modal .btn-danger.brand-button,
.mm-modal-style-form .btn-danger.brand-button {
  background: #dc3545;
  border: none;
  color: #fff;
  transition: none;
}

.login-required-modal .btn-danger.brand-button:hover,
.login-required-modal .btn-danger.brand-button:focus,
.login-required-modal .btn-danger.brand-button:active,
.mm-modal-style-form .btn-danger.brand-button:hover,
.mm-modal-style-form .btn-danger.brand-button:focus,
.mm-modal-style-form .btn-danger.brand-button:active {
  background: #dc3545;
  border-color: #dc3545;
  color: #fff;
}

/* Responsive adjustments for login modal */
@media (max-width: 576px) {
  .login-required-modal .modal-header,
  .login-required-modal .modal-body,
  .login-required-modal .modal-footer {
    padding: 1.25rem 1.5rem;
  }
  
  .login-required-modal .modal-title {
    font-size: 1.1rem;
  }
  
  .login-required-modal .brand-button,
  .mm-modal-style-form .brand-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    min-width: 100px;
  }

  .login-required-icon i {
    font-size: 2.5rem !important;
  }

  .mm-modal-style-form-header,
  .mm-modal-style-form-body,
  .mm-modal-style-form-footer,
  .mm-form-page-card-header {
    padding: 1.25rem 1.5rem;
  }

  .mm-modal-style-form-title {
    font-size: 1.1rem;
  }

  .mm-form-page-card-title {
    font-size: 1.2rem;
  }
}

/* Full-page forms: same look as Contact Us (login-required-modal) */
.mm-modal-style-form {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-heavy);
  background: white;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.mm-modal-style-form-header {
  background: linear-gradient(90deg, #75ad4b 0%, #75ad4b 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 2rem;
}

.mm-modal-style-form-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.3;
}

/* Form-style page header (Register / Profile / Sell — not modal chrome) */
.mm-form-page-card-header {
  padding: 1.5rem 2rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--border-light);
  border-radius: 16px 16px 0 0;
}

.mm-form-page-card-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.mm-form-page-card-title i {
  color: var(--success-color);
  opacity: 0.95;
}

.mm-modal-style-form-body {
  padding: 2rem;
  background: white;
}

.mm-modal-style-form-body > .mm-form-page-subtitle,
.mm-modal-style-form-body > p.mm-form-page-subtitle {
  text-align: left;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  margin-top: 0;
}

.mm-modal-style-form-body p {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
}

.mm-modal-style-form-body .text-muted {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.mm-modal-style-form-body .form-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.mm-modal-style-form-body .mm-form-section-heading {
  color: #75ad4b;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.mm-modal-style-form-body .profile-account-block .mm-form-section-heading,
.mm-modal-style-form-body fieldset > .mm-form-section-heading:first-child {
  margin-top: 0;
}

.mm-modal-style-form-body .mm-form-section-heading i {
  color: #75ad4b;
  opacity: 1;
}

.mm-modal-style-form-footer {
  background: var(--light-color);
  border: none;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 1rem;
  justify-content: flex-start;
  align-items: stretch;
}

.mm-modal-style-form-footer .transaction-fee-acceptance {
  flex: 0 0 auto;
  width: 100%;
  margin-bottom: 0 !important;
}

/* Primary + Cancel: equal width, Contact Us–style spacing (desktop) */
.mm-modal-style-form-footer .mm-form-footer-btn-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: stretch;
  align-items: stretch;
  gap: 1rem;
  width: min(100%, 36rem);
  margin-left: auto;
}

.mm-modal-style-form-footer .mm-form-footer-btn-row > .brand-button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 3rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  box-sizing: border-box;
}

.mm-modal-style-form-footer .mm-form-footer-btn-row > a.brand-button {
  text-align: center;
  text-decoration: none;
}

/* Featured Badge Styling */
.featured-badge {
  font-size: 0.75rem;
  padding: 0.4em 0.8em;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
  background: #6c757d !important;
  color: white;
  border: none;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.featured-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(158, 163, 175, 0.4);
}

/* Responsive adjustments for featured badge */
@media (max-width: 768px) {
  .featured-badge {
    font-size: 0.7rem;
    padding: 0.35em 0.7em;
  }
}

/* User profile link - clickable name for UserRatings modal */
.user-profile-link {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  color: #495057;
  background: #f1f3f5;
  border: 1px solid #dee2e6;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}
.user-profile-link:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #212529;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.user-profile-link i {
  font-size: 0.85em;
  margin-right: 0.35rem;
  opacity: 0.8;
}

/* Shipping status button - clearly clickable */
.btn-show-shipping-modal {
  transition: all 0.2s ease;
}
.btn-show-shipping-modal:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-show-packaging-tips {
  transition: all 0.2s ease;
}
.btn-show-packaging-tips:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.packaging-tips-modal-list {
  font-size: 0.95rem;
  line-height: 1.5;
}
.packaging-tips-modal-list li strong {
  color: var(--text-primary, #212529);
}

/* Modals matching Login Required style (Shipping, User Profile, etc.) */
.contact-style-modal {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
}
.contact-style-modal .modal-header {
  border: none;
  border-radius: 16px 16px 0 0;
}

.seller-profile-content {
  padding: 0;
}
.seller-profile-header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}
.seller-avatar {
  font-size: 3rem;
  color: #6c757d;
  opacity: 0.9;
}
.seller-avatar .seller-avatar-img {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: cover;
  border: 2px solid #e9ecef;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.seller-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: #2c3e50;
  margin: 0;
}
.seller-rating {
  font-size: 0.9rem;
}
.seller-rating-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  background: #fff8e6;
  border-radius: 6px;
  font-weight: 600;
  color: #856404;
}
.seller-profile-stats {
  margin-top: 0;
}
.seller-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 0.95rem;
}
.seller-stat-row:last-child {
  border-bottom: none;
}
.seller-stat-row:first-of-type {
  padding-top: 0;
}
.seller-stat-label {
  color: #6c757d;
  display: flex;
  align-items: center;
}
.seller-stat-label i {
  color: #6c757d;
  opacity: 0.8;
  width: 1.25rem;
  text-align: center;
}
.seller-stat-value {
  font-weight: 600;
  color: #2c3e50;
}
.seller-profile-loading p,
.seller-profile-error p {
  font-size: 0.9rem;
}

/* User profile modal – listings section */
.seller-profile-products-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1b4332;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border: 1px solid #a5d6a7;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(27, 67, 50, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.3;
}
.seller-profile-products-heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: #2e7d32;
  color: #fff;
  border-radius: 10px;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.seller-profile-products-heading-text {
  flex: 1;
  min-width: 0;
}

/* Profile modal: equal-height product cards (same footprint regardless of badges, attributes, or button count) */
.seller-profile-products .seller-profile-product-col {
  display: flex;
}
.seller-profile-products .seller-profile-product-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.seller-profile-products .seller-profile-product-card > .card-img-top {
  flex-shrink: 0;
}
.seller-profile-products .seller-profile-product-card > .card-body {
  flex: 1 1 auto;
  min-height: 0;
}
.seller-profile-products .seller-profile-card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  line-height: 1.4;
  min-height: calc(1.4em * 3);
}
.seller-profile-products .seller-profile-card-meta {
  min-height: 4.35rem;
}
.seller-profile-products .seller-profile-card-badges {
  min-height: 2.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 0.35rem;
}
.seller-profile-products .seller-profile-card-price {
  min-height: 3.35rem;
}
.seller-profile-products .home-product-cards .offers-indicator {
  min-height: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.seller-profile-products .product-card-actions {
  min-height: 5.85rem;
  justify-content: flex-end;
}

@media (max-width: 767.98px) {
  .seller-profile-products .seller-profile-product-grid.row {
    --bs-gutter-y: 1.35rem;
  }
  .seller-profile-products-heading {
    font-size: 1.1rem;
    padding: 0.75rem 0.85rem;
  }
}

/* Make Offer Modal Styling */
#makeOfferModal {
  /* Ensure modal is visible when shown */
  z-index: 1055 !important;
}

/* Offer Confirmation Modal - must appear above Make Offer modal when stacked */
#offerConfirmationModal,
#offerConfirmationModal.show,
#offerConfirmationModal .modal-dialog {
  z-index: 1075 !important;
}

/* 50% minimum offer notice — above Make Offer when stacked */
#offerBelowHalfListModal,
#offerBelowHalfListModal.show,
#offerBelowHalfListModal .modal-dialog {
  z-index: 1075 !important;
}

/* Insufficient funds modal above Make Offer when stacked */
#insufficientFundsModal,
#insufficientFundsModal.show,
#insufficientFundsModal .modal-dialog {
  z-index: 1075 !important;
}

#makeOfferModal.show {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#makeOfferModal .modal-dialog {
  z-index: 1055 !important;
}

#makeOfferModal.show .modal-dialog {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

#makeOfferModal.show .modal-content {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Submit Offer — before shipping is calculated the control stays disabled; read as inactive gray, not green */
#makeOfferModal #submitOfferBtn.btn-success:disabled {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #868e96;
  opacity: 1;
  cursor: not-allowed;
}
#makeOfferModal #submitOfferBtn.btn-success:disabled:hover,
#makeOfferModal #submitOfferBtn.btn-success:disabled:focus {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #868e96;
  box-shadow: none;
}

/* Unified modal styling - all modals match login required modal (header, colours, border) */
.modal-content,
.modal .modal-content {
  border: none !important;
  border-radius: 16px;
  box-shadow: var(--shadow-heavy);
  overflow: hidden;
  background: white;
}
.modal-content .modal-header,
.modal .modal-content .modal-header {
  background: linear-gradient(90deg, #75ad4b 0%, #75ad4b 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 2rem;
  margin: 0;
}
.modal-content .modal-title,
.modal .modal-content .modal-title {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}
.modal-content .btn-close,
.modal .modal-content .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.modal-content .btn-close:hover,
.modal .modal-content .btn-close:hover {
  opacity: 1;
}
.modal-content .modal-body,
.modal .modal-content .modal-body {
  padding: 2rem;
  background: white;
}
.modal-content .modal-footer,
.modal .modal-content .modal-footer {
  background: var(--light-color, #f8f9fa) !important;
  border: none !important;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem 2rem;
}

/*
 * Modal & form card footers — put dismiss/cancel first in the DOM, primary/action last.
 * Desktop (≥768px): row, primary gets margin-left:auto (right).
 * Stacked (<768px): column-reverse so primary appears above cancel.
 * Opt out: .justify-content-center, .mm-modal-footer--center (single-button / custom centered footers), or #loginRequiredModal.
 * Do not use .justify-content-center on two-button confirm/cancel rows — it disables this layout.
 */
@media (max-width: 767.98px) {
  .modal .modal-footer:not(.justify-content-center):not(.mm-modal-footer--center),
  .mm-modal-style-form-footer .mm-form-footer-btn-row {
    display: flex !important;
    flex-direction: column-reverse !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.625rem !important;
  }

  /* Login prompt: keep Sign in → Register → Not now (top to bottom) */
  #loginRequiredModal .modal-footer,
  .login-required-modal .modal-footer {
    flex-direction: column !important;
  }
}

@media (min-width: 768px) {
  .modal .modal-footer:not(.justify-content-center):not(.mm-modal-footer--center),
  .mm-modal-style-form-footer .mm-form-footer-btn-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.625rem !important;
  }

  .modal .modal-footer:not(.justify-content-center):not(.mm-modal-footer--center) > *:not(:only-child):last-child,
  .mm-modal-style-form-footer .mm-form-footer-btn-row > *:not(:only-child):last-child {
    margin-left: auto !important;
  }

  #loginRequiredModal .modal-footer,
  .login-required-modal .modal-footer {
    justify-content: center !important;
  }

  #loginRequiredModal .modal-footer > *:last-child,
  .login-required-modal .modal-footer > *:last-child {
    margin-left: 0 !important;
  }
}

/*
 * Group multiple action buttons to the right of cancel: footer DOM [dismiss, .mm-modal-footer-actions].
 * Last footer child still receives margin-left:auto from the rules above.
 */
.mm-modal-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.625rem;
  min-width: 0;
}

@media (max-width: 767.98px) {
  .modal .modal-footer:not(.justify-content-center):not(.mm-modal-footer--center) > .mm-modal-footer-actions,
  .mm-modal-style-form-footer .mm-form-footer-btn-row > .mm-modal-footer-actions {
    flex-direction: column-reverse;
    width: 100%;
  }
}

@media (min-width: 768px) {
  .modal .modal-footer:not(.justify-content-center):not(.mm-modal-footer--center) > .mm-modal-footer-actions,
  .mm-modal-style-form-footer .mm-form-footer-btn-row > .mm-modal-footer-actions {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 576px) {
  .modal-content .modal-header,
  .modal-content .modal-body,
  .modal-content .modal-footer,
  .modal .modal-content .modal-header,
  .modal .modal-content .modal-body,
  .modal .modal-content .modal-footer {
    padding: 1.25rem 1.5rem;
  }
  .modal-content .modal-title,
  .modal .modal-content .modal-title {
    font-size: 1.1rem;
  }
}

.make-offer-modal {
  border-radius: 16px;
  border: none !important;
  box-shadow: var(--shadow-heavy);
  background: white;
  overflow: hidden;
}

.make-offer-modal .modal-header {
  background: #75ad4b;
  color: white;
  border: none !important;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 2rem;
  margin: 0;
  margin-top: -1px;
  margin-left: -1px;
  margin-right: -1px;
}

.make-offer-modal .modal-title {
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

.make-offer-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.make-offer-modal .btn-close:hover {
  opacity: 1;
}

.make-offer-modal .modal-body {
  padding: 2rem;
  background: white;
}

.make-offer-modal .product-info .card-title {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  min-height: 3.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.02em;
}

.make-offer-modal .current-offer-info {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.make-offer-modal .current-offer-info strong {
  color: #2c3e50;
  font-weight: 600;
  margin-right: 0.5rem;
}

.make-offer-modal .current-offer-info .badge {
  font-size: 0.75rem;
  padding: 0.4em 0.8em;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.make-offer-modal .form-label {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.make-offer-modal .input-group-text {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
  font-weight: 600;
}

.make-offer-modal .form-control {
  border-color: #dee2e6;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
}

.make-offer-modal .form-control:focus {
  border-color: #75ad4b;
  box-shadow: 0 0 0 0.2rem rgba(45, 90, 39, 0.25);
}

/* Remove step arrows from number input */
.make-offer-modal .form-control[type="number"]::-webkit-outer-spin-button,
.make-offer-modal .form-control[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.make-offer-modal .form-control[type="number"] {
  -moz-appearance: textfield;
}

.make-offer-modal .quick-adjustments {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.make-offer-modal .quick-adjustments .form-label {
  margin-bottom: 0.75rem;
  text-align: center;
  color: #6c757d;
}

.make-offer-modal .quick-adjustments .btn {
  min-width: 80px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.make-offer-modal .quick-adjustments .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-light);
}

.make-offer-modal .offer-validation {
  background: rgba(23, 162, 184, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.make-offer-modal .offer-validation small {
  color: var(--info-dark);
  font-size: 0.9rem;
}

.make-offer-modal .modal-footer {
  background: #f8f9fa;
  border: none;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem 2rem;
}

.make-offer-modal .modal-footer .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  min-width: 120px;
}

.make-offer-modal .modal-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.make-offer-modal .btn-success {
  background: #75ad4b;
  border: none;
  color: white;
}

.make-offer-modal .btn-success:hover {
  background: #75ad4b;
  color: white;
}

/* Responsive adjustments for make offer modal */
@media (max-width: 576px) {
  .make-offer-modal .modal-header,
  .make-offer-modal .modal-body,
  .make-offer-modal .modal-footer {
    padding: 1.25rem 1.5rem;
  }
  
  .make-offer-modal .modal-title {
    font-size: 1.1rem;
  }
  
  .make-offer-modal .quick-adjustments .btn {
    min-width: 70px;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
  
  .make-offer-modal .modal-footer .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    min-width: 100px;
  }
}

/* Offers Ended Modal Styling */
.offers-ended-modal {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-heavy);
  background: white;
  overflow: hidden;
}

.offers-ended-modal .modal-header {
  background: var(--gradient-warning);
  color: white;
  border: none !important;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 2rem;
  margin: 0;
  margin-top: -1px;
  margin-left: -1px;
  margin-right: -1px;
}

.offers-ended-modal .modal-title {
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

.offers-ended-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.offers-ended-modal .btn-close:hover {
  opacity: 1;
}

.offers-ended-modal .modal-body {
  padding: 2rem;
  background: white;
}

.offers-ended-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.offers-ended-icon i {
  color: var(--warning-color);
  opacity: 0.8;
}

.offers-ended-modal h6 {
  color: var(--warning-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.offers-ended-modal p {
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.offers-ended-modal .text-accent {
  color: var(--accent-color);
  font-weight: 600;
}

.offers-ended-modal .text-muted {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.offers-ended-modal .modal-footer {
  background: var(--light-color);
  border: none;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem 2rem;
}

.offers-ended-modal .modal-footer .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  min-width: 120px;
}

.offers-ended-modal .modal-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Responsive adjustments for offers ended modal */
@media (max-width: 576px) {
  .offers-ended-modal .modal-header,
  .offers-ended-modal .modal-body,
  .offers-ended-modal .modal-footer {
    padding: 1.25rem 1.5rem;
  }
  
  .offers-ended-modal .modal-title {
    font-size: 1.1rem;
  }
  
  .offers-ended-modal .modal-footer .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    min-width: 100px;
  }
  
  .offers-ended-icon i {
    font-size: 2.5rem !important;
  }
}

/* Purchase Modal Styling */
.purchase-modal {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-heavy);
  background: white;
  overflow: hidden;
}

.purchase-modal .modal-header {
  background: #2c3e50;
  color: white;
  border: none !important;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 2rem;
  margin: 0;
  margin-top: -1px;
  margin-left: -1px;
  margin-right: -1px;
}

.purchase-modal .modal-title {
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

.purchase-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.purchase-modal .btn-close:hover {
  opacity: 1;
}

.purchase-modal .modal-body {
  padding: 2rem;
  background: white;
}

.purchase-modal .product-info .card-title {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  min-height: 3.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.02em;
}

.purchase-modal .purchase-price-info {
  background: #f8f9fa;
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.purchase-modal .purchase-price-info strong {
  color: #2c3e50;
  font-weight: 600;
  margin-right: 0.5rem;
}

.purchase-modal .purchase-price-info .badge {
  font-size: 0.75rem;
  padding: 0.4em 0.8em;
  margin-right: 0.25rem;
  margin-bottom: 0.25rem;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.purchase-modal .purchase-confirmation {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.purchase-modal .purchase-confirmation i {
  color: #2c3e50;
  opacity: 0.8;
}

.purchase-modal .purchase-confirmation h6 {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.purchase-modal .purchase-confirmation p {
  color: #2c3e50;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.purchase-modal .purchase-confirmation .text-accent {
  color: #75ad4b;
  font-weight: 600;
}

.purchase-modal .modal-footer {
  background: #f8f9fa;
  border: none;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem 2rem;
}

.purchase-modal .modal-footer .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  min-width: 120px;
}

.purchase-modal .modal-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.purchase-modal .btn-primary {
  background: #75ad4b;
  border: none;
  color: white;
}

.purchase-modal .btn-primary:hover {
  background: #75ad4b;
  color: white;
}

.purchase-modal .btn-primary i,
.purchase-modal .btn-primary:hover i {
  color: var(--text-light) !important;
}

.purchase-modal .modal-footer .btn-success,
.purchase-modal .modal-footer .btn-success:hover,
.purchase-modal .modal-footer .btn-success:focus,
.purchase-modal .modal-footer .btn-success:active {
  color: white !important;
}

.purchase-modal .modal-footer .btn-success i {
  color: var(--text-light) !important;
}

/* Responsive adjustments for purchase modal */
@media (max-width: 576px) {
  .purchase-modal .modal-header,
  .purchase-modal .modal-body,
  .purchase-modal .modal-footer {
    padding: 1.25rem 1.5rem;
  }
  
  .purchase-modal .modal-title {
    font-size: 1.1rem;
  }
  
  .purchase-modal .purchase-confirmation {
    padding: 1.25rem;
  }
  
  .purchase-modal .modal-footer .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    min-width: 100px;
  }
}

/* Offer Success Modal Styling */
.offer-success-modal {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-heavy);
  background: white;
  overflow: hidden;
}

.offer-success-modal .modal-header {
  background: #75ad4b;
  color: white;
  border: none !important;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 2rem;
  margin: 0;
  margin-top: -1px;
  margin-left: -1px;
  margin-right: -1px;
}

.offer-success-modal .modal-title {
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

.offer-success-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.offer-success-modal .btn-close:hover {
  opacity: 1;
}

.offer-success-modal .modal-body {
  padding: 2rem;
  background: white;
}

.offer-success-modal .success-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.offer-success-modal .success-icon i {
  color: #75ad4b;
  opacity: 0.9;
}

.offer-success-modal h6 {
  color: #75ad4b;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.offer-success-modal p {
  color: #2c3e50;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.offer-success-modal .text-accent {
  color: #75ad4b;
  font-weight: 600;
}

.offer-success-modal .text-muted {
  color: #6c757d;
  font-size: 0.95rem;
}

.offer-success-modal .modal-footer {
  background: #f8f9fa;
  border: none;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem 2rem;
}

.offer-success-modal .modal-footer .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  min-width: 120px;
}

.offer-success-modal .modal-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.offer-success-modal .btn-success {
  background: #75ad4b;
  border: none;
  color: white;
}

.offer-success-modal .btn-success:hover {
  background: #75ad4b;
  color: #D8C28A;
}

/* Offer Failure Modal Styling */
.offer-failure-modal {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-heavy);
  background: white;
  overflow: hidden;
}

.offer-failure-modal .modal-header {
  background: #dc3545;
  color: white;
  border: none !important;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 2rem;
  margin: 0;
  margin-top: -1px;
  margin-left: -1px;
  margin-right: -1px;
}

.offer-failure-modal .modal-title {
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

.offer-failure-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.offer-failure-modal .btn-close:hover {
  opacity: 1;
}

.offer-failure-modal .modal-body {
  padding: 2rem;
  background: white;
}

.offer-failure-modal .failure-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

.offer-failure-modal .failure-icon i {
  color: #dc3545;
  opacity: 0.9;
}

.offer-failure-modal h6 {
  color: #dc3545;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.offer-failure-modal p {
  color: #2c3e50;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.offer-failure-modal .text-muted {
  color: #6c757d;
  font-size: 0.95rem;
}

.offer-failure-modal .modal-footer {
  background: #f8f9fa;
  border: none;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem 2rem;
}

.offer-failure-modal .modal-footer .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  min-width: 120px;
}

.offer-failure-modal .modal-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.offer-failure-modal .btn-primary {
  background: #75ad4b;
  border: none;
  color: white;
}

.offer-failure-modal .btn-primary:hover {
  background: #75ad4b;
  color: white;
}

/* Insufficient Funds Modal Styling */
.insufficient-funds-modal {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-heavy);
  background: white;
  overflow: hidden;
}

.insufficient-funds-modal .modal-header {
  background: #e67e22;
  color: white;
  border: none !important;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 2rem;
  margin: 0;
  margin-top: -1px;
  margin-left: -1px;
  margin-right: -1px;
}

.insufficient-funds-modal .modal-title {
  color: white;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

.insufficient-funds-modal .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.insufficient-funds-modal .btn-close:hover {
  opacity: 1;
}

.insufficient-funds-modal .modal-body {
  padding: 2rem;
  background: white;
}

.insufficient-funds-modal .insufficient-funds-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.insufficient-funds-modal .insufficient-funds-icon i {
  font-size: 3rem;
  color: #e67e22;
  opacity: 0.9;
}

.insufficient-funds-modal .insufficient-funds-message {
  color: #2c3e50;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.insufficient-funds-modal .insufficient-funds-details {
  background: #f8f9fa;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
}

.insufficient-funds-modal .modal-footer {
  background: #f8f9fa;
  border: none;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem 2rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.insufficient-funds-modal .modal-footer .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.insufficient-funds-modal .modal-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.insufficient-funds-modal .btn-success {
  background: #75ad4b;
  border: none;
  color: white;
}

.insufficient-funds-modal .btn-success:hover {
  background: #75ad4b;
  border: none;
  color: white;
}

/* Deactivate Offer Modal Styling */
.deactivate-offer-modal {
  border-radius: 16px;
  border: none;
  box-shadow: var(--shadow-heavy);
  background: white;
  overflow: hidden;
}

.deactivate-offer-modal .modal-body {
  padding: 2rem;
  background: white;
}

.deactivate-offer-modal .deactivate-offer-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}

.deactivate-offer-modal .deactivate-offer-icon i {
  font-size: 3rem;
  color: #e67e22;
  opacity: 0.9;
}

.deactivate-offer-modal .deactivate-offer-title {
  color: #2c3e50;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.deactivate-offer-modal .modal-footer {
  background: #f8f9fa;
  border: none;
  border-radius: 0 0 16px 16px;
  padding: 1.5rem 2rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.deactivate-offer-modal .modal-footer .btn {
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.deactivate-offer-modal .modal-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.deactivate-offer-modal .btn-warning {
  background: #e67e22;
  border: none;
  color: white;
}

.deactivate-offer-modal .btn-warning:hover {
  background: #d35400;
  border: none;
  color: white;
}

/* Offer update animation */
.offer-updated {
  animation: offerUpdate 2s ease-in-out;
  background-color: rgba(45, 90, 39, 0.1) !important;
  border-radius: 4px;
  padding: 2px 4px;
  transition: all 0.3s ease;
}

/* My Offers page styling */
.offer-card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(44, 62, 80, 0.15) !important;
}

.offer-card .card-img-top {
  transition: all 0.3s ease;
}

.offer-card:hover .card-img-top {
  transform: scale(1.02);
}

.offer-card .badge {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.offer-card .bg-success {
  background: #28a745 !important;
}

.offer-card .bg-danger {
  background: #dc3545 !important;
}

.offer-card .bg-warning {
  background: #ffc107 !important;
}

.offer-card .bg-info {
  background-color: var(--success-color) !important;
  background: #4a7c59 !important;
}

.offer-card .bg-secondary {
  background: #6c757d !important;
}

/* Stats cards styling */
.stats-card {
  transition: all 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.12) !important;
}

/* Page header styling */
.page-header h1 {
  color: #2c3e50;
}

/* Empty state styling */
.empty-state {
  background: #f8f9fa;
  border-radius: 1rem;
}

.empty-state .icon-circle {
  background: #dee2e6;
}

/* Tabbed interface – clean, professional design */
.card.border-0.shadow-sm .card-header:first-child,
.card.border-0 .card-header.bg-light,
.card-header.bg-light.border-0,
.card .card-header.bg-light {
  border: none !important;
  border-bottom: 1px solid #e9ecef !important;
  background: #f8f9fa !important;
  color: #495057 !important;
  padding: 0 !important;
}

.card.border-0.shadow-sm {
  border: none !important;
}

/* Tab bar container */
.card-header-tabs.nav-tabs,
.card .card-header .nav-tabs {
  display: flex;
  gap: 0;
  border: none !important;
  background: transparent !important;
  padding: 0 1.5rem;
  margin: 0;
}

/* Individual tab links */
.card-header-tabs .nav-link,
.card .card-header .nav-tabs .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #6c757d !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.card-header-tabs .nav-link:hover,
.card .card-header .nav-tabs .nav-link:hover {
  color: #495057;
}

.card-header-tabs .nav-link.active,
.card .card-header .nav-tabs .nav-link.active {
  color: #2c3e50 !important;
  font-weight: 600;
  border-bottom: 2px solid #75ad4b !important;
}

/* Hide gold ::after bar on card tabs - show only green bar */
.card-header-tabs .nav-link.active::after,
.card .card-header .nav-tabs .nav-link.active::after {
  display: none !important;
}

/* Tab content (icon + label) */
.card-header-tabs .tab-badge,
.card .card-header .nav-tabs .tab-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  background: none !important;
  border: none !important;
  color: inherit !important;
  font: inherit;
}

.card-header-tabs .tab-badge i,
.card .card-header .nav-tabs .tab-badge i {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Offers Made — Not accepted tab: neutral gray icon (not error red) */
.my-products-page #rejected-tab .offers-not-accepted-tab-icon {
  color: #6c757d !important;
  opacity: 0.95;
}
.my-products-page #rejected-tab.active .offers-not-accepted-tab-icon {
  color: #495057 !important;
}

/* My Products page - card grid */
.my-products-page .my-products-cards .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.my-products-page .my-products-cards .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}
.my-products-page .my-products-cards .card-img-top {
  background-color: #f8f9fa;
}

/* My Products - base card text (mobile & fallback) */
.my-products-page .my-products-cards .card-body {
  font-size: 0.9375rem;
}
.my-products-page .my-products-cards .card-title {
  font-size: 0.95rem;
}

/* My Products - smaller cards on desktop, center cards */
@media (min-width: 768px) {
  .my-products-page .my-products-cards {
    justify-content: center;
  }
  .my-products-page .my-products-cards .card-body {
    padding: 0.75rem;
    font-size: 0.9375rem;
  }
  .my-products-page .my-products-cards .card-title {
    font-size: 0.95rem;
  }
}
@media (min-width: 992px) {
  .my-products-page .my-products-cards .card-body {
    padding: 0.5rem 0.75rem;
  }
  .my-products-page .my-products-cards .card-title {
    font-size: 0.9rem;
  }
}

/* My Products - Edit button white text on green hover */
.my-products-page .btn-outline-primary:hover {
  color: white !important;
}

/* Sold product cards - same size as active cards, subtle visual distinction */
.product-card-sold {
  border: 1px solid #dee2e6;
}

/* Home / Liked Products - ensure equal height cards (sold and non-sold align) */
.home-product-cards.row {
  align-items: stretch;
}
.home-product-cards .product-item {
  display: flex;
  flex-direction: column;
}
.home-product-cards .product-item .card {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.home-product-cards .product-item .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  /* Min-height ensures sold cards (with less content) match non-sold card height */
  min-height: 240px;
}
.home-product-cards .product-item .card-body > .mt-auto {
  margin-top: auto;
  flex-shrink: 0;
}

/* Reserve one line so cards with offers off align with highest-offer / no-offers row */
.home-product-cards .offers-indicator {
  min-height: 1.35rem;
}
@media (min-width: 768px) {
  .home-product-cards .product-item .card-body {
    min-height: 260px;
  }
}
@media (min-width: 992px) {
  .home-product-cards .product-item .card-body {
    min-height: 280px;
  }
}

/* Home / Liked Products - shared product card styling */
.home-product-cards .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-product-cards .product-card-sold:hover {
  transform: none;
}
.home-product-cards .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}
.home-product-cards .card-img-top {
  background-color: #f8f9fa;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-product-cards .card-body {
  padding: 0.75rem;
  font-size: 0.875rem;
}
.home-product-cards .card-title {
  font-size: 0.9rem;
}
.home-product-cards .like-btn {
  opacity: 0.9;
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
}
.home-product-cards .like-btn:hover:not(:disabled) {
  opacity: 1;
}
.home-product-cards .title-like-row {
  flex-direction: row !important;
  align-items: flex-start !important;
}
.home-product-cards .title-like-row .like-btn {
  width: auto !important;
}
@media (min-width: 768px) {
  .home-product-cards .card-body {
    padding: 1rem;
    font-size: 0.9rem;
  }
  .home-product-cards .card-title {
    font-size: 1rem;
  }
}
@media (min-width: 992px) {
  .home-product-cards .card-body {
    padding: 1rem 1.25rem;
  }
  .home-product-cards .card-title {
    font-size: 1.05rem;
  }
}

/* Edit product modal - active toggle green when checked */
#productModal #modalIsActive:checked {
  background-color: var(--success-color) !important;
  border-color: var(--success-color) !important;
}

/* My Products - active toggle light green when checked */
.my-products-page .my-products-cards .form-check-input:checked {
  background-color: #90ee90;
  border-color: #90ee90;
}

/* My Products - verified badge icon green */
.my-products-page .verified-badge .fa-check-circle {
  color: #75ad4b !important;
}

/* My Products page - desktop only (min-width: 769px) */
@media (min-width: 769px) {
  .my-products-page .my-products-table {
    table-layout: fixed;
    width: 100%;
  }

  .my-products-page .my-products-table thead th {
    padding: 1rem 0.75rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .my-products-page .my-products-table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle !important;
    font-size: 0.9rem;
  }

  .my-products-page .my-products-table th:nth-child(1),
  .my-products-page .my-products-table td:nth-child(1) {
    width: 90px;
  }

  .my-products-page .my-products-table th:nth-child(2),
  .my-products-page .my-products-table td:nth-child(2) {
    min-width: 200px;
    max-width: 280px;
  }

  .my-products-page .my-products-table td:nth-child(2) .text-truncate {
    max-width: 240px;
  }

  .my-products-page .my-products-table th:nth-child(7),
  .my-products-page .my-products-table td:nth-child(7) {
    width: 120px;
  }

  .my-products-page .card.border-0.shadow-sm {
    border-radius: 12px;
    overflow: visible;
  }

  .my-products-page .card-header.bg-light {
    padding: 0;
  }

  .my-products-page .alert {
    border-radius: 10px;
  }

  .my-products-page .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .my-products-page .form-control-sm {
    min-width: 160px;
  }

}

/* Table styling for offers */
.table {
  margin-bottom: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.table thead th {
  background: #f8f9fa;
  color: #000000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-size: 0.8rem;
  border-bottom: 3px solid #dee2e6;
  padding: 1.25rem 1rem;
  line-height: 1.2;
}

.table tbody tr {
  transition: all 0.3s ease;
  border-bottom: 1px solid #f1f3f4;
}

.table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.table tbody td {
  padding: 1.25rem 1rem;
  vertical-align: middle;
  border-color: #f8f9fa;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Product image styling in tables */
.table .rounded {
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table tbody tr:hover .rounded {
  transform: scale(1.05);
  border-color: #75ad4b;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Product name styling in tables */
.table h6 {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
  line-height: 1.3;
}

.table small {
  color: #6c757d;
  font-size: 0.8rem;
  line-height: 1.3;
}

/* Status badges in tables */
.table .badge {
  font-size: 0.8rem;
  padding: 0.6em 1em;
  font-weight: 600;
  border-radius: 6px;
  letter-spacing: 0.3px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Action buttons in tables */
.btn-group-sm .btn {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: 6px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: all 0.2s ease;
}

.btn-group-sm .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tab content transitions */
.tab-content {
  min-height: 400px;
}

.tab-pane {
  transition: all 0.3s ease;
}

.tab-pane.fade {
  opacity: 0;
}

.tab-pane.fade.show {
  opacity: 1;
}

/* Responsive tab adjustments */
@media (max-width: 768px) {
  .card-header-tabs .nav-link,
  .card .card-header .nav-tabs .nav-link {
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }
}

/* ===== My Offers – Card Grid (mobile: 1 col, desktop: 3 col) ===== */
.offers-cards-grid {
  background: #fff;
}

.offer-card {
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.offer-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.offer-card-body {
  padding: 1.25rem;
}

.offer-card-header {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f1f3f4;
}

.offer-card-image {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f8f9fa;
}

.offer-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 10px;
}

.offer-card-image-placeholder {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  background: #f8f9fa;
}

.offer-card-title {
  font-size: 1rem;
  color: #2c3e50;
  line-height: 1.3;
}

.offer-card-desc {
  font-size: 0.8rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-card-seller {
  font-size: 0.8rem;
}

.offer-card-stats {
  margin: 0.75rem 0;
}

.offer-stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  margin-bottom: 0.2rem;
}

.offer-stat-value {
  font-size: 0.95rem;
  color: #2c3e50;
}

.offer-card-footer {
  padding-top: 0.75rem;
  border-top: 1px solid #f1f3f4;
}

/* My Products / Offers Received / Offers Made — same size for all small actions (Edit, Accept, Track, View, Withdraw, Make Payment) */
.offer-card .btn.btn-sm {
  font-size: 0.8rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  min-width: 9rem;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  line-height: 1.25;
}

/* Complete payment modal — summary layout */
.purchase-payment-modal-dialog {
  max-width: 440px;
}
.purchase-payment-modal-content {
  border-radius: 14px;
  overflow: hidden;
}
.purchase-payment-item-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
}
.purchase-payment-item-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(117, 173, 75, 0.12);
  color: var(--success-color, #75ad4b);
  border-radius: 8px;
  font-size: 1rem;
}
.purchase-payment-item-meta {
  min-width: 0;
  flex: 1;
}
.purchase-payment-item-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: #6c757d;
  margin-bottom: 0.25rem;
  display: block;
}
.purchase-payment-item-name {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.45;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.purchase-payment-section-label {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: #6c757d;
  margin: 0;
}
.purchase-payment-summary.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px;
  overflow: hidden;
}
.purchase-payment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.9375rem;
}
.purchase-payment-row--subtotal {
  background: #f8faf8;
  border-bottom: 1px solid rgba(117, 173, 75, 0.2);
}
.purchase-payment-row--wallet {
  border-bottom: none;
  background: #fafbfc;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.purchase-payment-label {
  color: #495057;
  line-height: 1.45;
}
.purchase-payment-label--total {
  font-size: 0.95rem;
  font-weight: 600;
  color: #212529;
}
.purchase-payment-hint {
  font-size: 0.75rem;
  color: #868e96;
  line-height: 1.35;
}
.purchase-payment-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
  color: #212529;
  font-size: 0.95rem;
}
.purchase-payment-value--muted {
  font-weight: 600;
  color: #5c636a;
}
.purchase-payment-value--total {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--success-color, #75ad4b);
  align-self: center;
}
.purchase-payment-total-panel {
  background: linear-gradient(180deg, rgba(117, 173, 75, 0.08) 0%, rgba(117, 173, 75, 0.03) 100%);
  border-top: 1px solid rgba(117, 173, 75, 0.25);
  padding: 1rem 1.1rem 1.1rem;
}
.purchase-payment-row--total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: center;
  border: none;
  padding: 0;
}

/* Complete payment modal — PayFast CTA */
.purchase-payment-payfast-btn {
  background-color: var(--success-color, #75ad4b);
  border: 1px solid #659a42;
  color: #fff;
  font-size: 0.95rem;
  border-radius: 8px;
  min-height: 44px;
}
.purchase-payment-payfast-btn:hover,
.purchase-payment-payfast-btn:focus {
  background-color: #659a42;
  border-color: #558235;
  color: #fff;
}
.purchase-payment-payfast-btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(117, 173, 75, 0.35);
}

.purchase-payment-modal-actions .purchase-payment-modal-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

/* Complete payment modal — equal primary + cancel actions; larger on desktop */
@media (min-width: 768px) {
  .purchase-payment-modal-actions .purchase-payment-modal-action-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 3.125rem;
    padding: 0.75rem 1.25rem;
    font-size: 1.0625rem;
    border-radius: 10px;
    justify-content: center;
  }
}

/* My Products: Keep Edit + Accept buttons alongside on desktop */
.my-products-page .offer-card-actions.product-actions-row {
  flex-wrap: nowrap;
  flex-shrink: 0;
}
.my-products-page .offer-card-actions.product-actions-row .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* My Products / Offers Made / Offers Received — card actions: mobile layout & touch targets */
@media (max-width: 767px) {
  .my-products-page .offer-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding-top: 1rem;
  }

  .my-products-page .offer-card .offer-card-actions.d-flex {
    display: grid !important;
    width: 100%;
    gap: 0.625rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .my-products-page .offer-card .offer-card-actions.d-flex:has(> :only-child) {
    grid-template-columns: 1fr;
  }

  /* Odd count: last button full width (e.g. 3 actions → 2 + 1 row) */
  .my-products-page .offer-card .offer-card-actions.d-flex > .btn:nth-last-child(1):nth-child(odd) {
    grid-column: 1 / -1;
  }

  .my-products-page .offer-card-actions.product-actions-row {
    flex-wrap: wrap;
  }

  .my-products-page .offer-card .offer-card-actions .btn.btn-sm {
    min-width: 0 !important;
    width: 100%;
    min-height: 44px;
    padding: 0.5625rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 10px;
    white-space: normal;
    line-height: 1.2;
    justify-content: center;
    text-align: center;
  }

  .my-products-page .offer-card-footer > .d-flex:not(.offer-card-actions) .btn.btn-sm {
    min-width: 0 !important;
    min-height: 44px;
    padding: 0.5625rem 0.875rem;
    font-size: 0.875rem;
    border-radius: 10px;
  }

  .offers-received-page .offer-card-stats .btn.btn-sm,
  .offers-received-page .offer-card-stats li .btn.btn-sm {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    border-radius: 10px;
    min-width: 0 !important;
  }

  .offers-received-page .offer-card-stats li .d-flex.align-items-center.gap-2.flex-wrap {
    gap: 0.5rem !important;
  }

  /* Offers Received — mobile: clearer card header + offer rows */
  .offers-received-page .offer-card-header.d-flex.align-items-start.gap-3 {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    text-align: left;
  }

  .offers-received-page .offer-card-header .offer-card-image {
    align-self: center;
  }

  .offers-received-page .offer-card-header .offer-card-info {
    min-width: 0;
    width: 100%;
  }

  .offers-received-page .offer-card-header .btn.btn-sm {
    width: 100%;
    justify-content: center;
  }

  .offers-received-page .offer-card-title.text-truncate {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
    line-height: 1.35;
  }

  /* Active tab: stack buyer block / price / actions; equal-width Decline + Accept */
  .offers-received-page .offer-card-stats ul.list-unstyled > li.d-flex.justify-content-between.align-items-center.py-1 {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.75rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #eef1f4;
  }

  .offers-received-page .offer-card-stats ul.list-unstyled > li.d-flex.justify-content-between.align-items-center.py-1:last-child {
    border-bottom: none;
  }

  .offers-received-page
    .offer-card-stats
    ul.list-unstyled
    > li.d-flex.justify-content-between.align-items-center.py-1
    > span.d-flex.align-items-center.gap-2.flex-wrap.justify-content-end {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
    justify-content: stretch !important;
    align-items: stretch;
  }

  .offers-received-page
    .offer-card-stats
    ul.list-unstyled
    > li.d-flex.justify-content-between.align-items-center.py-1
    > span.d-flex.align-items-center.gap-2.flex-wrap.justify-content-end
    > .fw-bold.text-success {
    grid-column: 1 / -1;
    justify-self: start;
    font-size: 1.05rem;
  }

  .offers-received-page
    .offer-card-stats
    ul.list-unstyled
    > li.d-flex.justify-content-between.align-items-center.py-1
    > span.d-flex.align-items-center.gap-2.flex-wrap.justify-content-end
    > .btn:only-of-type {
    grid-column: 1 / -1;
  }

  /* Accepted tab: stack detail + price; left-align price */
  .offers-received-page .offer-card-stats ul.list-unstyled > li.border.rounded .d-flex.justify-content-between.align-items-start {
    flex-direction: column;
    align-items: stretch !important;
    gap: 0.65rem;
  }

  .offers-received-page .offer-card-stats ul.list-unstyled > li.border.rounded .text-end {
    text-align: left !important;
    width: 100%;
  }

  .offers-received-page .offer-card-stats ul.list-unstyled > li.border.rounded .text-end .fw-bold.text-success {
    font-size: 1.05rem;
  }

  .offers-received-page .offer-card-stats ul.list-unstyled > li.border.rounded .btn-show-shipping-modal,
  .offers-received-page .offer-card-stats ul.list-unstyled > li.border.rounded .btn-show-packaging-tips {
    width: 100%;
    justify-content: center;
  }

  /* Complete tab: full-width stat rows */
  .offers-received-page .offer-card-stats.row .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .offers-received-page .offer-card-stats.row .col-6 + .col-6 {
    margin-top: 0.25rem;
  }

  .offers-received-page .offer-card-body {
    padding: 1rem 1rem 1.15rem;
  }
}

/* Desktop: larger cards with more breathing room */
@media (min-width: 768px) {
  .offers-cards-grid .offer-card-body {
    padding: 1.5rem;
  }
  .offers-cards-grid .offer-card-image,
  .offers-cards-grid .offer-card-image img,
  .offers-cards-grid .offer-card-image-placeholder {
    width: 88px;
    height: 88px;
  }
}

/* Winning badge trophy - Mulligans brand gold (#D8C28A) */
.badge-trophy-gold {
  color: #D8C28A !important;
}

@keyframes offerUpdate {
  0% {
    background-color: rgba(45, 90, 39, 0.3);
    transform: scale(1);
  }
  50% {
    background-color: rgba(45, 90, 39, 0.2);
    transform: scale(1.02);
  }
  100% {
    background-color: rgba(45, 90, 39, 0.1);
    transform: scale(1);
  }
}

/* Responsive adjustments for offer modals */
@media (max-width: 576px) {
  .offer-success-modal .modal-header,
  .offer-success-modal .modal-body,
  .offer-success-modal .modal-footer,
  .offer-failure-modal .modal-header,
  .offer-failure-modal .modal-body,
  .offer-failure-modal .modal-footer {
    padding: 1.25rem 1.5rem;
  }
  
  .offer-success-modal .modal-title,
  .offer-failure-modal .modal-title {
    font-size: 1.1rem;
  }
  
  .offer-success-modal .modal-footer .btn,
  .offer-failure-modal .modal-footer .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    min-width: 100px;
  }
  
  .offer-success-modal .success-icon i,
  .offer-failure-modal .failure-icon i {
    font-size: 3rem !important;
  }
}

/* Page header – consistent across mobile and desktop (center aligned, same font) */
.page-header-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #dee2e6;
  text-align: center;
}

/* No panel behind header — sits on page background (About, wallet, offers, etc.) */
.page-header-section.page-header-section--flush {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0.25rem 0 0.5rem;
  margin-bottom: 1.25rem;
}

.page-header-section .d-flex {
  justify-content: center;
}

/* When header has actions (e.g. Add button), use space-between */
.page-header-section.page-header-with-actions .d-flex {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header-section .header-content,
.page-header-section .d-flex > div:not(.header-actions) {
  text-align: center;
}

.page-header-section.page-header-with-actions .d-flex > div:first-child {
  text-align: left;
}

.page-title,
.page-header-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.page-title i,
.page-header-title i {
  color: #75ad4b;
  font-size: 1.5rem;
}

.page-subtitle,
.page-header-subtitle {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 0;
  font-weight: 400;
  line-height: 1.4;
}

.header-actions .btn {
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.header-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.3);
}

.card-header.bg-light {
  background-color: #f8f9fa !important;
  border: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid #e9ecef !important;
  padding: 0;
  color: #495057 !important;
}

.card-header.bg-light .nav-tabs {
  margin-bottom: 0;
}

/* Card with tabs - no dark border above tabs or content */
.card.border-0 .card-header:first-child,
.card .card-header.bg-light:first-child {
  border-top: none !important;
}

.card.border-0.shadow-sm .card-body,
.card .card-header.bg-light + .card-body {
  border-top: none !important;
}

/* Table inside tabbed card - no top border */
.card-body.p-0 .table,
.card .card-body .table {
  border-top: none !important;
}

.card-body.p-0 .table thead,
.card .card-body .table thead {
  border-top: none !important;
}

.table-light thead th {
  background-color: #f8f9fa;
  color: #000000;
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
}

/* Override table-dark to remove black/dark header bar site-wide */
.table-dark,
.table-dark thead th {
  background-color: #f8f9fa !important;
  color: #212529 !important;
  border-top: none !important;
  border-bottom: 2px solid #dee2e6 !important;
}

.table tbody tr:hover {
  background-color: rgba(45, 90, 39, 0.02);
}

.badge.bg-light {
  background-color: #e9ecef !important;
}

/* Product Modal Styling */
#productModal .modal-content {
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: none;
}

#productModal .modal-header {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  border-radius: 12px 12px 0 0;
}

#productModal .modal-title {
  color: #2c3e50;
  font-weight: 700;
  font-size: 1.25rem;
}

#productModal .product-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #f8f9fa;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#productModal .product-image-container img {
  transition: transform 0.3s ease;
}

#productModal .product-image-container:hover img {
  transform: scale(1.05);
}

#productModal .product-details h4 {
  color: #2c3e50;
  font-weight: 700;
  line-height: 1.3;
}

#productModal .pricing-section,
#productModal .bidding-section,
#productModal .description-section {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
}

#productModal .pricing-section h6,
#productModal .bidding-section h6,
#productModal .description-section h6 {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

#productModal .modal-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  border-radius: 0 0 12px 12px;
}

#productModal .btn {
  border-radius: 6px;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
}

#productModal .badge {
  font-size: 0.8rem;
  padding: 0.4em 0.8em;
  border-radius: 4px;
}

/* Sold Badge Styling */
.sold-badge {
  background-color: #198754 !important;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.65rem;
  padding: 0.2em 0.35em;
  border-radius: 3px;
  white-space: nowrap;
}

/* User Transactions – Credit/Debit indicators */
.transaction-amount {
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
}
.transaction-amount-credit {
  color: #198754;
}
.transaction-amount-credit i {
  color: #198754;
  font-size: 0.75rem;
}
.transaction-amount-debit {
  color: #6c757d;
}
.transaction-amount-debit i {
  color: #6c757d;
  font-size: 0.75rem;
}
.transaction-type-credit {
  background-color: rgba(25, 135, 84, 0.12);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.3);
  font-weight: 500;
}
.transaction-type-debit {
  background-color: rgba(108, 117, 125, 0.1);
  color: #495057;
  border: 1px solid rgba(108, 117, 125, 0.25);
  font-weight: 500;
}

/* Product Management – Actions column */
.product-mgmt-actions .d-flex {
  gap: 0.5rem;
}
.product-mgmt-actions .btn {
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border-width: 1px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.product-mgmt-actions .btn:hover:not(:disabled) {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.product-mgmt-actions .btn:focus {
  box-shadow: 0 0 0 0.2rem rgba(117, 173, 75, 0.25);
}
.product-mgmt-actions a.btn:first-child {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #212529;
}
.product-mgmt-actions a.btn:first-child:hover {
  background-color: #dee2e6;
  border-color: #ced4da;
  color: #212529;
}
.product-mgmt-actions .btn-group {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  border-radius: 6px;
  overflow: hidden;
}
.product-mgmt-actions .btn-group .btn {
  border-radius: 0;
}
.product-mgmt-actions .btn-group .btn:first-child {
  border-radius: 6px 0 0 6px;
}
.product-mgmt-actions .btn-group .btn:last-child {
  border-radius: 0 6px 6px 0;
}
.product-mgmt-actions .btn-pm-success {
  background-color: #e9ecef !important;
  border-color: #dee2e6 !important;
  color: #212529 !important;
}
.product-mgmt-actions .btn-pm-success:hover:not(:disabled) {
  background-color: #dee2e6 !important;
  border-color: #ced4da !important;
  color: #212529 !important;
}
.product-mgmt-actions .btn-outline-success {
  background-color: #e9ecef;
  border-color: #dee2e6;
  color: #212529;
}
.product-mgmt-actions .btn-outline-success:hover:not(:disabled) {
  background-color: #dee2e6;
  border-color: #ced4da;
  color: #212529;
}
.product-mgmt-actions .btn-outline-danger,
.product-mgmt-actions .btn-outline-danger:hover:not(:disabled),
.product-mgmt-actions .btn-outline-danger:focus:not(:disabled) {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: #fff !important;
  box-shadow: none;
  transition: none;
}
.product-mgmt-actions .btn-danger,
.product-mgmt-actions .btn-danger:hover:not(:disabled),
.product-mgmt-actions .btn-danger:focus:not(:disabled) {
  background-color: #dc3545 !important;
  border-color: #dc3545 !important;
  color: #fff !important;
  font-weight: 500;
  box-shadow: none;
  transition: none;
}
.product-mgmt-actions .btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Profile page (layout width comes from .mm-form-page-shell when both classes are used) */
.profile-page {
  padding-top: 0.5rem;
}
.profile-page .profile-avatar-wrap {
  position: relative;
}
.profile-page .profile-avatar-preview {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border: 2px solid var(--border-light);
  display: block;
  box-shadow: var(--shadow-light);
}
.profile-page .profile-avatar-placeholder {
  width: 5.5rem;
  height: 5.5rem;
  background: #f1f3f5;
  color: #adb5bd;
  font-size: 2rem;
  display: flex;
  margin-left: auto;
  margin-right: auto;
}
.profile-page .profile-avatar-edit-btn {
  margin-top: 0.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #75ad4b;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 0;
  line-height: 1;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.profile-page .profile-avatar-edit-btn:hover {
  filter: brightness(1.06);
  color: #fff;
  transform: scale(1.05);
}
.profile-page .profile-avatar-edit-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(117, 173, 75, 0.35);
}
.profile-page .profile-avatar-row {
  text-align: center;
}
.profile-page .profile-account-block {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.profile-page .profile-detail-row {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}
.profile-page .profile-detail-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.profile-page .profile-detail-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}
.profile-page .profile-detail-value {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}
.profile-page .profile-contact-us-link {
  color: var(--success-color);
  text-decoration: underline;
  font-weight: 600;
}
.profile-page .profile-contact-us-link:hover,
.profile-page .profile-contact-us-link:focus {
  color: #669942;
}
.profile-page .alert-success {
  border-radius: 10px;
  padding: 1rem 1.25rem;
}
.profile-page .form-check-label {
  font-size: 0.9375rem;
  color: var(--text-primary);
}
.profile-page .form-check-input:checked {
  background-color: var(--success-color);
  border-color: var(--success-color);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

/* Purchase Feedback Modal Styling */
#purchaseFeedbackModal .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-heavy);
}

#purchaseFeedbackModal .modal-header {
  background: linear-gradient(90deg, #75ad4b 0%, #75ad4b 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 16px 16px 0 0;
  padding: 1.5rem 2rem;
}

#purchaseFeedbackModal .modal-title {
  font-weight: 600;
  font-size: 1.25rem;
}

#purchaseFeedbackModal .modal-body {
  padding: 2rem 1.5rem;
}

#purchaseFeedbackModal .modal-footer {
  border-top: none;
  padding: 1rem 1.5rem 1.5rem;
}

#purchaseFeedbackModal #purchaseFeedbackMessage {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

#purchaseFeedbackModal #purchaseFeedbackDetails {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

#purchaseFeedbackModal .btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

#purchaseFeedbackModal .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#purchaseFeedbackModal .btn-success {
  background: #75ad4b;
  border: none;
  color: white;
}

#purchaseFeedbackModal .btn-success:hover {
  background: #75ad4b;
  color: #D8C28A;
}

#purchaseFeedbackModal .btn-danger,
#purchaseFeedbackModal .btn-danger:hover,
#purchaseFeedbackModal .btn-danger:focus {
  background: #dc3545;
  border: none;
  color: #fff;
  transition: none;
  transform: none !important;
  box-shadow: none !important;
}

/* Success animation */
#purchaseFeedbackModal .modal-header.bg-success .fa-check-circle {
  animation: successPulse 2s infinite;
}

@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Error animation */
#purchaseFeedbackModal .modal-header.bg-danger .fa-times-circle {
  animation: errorShake 0.5s ease-in-out;
}

@keyframes errorShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

.btn-outline-success {
  border-color: #75ad4b;
  color: #75ad4b;
}

.btn-outline-success:hover {
  background-color: #75ad4b;
  border-color: #75ad4b;
  color: white;
}

.btn-outline-dark {
  border-color: #343a40;
  color: #343a40;
}

.btn-outline-dark:hover {
  background-color: #343a40;
  border-color: #343a40;
  color: white;
}

/* Global Scaling - Reduce spacing and sizes for more content visibility */
.row {
  margin-bottom: 0.5rem;
}

.mb-1, .my-1 { margin-bottom: 0.2rem !important; }
.mb-2, .my-2 { margin-bottom: 0.375rem !important; }
.mb-3, .my-3 { margin-bottom: 0.5rem !important; }
.mb-4, .my-4 { margin-bottom: 0.75rem !important; }
.mb-5, .my-5 { margin-bottom: 1rem !important; }

.mt-1, .my-1 { margin-top: 0.2rem !important; }
.mt-2, .my-2 { margin-top: 0.375rem !important; }
.mt-3, .my-3 { margin-top: 0.5rem !important; }
.mt-4, .my-4 { margin-top: 0.75rem !important; }
.mt-5, .my-5 { margin-top: 1rem !important; }

.py-1 { padding-top: 0.2rem !important; padding-bottom: 0.2rem !important; }
.py-2 { padding-top: 0.375rem !important; padding-bottom: 0.375rem !important; }
.py-3 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-4 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-5 { padding-top: 1rem !important; padding-bottom: 1rem !important; }

.px-1 { padding-left: 0.2rem !important; padding-right: 0.2rem !important; }
.px-2 { padding-left: 0.375rem !important; padding-right: 0.375rem !important; }
.px-3 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-4 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-5 { padding-left: 1rem !important; padding-right: 1rem !important; }

.p-1 { padding: 0.2rem !important; }
.p-2 { padding: 0.375rem !important; }
.p-3 { padding: 0.5rem !important; }
.p-4 { padding: 0.75rem !important; }
.p-5 { padding: 1rem !important; }

/* Reduce product card spacing */
.product-item {
  margin-bottom: 0.5rem;
}

/* Reduce navbar brand size */
.navbar-brand {
  font-size: 1.5rem !important;
}

@media (max-width: 576px) {
  .navbar-brand {
    font-size: 1.25rem !important;
  }
}

/* ===== Admin Panel - Professional Desktop + Mobile cards ===== */
.admin-page {
  padding: 2rem 0 3rem;
  background: #f8faf9;
  min-height: 100vh;
}
.admin-page .page-header-section {
  margin-bottom: 2rem;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e9ecef;
}
.admin-page .page-header-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a252f;
  margin-bottom: 0.35rem;
}
.admin-page .page-header-subtitle {
  font-size: 1rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .admin-page .page-header-section .d-flex.align-items-center.justify-content-center {
    justify-content: flex-start;
  }
  .admin-page .page-header-section .text-center {
    text-align: left !important;
  }
  .admin-page .page-header-with-actions .d-flex {
    align-items: center;
  }
  .admin-page .page-header-with-actions .text-center.text-md-start {
    text-align: left !important;
  }
  .admin-page .page-header-with-actions .header-actions .btn {
    white-space: nowrap;
  }
}
.admin-page .admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  background: #e9ecef;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-page .card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8e6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.admin-page .card-body.p-0 {
  padding: 0 !important;
}

/* Admin card grid - product-card style, 3 per row desktop, 1 per row mobile */
.admin-page .admin-card-grid {
  align-items: stretch;
}
.admin-page .admin-card-item {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.admin-page .admin-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}
.admin-page .admin-card-item .card-img-top,
.admin-page .admin-card-item .admin-card-img-top {
  background-color: #f8f9fa;
  border-radius: 12px 12px 0 0;
}
.admin-page .admin-card-item .card-body {
  padding: 1rem;
  font-size: 0.9rem;
}
.admin-page .admin-card-item .admin-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a252f;
}
.admin-page .admin-card-item .admin-card-actions {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.admin-page .admin-card-item .admin-card-actions .btn,
.admin-page .admin-card-item .admin-card-actions > a,
.admin-page .admin-card-item .admin-card-actions form .btn {
  font-size: 0.8125rem;
  padding: 0.35rem 0.6rem;
}
@media (min-width: 768px) {
  .admin-page .admin-card-item .card-body {
    padding: 1rem 1.25rem;
  }
  .admin-page .admin-card-item .admin-card-title {
    font-size: 1.05rem;
  }
}
@media (min-width: 992px) {
  .admin-page .col-12.col-lg-11.col-xl-10,
  .admin-page .col-12.col-lg-10.col-xl-8 {
    flex: 0 0 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
.admin-page .card .text-center.py-5,
.admin-page .card .text-center .py-5 {
  padding: 3rem 2rem !important;
}
.admin-page .card .text-center h4,
.admin-page .card .text-center h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
}

.admin-page .btn-group .btn {
  margin: 0 2px;
}
.admin-page .btn-pm-success {
  background-color: #75ad4b !important;
  border-color: #75ad4b !important;
  color: white !important;
}
.admin-page .btn-pm-success:hover {
  background-color: #5d8f3a !important;
  border-color: #5d8f3a !important;
  color: white !important;
}
.admin-page .alert {
  border-radius: 10px;
  font-size: 0.95rem;
}
.admin-page .header-actions .btn {
  font-weight: 600;
  padding: 0.6rem 1.25rem;
}
.admin-page .input-group .form-control {
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .admin-page .page-header-section {
    padding: 1.25rem 1rem;
  }
  .admin-page .page-header-title {
    font-size: 1.35rem;
  }
  .admin-page .page-header-subtitle {
    font-size: 0.875rem;
  }
}

/* Admin — Edit Product: description preview width on tablet/desktop */
.pm-edit-product-page .pm-edit-desc-preview {
  max-width: min(100%, 360px);
}