
  /* ========== BASE STYLES ========== */
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
  }
  
  @keyframes ring {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
  }
  
  @keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
  }

  /* ========== LAYOUT COMPONENTS ========== */
  /* Sidebar */
  .sidebar {
    width: 4rem;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: width;
  }
  
  .sidebar:hover {
    width: 16rem;
  }
  
  .sidebar .group:hover .icon-label {
    display: block;
    animation: fadeIn 0.2s ease-out;
  }
  
  .sidebar nav li > * {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  
  /* Header */
  header {
    backdrop-filter: blur(6px);
    background-color: rgba(255, 255, 255, 0.95);
    transition: background-color 0.3s ease;
  }
  
  header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  /* ========== UI COMPONENTS ========== */
  /* Cards */
  .pos-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    view-transition-name: none;
    animation: fadeIn 0.2s ease-out forwards;
  }
  
  .pos-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 10;
  }
  
  .pos-card:active {
    transform: translateY(0);
  }
  
  /* Image Container */
  .pos-card .relative.pt-\[40\%\] {
    position: relative;
    padding-top: 40%;
  }
  
  .pos-card .relative.pt-\[40\%\] > * {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  
  /* Quick Add Button */
  .quick-add-btn {
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
  }
  
  .pos-card:hover .quick-add-btn {
    opacity: 1;
    transform: scale(1.05);
  }
  
  .quick-add-btn:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }
  
  /* Action Buttons */
  .action-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .action-btn:hover {
    transform: translateY(-1px);
  }
  
  .btn-press:active {
    transform: scale(0.98);
  }
  
  /* Status Indicators */
  .status-dot {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulse-red 2s infinite;
  }
  
  .pos-card [data-stock="0"] .stock-indicator {
    background-color: theme('colors.red.400') !important;
  }
  
  /* Discount Badge */
  .discount-badge {
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
  }
  
  /* Notification Bell */
  .notification-btn:hover i {
    animation: ring 0.5s ease-in-out;
  }
  
  /* Notification Dropdown */
  .notification-dropdown {
    transform-origin: top right;
    animation: fadeIn 0.15s ease-out forwards;
  }

  /* ========== FORM COMPONENTS ========== */
  /* Custom Checkbox */
  .custom-checkbox {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
  }
  
  .custom-checkbox:checked {
    background-color: #0ea5e9;
    border-color: #0ea5e9;
  }
  
  .custom-checkbox:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
  }

  /* ========== UTILITY CLASSES ========== */
  /* Text Truncation */
  .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }
  
  /* Scrollbars */
  .custom-scroll {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f9fafb;
  }
  
  .custom-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  
  .custom-scroll::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
    border-radius: 20px;
    border: 1px solid #f9fafb;
  }
  
  .custom-scroll::-webkit-scrollbar-track {
    background: #f9fafb;
  }
  
  .sidebar::-webkit-scrollbar {
    width: 4px;
  }
  
  .sidebar::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.5);
  }
  
  /* Animations */
  .animate-fade-in {
    animation: fadeIn 0.3s ease-out forwards;
  }
  
  .animate-spin {
    animation: spin 1s linear infinite;
  }
  
  /* Modal */
  .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
  }

  /* ========== POS-SPECIFIC STYLES ========== */
  /* Catalog container adjustments */
  #catalog-container {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    will-change: width;
  }
  
  /* When cart is visible on desktop */
  .lg\:translate-y-0 + #catalog-container {
    width: calc(100% - 26rem);
  }
  
  /* Mobile cart toggle button */
  #cart-collapse-toggle {
    transition: transform 0.3s ease;
  }
  
  /* Rotate chevron when cart is open */
  #cart-container:not(.translate-y-full) #cart-collapse-toggle i {
    transform: rotate(180deg);
  }

  /* ========== RESPONSIVE ADJUSTMENTS ========== */
  @media (max-width: 640px) {
    .quick-add-btn {
      width: 9vw;
      height: 9vw;
      min-width: 32px;
      min-height: 32px;
    }
  }

  /* Barcode font */
  @font-face {
    font-family: 'Libre Barcode 39';
    src: url('https://fonts.googleapis.com/css2?family=Libre+Barcode+39&display=swap');
  }
