/* ==========================================================================
   Web Application Custom Styles
   ========================================================================== */

[v-cloak] {
  display: none !important;
}

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --navbar-height: 54px;
  --card-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --hover-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

body {
  font-family:
    'Inter',
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  background-color: #f3f4f6;
  color: var(--gray-800);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Navbar (Strictly Logo + Login Button)
   -------------------------------------------------------------------------- */
.pos-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  padding: 0.35rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: var(--navbar-height);
  flex-wrap: nowrap !important;
  gap: 0.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none !important;
  min-height: 32px;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}

.brand-logo-img {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.brand-name {
  font-weight: 800;
  font-size: clamp(0.8rem, 3.2vw, 1.1rem);
  color: #009377;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-transform: uppercase;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-logo:hover .brand-name {
  color: #000000;
}

/* Typewriter Blinking Cursor */
.typewriter-cursor {
  display: inline-block;
  width: 2.5px;
  height: 1.15em;
  background-color: #111827;
  margin-left: 2px;
  border-radius: 1px;
  vertical-align: middle;
  animation: blinkCursor 0.8s infinite;
}

.brand-logo:hover .typewriter-cursor {
  background-color: #000000;
}

@keyframes blinkCursor {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.3rem;
}

/* Responsive Navbar Controls for Mobile & Small Screens */
.navbar-actions-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 576px) {
  :root {
    --navbar-height: 42px;
  }

  .pos-navbar {
    padding: 0.35rem 0.65rem !important;
    gap: 0.35rem !important;
  }

  .brand-name {
    font-size: 0.85rem !important;
  }

  .pos-navbar .btn-sm,
  .navbar-actions-group .btn-sm {
    padding: 0.25rem 0.6rem !important;
    font-size: 0.76rem !important;
  }

  .navbar-actions-group .btn-sm.mr-2,
  .pos-navbar .btn-sm.mr-2 {
    margin-right: 0.35rem !important;
  }
}

@media (max-width: 400px) {
  :root {
    --navbar-height: 38px;
  }

  .pos-navbar {
    padding: 0.3rem 0.45rem !important;
    gap: 0.25rem !important;
  }

  .brand-name {
    font-size: 0.76rem !important;
    letter-spacing: -0.02em;
  }

  .pos-navbar .btn-sm,
  .navbar-actions-group .btn-sm {
    padding: 0.22rem 0.45rem !important;
    font-size: 0.72rem !important;
  }

  .pos-navbar .btn-sm i,
  .navbar-actions-group .btn-sm i {
    margin-right: 2px !important;
  }
}

/* Center Navbar Real-Time Date & Time Widget */
.navbar-datetime-widget {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-800);
  box-shadow: none;
  user-select: none;
  pointer-events: auto;
  white-space: nowrap;
}

.datetime-day {
  font-weight: 600;
  color: var(--dark);
}

.datetime-dot {
  margin: 0 0.4rem;
  color: var(--gray-400);
  font-size: 0.7rem;
}

.datetime-date {
  color: var(--gray-600);
  font-weight: 500;
}

.datetime-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  display: inline-block;
  border: none;
}

@media (max-width: 767.98px) {
  .navbar-datetime-widget {
    font-size: 0.78rem;
  }

  .datetime-badge {
    font-size: 0.76rem;
    padding: 0.15rem 0.4rem;
  }

  .datetime-dot {
    margin: 0 0.25rem;
  }

  .brand-name {
    font-size: 0.95rem;
  }
}

/* --------------------------------------------------------------------------
   Main Content Layout
   -------------------------------------------------------------------------- */
.main-wrapper {
  flex: 1;
  padding: 1.25rem 1.5rem;
}

@media (max-width: 767.98px) {
  .main-wrapper {
    padding: 0.65rem 0.65rem;
  }
}

@media (max-width: 480px) {
  .main-wrapper {
    padding: 0.5rem 0.4rem;
  }
}

@media (min-width: 992px) {
  .pos-layout-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.75rem;
    margin-left: -0.75rem;
  }

  .pos-col-70 {
    flex: 0 0 75%;
    max-width: 75%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .pos-col-30 {
    flex: 0 0 25%;
    max-width: 25%;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
}

/* Navbar User Details Button */
.navbar-user-btn {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--gray-800);
  font-size: 0.88rem;
  padding: 0.35rem 0.6rem;
  border-radius: 20px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.navbar-user-btn:hover,
.navbar-user-btn:focus {
  background-color: var(--gray-100);
  color: var(--primary);
  outline: none;
  box-shadow: none;
}

/* Navbar Cart Icon Button & Counter Badge */
.cart-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--gray-800);
  border: none;
  font-size: 1.2rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: none;
}

.cart-icon-btn:hover {
  background-color: var(--gray-100);
  color: var(--primary);
  border: none;
  transform: translateY(-1px);
  box-shadow: none;
}

.cart-icon-btn:active {
  transform: scale(0.94);
}

.cart-icon-btn:focus {
  outline: none;
  box-shadow: none;
}

.cart-icon-btn .cart-nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--danger);
  color: #ffffff;
  border-radius: 999px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.45);
  line-height: 1;
  pointer-events: none;
  transition: transform 0.15s ease;
}

.btn-close-cart {
  background: transparent;
  border: none;
  color: var(--gray-600);
  font-size: 1.1rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-close-cart:hover {
  background: var(--gray-200);
  color: var(--dark);
}

.btn-collapse-cart {
  background: transparent;
  border: none;
  color: var(--gray-600);
  font-size: 0.9rem;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-collapse-cart:hover {
  background: var(--gray-200);
  color: var(--dark);
}

/* Desktop Cart Collapse Transition */
@media (min-width: 992px) {
  .pos-col-70,
  .pos-col-30 {
    transition:
      flex 0.3s cubic-bezier(0.4, 0, 0.2, 1),
      max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .pos-layout-row.cart-collapsed #product-section {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .pos-layout-row.cart-collapsed #cart-section {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   Hero Promotional Banner Slider
   -------------------------------------------------------------------------- */
.banner-slider-container {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  aspect-ratio: 1140 / 450;
  user-select: none;
}

/* Slider Skeleton Shimmer Loader */
.slider-skeleton-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e2e8f0;
  overflow: hidden;
}

.slider-skeleton-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: sliderShimmer 1.5s infinite;
}

@keyframes sliderShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.banner-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.banner-slide {
  min-width: 100%;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.banner-slide-img {
  width: 100%;
  height: 100%;
  object-fit: unset;
  display: block;
  pointer-events: none;
}

/* Slider Navigation Buttons (Prev / Next) */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.banner-slider-container:hover .slider-btn {
  opacity: 1;
}

.slider-btn:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.slider-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-btn-prev {
  left: 12px;
}

.slider-btn-next {
  right: 12px;
}

/* Slider Indicators / Dots */
.slider-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 20px;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.9);
}

.slider-dot.active {
  background: #ffffff;
  width: 22px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767.98px) {
  .banner-slider-container {
    border-radius: 8px;
    margin-bottom: 0.65rem;
  }

  .slider-btn {
    opacity: 0.85;
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }

  .slider-btn-prev {
    left: 6px;
  }

  .slider-btn-next {
    right: 6px;
  }

  .slider-indicators {
    bottom: 6px;
    padding: 3px 6px;
    gap: 4px;
  }

  .slider-dot {
    width: 6px;
    height: 6px;
  }

  .slider-dot.active {
    width: 16px;
  }
}

/* --------------------------------------------------------------------------
   Search & Filter Section (Sticky Bar)
   -------------------------------------------------------------------------- */
.search-filter-card-slim {
  position: sticky;
  top: var(--navbar-height, 50px);
  z-index: 1020;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  padding: 0.4rem 0.6rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: box-shadow 0.2s ease;
  min-width: 0;
}

.search-input-group {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.search-input-group i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-600);
  font-size: 0.8rem;
  pointer-events: none;
}

.search-input-sm {
  padding-left: 2.1rem !important;
  border-radius: 6px !important;
  border: 1px solid var(--gray-300);
  height: 34px;
  font-size: 0.85rem;
  width: 100%;
}

.search-input-sm:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.category-select-wrapper {
  flex-shrink: 0;
}

.category-select-sm {
  height: 34px;
  border-radius: 6px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--gray-800);
  border: 1px solid var(--gray-300);
  width: 140px;
  cursor: pointer;
}

/* Primary Button Styling (Search & Login Buttons) */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #4338ca) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25) !important;
  transition: all 0.2s ease !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #3730a3) !important;
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.35) !important;
  transform: translateY(-1px);
}

.btn-search-sm {
  height: 34px;
  padding: 0 1rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: 6px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), #4338ca) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
}

.btn-search-sm:hover {
  background: linear-gradient(135deg, #4338ca, #3730a3) !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(79, 70, 229, 0.4);
  color: #ffffff !important;
}

.category-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  align-content: start;
  min-height: 400px;
}

.top-address {
  background: #fff;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #cdcdcd;
}
.top-address .branch_title {
  display: flex;
}
.top-address .branch_title p {
  margin-bottom: 0;
  color: #4a40d9;
  font-size: 17px;
  font-weight: 500;
}

.product_section {
  max-height: 750px;
  overflow-y: auto;
}

.products-loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem;
  width: 100%;
  min-height: 350px;
  margin: auto;
}

.products-loading-spinner {
  width: 2.75rem;
  height: 2.75rem;
  border-width: 0.25rem;
  color: var(--primary);
}

.products-loading-text {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
}

.no-products-found {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  width: 100%;
  min-height: 350px;
  margin: auto;
}

.no-products-icon {
  width: 72px;
  height: 72px;
  background: var(--gray-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.no-products-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.25rem;
}

.no-products-desc {
  font-size: 0.85rem;
  color: var(--secondary);
  margin-bottom: 0;
}

.product-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  box-shadow: var(--card-shadow);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hover-shadow);
  border-color: rgba(79, 70, 229, 0.4);
}

.product-card:active {
  transform: translateY(0);
}

.product-img-wrapper {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  background-color: #f8fafc;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  font-size: 0.65rem;
  color: var(--secondary);
  overflow: hidden;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.category-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.stock-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.product-body {
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.15rem;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 1.9rem;
}

.product-code {
  font-size: 0.65rem;
  color: var(--secondary);
  margin-bottom: 0.35rem;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.25rem;
}

.footer {
  background: #2e2e54;
}

.footer_about h3,
.footer_contact_us h3,
.footer_quick_link h3,
.footer_photo_gallery h3 {
  font-size: 18px;
}
.footer_about .branch_title h5 {
  font-size: 16px;
}
.footer_about .branch_title p {
  font-size: 14px;
}
.footer .footer_contact_us p {
  font-size: 14px;
}
.footer .footer-copy p,
.footer .footer-copy .copy-right-right a {
  font-size: 13px;
}
.footer_quick_link ul {
  list-style: none;
}
.footer_quick_link ul li a {
  font-size: 15px;
  line-height: 30px;
}
.footer-copy {
  border-top: 1px solid #fff;
  margin-top: 10px;
}
.footer a {
  font-size: 12px;
  color: #fff;
  padding: 0 5px;
}

.product-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-add-product {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--primary-light);
  color: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.product-card:hover .btn-add-product {
  background: var(--primary);
  color: #ffffff;
}

.product-card.in-cart {
  border-color: var(--primary);
  box-shadow:
    0 0 0 2px rgba(79, 70, 229, 0.25),
    var(--card-shadow);
  background-color: #fafbfd;
}

.card-qty-ctrl {
  display: inline-flex;
  align-items: center;
  background: var(--primary-light);
  border-radius: 6px;
  padding: 2px;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

.card-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid rgba(79, 70, 229, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  outline: none !important;
}

.card-qty-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.card-qty-btn:active {
  transform: scale(0.92);
}

.card-qty-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-hover);
  min-width: 20px;
  text-align: center;
  padding: 0 2px;
  user-select: none;
}

/* --------------------------------------------------------------------------
   30% Ultra-Compact Cart Sidebar
   -------------------------------------------------------------------------- */
.cart-panel {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  position: sticky;
  top: 56px;
}

.cart-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.cart-title {
  font-weight: 700;
  font-size: 0.975rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--dark);
}

.cart-count-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
}

.btn-clear-cart {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 0.775rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-clear-cart:hover {
  background: #fef2f2;
}

/* Cart Table Header for Ultra-Compact view */
.cart-list-header {
  display: grid;
  grid-template-columns: 28px 1fr 64px 60px 24px;
  gap: 6px;
  align-items: center;
  padding: 0.4rem 0.75rem;
  background: var(--gray-100);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  border-bottom: 1px solid var(--gray-200);
}

/* Scrollable Cart Items Container */
.cart-items-wrapper {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 0;
}

.cart-items-wrapper::-webkit-scrollbar {
  width: 5px;
}

.cart-items-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.cart-items-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.cart-items-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Ultra-Compact Cart Row Style */
.cart-item-compact {
  display: grid;
  grid-template-columns: 28px 1fr 64px 60px 24px;
  gap: 6px;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
  font-size: 0.8rem;
}

.cart-item-compact:hover {
  background-color: #f8fafc;
}

.cart-thumb {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--gray-200);
}

.cart-item-details {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cart-item-name {
  font-weight: 600;
  color: var(--gray-800);
  font-size: 0.775rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 1px;
}

.cart-item-unit-price {
  font-size: 0.675rem;
  color: var(--secondary);
}

.cart-qty-ctrl {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  overflow: hidden;
  height: 22px;
}

.cart-qty-btn {
  width: 18px;
  height: 100%;
  background: transparent;
  border: none;
  color: var(--dark);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}

.cart-qty-btn:hover {
  background: var(--gray-300);
}

.cart-qty-val {
  flex: 1;
  text-align: center;
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--dark);
}

.cart-line-total {
  font-weight: 700;
  font-size: 0.775rem;
  color: var(--dark);
  text-align: right;
}

.cart-btn-del {
  background: transparent;
  border: none;
  color: var(--gray-400);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 2px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.15s,
    background 0.15s;
}

.cart-btn-del:hover {
  color: var(--danger);
  background: #fef2f2;
}

.empty-cart-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--gray-400);
  padding: 2rem 1rem;
  text-align: center;
}

.empty-cart-view i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* Cart Summary & Footer */
.cart-footer {
  border-top: 1px solid var(--gray-200);
  padding: 0.85rem 1rem;
  background: #fafafa;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 0.35rem;
}

.summary-row.total-row {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  border-top: 1px dashed var(--gray-300);
  padding-top: 0.5rem;
  margin-top: 0.4rem;
  margin-bottom: 0.75rem;
}

.summary-row.total-row .total-amount {
  color: var(--primary);
}

.cart-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-clear-cart-footer {
  flex: 1;
  background: #fee2e2;
  color: var(--danger);
  border: 1px solid #fecaca;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-clear-cart-footer:hover:not(:disabled) {
  background: #ef4444;
  color: #ffffff;
  border-color: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.25);
}

.btn-clear-cart-footer:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--gray-100);
  color: var(--gray-400);
  border-color: var(--gray-200);
  box-shadow: none;
}

.btn-checkout {
  flex: 1.15;
  background: linear-gradient(135deg, var(--primary), #4338ca);
  color: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-checkout:hover:not(:disabled) {
  background: linear-gradient(135deg, #4338ca, #3730a3);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
  color: #fff;
}

.btn-checkout:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   Modal Enhancements
   -------------------------------------------------------------------------- */
.modal-content {
  border-radius: 14px;
  border: none;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
  border-bottom: 1px solid var(--gray-200);
  padding: 1rem 1.25rem;
}

.modal-footer {
  border-top: 1px solid var(--gray-200);
  padding: 0.85rem 1.25rem;
}

.receipt-box {
  background: #f8fafc;
  border: 1px dashed var(--gray-300);
  border-radius: 8px;
  padding: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
}

/* Toast Notifications (Upper Right) */
.pos-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: #1e293b;
  color: #ffffff;
  padding: 0.7rem 1.15rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.3),
    0 8px 10px -6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: translateX(120%);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: calc(100vw - 40px);
}

.pos-toast.show {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.pos-toast.toast-success i {
  color: #10b981;
}

.pos-toast.toast-danger i,
.pos-toast.toast-error i {
  color: #ef4444;
}

.pos-toast.toast-warning i {
  color: #f59e0b;
}

.pos-toast.toast-info i {
  color: #38bdf8;
}

@media (max-width: 576px) {
  .pos-toast {
    top: 14px;
    right: 14px;
    font-size: 0.8rem;
    padding: 0.6rem 0.95rem;
    max-width: calc(100vw - 28px);
  }
}

/* --------------------------------------------------------------------------
   Simple Login Page Layout (Navbar + Inline Form)
   -------------------------------------------------------------------------- */
.login-layout-body {
  background-color: #f3f4f6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-page-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-box-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.08),
    0 8px 10px -6px rgba(0, 0, 0, 0.04);
  padding: 2.25rem 2rem;
  width: 100%;
  max-width: 440px;
}

.login-inline-input {
  border-radius: 6px;
  border: 1px solid var(--gray-300);
  height: 38px;
  font-size: 0.9rem;
}

.login-inline-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* --------------------------------------------------------------------------
   Responsive Offcanvas Sidebar (< 992px Mobile & Tablet)
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .pos-col-70 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 1rem;
  }

  .pos-col-30 {
    margin-bottom: 0;
  }

  #cart-section {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 360px !important;
    max-width: 88vw !important;
    height: 100vh !important;
    z-index: 1050 !important;
    background: #ffffff !important;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.18) !important;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
  }

  #cart-section.show {
    right: 0 !important;
  }

  #cart-section .cart-panel {
    height: 100vh !important;
    top: 0 !important;
    position: relative !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  #cart-section .cart-header {
    border-radius: 0 !important;
    padding: 0.85rem 1.1rem;
  }

  .cart-offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .cart-offcanvas-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
}

/* 2 Product Cards per row on Mobile & Small Screens (< 768px) */
@media (max-width: 767.98px) {
  .search-filter-card-slim {
    top: var(--navbar-height, 48px);
    padding: 0.35rem 0.5rem;
    gap: 0.4rem;
    margin-bottom: 0.65rem;
  }

  .category-select-sm {
    width: 110px;
    font-size: 0.78rem;
    padding-left: 0.5rem;
  }

  .btn-search-sm {
    padding: 0 0.75rem;
    font-size: 0.78rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .product-img-wrapper {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
  }

  .product-body {
    padding: 0.5rem 0.65rem !important;
  }

  .product-title {
    font-size: 0.8rem !important;
    height: 1.9rem !important;
  }

  .product-code {
    font-size: 0.65rem !important;
    margin-bottom: 0.35rem !important;
  }

  .product-price {
    font-size: 0.875rem !important;
  }

  .btn-add-product {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
  }
  .top-address .branch_title p {
    font-size: 12px !important;
  }
}

@media (max-width: 576px) {
  .search-filter-card-slim {
    top: var(--navbar-height, 46px);
    padding: 0.3rem 0.4rem;
    gap: 0.35rem;
    border-radius: 8px;
  }

  .search-input-group i {
    left: 0.55rem;
    font-size: 0.72rem;
  }

  .search-input-sm {
    padding-left: 1.65rem !important;
    font-size: 0.78rem;
    height: 33px;
  }

  .category-select-sm {
    width: auto;
    max-width: 100px;
    min-width: 78px;
    font-size: 0.74rem;
    height: 33px;
    padding: 0 1.15rem 0 0.35rem;
  }

  .btn-search-sm {
    height: 33px;
    padding: 0 0.55rem;
    font-size: 0.74rem;
  }
}

@media (max-width: 400px) {
  .search-filter-card-slim {
    top: var(--navbar-height, 42px);
    padding: 0.25rem 0.3rem;
    gap: 0.25rem;
  }

  .search-input-sm {
    padding-left: 1.55rem !important;
    font-size: 0.75rem;
    height: 32px;
  }

  .category-select-sm {
    max-width: 82px;
    min-width: 65px;
    font-size: 0.7rem;
    height: 32px;
    padding: 0 0.95rem 0 0.25rem;
  }

  .btn-search-sm {
    height: 32px;
    padding: 0 0.5rem;
    min-width: 32px;
    justify-content: center;
  }
}

/* ==========================================================================
   Customer Registration Page Styles
   ========================================================================== */
.register-layout-body {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.register-page-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  position: relative;
}

.register-page-container::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 15%;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(79, 70, 229, 0.08) 0%,
    rgba(79, 70, 229, 0) 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.register-page-container::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 380px;
  height: 380px;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.07) 0%,
    rgba(16, 185, 129, 0) 70%
  );
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.register-box-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 18px;
  box-shadow:
    0 20px 35px -10px rgba(15, 23, 42, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 2.25rem 2.25rem;
  width: 100%;
  max-width: 620px;
  position: relative;
  z-index: 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.register-box-header {
  text-align: center;
  margin-bottom: 1.75rem;
  position: relative;
}

.register-icon-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.register-box-header h3 {
  font-weight: 800;
  color: #0f172a;
  font-size: 1.45rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.register-box-header p {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0;
}

.reg-form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.reg-form-label .req-star {
  color: #ef4444;
  font-weight: bold;
}

.reg-form-label .label-subtext {
  font-size: 0.75rem;
  font-weight: normal;
  color: #94a3b8;
  margin-left: auto;
}

/* Custom Input Field with Icon Prepend */
.reg-input-group {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
}

.reg-input-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 4;
  transition: color 0.2s ease;
}

.reg-input {
  border-radius: 10px !important;
  border: 1.5px solid #e2e8f0;
  padding: 0.65rem 1rem 0.65rem 2.65rem !important;
  font-size: 0.92rem;
  height: 44px;
  background-color: #f8fafc;
  color: #1e293b;
  transition: all 0.2s ease;
}

.reg-input:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.12);
  color: #0f172a;
}

.reg-input:focus + .reg-input-icon,
.reg-input-group:focus-within .reg-input-icon {
  color: var(--primary);
}

.reg-textarea {
  border-radius: 10px !important;
  border: 1.5px solid #e2e8f0;
  padding: 0.65rem 1rem 0.65rem 2.65rem !important;
  font-size: 0.92rem;
  background-color: #f8fafc;
  color: #1e293b;
  resize: vertical;
  min-height: 78px;
  transition: all 0.2s ease;
}

.reg-textarea:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.12);
}

.reg-textarea-icon {
  top: 1rem !important;
  transform: none !important;
}

/* Customer Type Selector Grid / Pills */
.customer-type-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.type-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.4rem;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  text-align: center;
  position: relative;
}

.type-pill i {
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.type-pill:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #1e293b;
}

.type-pill.active {
  border-color: var(--primary);
  background: #eef2ff;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.type-pill.active i {
  color: var(--primary);
}

.type-pill .active-check {
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 0.65rem;
  color: var(--primary);
}

/* Area Quick Suggestion Chips */
.quick-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.quick-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  background: #f1f5f9;
  color: #475569;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.quick-chip:hover {
  background: #e0e7ff;
  color: var(--primary);
  border-color: #c7d2fe;
}

.quick-chip.selected {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Register Action Button */
.btn-register-submit {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  border: none;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  transition: all 0.2s ease;
  width: 100%;
}

.btn-register-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79, 70, 229, 0.4);
  color: #ffffff;
}

.btn-register-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-register-reset {
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
}

.reg-footer-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0 1.25rem;
  color: #94a3b8;
  font-size: 0.8rem;
}

.reg-footer-divider::before,
.reg-footer-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}

.reg-footer-divider span {
  padding: 0 0.75rem;
}

.trust-badge-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #64748b;
  font-size: 0.76rem;
  margin-top: 1rem;
}

@media (max-width: 576px) {
  .register-box-card {
    padding: 1.5rem 1.15rem;
    border-radius: 14px;
  }

  .customer-type-options {
    grid-template-columns: repeat(2, 1fr);
  }
}
