:root {
  --primary-green: #0a4d2a;
  --dark-green: #063318;
  --light-green: #0d6b3a;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #9a7b1c;
  --cream: #faf8f2;
  --text-dark: #1a1a1a;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --card-bg: #ffffff;
  --input-bg: #f8f9fa;
  --border-color: #e5e7eb;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--cream);
  min-height: 100vh;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--input-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-dark);
}

/* PIX Section */
.pix-section {
  margin-top: 20px;
  padding: 24px;
  background: linear-gradient(
    135deg,
    rgba(201, 162, 39, 0.05),
    rgba(201, 162, 39, 0.1)
  );
  border-radius: 12px;
  border: 2px dashed var(--gold);
  text-align: center;
}

.pix-qr-code {
  width: 200px;
  height: 200px;
  background: #fff;
  margin: 0 auto 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pix-info {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.pix-code {
  background: var(--input-bg);
  padding: 12px 16px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.8rem;
  word-break: break-all;
  margin-bottom: 12px;
}

.btn-copy-pix {
  padding: 12px 24px;
  background: var(--primary-green);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-copy-pix:hover {
  background: var(--dark-green);
}

/* Navbar */
.navbar-custom {
  background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.navbar-brand-custom {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.navbar-logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  transition: transform 0.3s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-brand-text {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}

.navbar-brand-text span {
  color: var(--gold-light);
  font-weight: 400;
  font-size: 0.7rem;
  display: block;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.nav-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.nav-icon-btn .badge-custom {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: var(--dark-green);
  font-size: 0.65rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badgePop 0.3s ease;
}

@keyframes badgePop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.3);
  }
  100% {
    transform: scale(1);
  }
}

.user-dropdown {
  margin-left: 8px;
}

input[readonly] {
  background-color: #f8f9fa;
  color: #6c757d;
  border-color: #ddd;
  cursor: not-allowed;
}

input[readonly]:focus {
  outline: none;
  box-shadow: none;
}

.user-dropdown .dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 25px;
  padding: 6px 16px 6px 6px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-dropdown .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.user-dropdown .dropdown-toggle::after {
  display: none;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--dark-green);
}

.user-name {
  font-weight: 500;
  font-size: 0.9rem;
}

.dropdown-menu-custom {
  background: var(--card-bg);
  border: none;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 220px;
  margin-top: 8px;
}

.dropdown-item-custom {
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.dropdown-item-custom:hover {
  background: var(--input-bg);
  color: var(--primary-green);
}

.dropdown-item-custom i {
  width: 20px;
  color: var(--gold);
}

.dropdown-item-custom.danger {
  color: var(--danger);
}

.dropdown-item-custom.danger i {
  color: var(--danger);
}

.dropdown-divider-custom {
  margin: 8px 0;
  border-top-color: var(--border-color);
}

/* Main content */
.main-content {
  padding-top: 60px;
  flex: 1;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 10% 20%,
      rgba(201, 162, 39, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(201, 162, 39, 0.1) 0%,
      transparent 40%
    );
}

.header-content {
  position: relative;
  z-index: 1;
}

.header-title {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.header-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.header-stats {
  display: flex;
  gap: 24px;
  margin-top: 24px;
}

.stat-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 16px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Products section */
.section-container {
  padding: 40px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  color: var(--gold);
}

/* Filters */
.filters-wrapper {
  width: 100%;
  margin-bottom: 24px;
}

.filters-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #fff;
}

/* Search */
.search-box {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
}

.search-box input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--danger);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.product-badge.new {
  background: var(--success);
}

.product-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  /* background: linear-gradient(135deg, var(--input-bg), #e5e7eb); */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 3rem;
  flex-shrink: 0;
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category {
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}

.product-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.product-price {
  display: flex;
  flex-direction: column;
}

.price-original {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-current {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-green);
}

.product-image img {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.product-image img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.product-name {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.price-discount {
  background: var(--gold-light);
  color: var(--dark-green);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Quantity selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.quantity-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quantity-controls {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--primary-green);
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--primary-green);
  color: #fff;
}

.qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.qty-value {
  width: 36px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-add-cart {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.4);
}

.btn-details {
  width: 44px;
  height: 44px;
  background: var(--input-bg);
  border: 2px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-details:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: #fff;
}

/* Cart sidebar */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: var(--card-bg);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  padding: 24px;
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-header h3 .badge-custom {
  background: var(--gold);
  color: var(--dark-green);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--input-bg);
  border-radius: 12px;
  margin-bottom: 12px;
  position: relative;
  animation: slideIn 0.3s ease;
}

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

.cart-item-image {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--primary-green);
  font-weight: 600;
  margin-bottom: 10px;
}

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

.cart-qty-controls {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
}

.cart-qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--primary-green);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.cart-qty-btn:hover {
  background: var(--primary-green);
  color: #fff;
}

.cart-qty-value {
  width: 28px;
  text-align: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.cart-item-remove {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty i {
  font-size: 4rem;
  color: var(--border-color);
  margin-bottom: 16px;
}

.cart-empty h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
}

.cart-summary {
  margin-bottom: 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cart-summary-row.total {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  margin-top: 12px;
}

.cart-summary-row.total .total-value {
  color: var(--primary-green);
}

.cart-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-checkout {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(10, 77, 42, 0.3);
}

.btn-continue {
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-continue:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

/* Modals */
.modal-custom .modal-content {
  border-radius: 20px;
  border: none;
  overflow: hidden;
}

.modal-custom .modal-header {
  background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
  border: none;
  padding: 20px 24px;
}

.modal-custom .modal-title {
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
}

.modal-custom .close {
  color: var(--gold-light);
  opacity: 1;
  text-shadow: none;
  font-size: 1.5rem;
}

.modal-custom .close:hover {
  color: #fff;
}

.modal-custom .modal-body {
  padding: 24px;
}

.form-group-modal {
  margin-bottom: 20px;
}

.form-group-modal label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: block;
}

.form-control-custom {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
}

.form-control-custom:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.1);
}

.btn-modal-save {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-modal-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(201, 162, 39, 0.4);
}

/* Product Detail Modal */
.product-detail-image {
  width: 100%;
  height: auto;
  /* background: linear-gradient(135deg, var(--input-bg), #e5e7eb); */
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 5rem;
  margin-bottom: 20px;
}

.product-detail-category {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-dark);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.product-detail-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.product-detail-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-detail-benefits {
  background: var(--input-bg);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.product-detail-benefits h6 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.product-detail-benefits ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-detail-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-detail-benefits li i {
  color: var(--success);
  margin-top: 2px;
}

.product-detail-price-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 20px;
}

.product-detail-price-box .price-original {
  font-size: 1rem;
}

.product-detail-price-box .price-current {
  font-size: 1.8rem;
}

.product-detail-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.product-detail-actions .quantity-selector {
  margin-bottom: 0;
}

.product-detail-actions .btn-add-cart {
  flex: 1;
  padding: 16px;
}

/* Orders section */
.orders-table {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.orders-table table {
  margin-bottom: 0;
}

.orders-table thead {
  background: var(--input-bg);
}

.orders-table th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 16px 20px;
  border: none;
}

.orders-table td {
  padding: 20px;
  vertical-align: middle;
  border-color: var(--border-color);
}

.order-id {
  font-weight: 600;
  color: var(--primary-green);
}

.order-status {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.order-status.delivered {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.order-status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.order-status.processing {
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-dark);
}

.order-status.status-1 {
  background-color: #999999;
  color: var(--cream);
}

.order-status.status-2 {
  background-color: #999999;
  color: var(--cream);
}

.order-status.status-3 {
  background-color: #ff5722;
  color: var(--cream);
}

.order-status.status-4 {
  background-color: #00bcd4;
  color: var(--cream);
}

.order-status.status-5 {
  background-color: #673ab7;
  color: var(--cream);
}

.order-status.status-6 {
  background-color: #795548;
  color: var(--cream);
}

.order-status.status-7 {
  background-color: #f44336;
  color: var(--cream);
}

.btn-view-order {
  padding: 8px 16px;
  background: var(--input-bg);
  border: none;
  border-radius: 8px;
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-view-order:hover {
  background: var(--primary-green);
  color: #fff;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
  color: #fff;
  padding: 60px 0 0;
  margin-top: auto;
}

.footer-top {
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--gold);
}

.footer-brand-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.footer-brand-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--dark-green);
  transform: translateY(-3px);
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--gold-light);
  padding-left: 5px;
}

.footer-links a i {
  font-size: 0.7rem;
  color: var(--gold);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-contact-item i {
  color: var(--gold);
  font-size: 1rem;
  margin-top: 2px;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal a:hover {
  color: var(--gold-light);
}

/* Toast */
.toast-custom {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-green);
  color: #fff;
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(150%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.toast-custom.show {
  transform: translateX(0);
}

.toast-custom.success {
  background: var(--primary-green);
}

.toast-custom.error {
  background: var(--danger);
}

/* Responsive */
@media (max-width: 991px) {
  .header-stats {
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 1 1 calc(50% - 12px);
  }

  .footer-title {
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .navbar-brand-text span {
    display: none;
  }

  .user-name {
    display: none;
  }

  .page-header {
    padding: 30px 0;
  }

  .header-title {
    font-size: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .cart-sidebar {
    max-width: 100%;
  }

  .orders-table {
    overflow-x: auto;
  }

  .filters-container {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    margin: 0 -16px;
    padding: 0 16px 8px;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .footer-top {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 24px;
  }

  .footer-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .footer-links a:hover {
    padding-left: 0;
  }

  .footer-contact-item {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nav-icon-btn {
    width: 38px;
    height: 38px;
  }

  .stat-item {
    flex: 1 1 100%;
  }

  .toast-custom {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .product-detail-actions {
    flex-direction: column;
  }

  .product-detail-actions .quantity-selector {
    width: 100%;
    justify-content: center;
  }

  .footer-legal {
    flex-direction: column;
    gap: 8px;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease both;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
