/* ======================================================
   DINEX SAAS - ONLINE STORE
   GLOBAL STYLES
   ====================================================== */

/* Reset y Variables */
:root {
  --primary: #667eea;
  --primary-dark: #5568d3;
  --secondary: #764ba2;
  --accent: #f093fb;
  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;
  
  --text-dark: #111827;
  --text-medium: #374151;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-lighter: #f3f4f6;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======================================================
   LAYOUT
   ====================================================== */
.store-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ======================================================
   HEADER / NAVBAR
   ====================================================== */
.store-header {
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.store-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
}

.store-brand-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  flex-shrink: 0;
}

.store-brand-logo img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.store-brand-info h1 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.store-brand-info p {
  font-size: 12px;
  color: var(--text-light);
  margin: 0;
}

.store-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-medium);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  background: transparent;
  border: none;
  cursor: pointer;
}

.store-nav-link:hover {
  background: var(--bg-lighter);
  color: var(--primary);
}

.store-nav-link.active {
  background: var(--info-light);
  color: var(--info);
}

.store-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.store-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.store-cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--danger);
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border: 2px solid white;
}

.store-cart-count.hidden {
  display: none;
}

.store-user-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-lighter);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.store-user-menu:hover {
  background: var(--border);
}

.store-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.store-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ======================================================
   HERO SECTION
   ====================================================== */
.store-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
  margin-bottom: 40px;
}

.store-hero h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.store-hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* ======================================================
   CATEGORIES
   ====================================================== */
.categories-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--primary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  color: var(--text-dark);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.category-card.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-color: var(--primary);
}

.category-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  background: var(--bg-lighter);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary);
  overflow: hidden;
}

.category-card.active .category-card-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.category-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.category-card-count {
  font-size: 12px;
  opacity: 0.7;
}

/* ======================================================
   PRODUCTS GRID
   ====================================================== */
.products-section {
  margin-bottom: 40px;
}

.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.products-search {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.products-search input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: var(--transition);
  background: var(--bg-white);
}

.products-search input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.products-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.products-sort {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.products-sort:focus {
  outline: none;
  border-color: var(--primary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.product-card-image {
  width: 100%;
  height: 200px;
  background: var(--bg-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-image .placeholder-icon {
  font-size: 64px;
  color: var(--text-lighter);
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--danger);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card-badge.out-of-stock {
  background: var(--text-light);
}

.product-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-category {
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.product-card-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-description {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.product-card-stock {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}

.product-card-stock.low {
  color: var(--warning);
}

.product-card-stock.out {
  color: var(--danger);
}

/* ======================================================
   PRODUCT DETAIL
   ====================================================== */
.product-detail {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.product-detail-image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-lighter);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-image .placeholder-icon {
  font-size: 120px;
  color: var(--text-lighter);
}

.product-detail-info h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.product-detail-category {
  display: inline-block;
  background: var(--info-light);
  color: var(--info);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.product-detail-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  margin: 20px 0;
}

.product-detail-description {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 24px;
}

.product-detail-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--success-light);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
}

.product-detail-stock.low {
  background: var(--warning-light);
  color: var(--warning);
}

.product-detail-stock.out {
  background: var(--danger-light);
  color: var(--danger);
}

.product-detail-quantity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.product-detail-quantity label {
  font-weight: 600;
  color: var(--text-medium);
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.quantity-control button {
  width: 40px;
  height: 40px;
  background: var(--bg-lighter);
  border: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-medium);
  transition: var(--transition);
}

.quantity-control button:hover {
  background: var(--primary);
  color: white;
}

.quantity-control input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: none;
  font-size: 16px;
  font-weight: 600;
}

.quantity-control input:focus {
  outline: none;
}

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--bg-lighter);
  color: var(--text-medium);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #15803d;
  transform: translateY(-2px);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-google {
  background: white;
  color: var(--text-dark);
  border: 2px solid var(--border);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
}

.btn-google:hover {
  background: var(--bg-lighter);
  border-color: var(--primary);
}

.btn-google img {
  width: 20px;
  height: 20px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-add-cart {
  width: 100%;
  padding: 14px;
  font-size: 15px;
}

/* ======================================================
   CART
   ====================================================== */
.cart-container {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty i {
  font-size: 80px;
  color: var(--text-lighter);
  margin-bottom: 20px;
}

.cart-empty h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.cart-empty p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.cart-items {
  margin-bottom: 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-lighter);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-image .placeholder-icon {
  font-size: 32px;
  color: var(--text-lighter);
}

.cart-item-info h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-info p {
  font-size: 13px;
  color: var(--text-light);
}

.cart-item-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  min-width: 80px;
  text-align: right;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.cart-item-remove:hover {
  background: var(--danger-light);
}

.cart-summary {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
}

.cart-summary-row.total {
  border-top: 2px solid var(--border);
  margin-top: 12px;
  padding-top: 16px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.cart-summary-row.total .amount {
  color: var(--primary);
}

/* ======================================================
   AUTH PAGES
   ====================================================== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.auth-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-xl);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 40px;
  overflow: hidden;
}

.auth-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-header h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-light);
  font-size: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-medium);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: var(--transition);
  background: var(--bg-white);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group .help-text {
  font-size: 12px;
  color: var(--text-light);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-light);
}

/* ======================================================
   ORDERS
   ====================================================== */
.orders-container {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.order-card {
  background: var(--bg-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: var(--text-dark);
  display: block;
}

.order-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.order-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.order-date {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.order-status {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-status.PEDIDO {
  background: var(--warning-light);
  color: var(--warning);
}

.order-status.CARGADO {
  background: var(--info-light);
  color: var(--info);
}

.order-status.ENTREGADO {
  background: var(--success-light);
  color: var(--success);
}

.order-status.CANCELADO {
  background: var(--danger-light);
  color: var(--danger);
}

.order-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.order-items-preview {
  font-size: 13px;
  color: var(--text-light);
}

.order-total {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

/* ======================================================
   ORDER DETAIL - TIMELINE
   ====================================================== */
.order-detail-container {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.order-timeline {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  position: relative;
}

.order-timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--border);
  z-index: 0;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-light);
  transition: var(--transition);
}

.timeline-step.active .timeline-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 0 0 6px rgba(102, 126, 234, 0.2);
}

.timeline-step.completed .timeline-icon {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.timeline-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 4px;
}

.timeline-step.active .timeline-label,
.timeline-step.completed .timeline-label {
  color: var(--text-dark);
}

.timeline-date {
  font-size: 11px;
  color: var(--text-lighter);
}

/* ======================================================
   CHECKOUT
   ====================================================== */
.checkout-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.checkout-section {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.checkout-section h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-section h3 i {
  color: var(--primary);
}

.payment-method-cod {
  background: linear-gradient(135deg, var(--success-light) 0%, #bbf7d0 100%);
  padding: 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--success);
  display: flex;
  align-items: center;
  gap: 16px;
}

.payment-method-cod i {
  font-size: 32px;
  color: var(--success);
}

.payment-method-cod h4 {
  font-size: 16px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 4px;
}

.payment-method-cod p {
  font-size: 13px;
  color: #15803d;
}

/* ======================================================
   ALERTS & NOTIFICATIONS
   ====================================================== */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
}

.alert i {
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.alert-info {
  background: var(--info-light);
  color: #1e40af;
  border-left: 4px solid var(--info);
}

.alert-success {
  background: var(--success-light);
  color: #166534;
  border-left: 4px solid var(--success);
}

.alert-warning {
  background: var(--warning-light);
  color: #92400e;
  border-left: 4px solid var(--warning);
}

.alert-danger {
  background: var(--danger-light);
  color: #991b1b;
  border-left: 4px solid var(--danger);
}

/* ======================================================
   LOADER
   ====================================================== */
.store-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.store-loader.hidden {
  display: none;
}

.store-loader-content {
  text-align: center;
}

.store-loader-content i {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 12px;
}

.store-loader-content p {
  color: var(--text-medium);
  font-weight: 600;
}

/* ======================================================
   TOAST
   ====================================================== */
.store-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  min-width: 280px;
  max-width: 400px;
  animation: slideInRight 0.3s ease-out;
  border-left: 4px solid;
}

.store-toast.success { border-left-color: var(--success); }
.store-toast.error { border-left-color: var(--danger); }
.store-toast.warning { border-left-color: var(--warning); }
.store-toast.info { border-left-color: var(--info); }

.store-toast i {
  font-size: 20px;
}

.store-toast.success i { color: var(--success); }
.store-toast.error i { color: var(--danger); }
.store-toast.warning i { color: var(--warning); }
.store-toast.info i { color: var(--info); }

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ======================================================
   COMPANY SELECTOR (index.html)
   ====================================================== */
.company-selector {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.company-selector-header {
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

.company-selector-header h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
}

.company-selector-header p {
  font-size: 18px;
  opacity: 0.95;
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  width: 100%;
}

.company-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
}

.company-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.company-card-logo {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  overflow: hidden;
}

.company-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.company-card p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.company-card-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.company-stat {
  text-align: center;
}

.company-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.company-stat-label {
  font-size: 11px;
  color: var(--text-light);
  text-transform: uppercase;
}

/* ======================================================
   EMPTY STATES
   ====================================================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state i {
  font-size: 80px;
  opacity: 0.3;
  margin-bottom: 20px;
}

.empty-state h3 {
  font-size: 22px;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.empty-state p {
  font-size: 14px;
  margin-bottom: 24px;
}

/* ======================================================
   UTILITIES
   ====================================================== */
.hidden {
  display: none !important;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ======================================================
   FOOTER
   ====================================================== */
.store-footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 32px 20px;
  text-align: center;
  margin-top: 60px;
}

.store-footer p {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 4px;
}

.store-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 768px) {
  .store-header-inner {
    flex-wrap: wrap;
  }
  
  .store-nav {
    width: 100%;
    justify-content: space-between;
  }
  
  .store-nav-link span {
    display: none;
  }
  
  .store-user-name {
    display: none;
  }
  
  .store-hero h2 {
    font-size: 26px;
  }
  
  .store-hero p {
    font-size: 15px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }
  
  .product-card-image {
    height: 140px;
  }
  
  .product-card-name {
    font-size: 14px;
  }
  
  .product-card-price {
    font-size: 16px;
  }
  
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .checkout-container {
    grid-template-columns: 1fr;
  }
  
  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 12px;
  }
  
  .cart-item-image {
    width: 60px;
    height: 60px;
  }
  
  .cart-item-price,
  .cart-item-quantity,
  .cart-item-remove {
    grid-column: 2;
  }
  
  .order-timeline {
    flex-direction: column;
    gap: 20px;
  }
  
  .order-timeline::before {
    top: 0;
    bottom: 0;
    left: 20px;
    right: auto;
    width: 3px;
    height: auto;
  }
  
  .timeline-step {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 16px;
  }
  
  .timeline-icon {
    margin: 0;
    flex-shrink: 0;
  }
  
  .company-selector-header h1 {
    font-size: 28px;
  }
  
  .auth-card {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}