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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
  background-color: #FFFFFF;
  min-height: 100vh;
}

a {
  color: #4F46E5;
  text-decoration: none;
  transition: color 150ms ease;
}
a:hover {
  color: #4338CA;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: #111827;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  border-radius: 6px;
  transition: all 200ms ease;
  white-space: nowrap;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #4F46E5;
  color: white;
}
.btn-primary:hover:not(:disabled) {
  background-color: #4338CA;
}

.btn-secondary {
  background-color: #F3F4F6;
  color: #111827;
}
.btn-secondary:hover:not(:disabled) {
  background-color: #E5E7EB;
}

.btn-danger {
  background-color: #EF4444;
  color: white;
}
.btn-danger:hover:not(:disabled) {
  background-color: rgb(234.9802955665, 21.0197044335, 21.0197044335);
}

.btn-success {
  background-color: #10B981;
  color: white;
}
.btn-success:hover:not(:disabled) {
  background-color: rgb(11.9402985075, 138.0597014925, 96.2686567164);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #E5E7EB;
  color: #111827;
}
.btn-outline:hover:not(:disabled) {
  border-color: #4F46E5;
  color: #4F46E5;
}

.btn-sm {
  padding: 0.25rem 1rem;
  font-size: 0.75rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.form-input::placeholder, .form-textarea::placeholder, .form-select::placeholder {
  color: #9CA3AF;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 3rem;
}

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

.card {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid #E5E7EB;
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1.5rem;
  border-top: 1px solid #E5E7EB;
  background-color: #F9FAFB;
}

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

.table {
  width: 100%;
}
.table th,
.table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}
.table th {
  font-weight: 600;
  font-size: 0.875rem;
  color: #6B7280;
  background-color: #F9FAFB;
}
.table tbody tr {
  transition: background-color 150ms ease;
}
.table tbody tr:hover {
  background-color: #F9FAFB;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
}

.badge-primary {
  background-color: rgba(79, 70, 229, 0.1);
  color: #4F46E5;
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.badge-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: #EF4444;
}

.badge-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: #F59E0B;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: rgb(11.9402985075, 138.0597014925, 96.2686567164);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: rgb(234.9802955665, 21.0197044335, 21.0197044335);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: rgb(196.9291338583, 126.7125984252, 8.0708661417);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 200ms ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background-color: #FFFFFF;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-20px);
  transition: transform 200ms ease;
}
.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid #E5E7EB;
}

.modal-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #6B7280;
  transition: all 150ms ease;
}
.modal-close:hover {
  background-color: #F3F4F6;
  color: #111827;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem;
  border-top: 1px solid #E5E7EB;
}

.product-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  transition: all 200ms ease;
}
.product-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background-color: #F3F4F6;
}

.product-info {
  padding: 1rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #111827;
}

.product-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #4F46E5;
}

.product-actions {
  padding: 0 1rem 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid #E5E7EB;
}
.cart-item:last-child {
  border-bottom: none;
}

.cart-item-image {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
  background-color: #F3F4F6;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.875rem;
  color: #6B7280;
}

.stat-label {
  font-size: 0.875rem;
  color: #6B7280;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: #9CA3AF;
}

.empty-state-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.empty-state-text {
  color: #6B7280;
  margin-bottom: 1.5rem;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
}

.header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}
.logo span {
  color: #4F46E5;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6B7280;
  transition: color 150ms ease;
}
.nav-link:hover, .nav-link.active {
  color: #4F46E5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero {
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #6B7280;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.features {
  padding: 4rem 0;
  background-color: #F9FAFB;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-card {
  background-color: #FFFFFF;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: #4F46E5;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-text {
  font-size: 0.875rem;
  color: #6B7280;
}

.pricing {
  padding: 4rem 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background-color: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 200ms ease;
}
.pricing-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.pricing-card.featured {
  border-color: #4F46E5;
  position: relative;
}
.pricing-card.featured::before {
  content: "Popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #4F46E5;
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.pricing-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}
.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: #6B7280;
}

.pricing-features {
  margin: 2rem 0;
  text-align: left;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: #6B7280;
}
.pricing-feature svg {
  width: 16px;
  height: 16px;
  color: #10B981;
  flex-shrink: 0;
}

.footer {
  background-color: #F9FAFB;
  border-top: 1px solid #E5E7EB;
  padding: 3rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-text {
  font-size: 0.875rem;
  color: #6B7280;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.dashboard {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background-color: #F9FAFB;
  border-right: 1px solid #E5E7EB;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform 200ms ease;
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid #E5E7EB;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 6px;
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 150ms ease;
  margin-bottom: 0.25rem;
}
.sidebar-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.sidebar-link:hover {
  background-color: #FFFFFF;
  color: #111827;
}
.sidebar-link.active {
  background-color: rgba(79, 70, 229, 0.1);
  color: #4F46E5;
}

.sidebar-footer {
  padding: 1rem;
  border-top: 1px solid #E5E7EB;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background-color: #4F46E5;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

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

.user-role {
  font-size: 0.75rem;
  color: #9CA3AF;
}

.main-content {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
}

.content-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.content-body {
  flex: 1;
  padding: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 1rem;
}

.gap-lg {
  gap: 1.5rem;
}

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

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

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

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

.p-md {
  padding: 1rem;
}

.p-lg {
  padding: 1.5rem;
}

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

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

.text-sm {
  font-size: 0.875rem;
}

.text-muted {
  color: #6B7280;
}

.font-medium {
  font-weight: 500;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 1rem 0;
    gap: 1rem;
  }
  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* ========================================
   COMPREHENSIVE RESPONSIVE STYLES
   ======================================== */

/* Base Mobile Styles - Apply to all devices first */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .features,
  .pricing,
  .how-it-works {
    padding: 2.5rem 0;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .step-card:not(:last-child)::after {
    display: none;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Mobile Portrait - 481px to 768px */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .features,
  .pricing,
  .how-it-works {
    padding: 3.5rem 0;
  }
  
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .step-card:nth-child(2)::after {
    display: none;
  }
  
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet Landscape - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .step-card:nth-child(2)::after,
  .step-card:nth-child(3)::after {
    display: none;
  }
}

/* Desktop Styles - 1025px and up */
@media (min-width: 1025px) {
  .container {
    padding: 0 2rem;
  }
}

/* ========================================
   MOBILE NAVIGATION SYSTEM
   ======================================== */

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 200ms ease;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.mobile-menu-toggle:hover {
  background-color: #F3F4F6;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  color: #111827;
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 100;
  }
  
  .nav.open {
    display: flex;
  }
  
  .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    transition: background-color 150ms ease;
  }
  
  .nav-link:hover {
    background-color: #F3F4F6;
  }
  
  .nav-link.active {
    color: #4F46E5;
    background-color: rgba(79, 70, 229, 0.1);
  }
  
  .header-actions {
    gap: 0.5rem;
  }
  
  .header-actions .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* ========================================
   FORM RESPONSIVE STYLES
   ======================================== */
@media (max-width: 480px) {
  .form-group {
    margin-bottom: 1rem;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    padding: 0.75rem;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .modal {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
  
  .modal-footer {
    flex-direction: column-reverse;
  }
  
  .modal-footer .btn {
    width: 100%;
  }
}

/* ========================================
   CARD RESPONSIVE STYLES
   ======================================== */
@media (max-width: 480px) {
  .card {
    border-radius: 8px;
  }
  
  .card-header,
  .card-body,
  .card-footer {
    padding: 1rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .pricing-card {
    padding: 1.5rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
}

/* ========================================
   TABLE RESPONSIVE STYLES
   ======================================== */
@media (max-width: 768px) {
  .table-container {
    margin: 0 -1rem;
    padding: 0 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .table {
    min-width: 600px;
  }
  
  .table th,
  .table td {
    padding: 0.75rem;
    font-size: 0.875rem;
  }
}

/* ========================================
   PRODUCT GRID RESPONSIVE
   ======================================== */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .product-card {
    display: flex;
    flex-direction: row;
  }
  
  .product-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
  }
  
  .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .product-actions {
    padding: 0 1rem 1rem;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ========================================
   STORE GRID RESPONSIVE
   ======================================== */
@media (max-width: 480px) {
  .store-grid {
    grid-template-columns: 1fr;
  }
  
  .store-card {
    display: flex;
    flex-direction: row;
    padding: 1rem;
    text-align: left;
  }
  
  .store-card-logo {
    width: 56px;
    height: 56px;
    margin: 0 1rem 0 0;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   DASHBOARD RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .dashboard {
    flex-direction: column;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #F3F4F6;
    border: none;
    cursor: pointer;
  }
  
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  
  .content-header {
    padding: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .content-body {
    padding: 1rem;
  }
  
  .content-header h1 {
    font-size: 1.25rem;
    width: 100%;
  }
  
  .header-mobile-toggle {
    display: flex;
  }
}

@media (min-width: 769px) {
  .sidebar-close,
  .header-mobile-toggle {
    display: none;
  }
}

/* ========================================
   AUTH PAGES RESPONSIVE
   ======================================== */
@media (max-width: 480px) {
  .auth-container {
    padding: 1rem;
  }
  
  .auth-card {
    padding: 1.5rem;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
  
  .auth-subtitle {
    font-size: 0.875rem;
  }
  
  .auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    font-size: 0.875rem;
  }
}

/* ========================================
   CART & CHECKOUT RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column;
  }
  
  .cart-item-image {
    width: 100%;
    height: 200px;
  }
  
  .cart-summary {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #FFFFFF;
    padding: 1rem;
    border-top: 1px solid #E5E7EB;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 50;
  }
  
  .cart-summary .btn {
    width: 100%;
  }
}

@media (min-width: 769px) {
  .cart-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
  }
}

/* ========================================
   UTILITY RESPONSIVE CLASSES
   ======================================== */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  
  .show-mobile {
    display: block !important;
  }
  
  .show-mobile-flex {
    display: flex !important;
  }
  
  .text-center-mobile {
    text-align: center !important;
  }
  
  .mb-1-mobile {
    margin-bottom: 0.5rem !important;
  }
  
  .mb-2-mobile {
    margin-bottom: 1rem !important;
  }
  
  .mb-3-mobile {
    margin-bottom: 1.5rem !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
  
  .show-desktop {
    display: block !important;
  }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
@media (max-width: 768px) {
  /* Touch target size - minimum 44x44px */
  .btn,
  .nav-link,
  .sidebar-link,
  .mobile-menu-toggle {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Focus visible for keyboard navigation */
  *:focus-visible {
    outline: 2px solid #4F46E5;
    outline-offset: 2px;
  }
  
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
}

/* ========================================
   FIX HORIZONTAL SCROLL
   ======================================== */
html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  max-width: 100%;
}

/* Ensure images don't overflow */
img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* Fix flexbox overflow */
.flex-wrap {
  flex-wrap: wrap;
}

/* ========================================
   LOADING & EMPTY STATES
   ======================================== */
@media (max-width: 480px) {
  .empty-state {
    padding: 2rem 1rem;
  }
  
  .empty-state-icon {
    width: 48px;
    height: 48px;
  }
  
  .empty-state-title {
    font-size: 1rem;
  }
}

/* ========================================
   NOTIFICATIONS & TOASTS
   ======================================== */
@media (max-width: 768px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  
  .toast {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}