:root {
  --background: #ffffff;
  --foreground: #171717;
}

html {
  height: 100%;
}

html,
body {
  max-width: 100vw;
  overflow-x: clip;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--foreground);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Custom Minimal Toast Styles */
.minimal-toast {
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  padding: 8px 16px !important;
  border: 1px solid #e5e7eb !important;
  width: auto !important;
  max-width: 400px !important;
}
.minimal-toast .swal2-title {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #09090b !important;
  margin: 0 !important;
  padding-left: 8px !important;
}
.minimal-toast .swal2-icon {
  zoom: 0.6 !important;
  margin: 0 !important;
}

/* ── Always render SweetAlert above the cartbar (z-index: 1,999,999) ── */
.swal2-container {
  z-index: 2999999 !important;
}

/* Global Sticky Sidebar for Shop, Category, Subcategory, Search */
@media (min-width: 1101px) {
  .sidebar-sticky {
    position: sticky !important;
    top: 130px;
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    /* Hide scrollbar for a cleaner look */
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
  }

  .sidebar-sticky::-webkit-scrollbar {
    width: 4px;
  }
  
  .sidebar-sticky::-webkit-scrollbar-thumb {
    background-color: #e5e7eb;
    border-radius: 4px;
  }
}

@media screen and (max-width: 700px) {
  .btn-group-sm > .btn, .btn-sm, .btn {
    font-size: 0.55rem !important;  
  }
}