/* ============================================================
   KUMA TECHNOLOGY — Home, Shop, Product, Cart, Checkout,
                     Account, Tracking, Footer, Editor
   ============================================================ */

/* ============ HOME PAGE ============ */

/* Hero */
.hero {
  background: var(--gradient-hero);
  min-height: 480px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(10,126,164,0.3) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,201,167,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(0,201,167,0.15);
  border: 1px solid rgba(0,201,167,0.3);
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--weight-extrabold);
  color: #fff;
  line-height: var(--leading-tight);
  margin-bottom: var(--space-4);
}
.hero-title .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}
.hero-actions { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: #fff;
  font-family: var(--font-display);
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-image-main {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  animation: fadeInRight 0.8s ease;
  object-fit: cover;
  aspect-ratio: 4/3;
}
.hero-floating-card {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: pulse 3s ease-in-out infinite;
}
.hero-floating-card.card-1 { bottom: 20%; left: -10%; }
.hero-floating-card.card-2 { top: 15%; right: -5%; }
.hero-fc-icon { font-size: 1.5rem; }
.hero-fc-text { font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-text); }
.hero-fc-sub  { font-size: 10px; color: var(--color-muted); }

/* Feature Strips */
.feature-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-5) 0;
}
.feature-list { display: flex; gap: var(--space-8); justify-content: center; flex-wrap: wrap; }
.feature-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.feature-icon { font-size: 1.4rem; }

/* Category Cards */
.category-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}
.category-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.category-icon { font-size: 2.5rem; margin-bottom: var(--space-3); display: block; }
.category-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.category-count { font-size: var(--text-xs); color: var(--color-muted); }

/* Product Card */
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  cursor: pointer;
  border: 1.5px solid var(--color-border);
}
.product-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--color-primary);
}
.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-bg-alt);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.product-card:hover .product-card-image img { transform: scale(1.08); }
.product-badges {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.product-fav-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-bounce);
  box-shadow: var(--shadow-sm);
}
.product-fav-btn:hover { transform: scale(1.2); background: #fff; }
.product-fav-btn.active { background: #fee2e2; }
.product-ar-badge {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  background: rgba(10,126,164,0.9);
  color: #fff;
  font-size: 10px;
  font-weight: var(--weight-bold);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}
.product-card-body { padding: var(--space-4); }
.product-card-category {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-1);
}
.product-card-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-2);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.product-card-rating .stars .star { font-size: var(--text-xs); }
.rating-count { font-size: var(--text-xs); color: var(--color-muted); }
.product-card-price { margin-bottom: var(--space-3); display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.product-card-actions { display: flex; gap: var(--space-2); }
.product-card-actions .btn { flex: 1; font-size: var(--text-xs); padding: var(--space-2) var(--space-3); }

/* Quick-add animation */
.adding-to-cart {
  animation: bounceIn 0.3s ease;
}

/* Horizontal Scroll Row */
.scroll-row {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-3);
  scrollbar-width: thin;
}
.scroll-row::-webkit-scrollbar { height: 4px; }
.scroll-row .product-card { min-width: 220px; flex-shrink: 0; }

/* Promo Banner */
.promo-banner {
  background: var(--gradient-hero);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-12);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.promo-banner::before {
  content: '🔥';
  position: absolute;
  font-size: 8rem;
  right: 200px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.1;
}
.promo-title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: #fff;
  margin-bottom: var(--space-2);
}
.promo-subtitle { color: rgba(255,255,255,0.7); margin-bottom: var(--space-5); }

/* Testimonials */
.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--color-border);
}
.testimonial-text {
  font-style: italic;
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: #fff;
  flex-shrink: 0;
}
.testimonial-name { font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.testimonial-loc  { font-size: var(--text-xs); color: var(--color-muted); }

/* ============ SHOP PAGE ============ */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-8); }
.shop-sidebar {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  height: fit-content;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--color-border);
  position: sticky;
  top: calc(var(--header-height) + var(--nav-height) + var(--space-4));
}
.filter-group { margin-bottom: var(--space-6); }
.filter-group-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.filter-option:hover { background: var(--color-bg-alt); color: var(--color-text); }
.filter-option.active { background: var(--color-info-bg); color: var(--color-primary); font-weight: var(--weight-medium); }
.filter-option input[type="radio"],
.filter-option input[type="checkbox"] { accent-color: var(--color-primary); }

.price-range-values {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-2);
}
.price-range-track { position: relative; }

.shop-main {}
.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
  background: var(--color-surface);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  gap: var(--space-4);
  flex-wrap: wrap;
}
.shop-result-count { font-size: var(--text-sm); color: var(--color-muted); }
.shop-result-count strong { color: var(--color-text); }
.shop-sort {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.shop-view-toggle { display: flex; gap: var(--space-1); }
.view-btn {
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.view-btn.active { background: var(--color-primary); color: #fff; }
.view-btn:hover:not(.active) { background: var(--color-bg-alt); }

/* ============ PRODUCT DETAIL PAGE ============ */
.product-detail { padding: var(--space-8) 0 var(--space-16); }
.product-detail-breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-6);
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.product-detail-breadcrumb a { cursor: pointer; }
.product-detail-breadcrumb a:hover { color: var(--color-primary); }
.product-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: start; }

/* Gallery */
.product-gallery {}
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
  aspect-ratio: 1;
  position: relative;
  cursor: zoom-in;
  margin-bottom: var(--space-3);
  border: 1.5px solid var(--color-border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.gallery-main:hover img { transform: scale(1.05); }
.gallery-thumbs { display: flex; gap: var(--space-2); overflow-x: auto; }
.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  background: var(--color-bg-alt);
}
.gallery-thumb:hover { border-color: var(--color-primary); }
.gallery-thumb.active { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(10,126,164,0.2); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info Panel */
.product-info {}
.product-detail-category {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-2);
}
.product-detail-name {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  line-height: var(--leading-snug);
}
.product-detail-rating {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.product-detail-badges { display: flex; gap: var(--space-2); margin-bottom: var(--space-5); flex-wrap: wrap; }
.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.product-detail-price .price-current { font-size: var(--text-4xl); }

.product-qty-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}
.product-detail-actions { display: flex; gap: var(--space-3); margin-bottom: var(--space-6); flex-wrap: wrap; }
.product-detail-actions .btn { flex: 1; min-width: 140px; }

.product-meta {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}
.product-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}
.product-meta-item:last-child { border-bottom: none; padding-bottom: 0; }
.product-meta-icon { font-size: 1.1rem; flex-shrink: 0; }

/* AR Badge */
.ar-button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gradient-primary);
  color: #fff;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
  transition: all var(--transition-bounce);
  border: none;
}
.ar-button:hover { transform: translateY(-2px); box-shadow: var(--shadow-primary); }

/* Product Tabs */
.product-tabs { margin-top: var(--space-12); }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr:nth-child(odd) td { background: var(--color-bg-alt); }
.specs-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border);
}
.specs-table td:first-child {
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  width: 40%;
}

/* Reviews */
.review-summary { display: grid; grid-template-columns: auto 1fr; gap: var(--space-8); margin-bottom: var(--space-8); align-items: center; }
.review-score { text-align: center; }
.review-score-big {
  font-size: var(--text-6xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-text);
  line-height: 1;
  font-family: var(--font-display);
}
.review-bars { flex: 1; }
.review-bar-row { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.review-bar-label { font-size: var(--text-xs); color: var(--color-muted); min-width: 14px; }
.review-bar-track { flex: 1; height: 6px; background: var(--color-border); border-radius: var(--radius-full); }
.review-bar-fill { height: 100%; background: var(--color-warning); border-radius: var(--radius-full); }

.review-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1.5px solid var(--color-border);
  margin-bottom: var(--space-4);
}
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.reviewer-name { font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.review-date { font-size: var(--text-xs); color: var(--color-muted); }
.review-text { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: var(--leading-relaxed); }

.review-form {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
  border: 1.5px dashed var(--color-border);
}

/* Video Embed */
.product-video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
  margin-bottom: var(--space-6);
}
.product-video iframe { width: 100%; height: 100%; border: none; }

/* ============ CART DRAWER ============ */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 400px;
  background: var(--color-surface);
  z-index: 300;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
}
.cart-drawer.open { transform: translateX(0); }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 299;
  display: none;
  backdrop-filter: blur(2px);
}
.cart-overlay.active { display: block; }

.cart-drawer-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer-title { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-xl); }
.cart-close-btn {
  font-size: 1.2rem;
  color: var(--color-muted);
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}
.cart-close-btn:hover { background: var(--color-bg-alt); color: var(--color-text); }

.cart-items { flex: 1; overflow-y: auto; padding: var(--space-4) var(--space-6); }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: var(--text-sm); font-weight: var(--weight-semibold); margin-bottom: var(--space-1); }
.cart-item-price { font-size: var(--text-sm); color: var(--color-primary); font-weight: var(--weight-bold); }
.cart-item-remove { color: var(--color-danger); font-size: var(--text-xs); cursor: pointer; margin-top: var(--space-2); }
.cart-item-remove:hover { text-decoration: underline; }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  color: var(--color-muted);
  padding: var(--space-12);
  text-align: center;
}
.cart-empty-icon { font-size: 4rem; }

.cart-drawer-footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1.5px solid var(--color-border);
  background: var(--color-bg-alt);
}
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.cart-total-label { font-size: var(--text-sm); color: var(--color-text-secondary); }
.cart-total-value { font-size: var(--text-xl); font-weight: var(--weight-bold); color: var(--color-text); font-family: var(--font-display); }

/* ============ CHECKOUT PAGE ============ */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--space-8); align-items: start; }
.checkout-form-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--color-border);
}
.checkout-section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Payment Method Selector */
.payment-options { display: flex; flex-direction: column; gap: var(--space-3); }
.payment-option {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.payment-option:hover { border-color: var(--color-primary); background: var(--color-info-bg); }
.payment-option.selected { border-color: var(--color-primary); background: var(--color-info-bg); }
.payment-option.disabled { opacity: 0.5; cursor: not-allowed; }
.payment-radio { width: 20px; height: 20px; accent-color: var(--color-primary); margin-top: 2px; flex-shrink: 0; }
.payment-icon { font-size: 1.5rem; flex-shrink: 0; }
.payment-label { font-weight: var(--weight-semibold); font-size: var(--text-sm); margin-bottom: 2px; }
.payment-desc { font-size: var(--text-xs); color: var(--color-muted); }
.payment-detail {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  animation: fadeIn 0.3s ease;
}

/* Bank info card */
.bank-info-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  border-left: 4px solid var(--color-primary);
}
.bank-info-card p { font-size: var(--text-sm); color: var(--color-text-secondary); margin-bottom: var(--space-1); }
.bank-info-card strong { color: var(--color-text); }

/* File upload */
.file-upload-area {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}
.file-upload-area:hover { border-color: var(--color-primary); background: var(--color-info-bg); }
.file-upload-icon { font-size: 2rem; margin-bottom: var(--space-2); }
.file-upload-text { font-size: var(--text-sm); color: var(--color-text-secondary); }
.file-upload-area.has-file { border-color: var(--color-success); background: var(--color-success-bg); }

/* Checkout Steps */
.checkout-steps {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-8);
  position: relative;
}
.checkout-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}
.checkout-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  z-index: 1;
}
.step-circle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  transition: all var(--transition-base);
}
.checkout-step.active .step-circle { background: var(--color-primary); color: #fff; }
.checkout-step.done .step-circle { background: var(--color-success); color: #fff; }
.step-label { font-size: 10px; color: var(--color-muted); text-align: center; white-space: nowrap; }
.checkout-step.active .step-label { color: var(--color-primary); font-weight: var(--weight-semibold); }

/* Order Summary Panel */
.order-summary-panel {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--color-border);
  position: sticky;
  top: calc(var(--header-height) + var(--nav-height) + var(--space-4));
}
.order-summary-title { font-family: var(--font-display); font-weight: var(--weight-bold); margin-bottom: var(--space-5); font-size: var(--text-lg); }
.order-summary-item { display: flex; justify-content: space-between; font-size: var(--text-sm); padding: var(--space-2) 0; }
.order-summary-item.total {
  border-top: 2px solid var(--color-border);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  padding-top: var(--space-4);
  margin-top: var(--space-2);
  color: var(--color-primary);
}

/* Map Area */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 250px;
  border: 1.5px solid var(--color-border);
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-3);
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ============ TRACKING PAGE ============ */
.tracking-layout { display: grid; grid-template-columns: 1fr 360px; gap: var(--space-8); }
.tracking-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  border: 1.5px solid var(--color-border);
}

/* Order Timeline */
.order-timeline { position: relative; }
.timeline-line {
  position: absolute;
  top: 0;
  left: 19px;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline-item {
  display: flex;
  gap: var(--space-5);
  padding-bottom: var(--space-8);
  position: relative;
  z-index: 1;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: all var(--transition-base);
  border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-border);
}
.timeline-item.done .timeline-dot { background: var(--color-success); box-shadow: 0 0 0 2px var(--color-success); }
.timeline-item.active .timeline-dot { background: var(--color-primary); box-shadow: 0 0 0 2px var(--color-primary); animation: pulse 2s infinite; }
.timeline-item.pending .timeline-dot { background: var(--color-border); }

.timeline-content {}
.timeline-title { font-weight: var(--weight-semibold); font-size: var(--text-sm); margin-bottom: 2px; }
.timeline-desc { font-size: var(--text-xs); color: var(--color-muted); }
.timeline-date { font-size: var(--text-xs); color: var(--color-primary); font-weight: var(--weight-medium); }

/* Warranty Panel */
.warranty-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--color-border);
}
.warranty-status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

/* ============ ACCOUNT PAGE ============ */
.account-layout { display: grid; grid-template-columns: 260px 1fr; gap: var(--space-8); }
.account-sidebar {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--color-border);
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + var(--nav-height) + var(--space-4));
}
.account-user-header {
  background: var(--gradient-primary);
  padding: var(--space-6);
  text-align: center;
}
.account-avatar {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--space-3);
  border: 3px solid rgba(255,255,255,0.3);
}
.account-user-name { color: #fff; font-weight: var(--weight-bold); font-size: var(--text-base); }
.account-user-email { color: rgba(255,255,255,0.7); font-size: var(--text-xs); }

.account-menu { padding: var(--space-3) 0; }
.account-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}
.account-menu-item:hover { color: var(--color-text); background: var(--color-bg-alt); border-left-color: var(--color-primary); }
.account-menu-item.active { color: var(--color-primary); background: var(--color-info-bg); border-left-color: var(--color-primary); font-weight: var(--weight-semibold); }
.account-menu-icon { font-size: 1.1rem; }

.account-panel {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--color-border);
}
.account-panel-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-border);
}

.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

/* Favorites Grid */
.favorites-empty { text-align: center; padding: var(--space-16); color: var(--color-muted); }
.favorites-empty-icon { font-size: 4rem; margin-bottom: var(--space-4); }

/* Order History */
.order-history-item {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
  transition: all var(--transition-fast);
}
.order-history-item:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }
.order-history-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-3); }
.order-id { font-weight: var(--weight-bold); color: var(--color-primary); font-family: var(--font-display); }
.order-date { font-size: var(--text-xs); color: var(--color-muted); }

/* Danger Zone */
.danger-zone {
  border: 2px solid var(--color-danger-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-8);
  background: var(--color-danger-bg);
}
.danger-zone-title { color: var(--color-danger); font-weight: var(--weight-bold); margin-bottom: var(--space-2); }
.danger-zone-desc { font-size: var(--text-sm); color: var(--color-text-secondary); margin-bottom: var(--space-4); }

/* ============ LOGIN MODAL ============ */
.login-modal { max-width: 460px; }
.login-tabs { display: flex; border-bottom: 2px solid var(--color-border); margin-bottom: var(--space-6); }
.login-tab {
  flex: 1;
  padding: var(--space-4);
  text-align: center;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}
.login-tab.active { color: var(--color-primary); border-color: var(--color-primary); }
.login-panel { display: none; }
.login-panel.active { display: block; animation: fadeIn 0.3s ease; }

/* ============ SERVICE PAGE ============ */
.service-page { padding: var(--space-16) 0; }
.service-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); }
.service-info {}
.service-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  margin-bottom: var(--space-4);
}
.service-desc { color: var(--color-text-secondary); line-height: var(--leading-relaxed); margin-bottom: var(--space-8); }
.service-features { display: flex; flex-direction: column; gap: var(--space-4); }
.service-feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.service-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.service-feature-text h4 { font-weight: var(--weight-semibold); margin-bottom: 4px; }
.service-feature-text p { font-size: var(--text-sm); color: var(--color-muted); }

.service-form-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--color-border);
}
.service-form-title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: var(--weight-bold); margin-bottom: var(--space-6); }
.service-success {
  display: none;
  text-align: center;
  padding: var(--space-10);
}
.service-success.show { display: block; animation: bounceIn 0.5s ease; }
.service-success-icon { font-size: 4rem; margin-bottom: var(--space-4); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-nav);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-16);
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: var(--space-8); padding-bottom: var(--space-10); border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand {}
.footer-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: #fff;
  margin-bottom: var(--space-3);
}
.footer-logo-text span { color: var(--color-accent); }
.footer-tagline { font-size: var(--text-sm); margin-bottom: var(--space-5); color: rgba(255,255,255,0.6); }

.footer-social { display: flex; gap: var(--space-3); margin-bottom: var(--space-5); }
.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  color: rgba(255,255,255,0.7);
}
.social-btn:hover { background: var(--color-accent); color: #fff; transform: translateY(-2px); }

.footer-newsletter {}
.newsletter-form { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.newsletter-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: var(--text-sm);
  outline: none;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus { border-color: var(--color-accent); }

.footer-col-title {
  font-weight: var(--weight-semibold);
  color: #fff;
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  transition: color var(--transition-fast);
  cursor: pointer;
}
.footer-link:hover { color: var(--color-accent); }

.footer-location {
  display: flex;
  gap: var(--space-3);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  align-items: flex-start;
}
.footer-location-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

.footer-apps { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.app-badge {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.7);
  transition: all var(--transition-fast);
}
.app-badge:hover { background: rgba(255,255,255,0.15); color: #fff; }
.app-badge-icon { font-size: 1.2rem; }
.app-badge-text small { font-size: 9px; display: block; }

.footer-bottom {
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-bottom-links { display: flex; gap: var(--space-4); }
.footer-bottom-link { color: rgba(255,255,255,0.4); transition: color var(--transition-fast); cursor: pointer; }
.footer-bottom-link:hover { color: rgba(255,255,255,0.7); }

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: calc(var(--space-6) + 60px);
  right: var(--space-6);
  z-index: 140;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition-bounce);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(37,211,102,0.5); }

/* ============ EDITOR PANEL ============ */
.editor-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: var(--sidebar-width);
  background: var(--color-nav);
  z-index: 400;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.editor-panel.open { transform: translateX(0); }

.editor-header {
  padding: var(--space-5) var(--space-6);
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.editor-title {
  color: #fff;
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.editor-close {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xl);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
}
.editor-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

.editor-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow-x: auto;
}
.editor-tab {
  flex-shrink: 0;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--transition-fast);
}
.editor-tab.active { color: var(--color-accent); border-color: var(--color-accent); }
.editor-tab:hover:not(.active) { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.05); }

.editor-content { padding: var(--space-5) var(--space-6); }
.editor-section { margin-bottom: var(--space-6); }
.editor-section-title {
  color: rgba(255,255,255,0.5);
  font-size: 10px;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-3);
}

.editor-field { margin-bottom: var(--space-4); }
.editor-label {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-2);
}
.editor-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: var(--text-sm);
  outline: none;
  transition: all var(--transition-fast);
}
.editor-input:focus { border-color: var(--color-accent); background: rgba(255,255,255,0.12); }
.editor-input::placeholder { color: rgba(255,255,255,0.3); }
.editor-select { appearance: none; cursor: pointer; }
.editor-textarea { resize: vertical; min-height: 80px; }

.editor-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
}
.editor-toggle-label { color: rgba(255,255,255,0.8); font-size: var(--text-sm); }

/* Toggle Switch */
.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}
.toggle-switch input:checked + .toggle-slider { background: var(--color-accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Editor Product List */
.editor-product-list { display: flex; flex-direction: column; gap: var(--space-3); }
.editor-product-item {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.editor-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: rgba(255,255,255,0.1);
}
.editor-product-name { font-size: var(--text-xs); font-weight: var(--weight-medium); color: rgba(255,255,255,0.85); flex: 1; }
.editor-product-price { font-size: var(--text-xs); color: var(--color-accent); font-weight: var(--weight-semibold); }

/* Tab draggable items */
.editor-tab-item {
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  cursor: grab;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.08);
}
.editor-tab-item:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); }
.drag-handle { color: rgba(255,255,255,0.3); font-size: var(--text-lg); cursor: grab; }
.editor-tab-name { flex: 1; font-size: var(--text-sm); color: rgba(255,255,255,0.85); }

/* Color Picker Row */
.editor-color-row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; margin-top: var(--space-2); }
.editor-color-swatch {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.editor-color-swatch:hover { transform: scale(1.15); border-color: rgba(255,255,255,0.5); }
.editor-color-swatch.active { border-color: var(--color-accent); transform: scale(1.1); }

/* Region toggles */
.region-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.region-name { color: rgba(255,255,255,0.8); font-size: var(--text-xs); }
.region-dept { color: rgba(255,255,255,0.4); font-size: 10px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-image { display: none; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary-panel { position: static; }
  .tracking-layout { grid-template-columns: 1fr; }
  .account-layout { grid-template-columns: 1fr; }
  .account-sidebar { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .service-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: var(--text-3xl); }
  .hero-stats { gap: var(--space-5); }
  .promo-banner { grid-template-columns: 1fr; }
  .promo-banner::before { display: none; }
  .cart-drawer { width: 100%; }
  .editor-panel { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-floating-card { display: none; }
  .review-summary { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
