/* Modern POS Interface Styles */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --background-color: #f8fafc;
  --surface-color: #ffffff;
  --border-color: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Base Styles */
body#module-fmarket-quickOrder {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--background-color);
  color: var(--text-primary);
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

body#module-fmarket-quickOrder .page-title.page-title-layout-2,
body#module-fmarket-quickOrder #header,
body#module-fmarket-quickOrder #footer {
  display: none;
}

body#module-fmarket-quickOrder #wrapper {
  padding: 0;
  background: var(--background-color);
  height: 100vh;
}

body#module-fmarket-quickOrder #wrapper .container.container-parent,
body#module-fmarket-quickOrder #wrapper .container.container {
  max-width: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Main Container */
.pos-container {
  display: grid;
  grid-template-columns: 1fr 400px;
  height: 100vh;
  gap: 0;
  background: var(--background-color);
}

/* Left Panel - Products */
.pos-left-panel {
  background: var(--surface-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border-color);
}

/* Header */
.pos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--surface-color);
}

.cashier-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cashier-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.cashier-details {
  display: flex;
  flex-direction: column;
}

.cashier-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

.cashier-role {
  font-size: 14px;
  color: var(--text-secondary);
}

.pos-actions {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-secondary);
}

.action-btn:hover {
  background: var(--background-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Section Titles */
.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

/* Category Section */
.category-section {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.category-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0;
  scroll-behavior: smooth;
}

.category-grid::-webkit-scrollbar {
  height: 6px;
}

.category-grid::-webkit-scrollbar-track {
  background: var(--background-color);
  border-radius: 3px;
}

.category-grid::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.category-grid::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.category-card {
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
  min-width: 120px;
  flex-shrink: 0;
  white-space: nowrap;
}

.category-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-card.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.category-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--background-color);
  color: var(--primary-color);
}

.category-card.active .category-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.category-name {
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  line-height: 48px;
}

/* Products Section */
.products-section {
  flex: 1;
  padding: 1.5rem 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.products-grid {
  display: block;
  overflow-y: auto;
  flex: 1;
  padding-right: 0.5rem;
}

.product-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-height: 180px;
}

.product-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.product-name {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--text-primary);
  line-height: 1.3;
}

.product-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-color);
}

.add-button {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
}

.add-button:hover {
  background: var(--primary-hover);
  transform: scale(1.05);
}

/* Right Panel - Cart */
.pos-right-panel {
  background: var(--surface-color);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Customer Section */
.customer-section {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.customer-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--background-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.customer-card:hover {
  background: #f1f5f9;
}

.customer-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.customer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.customer-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.customer-name {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.customer-change-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Barcode Section */
.barcode-section {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.barcode-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.barcode-icon {
  position: absolute;
  left: 7px;
  z-index: 1;
  width: 19px;
  height: auto;
  opacity: 0.5;
}

.barcode-input {
  width: 100%;
  height: 48px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0 1rem 0 3rem;
  font-size: 14px;
  background: var(--surface-color);
  transition: all 0.2s ease;
}

.barcode-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Cart Section */
.cart-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1.5rem;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cart-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.cart-count {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--background-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--background-color);
  border-radius: var(--radius-lg);
  transition: all 0.2s ease;
}

.cart-item:hover {
  background: #f1f5f9;
}

.item-image img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-quantity {
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--surface-color);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
}

.item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-color);
}

.item-remove {
  width: 32px;
  height: 32px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.item-remove:hover {
  background: var(--danger-color);
  border-color: var(--danger-color);
  color: white;
}

.empty-cart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-secondary);
}

.empty-cart i {
  font-size: 48px;
  color: var(--text-muted);
}

.empty-cart p {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.empty-cart span {
  font-size: 14px;
  color: var(--text-muted);
}

/* Payment Section */
.payment-section {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--surface-color);
}

.total-summary {
  background: var(--background-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 14px;
}

.total-row:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

.total-final {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 1rem;
  border-top: 2px solid var(--border-color) !important;
}
.modal {overflow:scroll}
.pay-button {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.pay-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pay-button:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.pay-amount {
  position: absolute;
  right: 1rem;
  font-weight: 700;
}

/* Payment Modal */
.payment-modal {
  border-radius: var(--radius-xl);
  border: none;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.payment-header {
  background: #363636;
  color: #fff;
  border: none;
  display: flex;
  padding:0px;
  justify-content: space-between;
  align-items: center;
}

.payment-header .modal-title i {color:#fff;margin-right:15px}
.payment-header .modal-title {
  padding: 8px 10px;
  color:#fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.payment-body {
  padding: 10px;
}

.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.payment-card {
  background: var(--background-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.summary-card {
  grid-column: 1 / -1;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.modern-select {
  width: 100%;
  height: 48px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0 1rem;
  font-size: 14px;
  background: var(--surface-color);
  transition: all 0.2s ease;
}

.modern-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.payment-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--surface-color);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 500;
}

.payment-method:hover {
  border-color: var(--primary-color);
}

.payment-method.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.total-line {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 1rem;
  border-top: 2px solid var(--border-color);
}

.payment-actions {
  display: flex;
  gap: 1rem;
}

.action-btn {
  flex: 1;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.action-btn.secondary {
  background: var(--background-color);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}

.action-btn.secondary:hover {
  background: var(--surface-color);
  border-color: var(--text-secondary);
}

.action-btn.primary {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .pos-container {
    grid-template-columns: 1fr 350px;
  }
  
  .category-card {
    min-width: 100px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

@media (max-width: 768px) {
  .pos-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }
  
  .pos-right-panel {
    height: 50vh;
    border-right: none;
    border-top: 1px solid var(--border-color);
  }
  
  .payment-grid {
    grid-template-columns: 1fr;
  }
  
  .payment-actions {
    flex-direction: column;
  }
}

/* Scrollbar Styling */
.products-grid::-webkit-scrollbar,
.cart-items::-webkit-scrollbar {
  width: 6px;
}

.products-grid::-webkit-scrollbar-track,
.cart-items::-webkit-scrollbar-track {
  background: var(--background-color);
  border-radius: 3px;
}

.products-grid::-webkit-scrollbar-thumb,
.cart-items::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.products-grid::-webkit-scrollbar-thumb:hover,
.cart-items::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

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

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.cart-item {
  animation: fadeIn 0.3s ease;
}

.product-card {
  animation: fadeIn 0.3s ease;
}

/* Focus States */
.category-card:focus,
.product-card:focus,
.pay-button:focus,
.payment-method:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border-color);
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}



/* Category Products Styles */
.category-products-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.category-title i {
  color: var(--primary-color);
  font-size: 24px;
}

.products-grid-container {
  padding: 0;
}

.product-card-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  margin-bottom:15px
}

.product-card-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: auto;
  height: 100%;
  transition: transform 0.3s ease;
}

.product-card-item:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height:36px
}

.product-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  flex-shrink: 0;
}

.add-to-cart-btn {
  color:#333;background:none;border:none;width: 100%;display: block;
}


.add-to-cart-btn i {
  font-size: 18px;
}

/* Responsive adjustments for product grid */
@media (max-width: 1200px) {
  .products-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .products-grid-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
  }
  
  .product-image-wrapper {
    height: 150px;
  }
  
  .product-info {
    padding: 1rem;
  }
  
  .product-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .add-to-cart-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .products-grid-container {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  
  .product-image-wrapper {
    height: 120px;
  }
  
  .product-title {
    font-size: 14px;
  }
  
  .product-price {
    font-size: 16px;
  }
  
  .add-to-cart-btn {
    padding: 0.5rem;
    font-size: 12px;
  }
  
  .add-to-cart-btn span {
    display: none;
  }
}

/* Loading state for products */
.products-grid-container.loading {
  opacity: 0.6;
  pointer-events: none;
}

.products-grid-container.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Empty state */
.products-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  color: var(--text-secondary);
}

.products-empty i {
  font-size: 64px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.products-empty h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.products-empty p {
  font-size: 14px;
  margin: 0;
  color: var(--text-muted);
}

/* Animation for product cards */
.product-card-item {
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for multiple products */
.product-card-item:nth-child(1) { animation-delay: 0.1s; }
.product-card-item:nth-child(2) { animation-delay: 0.2s; }
.product-card-item:nth-child(3) { animation-delay: 0.3s; }
.product-card-item:nth-child(4) { animation-delay: 0.4s; }
.product-card-item:nth-child(5) { animation-delay: 0.5s; }
.product-card-item:nth-child(6) { animation-delay: 0.6s; }

/* Payment Grid Layout */
body#module-fmarket-quickOrder .payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

body#module-fmarket-quickOrder .payment-card {
  background: var(--background-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  margin-bottom:15px;clear: both;
}

body#module-fmarket-quickOrder .summary-card {
  grid-column: 1 / -1;
}

body#module-fmarket-quickOrder .card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

body#module-fmarket-quickOrder .card-title i {
  color: var(--primary-color);
  font-size: 20px;
}

/* Select Styling */
body#module-fmarket-quickOrder .modern-select,
body#module-fmarket-quickOrder select.form-control {
  width: 100%;
  height: 48px;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0 1rem;
  font-size: 14px;
  background: var(--surface-color);
  transition: all 0.2s ease;
  color: var(--text-primary);
}

body#module-fmarket-quickOrder .modern-select:focus,
body#module-fmarket-quickOrder select.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

body#module-fmarket-quickOrder .payment-method {
  display:block;width:100%
}

body#module-fmarket-quickOrder .payment-method:hover {
  border-color: var(--primary-color);
  background: #f8fafc;
}

body#module-fmarket-quickOrder .payment-method.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

body#module-fmarket-quickOrder .payment-method i {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

/* Summary Details */
body#module-fmarket-quickOrder .summary-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body#module-fmarket-quickOrder .summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  padding: 0.5rem 0;
  color: var(--text-primary);
}

body#module-fmarket-quickOrder .summary-line:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

body#module-fmarket-quickOrder .total-line {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  padding-top: 1rem;
  border-top: 2px solid var(--border-color) !important;
  margin-top: 0.5rem;
}

/* Payment Actions */
body#module-fmarket-quickOrder .payment-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

body#module-fmarket-quickOrder .action-btn {
  flex: 1;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
}

body#module-fmarket-quickOrder .action-btn.secondary {
  background: var(--background-color);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}

body#module-fmarket-quickOrder .action-btn.secondary:hover {
  background: var(--surface-color);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

body#module-fmarket-quickOrder .action-btn.primary {
  background: linear-gradient(135deg, var(--success-color), #059669);
  color: white;
  border: none;
}

body#module-fmarket-quickOrder .action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

body#module-fmarket-quickOrder .action-btn i {
  font-size: 18px;
}


/* Fix button styling conflicts */
body#module-fmarket-quickOrder .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 14px;
}

body#module-fmarket-quickOrder .btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}


body#module-fmarket-quickOrder .modal-content .col-md-6,
body#module-fmarket-quickOrder .modal-content .col-md-12 {
  padding: 0;
}
.payment-methods > div {margin-bottom:15px}
.modal-dialog {width:auto}
.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.qty-btn {
  width: 40px;
  height: 40px;
  font-size: 20px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.qty-btn:hover {
  background: #e0e0e0;
}

.qty-input {
  width: 60px;
  height: 40px;
  text-align: center;
  margin: 0 5px;
  border: 1px solid #ddd;
  font-size: 16px;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.loginCenter {padding-top:50px;}
.loginCenter h2 {margin-bottom:15px}
.loginCenter .panel {padding-top:35px}
.panel {background: #fff;padding: 10px 10px;box-shadow: 0 6px 20px 0 rgba(17,14,35,.08);-moz-box-shadow: 0 6px 20px 0 rgba(17,14,35,.08);-webkit-box-shadow: 0 6px 20px 0 rgba(17,14,35,.08);border-radius: 5.71px;margin-bottom: 15px;}
.panel h6, .pageTitle {font-size:17px}
.panelHeader {margin-bottom:5.71px}
.login-button {margin-left:auto;margin-right:auto;padding:8px 45px;background:#333;color:#fff;border:none;border-radius:5.71px}
.text-right {text-align:right}
.loginCenter input {border-radius:5.71px}

.modal-dialog {width: 980px !important;padding: 0px !important;border-radius: 11px;}
.modal-dialog.modal-md {width: 640px !important;}
.productDiv {border: 1px solid #ddd;border-radius: 5.71px;margin-bottom:15px;padding:5px;overflow: hidden;}
.productDiv img {width:85%;height:auto}
.productDiv h5 {font-size:15px;color:#333;height:70px}
.productFooter {border-top:1px solid #ddd}