span.invalid-feedback {
    color: red;
    font-size: 13px;
}

/* Basic reset / typography */
* { box-sizing: border-box; }
html,body { height:100%; margin:0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; color:#111827; background:#f9fafb; }

/* Container utilities */
.max-w-7xl { max-width: 1120px; } /* approx Tailwind's 7xl */
.mx-auto { margin-left: auto; margin-right: auto; }
.sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } /* small screens and up in tailwind, but we apply by default for simplicity */
.lg\\:px-8 { padding-left: 2rem; padding-right: 2rem; }

/* Typography + spacing */
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; } /* 30px */
.font-bold { font-weight: 700; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mt-4 { margin-top: 1rem; }

/* ALERTS */
.bg-green-50 { background-color: #ecfdf5; }
.bg-red-50 { background-color: #fff1f2; }
.bg-yellow-50 { background-color: #fffbeb; }

.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-green-400 { border-left-color: #34d399; } /* emerald-400 */
.border-red-400 { border-left-color: #f87171; }   /* red-400 */
.border-yellow-400 { border-left-color: #fbbf24; }/* amber-400 */

.p-4 { padding: 1rem; }
.p-2 { padding: 0.5rem; }
.rounded { border-radius: 0.375rem; }

.text-green-700 { color: #047857; } /* emerald-700 */
.text-red-700 { color: #7f1d1d; }
.text-yellow-700 { color: #92400e; }

/* Validation list */
.list-disc { list-style-type: disc; }
.list-inside { padding-left: 0.5rem; list-style-position: inside; }

/* Text sizes/colors */
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-red-600 { color: #dc2626; }

/* Layout helpers */
.overflow-x-auto { overflow-x: auto; }
.table-auto { width: 100%; }
.border-collapse { border-collapse: collapse; }

/* Table styling */
table.w-full { width:100%; }
table { width:100%; border-collapse: collapse; background: transparent; }
thead tr.bg-gray-200 { background-color: #e5e7eb; } /* gray-200 */
th, td { padding: 1rem; text-align: left; border-bottom: 1px solid #e6e6e6; }
th { font-weight: 600; background: #f3f4f6; }

/* Small table / row utilities */
.border-b { border-bottom: 1px solid #e5e7eb; }
.font-medium { font-weight: 600; }

/* Small text color */
.text-gray-500 { color: #6b7280; } /* gray-500 */

/* Grid / responsive */
.grid { display: grid; gap: 1rem; }
.grid.grid-cols-1 { grid-template-columns: 1fr; }
@media (min-width: 640px) { /* sm breakpoint */
  .sm\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\\:flex-row { flex-direction: row; }
  .sm\\:items-start { align-items: flex-start; }
  .sm\\:justify-between { justify-content: space-between; }
  .sm\\:w-2\\/3 { width: 66.666667%; }
}

/* Generic width helpers */
.w-full { width: 100%; }

/* Gap helpers */
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-? { gap: 1rem; } /* fallback */

/* Flex / layout helpers */
.flex { display:flex; }
.flex-col { flex-direction: column; }
.sm\\:flex-row { } /* handled in media query */
.sm\\:items-start { } /* handled in media query */
.sm\\:justify-between { } /* handled */

/* Form controls */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
    font-family: inherit;
    font-size: 0.95rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem;
    padding: 0.5rem;
    background: #ffffff;
    color: #111827;
    width: 100%;
    transition: box-shadow .15s ease, border-color .15s ease;
}

textarea { min-height: 96px; resize: vertical; }

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb; /* blue-600 */
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

/* conditional error class (from blade's @error) */
.border-red-400 { border-color: #f87171 !important; }
.text-red-600 { color:#dc2626; }
.mt-1 { margin-top: 0.25rem; }

/* Buttons */
button {
    font-weight: 600;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.bg-green-600 {
    background-color: #16a34a;
    color: #fff;
}
.bg-green-600:hover { background-color: #15803d; }

.hover\\:bg-green-700:hover { background-color: #166534; }

.text-white { color: #fff; }

.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

/* Rounded already defined */

/* Small utilities used in the template */
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }

/* Totals card */
.border { border: 1px solid #e5e7eb; }
.rounded { border-radius: 0.375rem; }
.p-4 { padding: 1rem; }

/* Responsive padding helpers for container */
@media (min-width: 1024px) { /* lg */
  .lg\\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* Accessibility focus */
button:focus, a:focus { outline: 3px solid rgba(37,99,235,0.12); outline-offset: 2px; }

/* Minor helpers used in blade */
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; font-weight:700; }
.font-medium { font-weight:600; }
.capitalized { text-transform: capitalize; }

/* Spinner text state handled in JS (we change inner text), optionally add .disabled style */
button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Small margins & spacing utilities */
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }

/* Fallback for classes with colons in name when referencing in HTML (escape needed) */
/* Note: In Blade you already used sm:... classes — ensure they are used exactly as in the template. */

/* Main Wrapper */
.laundry-page {
  background-color: #f9fafb;
  padding: 40px 0;
  min-height: 100vh;
}

.laundry-page .container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
}

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.alert .icon {
  font-weight: bold;
  font-size: 1.2rem;
}

.alert-success {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #15803d;
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  justify-items: center;
}

/* Product Card */
.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px; /* Ensures uniform width */
  min-width: 280px;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.product-image {
  position: relative;
  width: 100%;
  height: 220px; /* fixed height */
  background: #e5e7eb;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.product-image .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  background: #f3f4f6;
  font-size: 1rem;
}

.product-image .category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #1e293b;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 9999px;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Product Body */
.product-body {
  padding: 1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-body h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-body .description {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.5;
  min-height: 42px;
}

.product-body .product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.product-body .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
}

.product-body .price span {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary {
  background: #16a34a;
  color: #fff;
}

.btn-primary:hover {
  background: #15803d;
}

.btn-primary:active {
  transform: scale(0.97);
}

/* Empty State */
.no-products {
  grid-column: 1 / -1;
  text-align: center;
  color: #6b7280;
  font-size: 1rem;
  padding: 2rem 0;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 2rem;
  text-align: center;
}

.pagination-wrapper .pagination {
  display: inline-flex;
  list-style: none;
  gap: 6px;
  padding: 0;
}

.pagination-wrapper .pagination li a,
.pagination-wrapper .pagination li span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.pagination-wrapper .pagination li a:hover,
.pagination-wrapper .pagination li span:hover {
  background-color: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.pagination-wrapper .pagination li .active {
  background-color: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 200px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }
}
nav a span.cart-count {
    width: 20px;
    height: 20px;
    top: -10px;
    position: relative;
    background: blue;
    font-size: 13px;
    color: #fff;
    text-align: center;
    border-radius: 49%;
}


/* Page Wrapper */
.cart-page {
  background-color: #f9fafb;
  padding: 40px 0;
  min-height: 100vh;
}

.cart-page .container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

/* Header */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
}

/* Alerts */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.alert-warning {
  background-color: rgba(253, 230, 138, 0.3);
  border: 1px solid #facc15;
  color: #92400e;
}

/* Table Styles */
.cart-table-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border-radius: 12px;
  overflow: hidden;
}

.cart-table thead {
  background-color: #e5e7eb;
}

.cart-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #1e293b;
  border-bottom: 2px solid #d1d5db;
}

.cart-table td {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
  color: #374151;
}

.cart-table tr:hover {
  background-color: #f3f4f6;
}

.product-info strong {
  display: block;
  color: #111827;
  font-weight: 600;
}

.product-info .sku {
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Remove Button */
.btn-remove {
  background: none;
  border: none;
  color: #dc2626;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.btn-remove:hover {
  color: #b91c1c;
}

/* Cart Summary */
.cart-summary {
  margin-top: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.cart-summary .summary-details p {
  margin: 4px 0;
  font-size: 1rem;
  color: #374151;
}

.cart-summary .summary-details .subtotal {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
}

.cart-summary .btn {
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Buttons */
.btn-primary {
  background-color: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background-color: #1e40af;
}

.btn-primary:active {
  transform: scale(0.97);
}

/* Responsive Design */
@media (max-width: 992px) {
  .cart-summary {
    flex-direction: column;
    text-align: center;
  }

  .cart-summary .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-header h1 {
    font-size: 1.6rem;
  }

  .cart-table th,
  .cart-table td {
    padding: 0.8rem;
  }
}

@media (max-width: 500px) {
  .cart-summary {
    padding: 1rem;
  }

  .cart-summary .subtotal {
    font-size: 1.1rem;
  }
}