/* ===== Fonts ===== */

@import url('https://fonts.googleapis.com/css2?family=Poiret+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poiret+One&family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');
@font-face {
	font-family: 'Stiletto';
	font-style: normal;
	font-weight: normal;
	src: url('/css/fonts/Stiletto.ttf') format('truetype');
	src: url('/css/fonts/Stiletto.eot');
	src: url('/css/fonts/Stiletto.eot?#iefix') format('embedded-opentype'),
  	       url('/css/fonts/Stiletto.woff') format('woff'),
	       url('/css/fonts/Stiletto.ttf') format('truetype');	
}

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

:root {
  /* --color-primary: #1a1a2e; */
  --color-primary: #000000;
  --color-accent: #e94560;
  --color-accent-hover: #c73650;
  --color-bg: #f8f8f8;
  --color-bg-secondary: #f0f0f0;
  --color-surface: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0e0e0;
  --color-success: #27ae60;
  --color-error: #e74c3c;
  --color-hero-gradient: #16213e;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
  --max-width: 1200px;
}

html { font-size: 17px; scroll-behavior: smooth; }
body {
  font-family: "Titillium Web";
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
}

#app { display: flex; flex-direction: column; min-height: 100vh; }
.main-content { flex: 1; }

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

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  background: var(--color-accent);
  color: #fff;
}
.btn:hover { background: var(--color-accent-hover); color: #fff; }
.btn-outline { background: transparent; border-color: var(--color-accent); color: var(--color-accent); }
.btn-outline:hover { background: var(--color-accent); color: #fff; }
.btn-outline-danger { background: transparent; border-color: var(--color-error, #dc3545); color: var(--color-error, #dc3545); }
.btn-outline-danger:hover { background: var(--color-error, #dc3545); color: #fff; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Header ===== */
.site-header {
  background: var(--color-primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.logo { display: flex; gap: 0.2rem; color: #fff; font-size: 2.2rem; font-weight: 700; line-height: initial; }
.logo:hover { color: #fff; }
.logo-text { font-family: 'Poiret One'; color: vertical-align: middle; }
.logo-icon { font-family: Stiletto; font-size: 2.65rem; vertical-align: middle; }

.main-nav { display: flex; gap: 1.5rem; flex: 1; align-items: center; }
.main-nav a { color: rgba(255,255,255,0.8); font-weight: 500; padding: 0.25rem 0; }
.main-nav a:hover, .main-nav a.router-link-active { color: #fff; font-weigth: 700; }
.main-nav a.router-link-exact-active { color: var(--color-accent); }

.nav-dropdown-wrapper { position: relative; }
.nav-dropdown-trigger { color: rgba(255,255,255,0.8); font-weight: 500; padding: 0.25rem 0; cursor: pointer; user-select: none; display: flex; align-items: center; gap: 0.3rem; }
.nav-dropdown-wrapper.open .nav-dropdown-trigger,
.nav-dropdown-trigger:hover { color: #fff; }
.nav-dropdown-arrow { font-size: 0.6rem; transition: transform 0.2s; display: inline-block; }
.nav-dropdown-wrapper.open .nav-dropdown-arrow { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 0.75rem); left: 50%; transform: translateX(-50%);
  background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: 0.5rem 0; z-index: 200;
  border: 1px solid var(--color-border);
}
.nav-dropdown::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 6px solid var(--color-border);
}
.nav-dropdown::after {
  content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 6px solid var(--color-surface);
}
.nav-dropdown a { display: block; padding: 0.6rem 1.25rem; color: var(--color-text) !important; font-weight: 500; white-space: nowrap; }
.nav-dropdown a:hover { background: var(--color-bg); color: var(--color-primary) !important; }
.nav-dropdown a.router-link-exact-active { color: var(--color-primary) !important; background: var(--color-bg); }
.nav-dropdown-all { border-top: 1px solid var(--color-border); margin-top: 0.25rem; padding-top: 0.6rem !important; font-size: 0.875rem; color: var(--color-text-light) !important; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.cart-link { color: #fff; font-size: 1.4rem; position: relative; }
.cart-link:hover { color: var(--color-accent); }
.cart-badge {
  position: absolute; top: -8px; right: -10px;
  background: var(--color-accent); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Language Switcher ===== */
.lang-switcher {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  padding: 0.3rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  appearance: auto;
}
.lang-switcher:focus { outline: none; border-color: var(--color-accent); }
.lang-switcher option { background: var(--color-primary); color: #fff; }

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-menu-toggle span {
  display: block; width: 24px; height: 2px; background: #fff;
  margin: 5px 0; transition: var(--transition);
}

/* ===== Footer ===== */
.site-footer { background: var(--color-primary); color: rgba(255,255,255,0.8); padding: 3rem 0 0; margin-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-col h3 { color: #fff; font-size: 1.25rem; margin-bottom: 1rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2rem; padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 0.875rem;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-hero-gradient) 100%);
  color: #fff;
  padding: 6rem 0;
  text-align: center;
}
.hero h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero p { font-size: 1.25rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }

/* ===== Sections ===== */
.section { padding: 4rem 0; }
.section-title { font-size: 2rem; text-align: center; margin-bottom: 0.5rem; color: var(--color-primary); }
.section-subtitle { text-align: center; color: var(--color-text-light); margin-bottom: 3rem; font-size: 1.1rem; }

/* ===== Cards ===== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-image {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.card-body { padding: 1.5rem; }
.card-body h3 { margin-bottom: 0.5rem; color: var(--color-primary); }
.card-body p { color: var(--color-text-light); margin-bottom: 1rem; }

/* ===== Forms ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.form-control {
  width: 100%; padding: 0.75rem; border: 1px solid var(--color-border);
  border-radius: var(--radius); font-size: 1rem; font-family: inherit;
  transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--color-accent); }
select.form-control { appearance: auto; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { color: var(--color-error); font-size: 0.85rem; margin-top: 0.25rem; }
.form-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== File Upload ===== */
.file-upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.file-upload-zone:hover, .file-upload-zone.dragover {
  border-color: var(--color-accent);
  background: rgba(233, 69, 96, 0.05);
}
.file-upload-zone p { color: var(--color-text-light); margin-bottom: 0.5rem; }

.upload-trigger {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.75rem 1rem; border: 2px dashed var(--color-border); border-radius: var(--radius);
  background: var(--color-surface); color: var(--color-text); cursor: pointer;
  font-size: 0.95rem; transition: border-color var(--transition);
}
.upload-trigger:hover { border-color: var(--color-accent); }
.upload-trigger-icon { font-size: 1.2rem; }

.upload-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.upload-modal {
  background: var(--color-surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 600px; max-height: 80vh;
  display: flex; flex-direction: column;
}
.upload-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border);
}
.upload-modal-header h3 { margin: 0; color: var(--color-primary); }
.upload-modal-close {
  background: none; border: none; font-size: 1.5rem; cursor: pointer;
  color: var(--color-text-light); line-height: 1; padding: 0;
}
.upload-modal-close:hover { color: var(--color-text); }
.upload-modal-body {
  flex: 1; overflow-y: auto; padding: 1.5rem;
}
.upload-file-list { margin-top: 1rem; }
.upload-file-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--color-border);
}
.upload-file-item:last-child { border-bottom: none; }
.upload-file-thumb {
  width: 48px; height: 48px; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--color-border); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; background: var(--color-bg);
}
.upload-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.upload-file-info { flex: 1; min-width: 0; }
.upload-file-name {
  display: block; font-size: 0.9rem; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.upload-file-size { display: block; font-size: 0.8rem; color: var(--color-text-light); }
.upload-file-remove {
  background: none; border: none; font-size: 1.25rem; cursor: pointer;
  color: var(--color-text-light); padding: 0.25rem; line-height: 1; flex-shrink: 0;
}
.upload-file-remove:hover { color: var(--color-accent); }
.upload-modal-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem; border-top: 1px solid var(--color-border);
}
.upload-modal-count { font-size: 0.9rem; color: var(--color-text-light); }

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}
.page-header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.page-header p { opacity: 0.8; font-size: 1.1rem; }

/* ===== Service Detail ===== */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.service-info h2 { color: var(--color-primary); margin-bottom: 1rem; }
.service-info p { margin-bottom: 1rem; }
.price-tag { font-size: 1.5rem; font-weight: 700; color: var(--color-accent); }
.price-note { font-size: 0.85rem; color: var(--color-text-light); }
.feature-list { margin: 1.5rem 0; }
.feature-list li { padding: 0.4rem 0; padding-left: 1.5rem; position: relative; }
.feature-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--color-success); font-weight: 700; }

/* ===== Cart ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; padding: 0.75rem; border-bottom: 2px solid var(--color-border); font-size: 0.85rem; text-transform: uppercase; color: var(--color-text-light); }
.cart-table td { padding: 0.75rem; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
.cart-quantity { display: flex; align-items: center; gap: 0.5rem; }
.cart-quantity button {
  width: 28px; height: 28px; border: 1px solid var(--color-border);
  border-radius: var(--radius); background: var(--color-surface);
  cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.cart-quantity span { min-width: 2rem; text-align: center; }
.cart-remove { background: none; border: none; color: var(--color-error); cursor: pointer; font-size: 0.9rem; }
.cart-summary {
  background: var(--color-surface); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem; margin-top: 2rem;
  max-width: 400px; margin-left: auto;
}
.cart-summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; }
.cart-summary-total { font-size: 1.25rem; font-weight: 700; border-top: 2px solid var(--color-border); padding-top: 0.75rem; margin-top: 0.5rem; }
.cart-empty { text-align: center; padding: 4rem 0; color: var(--color-text-light); }
.cart-empty p { font-size: 1.2rem; margin-bottom: 1.5rem; }

/* ===== Checkout ===== */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; }
.checkout-section { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; margin-bottom: 1.5rem; }
.checkout-section h2 { font-size: 1.25rem; margin-bottom: 1.5rem; color: var(--color-primary); }
.card-field-container { height: 3rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); overflow: hidden; }
.card-field-container:hover { border-color: var(--color-text-light); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }
.delivery-options { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.delivery-option { flex: 1; }
.delivery-option input[type="radio"] { display: none; }
.delivery-option label {
  display: block; padding: 1rem; border: 2px solid var(--color-border); border-radius: var(--radius);
  text-align: center; cursor: pointer; transition: all var(--transition); font-weight: 500;
}
.delivery-option label:hover { border-color: var(--color-accent); }
.delivery-option input[type="radio"]:checked + label {
  border-color: var(--color-accent); background: rgba(233, 69, 96, 0.06); color: var(--color-accent);
}
.delivery-option label small { display: block; font-weight: 400; color: var(--color-text-light); margin-top: 0.25rem; font-size: 0.85rem; }
.delivery-option input[type="radio"]:checked + label small { color: var(--color-accent); }
.pickup-info {
  background: var(--color-bg); border-radius: var(--radius); padding: 1.25rem;
  color: var(--color-text-light); font-size: 0.95rem; line-height: 1.5;
}
.summary-row {
  display: flex; justify-content: space-between; padding: 0.5rem 0;
  font-size: 0.95rem; color: var(--color-text-light);
}
.summary-row.summary-total {
  font-size: 1.1rem; font-weight: 700; color: var(--color-text);
  padding-top: 0.75rem; margin-top: 0.5rem; border-top: 2px solid var(--color-border);
}

/* ===== Account ===== */
.account-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; }
.account-sidebar { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; }
.account-sidebar a { display: block; padding: 0.5rem 0; color: var(--color-text); }
.account-sidebar a:hover, .account-sidebar a.router-link-active { color: var(--color-accent); }
.order-list { list-style: none; }
.order-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem; background: var(--color-surface);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem;
}
.order-status { padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-completed { background: #d4edda; color: #155724; }
.status-quote-pending { background: #ffeeba; color: #856404; }
.status-awaiting-payment { background: #b8daff; color: #004085; }

/* ===== Pagination ===== */
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; font-size: 0.9rem; color: var(--color-text-light); border-top: 1px solid var(--color-border, #e2e8f0); margin-top: 0.5rem; }
.pagination-buttons { display: flex; gap: 0.5rem; }
.pagination-buttons button { padding: 0.4rem 1rem; border: 1px solid var(--color-border, #e2e8f0); border-radius: var(--radius); background: var(--color-surface); color: var(--color-text); cursor: pointer; font-size: 0.85rem; transition: all 0.2s; }
.pagination-buttons button:hover:not(:disabled) { background: var(--color-bg-secondary, #f1f5f9); }
.pagination-buttons button:disabled { opacity: 0.4; cursor: not-allowed; }

[data-theme="dark"] .pagination { border-top-color: #333; }
[data-theme="dark"] .pagination-buttons button { background: #1e1e1e; border-color: #444; color: #d0d0d0; }
[data-theme="dark"] .pagination-buttons button:hover:not(:disabled) { background: #2a2a2a; border-color: #555; }

/* ===== Auth Pages ===== */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 2rem 0; }
.auth-card { background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 2.5rem; width: 100%; max-width: 440px; }
.auth-card h1 { text-align: center; color: var(--color-primary); margin-bottom: 0.5rem; }
.auth-card .auth-subtitle { text-align: center; color: var(--color-text-light); margin-bottom: 2rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; }
.captcha-container { display: flex; justify-content: center; margin: 0.5rem 0; }
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-terms { font-size: 0.75rem; color: var(--color-text-light); text-align: center; margin-top: 0.75rem; }
.recaptcha-terms a { color: var(--color-text-light); text-decoration: underline; }

.verify-code-inputs { display: flex; gap: 0.5rem; justify-content: center; }
.verify-digit {
  width: 3rem; height: 3.5rem; text-align: center; font-size: 1.5rem; font-weight: 600;
  border: 2px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface);
  color: var(--color-text); transition: border-color 0.2s;
}
.verify-digit:focus { outline: none; border-color: var(--color-primary); }
.link-btn {
  background: none; border: none; color: var(--color-primary); cursor: pointer;
  font-size: inherit; text-decoration: underline; padding: 0;
}
.link-btn:hover { opacity: 0.8; }
.link-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Alerts ===== */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: #fde8e8; color: var(--color-error); border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: var(--color-success); border: 1px solid #c3e6cb; }

/* ===== About Page ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3rem; }
.about-image {
  height: 350px; border-radius: var(--radius);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-item { padding: 1.5rem; background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-number { font-size: 2.5rem; font-weight: 700; color: var(--color-accent); }
.stat-label { color: var(--color-text-light); font-size: 0.9rem; margin-top: 0.25rem; }

/* ===== Contact Page ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { font-size: 1.5rem; width: 50px; height: 50px; background: rgba(233,69,96,0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: block; }
  .main-nav, .header-actions { display: none; }
  .site-header.menu-open .main-nav,
  .site-header.menu-open .header-actions { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .main-nav { flex-direction: column; width: 100%; padding: 1rem 0; gap: 0.75rem; }
  .header-actions { width: 100%; justify-content: center; padding-bottom: 1rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .card-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ===== Spinner ===== */
.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--color-border, #e2e8f0);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Page Transitions ===== */
.page-enter-active,
.page-leave-active {
  transition: opacity 0.25s ease;
}
.page-enter-from {
  opacity: 0;
}
.page-leave-to {
  opacity: 0;
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  padding: 0;
  line-height: 1;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
}

/* ===== Dark Theme ===== */
[data-theme="dark"] {
  --color-primary: #e0e0e0;
  --color-accent: #e94560;
  --color-accent-hover: #ff6b81;
  --color-bg: #121212;
  --color-bg-secondary: #252525;
  --color-surface: #1e1e1e;
  --color-text: #e0e0e0;
  --color-text-light: #a0a0a0;
  --color-border: #333333;
  --color-success: #2ecc71;
  --color-error: #e74c3c;
  --color-hero-gradient: #0a0e1a;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
  --max-width: 1200px;
}

[data-theme="dark"] .site-header {
  background: #1a1a1a;
}

[data-theme="dark"] .nav-dropdown {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme="dark"] .nav-dropdown::after {
  border-bottom-color: var(--color-surface);
}

[data-theme="dark"] .site-footer {
  background: #1a1a1a;
}

[data-theme="dark"] .hero,
[data-theme="dark"] .page-header {
  background: linear-gradient(135deg, #1a1a1a 0%, var(--color-hero-gradient) 100%);
}

[data-theme="dark"] .card-image,
[data-theme="dark"] .about-image {
  background: linear-gradient(135deg, #3a3a6e 0%, #5a3a7e 100%);
}

[data-theme="dark"] .contact-icon {
  background: rgba(233,69,96,0.2);
}

[data-theme="dark"] .form-control {
  background: #2a2a2a;
  color: var(--color-text);
}

[data-theme="dark"] .card-field-container {
  border-color: #333333;
  background: #2a2a2a;
}

[data-theme="dark"] .verify-digit {
  background: #2a2a2a;
  border-color: #444;
  color: var(--color-text);
}
[data-theme="dark"] .verify-digit:focus {
  border-color: var(--color-primary);
}

[data-theme="dark"] .lang-switcher option {
  background: #1e1e1e;
  color: var(--color-text);
}

[data-theme="dark"] .status-pending { background: #4a3c00; color: #fbbf24; }
[data-theme="dark"] .status-processing { background: #002952; color: #60a5fa; }
[data-theme="dark"] .status-completed { background: #003d1a; color: #34d399; }
[data-theme="dark"] .status-quote-pending { background: #4a3c00; color: #fbbf24; }
[data-theme="dark"] .status-awaiting-payment { background: #002952; color: #60a5fa; }

[data-theme="dark"] .alert-error { background: #3b1414; color: #f87171; border-color: #5c2020; }
[data-theme="dark"] .alert-success { background: #0f2e1a; color: #34d399; border-color: #1a4a2e; }

[data-theme="dark"] .cart-quantity button {
  background: #2a2a2a;
  color: var(--color-text);
  border-color: var(--color-border);
}

[data-theme="dark"] .file-upload-zone:hover,
[data-theme="dark"] .file-upload-zone.dragover {
  background: rgba(233, 69, 96, 0.1);
}

[data-theme="dark"] .upload-trigger {
  background: #2a2a2a;
  border-color: #444;
}
[data-theme="dark"] .upload-modal {
  background: #1e1e1e;
  border: 1px solid #333;
}
[data-theme="dark"] .upload-file-thumb {
  background: #2a2a2a;
  border-color: #444;
}

[data-theme="dark"] .section-title {
  color: var(--color-text);
}

/* ===== Auth Overlay ===== */
.form-card { position: relative; }
.auth-overlay {
  position: absolute; inset: 0;
  background: var(--color-bg);
  z-index: 10; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem; border-radius: var(--radius);
  text-align: center; padding: 2rem;
}

/* ===== Back Icon Button ===== */
.back-icon-btn {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 1.6rem;
  text-decoration: none;
  line-height: 1;
  transition: opacity 0.15s;
}
.back-icon-btn:hover { opacity: 0.65; }
