/* ==========================================================================
   ALUMINIUMGLASS.CO.IN — PUBLIC MARKETPLACE
   File: /home/jqkmqvml/public_html/assets/css/utilities.css

   Purpose:
   - Reusable utility classes for the public marketplace
   - No marketplace data
   - No fake/demo/sample content
   - No API/database logic
   - Compatible with variables.css, reset.css and typography.css
   ========================================================================== */


/* ==========================================================================
   1. DISPLAY
   ========================================================================== */

.u-block {
  display: block !important;
}

.u-inline {
  display: inline !important;
}

.u-inline-block {
  display: inline-block !important;
}

.u-flex {
  display: flex !important;
}

.u-inline-flex {
  display: inline-flex !important;
}

.u-grid {
  display: grid !important;
}

.u-hidden {
  display: none !important;
}


/* ==========================================================================
   2. FLEXBOX
   ========================================================================== */

.u-flex-row {
  flex-direction: row !important;
}

.u-flex-column {
  flex-direction: column !important;
}

.u-flex-wrap {
  flex-wrap: wrap !important;
}

.u-flex-nowrap {
  flex-wrap: nowrap !important;
}

.u-items-start {
  align-items: flex-start !important;
}

.u-items-center {
  align-items: center !important;
}

.u-items-end {
  align-items: flex-end !important;
}

.u-items-stretch {
  align-items: stretch !important;
}

.u-justify-start {
  justify-content: flex-start !important;
}

.u-justify-center {
  justify-content: center !important;
}

.u-justify-end {
  justify-content: flex-end !important;
}

.u-justify-between {
  justify-content: space-between !important;
}

.u-justify-around {
  justify-content: space-around !important;
}

.u-justify-evenly {
  justify-content: space-evenly !important;
}

.u-grow {
  flex-grow: 1 !important;
}

.u-grow-0 {
  flex-grow: 0 !important;
}

.u-shrink {
  flex-shrink: 1 !important;
}

.u-shrink-0 {
  flex-shrink: 0 !important;
}


/* ==========================================================================
   3. GAP
   ========================================================================== */

.u-gap-0 {
  gap: 0 !important;
}

.u-gap-xs {
  gap: var(--space-xs, 0.25rem) !important;
}

.u-gap-sm {
  gap: var(--space-sm, 0.5rem) !important;
}

.u-gap-md {
  gap: var(--space-md, 1rem) !important;
}

.u-gap-lg {
  gap: var(--space-lg, 1.5rem) !important;
}

.u-gap-xl {
  gap: var(--space-xl, 2rem) !important;
}

.u-gap-2xl {
  gap: var(--space-2xl, 3rem) !important;
}


/* ==========================================================================
   4. MARGIN
   ========================================================================== */

.u-m-0 {
  margin: 0 !important;
}

.u-m-auto {
  margin: auto !important;
}

.u-mt-0 {
  margin-top: 0 !important;
}

.u-mt-xs {
  margin-top: var(--space-xs, 0.25rem) !important;
}

.u-mt-sm {
  margin-top: var(--space-sm, 0.5rem) !important;
}

.u-mt-md {
  margin-top: var(--space-md, 1rem) !important;
}

.u-mt-lg {
  margin-top: var(--space-lg, 1.5rem) !important;
}

.u-mt-xl {
  margin-top: var(--space-xl, 2rem) !important;
}

.u-mt-2xl {
  margin-top: var(--space-2xl, 3rem) !important;
}

.u-mb-0 {
  margin-bottom: 0 !important;
}

.u-mb-xs {
  margin-bottom: var(--space-xs, 0.25rem) !important;
}

.u-mb-sm {
  margin-bottom: var(--space-sm, 0.5rem) !important;
}

.u-mb-md {
  margin-bottom: var(--space-md, 1rem) !important;
}

.u-mb-lg {
  margin-bottom: var(--space-lg, 1.5rem) !important;
}

.u-mb-xl {
  margin-bottom: var(--space-xl, 2rem) !important;
}

.u-mb-2xl {
  margin-bottom: var(--space-2xl, 3rem) !important;
}

.u-ml-auto {
  margin-left: auto !important;
}

.u-mr-auto {
  margin-right: auto !important;
}


/* ==========================================================================
   5. PADDING
   ========================================================================== */

.u-p-0 {
  padding: 0 !important;
}

.u-p-xs {
  padding: var(--space-xs, 0.25rem) !important;
}

.u-p-sm {
  padding: var(--space-sm, 0.5rem) !important;
}

.u-p-md {
  padding: var(--space-md, 1rem) !important;
}

.u-p-lg {
  padding: var(--space-lg, 1.5rem) !important;
}

.u-p-xl {
  padding: var(--space-xl, 2rem) !important;
}

.u-p-2xl {
  padding: var(--space-2xl, 3rem) !important;
}

.u-px-sm {
  padding-left: var(--space-sm, 0.5rem) !important;
  padding-right: var(--space-sm, 0.5rem) !important;
}

.u-px-md {
  padding-left: var(--space-md, 1rem) !important;
  padding-right: var(--space-md, 1rem) !important;
}

.u-px-lg {
  padding-left: var(--space-lg, 1.5rem) !important;
  padding-right: var(--space-lg, 1.5rem) !important;
}

.u-py-sm {
  padding-top: var(--space-sm, 0.5rem) !important;
  padding-bottom: var(--space-sm, 0.5rem) !important;
}

.u-py-md {
  padding-top: var(--space-md, 1rem) !important;
  padding-bottom: var(--space-md, 1rem) !important;
}

.u-py-lg {
  padding-top: var(--space-lg, 1.5rem) !important;
  padding-bottom: var(--space-lg, 1.5rem) !important;
}


/* ==========================================================================
   6. WIDTH / HEIGHT
   ========================================================================== */

.u-w-auto {
  width: auto !important;
}

.u-w-full {
  width: 100% !important;
}

.u-w-fit {
  width: fit-content !important;
}

.u-max-w-full {
  max-width: 100% !important;
}

.u-h-auto {
  height: auto !important;
}

.u-h-full {
  height: 100% !important;
}

.u-min-h-screen {
  min-height: 100vh !important;
}

.u-min-h-100dvh {
  min-height: 100dvh !important;
}


/* ==========================================================================
   7. TEXT ALIGNMENT
   ========================================================================== */

.u-text-left {
  text-align: left !important;
}

.u-text-center {
  text-align: center !important;
}

.u-text-right {
  text-align: right !important;
}

.u-text-justify {
  text-align: justify !important;
}


/* ==========================================================================
   8. TEXT WRAPPING
   ========================================================================== */

.u-text-nowrap {
  white-space: nowrap !important;
}

.u-text-wrap {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.u-break-word {
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

.u-break-all {
  word-break: break-all !important;
}


/* ==========================================================================
   9. TEXT OVERFLOW
   ========================================================================== */

.u-truncate {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.u-line-clamp-2 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden !important;
}

.u-line-clamp-3 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden !important;
}

.u-line-clamp-4 {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden !important;
}


/* ==========================================================================
   10. FONT WEIGHT
   ========================================================================== */

.u-font-normal {
  font-weight: 400 !important;
}

.u-font-medium {
  font-weight: 500 !important;
}

.u-font-semibold {
  font-weight: 600 !important;
}

.u-font-bold {
  font-weight: 700 !important;
}

.u-font-extrabold {
  font-weight: 800 !important;
}


/* ==========================================================================
   11. FONT SIZE
   ========================================================================== */

.u-text-xs {
  font-size: var(--font-size-xs, 0.75rem) !important;
}

.u-text-sm {
  font-size: var(--font-size-sm, 0.875rem) !important;
}

.u-text-md {
  font-size: var(--font-size-md, 1rem) !important;
}

.u-text-lg {
  font-size: var(--font-size-lg, 1.125rem) !important;
}

.u-text-xl {
  font-size: var(--font-size-xl, 1.25rem) !important;
}

.u-text-2xl {
  font-size: var(--font-size-2xl, 1.5rem) !important;
}

.u-text-3xl {
  font-size: var(--font-size-3xl, 1.875rem) !important;
}


/* ==========================================================================
   12. LINE HEIGHT
   ========================================================================== */

.u-leading-tight {
  line-height: 1.25 !important;
}

.u-leading-normal {
  line-height: 1.5 !important;
}

.u-leading-relaxed {
  line-height: 1.7 !important;
}


/* ==========================================================================
   13. TEXT COLORS
   ========================================================================== */

.u-text-primary {
  color: var(--color-primary, #2563eb) !important;
}

.u-text-secondary {
  color: var(--color-secondary, #475569) !important;
}

.u-text-muted {
  color: var(--color-text-muted, #64748b) !important;
}

.u-text-success {
  color: var(--color-success, #15803d) !important;
}

.u-text-warning {
  color: var(--color-warning, #b45309) !important;
}

.u-text-danger {
  color: var(--color-danger, #dc2626) !important;
}

.u-text-info {
  color: var(--color-info, #0369a1) !important;
}

.u-text-inherit {
  color: inherit !important;
}


/* ==========================================================================
   14. BACKGROUND
   ========================================================================== */

.u-bg-transparent {
  background-color: transparent !important;
}

.u-bg-surface {
  background-color: var(--color-surface, #ffffff) !important;
}

.u-bg-muted {
  background-color: var(--color-surface-muted, #f8fafc) !important;
}

.u-bg-primary {
  background-color: var(--color-primary, #2563eb) !important;
}

.u-bg-success {
  background-color: var(--color-success, #15803d) !important;
}

.u-bg-warning {
  background-color: var(--color-warning, #b45309) !important;
}

.u-bg-danger {
  background-color: var(--color-danger, #dc2626) !important;
}


/* ==========================================================================
   15. BORDER
   ========================================================================== */

.u-border {
  border: 1px solid var(--color-border, #e2e8f0) !important;
}

.u-border-0 {
  border: 0 !important;
}

.u-border-top {
  border-top: 1px solid var(--color-border, #e2e8f0) !important;
}

.u-border-bottom {
  border-bottom: 1px solid var(--color-border, #e2e8f0) !important;
}

.u-border-left {
  border-left: 1px solid var(--color-border, #e2e8f0) !important;
}

.u-border-right {
  border-right: 1px solid var(--color-border, #e2e8f0) !important;
}


/* ==========================================================================
   16. BORDER RADIUS
   ========================================================================== */

.u-radius-none {
  border-radius: 0 !important;
}

.u-radius-sm {
  border-radius: var(--radius-sm, 0.25rem) !important;
}

.u-radius-md {
  border-radius: var(--radius-md, 0.5rem) !important;
}

.u-radius-lg {
  border-radius: var(--radius-lg, 0.75rem) !important;
}

.u-radius-xl {
  border-radius: var(--radius-xl, 1rem) !important;
}

.u-radius-full {
  border-radius: 9999px !important;
}


/* ==========================================================================
   17. SHADOW
   ========================================================================== */

.u-shadow-none {
  box-shadow: none !important;
}

.u-shadow-sm {
  box-shadow: var(--shadow-sm, 0 1px 2px rgb(0 0 0 / 0.05)) !important;
}

.u-shadow-md {
  box-shadow: var(
    --shadow-md,
    0 4px 12px rgb(0 0 0 / 0.08)
  ) !important;
}

.u-shadow-lg {
  box-shadow: var(
    --shadow-lg,
    0 10px 30px rgb(0 0 0 / 0.10)
  ) !important;
}


/* ==========================================================================
   18. POSITION
   ========================================================================== */

.u-relative {
  position: relative !important;
}

.u-absolute {
  position: absolute !important;
}

.u-fixed {
  position: fixed !important;
}

.u-sticky {
  position: sticky !important;
}

.u-static {
  position: static !important;
}


/* ==========================================================================
   19. OVERFLOW
   ========================================================================== */

.u-overflow-visible {
  overflow: visible !important;
}

.u-overflow-hidden {
  overflow: hidden !important;
}

.u-overflow-auto {
  overflow: auto !important;
}

.u-overflow-x-auto {
  overflow-x: auto !important;
}

.u-overflow-y-auto {
  overflow-y: auto !important;
}


/* ==========================================================================
   20. VISIBILITY
   ========================================================================== */

.u-visible {
  visibility: visible !important;
}

.u-invisible {
  visibility: hidden !important;
}


/* ==========================================================================
   21. OPACITY
   ========================================================================== */

.u-opacity-0 {
  opacity: 0 !important;
}

.u-opacity-25 {
  opacity: 0.25 !important;
}

.u-opacity-50 {
  opacity: 0.5 !important;
}

.u-opacity-75 {
  opacity: 0.75 !important;
}

.u-opacity-100 {
  opacity: 1 !important;
}


/* ==========================================================================
   22. CURSOR
   ========================================================================== */

.u-cursor-pointer {
  cursor: pointer !important;
}

.u-cursor-default {
  cursor: default !important;
}

.u-cursor-not-allowed {
  cursor: not-allowed !important;
}

.u-cursor-wait {
  cursor: wait !important;
}


/* ==========================================================================
   23. USER SELECT
   ========================================================================== */

.u-select-none {
  user-select: none !important;
}

.u-select-text {
  user-select: text !important;
}

.u-select-all {
  user-select: all !important;
}


/* ==========================================================================
   24. POINTER EVENTS
   ========================================================================== */

.u-pointer-events-none {
  pointer-events: none !important;
}

.u-pointer-events-auto {
  pointer-events: auto !important;
}


/* ==========================================================================
   25. OBJECT / MEDIA
   ========================================================================== */

.u-object-cover {
  object-fit: cover !important;
}

.u-object-contain {
  object-fit: contain !important;
}

.u-object-fill {
  object-fit: fill !important;
}

.u-object-center {
  object-position: center !important;
}


/* ==========================================================================
   26. ASPECT RATIO
   ========================================================================== */

.u-aspect-square {
  aspect-ratio: 1 / 1 !important;
}

.u-aspect-video {
  aspect-ratio: 16 / 9 !important;
}

.u-aspect-auto {
  aspect-ratio: auto !important;
}


/* ==========================================================================
   27. ACCESSIBILITY — SCREEN READER ONLY
   ========================================================================== */

.u-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.u-not-sr-only {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
}


/* ==========================================================================
   28. ACCESSIBILITY — FOCUS
   ========================================================================== */

.u-focus-ring:focus-visible {
  outline: 3px solid
    var(--color-focus, #2563eb) !important;
  outline-offset: 2px !important;
}


/* ==========================================================================
   29. INTERACTION
   ========================================================================== */

.u-no-transition {
  transition: none !important;
}

.u-no-animation {
  animation: none !important;
}


/* ==========================================================================
   30. CONTENT STATES
   ========================================================================== */

.u-loading {
  cursor: progress !important;
}

.u-disabled {
  opacity: 0.6 !important;
  pointer-events: none !important;
}

.u-empty {
  min-height: 6rem;
}

.u-error {
  color: var(--color-danger, #dc2626) !important;
}

.u-success {
  color: var(--color-success, #15803d) !important;
}


/* ==========================================================================
   31. LIVE MARKETPLACE STATE HELPERS
   These classes control presentation only.
   They do NOT create fake marketplace records.
   ========================================================================== */

.u-state-loading {
  display: block;
  min-height: 3rem;
}

.u-state-empty {
  display: block;
  text-align: center;
  padding: var(--space-lg, 1.5rem);
}

.u-state-error {
  display: block;
  padding: var(--space-md, 1rem);
  border: 1px solid
    var(--color-danger-border, #fecaca);
  border-radius: var(--radius-md, 0.5rem);
}

.u-state-hidden {
  display: none !important;
}


/* ==========================================================================
   32. FORM UTILITIES
   ========================================================================== */

.u-form-full {
  width: 100% !important;
}

.u-form-inline {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm, 0.5rem);
}

.u-form-stack {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--space-md, 1rem);
}


/* ==========================================================================
   33. VISUAL DIVIDER
   ========================================================================== */

.u-divider {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--color-border, #e2e8f0);
}

.u-divider-vertical {
  width: 1px;
  height: 100%;
  border: 0;
  background: var(--color-border, #e2e8f0);
}


/* ==========================================================================
   34. LIST UTILITIES
   ========================================================================== */

.u-list-none {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.u-list-disc {
  list-style-type: disc !important;
}

.u-list-decimal {
  list-style-type: decimal !important;
}


/* ==========================================================================
   35. SAFE CONTENT WIDTH
   ========================================================================== */

.u-readable {
  width: 100%;
  max-width: 70ch;
}

.u-readable-wide {
  width: 100%;
  max-width: 85ch;
}


/* ==========================================================================
   36. GRID HELPERS
   ========================================================================== */

.u-grid-1 {
  grid-template-columns: minmax(0, 1fr) !important;
}

.u-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.u-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.u-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.u-grid-auto-fit {
  grid-template-columns:
    repeat(auto-fit, minmax(min(100%, 16rem), 1fr)) !important;
}

.u-grid-auto-fill {
  grid-template-columns:
    repeat(auto-fill, minmax(min(100%, 16rem), 1fr)) !important;
}


/* ==========================================================================
   37. SAFE IMAGE / MEDIA DISPLAY
   ========================================================================== */

.u-media-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.u-media-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.u-media-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ==========================================================================
   38. MOBILE HELPERS
   ========================================================================== */

@media (max-width: 767px) {

  .u-mobile-hidden {
    display: none !important;
  }

  .u-mobile-block {
    display: block !important;
  }

  .u-mobile-flex {
    display: flex !important;
  }

  .u-mobile-column {
    flex-direction: column !important;
  }

  .u-mobile-full {
    width: 100% !important;
  }

  .u-mobile-text-center {
    text-align: center !important;
  }

  .u-mobile-gap-sm {
    gap: var(--space-sm, 0.5rem) !important;
  }

  .u-mobile-p-sm {
    padding: var(--space-sm, 0.5rem) !important;
  }
}


/* ==========================================================================
   39. TABLET HELPERS
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1023px) {

  .u-tablet-hidden {
    display: none !important;
  }

  .u-tablet-block {
    display: block !important;
  }

  .u-tablet-flex {
    display: flex !important;
  }

  .u-tablet-full {
    width: 100% !important;
  }
}


/* ==========================================================================
   40. DESKTOP HELPERS
   ========================================================================== */

@media (min-width: 1024px) {

  .u-desktop-hidden {
    display: none !important;
  }

  .u-desktop-block {
    display: block !important;
  }

  .u-desktop-flex {
    display: flex !important;
  }
}


/* ==========================================================================
   41. LARGE SCREEN HELPERS
   ========================================================================== */

@media (min-width: 1440px) {

  .u-large-hidden {
    display: none !important;
  }

  .u-large-block {
    display: block !important;
  }

  .u-large-flex {
    display: flex !important;
  }
}


/* ==========================================================================
   42. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  .u-no-motion,
  .u-no-motion * {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   43. PRINT
   ========================================================================== */

@media print {

  .u-print-hidden {
    display: none !important;
  }

  .u-print-block {
    display: block !important;
  }

  .u-print-text-black {
    color: #000 !important;
  }

  .u-print-bg-white {
    background: #fff !important;
  }
}