/* Shopping Cart Enhanced Styles - Bootstrap 5 with New Features */
/* ========================================
   BRAND COLOR FALLBACKS (CART-ONLY)
   NOTE: custom.css is loaded before this file, so these are fallback values.
   ======================================== */ :root {
  --aa-navy: #1D4E89;
  --aa-navy-dark: #103658;
  --aa-green: #008700;
  --aa-green-dark: #1a6d2e;
  --aa-green-darker: #145523;
  --aa-danger: #dc3545;
  --aa-warning: #ff9800;
  /* Focus ring color */
  --aa-focus: rgba(29, 78, 137, 0.20);
}
/* ========================================
   ENHANCED FEATURES STYLING
   ======================================== */
/* Cart Count Badge */
.cart-count-badge {
  animation: badgePulse 0.5s ease;
}
@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
/* Quantity Controls Enhancement */
.qty-form .input-group {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 0.375rem;
  transition: box-shadow 0.3s ease;
}
.qty-form .input-group:focus-within {
  box-shadow: 0 0 0 0.25rem var(--aa-focus);
}
.qty-form .btn {
  border: 1px solid #dee2e6;
  background-color: #f8f9fa;
  transition: all 0.2s ease;
}
.qty-form .btn:hover {
  background-color: #e9ecef;
  transform: none; /* Override any lift */
  box-shadow: none;
}
.qty-form .btn:active {
  background-color: #dee2e6;
  transform: scale(0.95);
}
.qty-form .form-control {
  border-left: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
  font-weight: 600;
}
.qty-form .form-label {
  margin-bottom: 0.25rem;
}
.qty-status {
  min-height: 0;
  font-size: 0.75rem;
}
/* Checkout Total Badge */
.checkout-total {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 0.25rem;
  font-weight: 700;
}
/* ========================================
   STICKY CHECKOUT BUTTON (MOBILE)
   ======================================== */
.sticky-checkout-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: white;
  padding: 0.75rem 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  animation: slideUp 0.3s ease forwards;
  animation-delay: 0.5s;
}
@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}
.sticky-checkout-mobile .btn {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Add breathing room for sticky button */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 70px;
  }
}
/* ========================================
   CARD STYLING - UNIFIED COLORS
   ======================================== */
.card {
  background-color: #f8f8f8;
  border: 1px solid #d0d0d0;
  border-radius: 0.5rem;
  transition: box-shadow 0.3s ease;
}
.card:hover {
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1) !important;
}
.card-header {
  background-color: #f8f8f8;
  border-bottom: 1px solid #d0d0d0;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #111;
}
/* IMPORTANT: let header titles inherit the header color */
.card-header h5, .card-header h6 {
  color: inherit;
  margin-bottom: 0;
}
.card-body {
  background-color: #fff;
  padding: 1.5rem;
}
/* ========================================
   RESPONSIVE TABLE STYLES
   ======================================== */
.cart-table th, .cart-table td {
  font-size: 0.9rem;
  padding: 0.5rem 0.3rem !important;
  word-wrap: break-word;
  overflow-wrap: break-word;
  vertical-align: middle !important;
}
.cart-table th {
  white-space: normal !important;
  line-height: 1.2;
}
.cart-table td small {
  font-size: 0.85rem;
  display: block;
  word-break: break-word;
}
.cart-table .product-thumbnail {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
}
.cart-table .qty-form {
  margin: 0;
  display: inline-block;
  padding-top: 8px;
}
.cart-table .input-group {
  vertical-align: middle;
}
.cart-table .qty-status {
  margin-top: 0.25rem !important;
}
/* Table Enhancements */
.table > thead {
  vertical-align: middle;
}
.table > thead > tr > th {
  border-bottom: 2px solid #dee2e6;
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0.5px;
  padding: 0.75rem;
}
.table > tbody > tr {
  transition: background-color 0.2s ease;
}
.table > tbody > tr:hover {
  background-color: rgba(0, 123, 255, 0.03);
}
.table > tbody > tr > td {
  padding: 1rem 0.75rem;
  vertical-align: middle;
}
/* Number Input Styling */
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}
input[type="number"] {
  -moz-appearance: textfield;
}
/* ========================================
   BUTTON STYLING - CONVERSION FRIENDLY
   ======================================== */
/* Base button styling (NO global lift — calmer checkout experience) */
.btn {
  font-weight: 500;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  border-radius: 0.375rem;
}
/* Remove "everything floats" hover */
.btn:hover {
  transform: none;
  box-shadow: none;
}
.btn:active {
  transform: none;
}
/* Button sizing */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.125rem;
}
/* Checkout / Success button: strong visual feedback + subtle lift */
.btn-success {
  background-color: var(--aa-green);
  border-color: var(--aa-green);
  color: #fff;
  font-weight: 700; /* Slightly stronger for the primary CTA */
}
/* Hover feedback (darker green) */
.btn-success:hover {
  background-color: var(--aa-green-dark);
  border-color: var(--aa-green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}
.btn-success:focus, .btn-success:active {
  background-color: var(--aa-green-darker);
  border-color: var(--aa-green-darker);
  color: #fff;
}
/* Continue Shopping Button */
.btn-outline-secondary {
  color: var(--aa-navy);
  border-color: var(--aa-navy);
  font-weight: 600;
}
.btn-outline-secondary:hover {
  background-color: var(--aa-navy);
  border-color: var(--aa-navy);
  color: #fff;
}
.btn-outline-secondary:focus, .btn-outline-secondary:active {
  background-color: #174073;
  border-color: #174073;
  color: #fff;
}
/* Remove button hover */
.btn-outline-danger:hover {
  background-color: var(--aa-danger);
  border-color: var(--aa-danger);
  color: #fff;
}
/* Primary buttons (Update / Apply): keep them on-brand (navy), not Bootstrap blue */
.btn-primary {
  background-color: var(--aa-navy);
  border-color: var(--aa-navy);
}
.btn-primary:hover {
  background-color: var(--aa-navy-dark);
  border-color: var(--aa-navy-dark);
}
/* ========================================
   ICON & TEXT STYLING
   ======================================== */
.fa-solid, .fa-regular, .fa-brands {
  vertical-align: -0.125em;
}
.fa-cart-shopping, .fa-bag-shopping, .fa-truck, .fa-receipt, .fa-bolt {
  margin-right: 0.5rem;
}
.text-primary {
  font-weight: 600;
}
/* ========================================
   ORDER SUMMARY & ALERTS
   ======================================== */
.order-summary-row {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.order-summary-row:last-child {
  border-bottom: none;
}
.alert {
  border-radius: 0.5rem;
  border-left: 4px solid;
}
.alert-info {
  border-left-color: #2196f3;
}
.empty-cart-icon {
  font-size: 5rem;
  color: #dee2e6;
  margin-bottom: 1.5rem;
}
.express-shipping-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
/* ========================================
   FORM CONTROLS
   ======================================== */
/* Match focus to brand navy (instead of bootstrap blue) */
.form-control:focus, .form-select:focus {
  border-color: var(--aa-navy);
  box-shadow: 0 0 0 0.25rem var(--aa-focus);
}
.form-select {
  cursor: pointer;
  font-weight: 500;
}
/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */
@media (max-width: 991.98px) {
  .table > thead > tr > th {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }
  .table > tbody > tr > td {
    font-size: 0.875rem;
    padding: 0.75rem 0.25rem;
  }
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  .qty-form .input-group {
    width: 110px !important;
  }
}
@media (max-width: 767.98px) {
  .card-header h5 {
    font-size: 1rem;
  }
  .display-6 {
    font-size: 1.75rem;
  }
  .table {
    font-size: 0.85rem;
  }
  .table > thead > tr > th {
    padding: 0.5rem 0.15rem;
    font-size: 0.7rem;
  }
  .table > tbody > tr > td {
    padding: 0.5rem 0.15rem;
  }
}
@media (max-width: 575.98px) {
  .qty-form .input-group {
    width: 100px !important;
  }
  .qty-form .form-control {
    width: 40px !important;
    padding: 0.25rem;
    font-size: 0.875rem;
  }
  .qty-form .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
  }
}
/* ========================================
   ANIMATIONS & TRANSITIONS
   ======================================== */
html {
  scroll-behavior: smooth;
}
/* Loading State */
.btn.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}
.btn.loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: 50%;
  margin-left: -0.5rem;
  margin-top: -0.5rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}
@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}
/* Payment Methods Image */
img[alt*="credit cards"] {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}
img[alt*="credit cards"]:hover {
  transform: scale(1.05);
}
/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible {
  outline: 2px solid var(--aa-navy);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* ========================================
   QUANTITY STATUS INDICATORS
   ======================================== */
.qty-status i {
  margin-right: 0.25rem;
}
.qty-status .fa-circle-check {
  color: var(--aa-green);
}
.qty-status .fa-circle-xmark {
  color: var(--aa-danger);
}
.qty-status .fa-clock {
  color: #ffc107;
}
/* ========================================
   STICKY BUTTON VISIBILITY CONTROL
   ======================================== */
@media (max-width: 991.98px) {
  .sticky-checkout-mobile.hide-sticky {
    transform: translateY(100%);
  }
}
/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .sticky-checkout-mobile {
    display: none !important;
  }
  .qty-form .btn {
    display: none !important;
  }
  .btn-outline-danger {
    display: none !important;
  }
}
/* ========================================
   PAGE TITLE BADGE
   ======================================== */
.display-6 .badge {
  font-size: 0.5em;
  vertical-align: middle;
  margin-left: 0.5rem;
}
/* ========================================
   ENHANCED HOVER STATES
   ======================================== */
.table tbody tr {
  cursor: default;
}
.table tbody tr:hover {
  box-shadow: inset 0 0 100px rgba(0, 123, 255, 0.03);
}
/* Quantity input group hover */
.input-group:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}
/* ========================================
   CUSTOM SCROLLBAR (WEBKIT BROWSERS)
   ======================================== */
.table-responsive::-webkit-scrollbar {
  height: 8px;
}
.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #555;
}
/* Coupon / Express Shipping accent buttons */
.btn-warning {
  font-weight: 600;
}
.btn-warning:hover {
  background-color: #e68900;
  border-color: #e68900;
  color: #fff;
}
.btn-continueshop {
  background-color: #1D4E89;
  border-color: #1D4E89;
  color: white;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.btn-continueshop:hover {
  background-color: #103658;
  border-color: #103658;
  color: white;
}
.upsground {
  color: #5E2F00;
}
.upsred {
  color: #a73136;
}
.upsblue {
  color: #195C8F;
}
.upsthreeday {
  color: #f89728;
}
.upsfree {
    color: #008700;
}
.carttotals {
    color: #1D4E89;
}