:root {
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --primary-dark: #0d1f33;
  --accent: #e85d26;
  --accent-hover: #d04a18;
  --success: #28a745;
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --text: #2d3436;
  --text-light: #636e72;
  --text-lighter: #95a5a6;
  --border: #e0e0e0;
  --border-light: #f0f0f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
  --max-width: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

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

/* ===== HEADER ===== */
.site-header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-top {
  background: var(--primary-dark);
  font-size: 0.8rem;
  padding: 4px 0;
  text-align: center;
  color: rgba(255,255,255,0.8);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
}

.header-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.search-icon {
  width: 18px;
  height: 18px;
}

.header-search {
  flex: 1;
  max-width: 480px;
  margin: 0 30px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 10px 40px 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.header-search input::placeholder { color: rgba(255,255,255,0.6); }
.header-search input:focus { background: rgba(255,255,255,0.25); }

.header-search button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cart-btn {
  position: relative;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}

.cart-btn:hover { background: rgba(255,255,255,0.1); }

.cart-btn .cart-label {
  font-size: 0.9rem;
  font-weight: 500;
}

.cart-count {
  position: absolute;
  top: 0;
  right: -2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count.hidden { display: none; }

/* ===== NAV ===== */
.site-nav {
  background: var(--primary-light);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.nav-list {
  display: flex;
  list-style: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar { display: none; }

.nav-list a {
  display: block;
  padding: 10px 16px;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a.active {
  color: #fff;
  border-bottom-color: var(--accent);
  background: rgba(255,255,255,0.05);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-badge svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

/* ===== SECTIONS ===== */
.section {
  padding: 50px 0;
}

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

.section-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.section-header a {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
}

/* ===== CATEGORIES GRID ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-light);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.category-icon {
  margin-bottom: 10px;
  color: var(--accent);
}

.category-icon svg {
  width: 36px;
  height: 36px;
}

.category-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.category-card p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-image {
  background: linear-gradient(135deg, #eef2f7 0%, #e8ecf1 100%);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--primary-light);
}

.product-image svg {
  width: 56px;
  height: 56px;
  opacity: 0.5;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

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

.product-brand {
  font-size: 0.75rem;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

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

.product-desc {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-unit {
  font-size: 0.75rem;
  color: var(--text-lighter);
  margin-bottom: 8px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

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

.product-price small {
  font-size: 0.7rem;
  color: var(--text-lighter);
  font-weight: 400;
}

.add-to-cart-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.add-to-cart-btn:hover { background: var(--accent-hover); }

.add-to-cart-btn.added {
  background: var(--success);
}

/* ===== SHOP PAGE ===== */
.shop-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  padding: 30px 0;
}

.filters-sidebar {
  position: sticky;
  top: 120px;
  align-self: start;
}

.filter-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.filter-section h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  transition: var(--transition);
}

.filter-option:hover { color: var(--accent); }

.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
  accent-color: var(--accent);
}

.filter-option.active {
  color: var(--accent);
  font-weight: 600;
}

.shop-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.results-count {
  font-size: 0.9rem;
  color: var(--text-light);
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-card);
  cursor: pointer;
}

/* ===== CART DRAWER ===== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--bg-card);
  z-index: 2001;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}

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

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

.cart-drawer-header h2 {
  font-size: 1.2rem;
  color: var(--primary);
}

.cart-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  padding: 4px;
  line-height: 1;
}

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

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

.cart-empty-icon { font-size: 3rem; margin-bottom: 12px; }

.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.cart-item-image {
  width: 60px;
  height: 60px;
  background: #f0f2f5;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-light);
}

.cart-item-image svg {
  width: 24px;
  height: 24px;
  opacity: 0.5;
}

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

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

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

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: var(--transition);
}

.qty-btn:hover { border-color: var(--accent); color: var(--accent); }

.cart-item-qty {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-lighter);
  font-size: 0.78rem;
  margin-left: auto;
  transition: var(--transition);
}

.cart-item-remove:hover { color: #e74c3c; }

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}

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

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

.checkout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 16px;
  transition: var(--transition);
}

.checkout-btn:hover { background: var(--accent-hover); }

.checkout-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 30px;
  padding: 30px 0;
}

.checkout-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.checkout-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.form-group input,
.form-group select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232,93,38,0.1);
}

.order-summary {
  position: sticky;
  top: 120px;
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.order-summary-item .item-name {
  flex: 1;
  margin-right: 10px;
  color: var(--text);
}

.order-summary-item .item-qty {
  color: var(--text-lighter);
  margin-right: 10px;
}

.order-summary-item .item-total {
  font-weight: 600;
  color: var(--primary);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.payment-method-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.payment-method-btn:hover {
  border-color: var(--accent);
}

.payment-method-btn.paypal {
  background: #ffc439;
  border-color: #ffc439;
  color: #003087;
}

.payment-method-btn.paypal:hover {
  background: #f0b400;
}

.payment-method-btn.sumup {
  background: #1a3a5c;
  border-color: #1a3a5c;
  color: #fff;
}

.payment-method-btn.sumup:hover {
  background: #2a5a8c;
}

#paypal-button-container {
  margin-top: 16px;
  min-height: 45px;
}

.payment-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-lighter);
  font-size: 0.8rem;
}

.payment-divider::before,
.payment-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 30px 0;
}

.page-header h1 {
  font-size: 1.8rem;
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  opacity: 0.8;
}

.breadcrumb a { color: rgba(255,255,255,0.8); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: 0.6; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 32px;
  width: auto;
  opacity: 0.9;
}

.footer-about p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul { list-style: none; }

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--accent); }

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

.payment-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.payment-icon {
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

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

/* ===== VIEWS ===== */
.view { display: none; }
.view.active { display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-search { display: none; }
  .hero h1 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
  .hero { padding: 40px 0; }
  .hero h1 { font-size: 1.5rem; }
  .hero-badges { flex-direction: column; align-items: center; gap: 12px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .header-main { padding: 10px 12px; }
  .logo { font-size: 1.2rem; }
  .cart-drawer { width: 100vw; }
  .form-grid { grid-template-columns: 1fr; }
  .nav-list a { padding: 10px 12px; font-size: 0.8rem; }
}

/* ===== MOBILE SEARCH ===== */
.mobile-search {
  display: none;
  padding: 10px 20px 14px;
  background: var(--primary);
}

.mobile-search input {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.mobile-search input::placeholder { color: rgba(255,255,255,0.6); }

@media (max-width: 900px) {
  .mobile-search { display: block; }
}

/* ===== LOADING ===== */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ===== QUANTITY INPUT ===== */
.qty-input-group {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.qty-input-group button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  font-size: 1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-input-group button:hover { background: var(--border); }

.qty-input-group input {
  width: 40px;
  height: 32px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty-input-group input::-webkit-outer-spin-button,
.qty-input-group input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/* ===== VAT NOTICE ===== */
.vat-notice {
  font-size: 0.78rem;
  color: var(--text-lighter);
  margin-top: 4px;
}

/* ===== BRAND FILTER BADGE ===== */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}

.filter-badge button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  line-height: 1;
  padding: 0 0 0 4px;
}

.filter-badge button:hover { color: #fff; }

.clear-filters-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

/* ===== SUCCESS PAGE ===== */
.success-page {
  text-align: center;
  padding: 80px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.success-page h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.success-page p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.success-page .btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.success-page .btn:hover { background: var(--accent-hover); }

/* ===== HEADER ACCOUNT ===== */
.header-account {
  display: flex;
  align-items: center;
}

.account-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
}

.account-btn:hover { background: rgba(255,255,255,0.1); }

.account-label {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== AUTH PAGES ===== */
.auth-layout {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.auth-card h2 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.auth-card .form-group {
  margin-bottom: 14px;
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
}

.form-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 14px;
  border: 1px solid #fecaca;
  display: none;
}

.form-error:not(:empty) { display: block; }

.form-success {
  background: #f0fdf4;
  color: #16a34a;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 14px;
  border: 1px solid #bbf7d0;
  display: none;
}

.form-success:not(:empty) { display: block; }

/* ===== ACCOUNT PAGE ===== */
.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  padding: 30px 0;
}

.account-tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 120px;
  align-self: start;
}

.account-tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
}

.account-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.account-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.account-tab-btn.logout {
  margin-top: 12px;
  color: #e74c3c;
  border-color: transparent;
  background: transparent;
}

.account-tab-btn.logout:hover {
  background: #fef2f2;
  border-color: #fecaca;
}

.account-tab-panel { display: none; }
.account-tab-panel.active { display: block; }

/* ===== ADDRESS CARDS ===== */
.address-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text);
}

.address-card.default {
  border-color: var(--primary);
  background: #f0f4f8;
}

.address-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.default-badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
}

.address-card-actions {
  margin-top: 10px;
  display: flex;
  gap: 14px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: #e74c3c; }

/* ===== ORDER CARDS ===== */
.order-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
}

.order-card-header strong {
  font-size: 0.9rem;
  color: var(--primary);
}

.order-status {
  display: inline-block;
  background: #d1fae5;
  color: #065f46;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-left: 8px;
}

.order-date {
  font-size: 0.82rem;
  color: var(--text-lighter);
}

.order-card-items {
  padding: 12px 16px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 4px 0;
  color: var(--text);
}

.order-item-row span:first-child {
  flex: 1;
  margin-right: 12px;
}

.order-item-row span:nth-child(2) {
  color: var(--text-lighter);
  margin-right: 12px;
  min-width: 30px;
}

.order-item-row span:last-child {
  font-weight: 600;
  min-width: 60px;
  text-align: right;
}

.order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-light);
}

.order-card-footer strong {
  color: var(--primary);
}

/* ===== RESPONSIVE ACCOUNT ===== */
@media (max-width: 700px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-tabs {
    flex-direction: row;
    overflow-x: auto;
    position: static;
    gap: 8px;
    padding-bottom: 4px;
  }
  .account-tab-btn {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 0.82rem;
  }
  .account-tab-btn.logout { margin-top: 0; }
}
