/* Custom Styling for Narmada BulkBuy */

@layer utilities {
  .scrollbar-none::-webkit-scrollbar {
    display: none;
  }
  .scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* Base resets & mobile width containment */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background: #f7f2ec;
  color: #1d3557;
}

.cart-page { background: radial-gradient(circle at 100% 0, rgba(189,224,254,.82) 0, transparent 34%), radial-gradient(circle at 0 22%, rgba(29,53,87,.10) 0, transparent 38%), #f7f2ec; }
.cart-hero { background: linear-gradient(115deg, #bde0fe 0%, #f7f2ec 56%, #c6ac8f 150%); }
.cart-input { width: 100%; border: 1px solid rgba(29,53,87,.14); border-radius: 1rem; background: #f7f2ec; padding: .8rem .95rem; color: #1d3557; font-size: .875rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.cart-input:focus { border-color: #9d8189; box-shadow: 0 0 0 3px rgba(255,200,221,.55); }
.cart-quantity-button { width: 2.25rem; height: 2.25rem; color: #1d3557; font-weight: 900; transition: background .2s; }
.cart-quantity-button:hover { background: #bde0fe; }
.cart-item { animation: cartReveal .32s ease-out both; }
@keyframes cartReveal { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .cart-item { animation: none; } }

/* Custom Scrollbar for desktop */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

::-webkit-scrollbar-track {
  background: #f1f3f5;
}

::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}

/* Mobile Touch & Usability Enhancements */
a, button, input, select, textarea {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Prevent auto-zoom on iOS inputs under 16px font size */
@media screen and (max-width: 640px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="date"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Selection color */
::selection {
  background-color: #bde0fe;
  color: #1d3557;
}

/* Dropzone hover transitions */
.dropzone-active {
  border-color: #9d8189 !important;
  background-color: #bde0fe !important;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Print Styles for Tax Invoices */
@media print {
  body {
    background: white !important;
    color: black !important;
    padding: 0 !important;
  }
  .no-print {
    display: none !important;
  }
}
