/* ===== DESIGN SYSTEM ===== */
:root {
  --background: 28 7% 99%;
  --foreground: 220 14% 16%;
  --card: 0 0% 100%;
  --card-foreground: 220 14% 16%;
  --popover: 0 0% 100%;
  --popover-foreground: 220 14% 16%;
  --primary: #FF8C00;
  --primary-rgb: 255, 140, 0;
  --primary-foreground: #fcf3eb;
  --secondary: #1E90FF;
  --secondary-rgb: 30, 144, 255;
  --secondary-foreground: #fcf3eb;
  --muted: 220 14% 96%;
  --muted-foreground: #6b7280;
  --accent: 220 14% 96%;
  --accent-foreground: 220 14% 16%;
  --destructive: #ef4444;
  --destructive-foreground: #fcf3eb;
  --border: #e5e7eb;
  --input: #e5e7eb;
  --ring: #FF8C00;
  --radius: 0.5rem;
  --checkout-sidebar-bg: #f8f9fb;
  --product-card-bg: #fcf3eb;
  --product-border: #e5e7eb;
  --price-text: #FF8C00;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
  font-family: inherit;
  line-height: 1.4;
  white-space: nowrap;
}

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

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

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--secondary);
}

.btn-secondary:hover {
  filter: brightness(1.1);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: var(--border);
}

.btn-outline:hover {
  background: hsl(var(--muted));
}

.btn-ghost {
  background: transparent;
  color: hsl(var(--foreground));
}

.btn-ghost:hover {
  background: hsl(var(--muted));
}

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

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  justify-content: center;
}

.w-full {
  width: 100%;
}

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

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25rem;
}

.badge-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-default {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

/* ===== FORM ELEMENTS ===== */
input,
textarea,
select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  color: hsl(var(--foreground));
  font-family: inherit;
  font-size: 0.875rem;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

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

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

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

.icon-picker {
  display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.5rem;
}
.icon-option {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  border: 1px solid var(--border); cursor: pointer;
  color: hsl(var(--foreground)); background: hsl(var(--background));
  transition: all 0.15s;
}
.icon-option:hover { border-color: var(--primary); color: var(--primary); }
.icon-option.selected { border-color: var(--primary); background: var(--primary); color: var(--primary-foreground); }

.form-error {
  color: var(--destructive);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}

.input-icon-wrap input {
  padding-left: 2.25rem;
}

/* ===== CARD ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 0.25rem);
  overflow: hidden;
  transition: all 0.3s;
}

.card-hover:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card-body {
  padding: 1.25rem;
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ===== GRID ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

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

.grid-5 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

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

@media (min-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (min-width: 1280px) {
  .catalog-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

/* ===== PRODUCT CARD ===== */
.product-card {
  background: var(--product-card-bg);
  border: 1px solid var(--product-border);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: hsl(220, 14%, 96%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-desc {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.product-card-price {
  color: var(--price-text);
  font-weight: 700;
  font-size: 1.125rem;
}

a.product-card {
  text-decoration: none;
  color: inherit;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-detail-image {
  border-radius: 1rem;
  overflow: hidden;
  background: hsl(220, 14%, 96%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.product-detail-category {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-detail-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-detail-desc {
  font-size: 1rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.product-detail-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.product-detail-price {
  color: var(--price-text);
  font-size: 1.75rem;
  font-weight: 700;
}

.product-detail-stock {
  font-size: 0.875rem;
  font-weight: 500;
}

.product-detail-stock.in-stock {
  color: #16a34a;
}

.product-detail-stock.out-of-stock {
  color: #dc2626;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===== SECTION ===== */
.section {
  padding: 5rem 0;
}

.section-muted {
  background: hsl(220, 14%, 98%);
}

.section-dark {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
  background: url('https://res.cloudinary.com/dhh8gu8oi/image/upload/v1783548462/1d035f28-2325-47ca-b043-242162018242_kmqhk0.jpg') center/cover no-repeat;
}

.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('https://res.cloudinary.com/dhh8gu8oi/image/upload/v1783548462/1d035f28-2325-47ca-b043-242162018242_kmqhk0.jpg') center/cover no-repeat;
  filter: blur(4px);
}

.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, hsl(28, 7%, 99%) 0%, transparent 100%);
}

.section-hero>* {
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  margin: 0 auto 3rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

/* ===== HERO ===== */
.hero-content {
  max-width: 48rem;
}

.hero-img {
  height: 5rem;
  width: auto;
  margin-bottom: 2rem;
  border-radius: 0.5rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.625;
  margin-bottom: 2rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

/* ===== SERVICE CARD ===== */
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: all 0.3s;
  cursor: pointer;
}

.service-card:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.service-card:hover .service-card-icon {
  transform: scale(1.1);
}

.service-card h3 {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== HEADER & HAMBURGER ===== */
.hamburger-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: all 0.2s;
  margin: 0.75rem;
}

.hamburger-float:hover {
  color: var(--primary);
}

header.fixed {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
}

header.fixed>div {
  pointer-events: auto;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--secondary);
  color: var(--secondary-foreground);
}

.footer .container {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-desc {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.6;
}

.footer-title {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-links a,
.footer-contact li {
  font-size: 0.875rem;
  opacity: 0.9;
  transition: opacity 0.2s;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ===== NAV DRAWER ===== */
.nav-overlay,
.cart-overlay {
  position: fixed;
  inset: 0;
  background: hsl(var(--background) / 0.95);
  backdrop-filter: blur(4px);
  z-index: 110;
  display: none;
}

.nav-overlay.active,
.cart-overlay.active {
  display: block;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 85%;
  max-width: 320px;
  background: var(--card);
  z-index: 120;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

.nav-drawer.active {
  transform: translateX(0);
}

.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.nav-title {
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-close,
.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: hsl(var(--foreground));
  padding: 0.25rem;
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-link:hover {
  background: hsl(220, 14%, 96%);
}

.nav-link svg {
  color: #9ca3af;
  flex-shrink: 0;
}

.nav-divider {
  border-top: 1px solid var(--border);
  margin: 1rem 0;
}

.nav-section-title {
  display: block;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.nav-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: hsl(220, 14%, 98%);
}

/* ===== CART PANEL ===== */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 90%;
  max-width: 400px;
  background: var(--card);
  z-index: 120;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

.cart-panel.active {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h3 {
  font-weight: 700;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: hsl(220, 14%, 98%);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.cart-total-price {
  color: var(--primary);
}

.cart-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
}

.cart-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.625rem;
  font-weight: 700;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== CART ITEM ===== */
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background: hsl(220, 14%, 98%);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cart-item-img {
  width: 5rem;
  height: 5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.cart-item-name {
  font-weight: 500;
  font-size: 0.875rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-price {
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
}

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

.qty-control {
  display: flex;
  align-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
}

.qty-control button {
  padding: 0.25rem 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background 0.2s;
}

.qty-control button:hover {
  background: hsl(220, 14%, 96%);
}

.qty-control span {
  width: 2rem;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
}

.btn-remove {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 0.25rem;
}

.btn-remove:hover {
  color: var(--destructive);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 9999;
  animation: slideIn 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.toast-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.toast-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ===== AUTH PAGE ===== */
.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  max-width: 28rem;
  width: 100%;
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo {
  height: 3.75rem;
  width: auto;
  margin: 0 auto 1.5rem;
  border-radius: 0.25rem;
}

.auth-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--muted-foreground);
}

.auth-form {
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 500;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ===== TECH SECTION ===== */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .tech-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.tech-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tech-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-icon.primary {
  background: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.tech-icon.secondary {
  background: rgba(var(--secondary-rgb), 0.1);
  color: var(--secondary);
}

.tech-title {
  font-size: 1.5rem;
  font-weight: 600;
}

.tech-desc {
  color: var(--muted-foreground);
  line-height: 1.625;
}

.tech-img {
  background: hsl(220, 14%, 96%);
  border-radius: 1rem;
  height: 16rem;
  overflow: hidden;
}

.tech-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== ADVANTAGES ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.advantage-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.advantage-check {
  color: var(--primary);
  flex-shrink: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-page {
  padding-top: 8rem;
  padding-bottom: 5rem;
}

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

@media (min-width: 768px) {
  .contact-info-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-card-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.contact-card h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-card a:hover {
  color: var(--primary);
}

.contact-form-card {
  max-width: 36rem;
  margin: 0 auto;
  background: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== DASHBOARD ===== */
.dashboard-page {
  padding-top: 7rem;
  padding-bottom: 3rem;
}

.dashboard-greeting {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 3rem;
}

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

@media (min-width: 768px) {
  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-card-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-card-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

.stat-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

@media (min-width: 1024px) {
  .dashboard-columns {
    grid-template-columns: 1fr 1fr;
  }
}

.dashboard-card {
  background: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.dashboard-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

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

.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: hsl(220, 14%, 98%);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

.project-item-info {
  flex: 1;
  min-width: 0;
  padding-right: 1rem;
}

.project-item-name {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-item-date {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.project-item-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ===== QUOTE SYSTEM ===== */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .quote-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quote-stat {
  background: hsl(220, 14%, 96%);
  border-radius: 0.5rem;
  padding: 1rem;
}

.quote-stat-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.25rem;
}

.quote-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.quote-total {
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 0.5rem;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.quote-total-amount {
  font-size: 1.875rem;
  font-weight: 700;
}

.quote-warning {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: hsl(24, 100%, 96%);
  border: 2px solid rgba(255, 140, 0, 0.3);
  border-radius: 1rem;
  margin-top: 1.5rem;
  color: hsl(24, 100%, 50%);
  font-weight: 700;
}

/* ===== UPLOAD ===== */
.upload-page {
  padding-top: 7rem;
  padding-bottom: 3rem;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .upload-grid {
    grid-template-columns: 2fr 1fr;
  }
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.03);
}

.upload-zone.has-error {
  border-color: var(--destructive);
  background: rgba(239, 68, 68, 0.03);
}

.upload-icon {
  width: 3rem;
  height: 3rem;
  color: var(--muted-foreground);
  margin: 0 auto 1rem;
}

.upload-cta {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.upload-hint {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.upload-formats {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.file-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: hsl(220, 14%, 96%);
  border-radius: 0.5rem;
  padding: 1rem;
}

.file-selected-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ===== TECHNICAL PANEL ===== */
.tech-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tech-panel-summary {
  background: hsl(220, 14%, 96%);
  border-radius: 0.5rem;
  padding: 1rem;
}

.tech-panel-summary h3 {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.tech-panel-summary p {
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

/* ===== ADMIN ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  background: hsl(220, 14%, 96%);
}

.admin-sidebar {
  width: 16rem;
  background: var(--card);
  border-right: 1px solid var(--border);
  position: fixed;
  height: 100%;
  z-index: 30;
}

.admin-brand {
  padding: 1.5rem;
}

.admin-brand h2 {
  font-size: 1.125rem;
  font-weight: 700;
}

.admin-brand p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.admin-nav {
  padding: 0 0.75rem;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 0.125rem;
  color: var(--muted-foreground);
}

.admin-nav a:hover {
  background: hsl(220, 14%, 96%);
  color: hsl(var(--foreground));
}

.admin-nav a.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.admin-logout {
  position: absolute;
  bottom: 1.5rem;
  left: 0.75rem;
  right: 0.75rem;
}

.admin-main {
  margin-left: 16rem;
  flex: 1;
  padding: 2rem;
}

.admin-header {
  margin-bottom: 2rem;
}

.admin-header h1 {
  font-size: 1.875rem;
  font-weight: 700;
}

.admin-header p {
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

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

@media (min-width: 768px) {
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .admin-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.admin-alerts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .admin-alerts {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== TABLE ===== */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--muted-foreground);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

tr:hover td {
  background: hsl(220, 14%, 96%);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: hsl(var(--background) / 0.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal {
  background: var(--card);
  border-radius: 1rem;
  width: 100%;
  max-width: 32rem;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* ===== CHECKOUT ===== */
.checkout-page {
  background: hsl(var(--background));
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .checkout-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.checkout-summary {
  order: 2;
}

@media (min-width: 1024px) {
  .checkout-summary {
    order: 1;
  }
}

.checkout-form {
  order: 1;
}

@media (min-width: 1024px) {
  .checkout-form {
    order: 2;
  }
}

.checkout-summary-inner {
  background: var(--checkout-sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  position: sticky;
  top: 7rem;
}

.checkout-section {
  margin-bottom: 2rem;
}

.checkout-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.step-number {
  background: var(--primary);
  color: var(--primary-foreground);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
}

.checkout-fieldset {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .payment-options {
    grid-template-columns: repeat(3, 1fr);
  }
}

.payment-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-option:hover {
  background: hsl(220, 14%, 96%);
}

.payment-option.selected {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.03);
}

.payment-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== CONFIRMATION ===== */
.confirmation-page {
  display: flex;
  flex-direction: column;
  min-height: 80vh;
  background: hsl(220, 14%, 98%);
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.confirmation-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-width: 48rem;
  margin: 0 auto;
}

.confirmation-header {
  background: rgba(var(--primary-rgb), 0.08);
  border-bottom: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.confirmation-icon {
  width: 5rem;
  height: 5rem;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-foreground);
}

.confirmation-body {
  padding: 2rem;
}

/* ===== ORDER SUMMARY ===== */
.order-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .order-details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.order-detail-section h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-items {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 2rem;
}

.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.order-item:last-child {
  border-bottom: none;
}

.order-totals {
  background: hsla(220, 14%, 96%, 0.5);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

/* ===== 404 ===== */
.page-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
}

.page-404 h1 {
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-404 p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

/* ===== SKELETON ===== */
.skeleton {
  background: linear-gradient(90deg, hsl(220, 14%, 96%) 25%, hsl(220, 14%, 92%) 50%, hsl(220, 14%, 96%) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease;
}

/* ===== MISC ===== */
.text-center {
  text-align: center;
}

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

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

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

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

.flex {
  display: flex;
}

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

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

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

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

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.icon-sm {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.sticky {
  position: sticky;
  top: 7rem;
}

.hidden {
  display: none;
}

/* ===== RESPONSIVE ORDER for CHECKOUT ===== */
@media (min-width: 1024px) {
  .lg\:order-1 {
    order: 1;
  }

  .lg\:order-2 {
    order: 2;
  }
}

/* ===== MODAL STYLES FOR SERVICE CONTACT ===== */
.modal-hidden {
  display: none;
}