:root {
  --primary: #FF6B35;
  --primary-dark: #E85A2A;
  --primary-light: #FF8556;
  --secondary: #2E86AB;
  --secondary-light: #5BA5C8;
  --secondary-dark: #1F5F7A;
  --accent: #FFB830;
  --accent-light: #FFC857;
  --text-primary: #1A1A2E;
  --text-secondary: #555578;
  --text-muted: #8E8EA9;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #F1F3F5;
  --bg-dark: #1A1A2E;
  --success: #51CF66;
  --success-light: #69DB7C;
  --success-dark: #37B24D;
  --warning: #FFC078;
  --warning-light: #FFD8A8;
  --warning-dark: #FFA94D;
  --danger: #FF6B6B;
  --danger-light: #FF8787;
  --danger-dark: #FA5252;
  --info: #4DABF7;
  --info-light: #74C0FC;
  --info-dark: #339AF0;
  --border: #E9ECEF;
  --border-dark: #CED4DA;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sidebar-width: 280px;
  --header-height: 70px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-fluid {
  width: 100%;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}
.grid.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.grid.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.grid.grid-5 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.flex {
  display: flex;
  gap: 1rem;
}
.flex.flex-center {
  align-items: center;
  justify-content: center;
}
.flex.flex-between {
  align-items: center;
  justify-content: space-between;
}
.flex.flex-start {
  align-items: flex-start;
}
.flex.flex-end {
  align-items: flex-end;
}
.flex.flex-wrap {
  flex-wrap: wrap;
}
.flex.flex-column {
  flex-direction: column;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.btn.btn-primary {
  background: var(--primary);
  color: white;
}
.btn.btn-primary:hover {
  background: var(--primary-dark);
}
.btn.btn-secondary {
  background: var(--secondary);
  color: white;
}
.btn.btn-secondary:hover {
  background: var(--secondary-light);
}
.btn.btn-success {
  background: var(--success);
  color: white;
}
.btn.btn-success:hover {
  background: var(--success-dark);
}
.btn.btn-danger {
  background: var(--danger);
  color: white;
}
.btn.btn-danger:hover {
  background: var(--danger-dark);
}
.btn.btn-warning {
  background: var(--warning);
  color: white;
}
.btn.btn-warning:hover {
  background: var(--warning-dark);
}
.btn.btn-info {
  background: var(--info);
  color: white;
}
.btn.btn-info:hover {
  background: var(--info-dark);
}
.btn.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn.btn-outline:hover {
  background: var(--primary);
  color: white;
}
.btn.btn-outline-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}
.btn.btn-outline-secondary:hover {
  background: var(--secondary);
  color: white;
}
.btn.btn-outline-white {
  background: transparent;
  color: white;
  border: 2px solid white;
}
.btn.btn-outline-white:hover {
  background: var(--primary);
  color: white;
  border: 2px solid var(--primary);
}
.btn.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn.btn-ghost:hover {
  background: var(--bg-secondary);
}
.btn.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}
.btn.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}
.btn.btn-xs {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}
.btn.btn-block {
  width: 100%;
}
.btn.btn-icon {
  padding: 0.75rem;
  border-radius: 50%;
}
.btn.btn-icon.btn-sm {
  padding: 0.5rem;
}
.btn.btn-icon.btn-lg {
  padding: 1rem;
}

.btn-group {
  display: inline-flex;
}
.btn-group .btn {
  border-radius: 0;
}
.btn-group .btn:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.btn-group .btn:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.btn-group .btn:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
}
.card.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card .card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.card .card-header h3, .card .card-header h4, .card .card-header h5 {
  margin: 0;
  font-size: 1.125rem;
}
.card .card-header.card-header-primary {
  background: var(--primary);
  color: white;
  border-bottom: none;
}
.card .card-header.card-header-primary h3, .card .card-header.card-header-primary h4, .card .card-header.card-header-primary h5 {
  color: white;
}
.card .card-body {
  padding: 1.5rem;
}
.card .card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.card .card-footer.card-footer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}
.card.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card.product-card .product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--bg-tertiary);
}
.card.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.card.product-card .product-image:hover img {
  transform: scale(1.05);
}
.card.product-card .product-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.375rem 0.75rem;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card.product-card .product-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card.product-card .product-category {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.card.product-card .product-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.card.product-card .product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.card.product-card .product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}
.card.product-card .product-actions {
  display: flex;
  gap: 0.5rem;
}

.stat-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.stat-card .stat-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.stat-card .stat-icon.stat-icon-primary {
  background: rgba(255, 107, 53, 0.1);
  color: var(--primary);
}
.stat-card .stat-icon.stat-icon-success {
  background: rgba(81, 207, 102, 0.1);
  color: var(--success);
}
.stat-card .stat-icon.stat-icon-info {
  background: rgba(77, 171, 247, 0.1);
  color: var(--info);
}
.stat-card .stat-icon.stat-icon-warning {
  background: rgba(255, 192, 120, 0.1);
  color: var(--warning);
}
.stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-card .stat-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.stat-card .stat-change.stat-change-up {
  color: var(--success);
}
.stat-card .stat-change.stat-change-down {
  color: var(--danger);
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9375rem;
}
label .required {
  color: var(--danger);
  margin-left: 0.25rem;
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=tel],
input[type=url],
input[type=search],
input[type=date],
input[type=time],
input[type=datetime-local],
textarea,
select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  transition: var(--transition);
  font-family: inherit;
  color: var(--text-primary);
}
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=tel]:focus,
input[type=url]:focus,
input[type=search]:focus,
input[type=date]:focus,
input[type=time]:focus,
input[type=datetime-local]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
input[type=text]:disabled,
input[type=email]:disabled,
input[type=password]:disabled,
input[type=number]:disabled,
input[type=tel]:disabled,
input[type=url]:disabled,
input[type=search]:disabled,
input[type=date]:disabled,
input[type=time]:disabled,
input[type=datetime-local]:disabled,
textarea:disabled,
select:disabled {
  background: var(--bg-tertiary);
  cursor: not-allowed;
  opacity: 0.6;
}
input[type=text]::placeholder,
input[type=email]::placeholder,
input[type=password]::placeholder,
input[type=number]::placeholder,
input[type=tel]::placeholder,
input[type=url]::placeholder,
input[type=search]::placeholder,
input[type=date]::placeholder,
input[type=time]::placeholder,
input[type=datetime-local]::placeholder,
textarea::placeholder,
select::placeholder {
  color: var(--text-muted);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238E8EA9' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

.input-with-icon {
  position: relative;
}
.input-with-icon i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}
.input-with-icon input {
  padding-left: 2.75rem;
}
.input-with-icon.icon-right i {
  left: auto;
  right: 1rem;
}
.input-with-icon.icon-right input {
  padding-left: 1rem;
  padding-right: 2.75rem;
}

.input-group {
  display: flex;
}
.input-group input {
  border-radius: 0;
  flex: 1;
}
.input-group input:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}
.input-group input:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.input-group .input-group-text {
  display: flex;
  align-items: center;
  padding: 0.875rem 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}
.input-group .input-group-text:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border-right: none;
}
.input-group .input-group-text:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: none;
}

.form-help {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.form-error {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--danger);
}

.checkbox,
.radio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0.75rem;
}
.checkbox input,
.radio input {
  position: absolute;
  opacity: 0;
}
.checkbox input:checked + .checkbox-custom,
.radio input:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox input:checked + .checkbox-custom::after,
.radio input:checked + .checkbox-custom::after {
  opacity: 1;
  transform: scale(1);
}
.checkbox input:checked + .radio-custom,
.radio input:checked + .radio-custom {
  border-color: var(--primary);
}
.checkbox input:checked + .radio-custom::after,
.radio input:checked + .radio-custom::after {
  opacity: 1;
  transform: scale(1);
}
.checkbox input:focus + .checkbox-custom, .checkbox input:focus + .radio-custom,
.radio input:focus + .checkbox-custom,
.radio input:focus + .radio-custom {
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}
.checkbox .checkbox-custom,
.radio .checkbox-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  background: var(--bg-primary);
}
.checkbox .checkbox-custom::after,
.radio .checkbox-custom::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: white;
  font-size: 0.75rem;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}
.checkbox .radio-custom,
.radio .radio-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  background: var(--bg-primary);
}
.checkbox .radio-custom::after,
.radio .radio-custom::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
}
.checkbox .checkbox-label,
.checkbox .radio-label,
.radio .checkbox-label,
.radio .radio-label {
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  line-height: 1;
  white-space: nowrap;
}
.badge.badge-primary {
  background: var(--primary);
  color: white;
}
.badge.badge-secondary {
  background: var(--secondary);
  color: white;
}
.badge.badge-success {
  background: var(--success);
  color: white;
}
.badge.badge-danger {
  background: var(--danger);
  color: white;
}
.badge.badge-warning {
  background: var(--warning);
  color: white;
}
.badge.badge-info {
  background: var(--info);
  color: white;
}
.badge.badge-light {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.badge.badge-outline {
  background: transparent;
  border: 2px solid currentColor;
}
.badge.badge-outline.badge-primary {
  color: var(--primary);
}
.badge.badge-outline.badge-secondary {
  color: var(--secondary);
}
.badge.badge-outline.badge-success {
  color: var(--success);
}
.badge.badge-outline.badge-danger {
  color: var(--danger);
}
.badge.badge-outline.badge-warning {
  color: var(--warning);
}
.badge.badge-outline.badge-info {
  color: var(--info);
}
.badge.badge-pill {
  border-radius: 50px;
}
.badge.badge-lg {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}
.badge.badge-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}
.breadcrumb .breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.breadcrumb .breadcrumb-item a {
  color: var(--text-secondary);
  transition: var(--transition);
}
.breadcrumb .breadcrumb-item a:hover {
  color: var(--primary);
}
.breadcrumb .breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 600;
}
.breadcrumb .breadcrumb-item:not(:last-child)::after {
  content: "/";
  color: var(--text-muted);
  margin-left: 0.5rem;
}
.breadcrumb .breadcrumb-item i {
  font-size: 0.875rem;
}

.tabs {
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.tabs .tab-list {
  display: flex;
  gap: 1rem;
  list-style: none;
  flex-wrap: wrap;
}
.tabs .tab-item {
  padding: 1rem 1.5rem;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  position: relative;
}
.tabs .tab-item:hover {
  color: var(--primary);
}
.tabs .tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-content .tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-content .tab-pane.active {
  display: block;
}

.accordion .accordion-item {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}
.accordion .accordion-item:last-child {
  margin-bottom: 0;
}
.accordion .accordion-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}
.accordion .accordion-header:hover {
  background: var(--bg-secondary);
}
.accordion .accordion-header h3, .accordion .accordion-header h4, .accordion .accordion-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.accordion .accordion-header i {
  transition: var(--transition);
  color: var(--text-muted);
}
.accordion .accordion-header.active {
  background: var(--bg-secondary);
}
.accordion .accordion-header.active i {
  transform: rotate(180deg);
}
.accordion .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion .accordion-content.active {
  max-height: 1000px;
}
.accordion .accordion-body {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}
.modal.active {
  display: flex;
}
.modal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}
.modal .modal-container {
  position: relative;
  margin: auto;
  z-index: 10000;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
.modal .modal-content {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 600px;
}
.modal .modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal .modal-header h3, .modal .modal-header h4 {
  margin: 0;
  font-size: 1.25rem;
}
.modal .modal-header .modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
  transition: var(--transition);
}
.modal .modal-header .modal-close:hover {
  color: var(--danger);
}
.modal .modal-body {
  padding: 2rem;
}
.modal .modal-footer {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}
.modal.modal-sm .modal-content {
  max-width: 400px;
}
.modal.modal-lg .modal-content {
  max-width: 900px;
}
.modal.modal-xl .modal-content {
  max-width: 1200px;
}

.toast-container {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}

.toast {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-left: 4px solid var(--primary);
  animation: slideInRight 0.3s ease;
}
.toast.toast-success {
  border-left-color: var(--success);
}
.toast.toast-success .toast-icon {
  color: var(--success);
}
.toast.toast-danger {
  border-left-color: var(--danger);
}
.toast.toast-danger .toast-icon {
  color: var(--danger);
}
.toast.toast-warning {
  border-left-color: var(--warning);
}
.toast.toast-warning .toast-icon {
  color: var(--warning);
}
.toast.toast-info {
  border-left-color: var(--info);
}
.toast.toast-info .toast-icon {
  color: var(--info);
}
.toast .toast-icon {
  font-size: 1.5rem;
  color: var(--primary);
}
.toast .toast-content {
  flex: 1;
}
.toast .toast-content .toast-title {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.toast .toast-content .toast-message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}
.toast .toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: var(--transition);
}
.toast .toast-close:hover {
  color: var(--danger);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}
table thead {
  background: var(--bg-secondary);
}
table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
}
table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
table tbody tr:hover {
  background: var(--bg-secondary);
}
table tbody tr:last-child {
  border-bottom: none;
}
table tbody td {
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
}
table tbody td.table-actions {
  display: flex;
  gap: 0.5rem;
}
table.table-striped tbody tr:nth-child(even) {
  background: var(--bg-secondary);
}
table.table-bordered td, table.table-bordered th {
  border: 1px solid var(--border);
}

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.pagination .page-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.pagination .page-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination .page-item.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.pagination .page-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination .page-item.disabled:hover {
  border-color: var(--border);
  color: var(--text-secondary);
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.alert .alert-icon {
  font-size: 1.25rem;
  margin-top: 0.125rem;
}
.alert .alert-content {
  flex: 1;
}
.alert .alert-content .alert-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.alert .alert-content p {
  margin: 0;
  font-size: 0.9375rem;
}
.alert .alert-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: inherit;
  opacity: 0.6;
  transition: var(--transition);
}
.alert .alert-close:hover {
  opacity: 1;
}
.alert.alert-primary {
  background: rgba(255, 107, 53, 0.1);
  border-left-color: var(--primary);
  color: var(--primary-dark);
}
.alert.alert-success {
  background: rgba(81, 207, 102, 0.1);
  border-left-color: var(--success);
  color: var(--success-dark);
}
.alert.alert-danger {
  background: rgba(255, 107, 107, 0.1);
  border-left-color: var(--danger);
  color: var(--danger-dark);
}
.alert.alert-warning {
  background: rgba(255, 192, 120, 0.1);
  border-left-color: var(--warning);
  color: var(--warning-dark);
}
.alert.alert-info {
  background: rgba(77, 171, 247, 0.1);
  border-left-color: var(--info);
  color: var(--info-dark);
}

.main-header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.login-header {
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.login-header .navbar {
  background-color: var(--primary);
}
.login-header .nav-link {
  color: white;
}

.navbar {
  padding: 1rem 0;
}

.navbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.navbar-brand .logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}
.navbar-brand .logo img {
  height: 38px;
}

.navbar-search {
  flex: 1;
  max-width: 600px;
}

.search-form {
  position: relative;
  display: flex;
}

.search-form input {
  flex: 1;
  padding: 0.75rem 3rem 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}

.search-form button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 0 1.25rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  cursor: pointer;
}

.navbar-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  line-height: 1.25rem;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link i {
  font-size: 1.25rem;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.125rem 0.375rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

.categories-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.categories-menu {
  display: flex;
  gap: 1.5rem;
  padding: 0.75rem 0;
  justify-content: space-between;
  overflow-x: auto;
}

.category-link {
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.category-link:hover {
  color: var(--primary);
}

.main-footer {
  background: var(--text-primary);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.login-footer {
  background: var(--text-primary);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3, .footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.payment-methods {
  display: flex;
  gap: 1rem;
  font-size: 2rem;
  opacity: 0.7;
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .navbar-content {
    gap: 1rem;
  }
  .navbar-search {
    display: none;
  }
  .navbar-menu {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.text-warning {
  color: var(--warning);
}

.text-info {
  color: var(--info);
}

.bg-primary {
  background: var(--primary);
}

.bg-secondary {
  background: var(--bg-secondary);
}

.bg-tertiary {
  background: var(--bg-tertiary);
}

.bg-success {
  background: var(--success);
}

.bg-danger {
  background: var(--danger);
}

.bg-warning {
  background: var(--warning);
}

.bg-info {
  background: var(--info);
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.py-1 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-2 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-3 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-4 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.px-1 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-2 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-3 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-4 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.px-5 {
  padding-left: 3rem;
  padding-right: 3rem;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.rounded {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: 50%;
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.product-detail {
  padding: 3rem 0;
}
.product-detail .product-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.product-gallery {
  position: sticky;
  top: 2rem;
}
.product-gallery .main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-tertiary);
  margin-bottom: 1rem;
}
.product-gallery .main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery .thumbnail-list {
  display: flex;
  gap: 1rem;
}
.product-gallery .thumbnail-list .thumbnail {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.product-gallery .thumbnail-list .thumbnail:hover, .product-gallery .thumbnail-list .thumbnail.active {
  border-color: var(--primary);
}
.product-gallery .thumbnail-list .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info .product-code {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.product-info .product-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}
.product-info .product-category {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}
.product-info .product-price-section {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.product-info .product-price-section .price-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.product-info .product-price-section .current-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.product-info .product-price-section .original-price {
  font-size: 1.25rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 1rem;
}
.product-info .product-price-section .discount-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.product-info .product-options {
  margin-bottom: 2rem;
}
.product-info .product-options .option-group {
  margin-bottom: 1.5rem;
}
.product-info .product-options .option-group .option-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.product-info .product-options .option-group .color-options {
  display: flex;
  gap: 0.75rem;
}
.product-info .product-options .option-group .color-options .color-option {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}
.product-info .product-options .option-group .color-options .color-option:hover, .product-info .product-options .option-group .color-options .color-option.active {
  border-color: var(--primary);
  transform: scale(1.1);
}
.product-info .product-options .option-group .size-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.product-info .product-options .option-group .size-options .size-option {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 600;
}
.product-info .product-options .option-group .size-options .size-option:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.product-info .product-options .option-group .size-options .size-option.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.product-info .product-options .quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.product-info .product-options .quantity-selector .quantity-controls {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.product-info .product-options .quantity-selector .quantity-controls button {
  width: 45px;
  height: 45px;
  border: none;
  background: var(--bg-secondary);
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  transition: var(--transition);
}
.product-info .product-options .quantity-selector .quantity-controls button:hover {
  background: var(--primary);
  color: white;
}
.product-info .product-options .quantity-selector .quantity-controls input {
  width: 60px;
  text-align: center;
  border: none;
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
  font-weight: 600;
  padding: 0;
}
.product-info .product-options .quantity-selector .quantity-controls input:focus {
  box-shadow: none;
  border-color: var(--border);
}
.product-info .product-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}
.product-info .product-actions .btn {
  flex: 1;
}
.product-info .product-meta {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.product-info .product-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
}
.product-info .product-meta .meta-item .meta-icon {
  color: var(--primary);
  font-size: 1.25rem;
}
.product-info .product-meta .meta-item .meta-label {
  font-weight: 600;
  color: var(--text-primary);
}
.product-info .product-meta .meta-item .meta-value {
  color: var(--text-secondary);
}

.product-tabs {
  margin-bottom: 4rem;
}
.product-tabs .tab-nav {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.product-tabs .tab-nav .tab-button {
  padding: 1rem 2rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.product-tabs .tab-nav .tab-button:hover {
  color: var(--primary);
}
.product-tabs .tab-nav .tab-button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.product-tabs .tab-content {
  display: none;
}
.product-tabs .tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}
.product-tabs .tab-content .description {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.related-products .section-title {
  text-align: left;
  margin-bottom: 2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 992px) {
  .product-detail .product-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product-gallery {
    position: static;
  }
}
@media (max-width: 768px) {
  .product-info .product-name {
    font-size: 1.5rem;
  }
  .product-info .product-price-section .current-price {
    font-size: 2rem;
  }
  .product-info .product-actions {
    flex-direction: column;
  }
  .product-tabs .tab-nav {
    overflow-x: auto;
  }
  .product-tabs .tab-nav .tab-button {
    white-space: nowrap;
  }
}

/*# sourceMappingURL=product.css.map */
