/* ============================================================
   UniformHub — Modern 3D + PWA Design System
   ============================================================ */

/* ---- Google Fonts + CSS Reset ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --uh-primary:    #0077b6;
  --uh-dark:       #03045e;
  --uh-accent:     #00b4d8;
  --uh-coral:      #ff6b6b;
  --uh-gold:       #ffd60a;
  --uh-gradient:   linear-gradient(135deg, #0077b6 0%, #023e8a 100%);
  --uh-gradient2:  linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  --uh-glass:      rgba(255,255,255,0.12);
  --uh-glass-dark: rgba(3,4,94,0.7);
  --uh-shadow-sm:  0 2px 12px rgba(0,119,182,0.15);
  --uh-shadow-md:  0 8px 32px rgba(0,119,182,0.22);
  --uh-shadow-lg:  0 20px 60px rgba(0,119,182,0.30);
  --uh-shadow-3d:  0 10px 30px rgba(0,0,0,0.15), 0 1px 8px rgba(0,0,0,0.1);
  --uh-radius:     16px;
  --uh-radius-sm:  10px;
  --uh-radius-xl:  24px;
  --uh-transition: cubic-bezier(0.34, 1.56, 0.64, 1);
  --safe-bottom:   env(safe-area-inset-bottom, 0px);
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: #f5f7fc;
  color: #1a1a2e;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* PWA: space for bottom nav on mobile */
  padding-bottom: calc(70px + var(--safe-bottom));
}

@media (min-width: 992px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; height: auto; }
a { transition: color .2s; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f0f0f0; }
::-webkit-scrollbar-thumb { background: var(--uh-accent); border-radius: 3px; }

/* ============================================================
   NAVBAR — Glassmorphism + 3D
   ============================================================ */
.navbar {
  background: rgba(3,4,94,0.92) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,180,216,0.2);
  box-shadow: 0 4px 24px rgba(3,4,94,0.3);
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all .3s ease;
}

.navbar.scrolled {
  background: rgba(3,4,94,0.98) !important;
  padding: 6px 0;
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.navbar-brand .brand-icon {
  width: 36px; height: 36px;
  background: var(--uh-gradient2);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  box-shadow: 0 4px 12px rgba(0,180,216,0.4);
  transform: perspective(400px) rotateY(-5deg);
  transition: transform .3s var(--uh-transition);
}

.navbar-brand:hover .brand-icon {
  transform: perspective(400px) rotateY(5deg) scale(1.05);
}

.navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 14px !important;
  border-radius: 8px;
  transition: all .2s;
  position: relative;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--uh-accent);
  border-radius: 1px;
  transition: left .3s, right .3s;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
  background: rgba(0,180,216,0.15);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  left: 14px; right: 14px;
}

/* Search bar */
.navbar-search {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.navbar-search input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: #fff;
  padding: 7px 16px 7px 40px;
  font-size: 0.85rem;
  transition: all .3s;
  width: 100%;
}

.navbar-search input::placeholder { color: rgba(255,255,255,0.5); }
.navbar-search input:focus {
  outline: none;
  background: rgba(255,255,255,0.18);
  border-color: var(--uh-accent);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.2);
}

.navbar-search .search-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* Cart badge */
.cart-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-count {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--uh-coral);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--uh-dark);
  animation: cartBounce .4s var(--uh-transition);
}

@keyframes cartBounce {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}

/* ============================================================
   HERO / BANNER — 3D Layered
   ============================================================ */
.hero-section {
  background: var(--uh-gradient);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,180,216,0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,107,107,0.2) 0%, transparent 50%);
  pointer-events: none;
}

.hero-section .hero-shapes {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  animation: floatShape 6s ease-in-out infinite;
}

.hero-shape:nth-child(1) { width: 300px; height: 300px; top: -100px; right: -80px; animation-delay: 0s; }
.hero-shape:nth-child(2) { width: 200px; height: 200px; bottom: -60px; left: 10%; animation-delay: 2s; }
.hero-shape:nth-child(3) { width: 150px; height: 150px; top: 40%; right: 20%; animation-delay: 4s; }

@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(10deg); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--uh-gold);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--uh-gold), #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating product mockup card in hero */
.hero-card-float {
  perspective: 1000px;
}

.hero-card-float .float-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--uh-radius-xl);
  padding: 20px;
  transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
  transition: transform .5s var(--uh-transition);
  box-shadow: 20px 20px 60px rgba(0,0,0,0.3);
  animation: heroFloat 4s ease-in-out infinite;
}

.hero-card-float:hover .float-card {
  transform: perspective(800px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

@keyframes heroFloat {
  0%, 100% { transform: perspective(800px) rotateY(-8deg) rotateX(4deg) translateY(0); }
  50% { transform: perspective(800px) rotateY(-8deg) rotateX(4deg) translateY(-12px); }
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header .section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(0,119,182,0.1), rgba(0,180,216,0.1));
  border: 1px solid rgba(0,119,182,0.2);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--uh-primary);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #0d0d0d;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-header p { color: #666; font-size: 0.95rem; max-width: 500px; margin: 0 auto; }

/* ============================================================
   PRODUCT CARDS — 3D
   ============================================================ */
.product-card {
  background: #fff;
  border-radius: var(--uh-radius);
  overflow: hidden;
  transition: all .35s var(--uh-transition);
  box-shadow: var(--uh-shadow-sm);
  border: none;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--uh-gradient);
  opacity: 0;
  transition: opacity .3s;
  z-index: 0;
  border-radius: var(--uh-radius);
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--uh-shadow-lg), 0 0 0 1px rgba(0,180,216,0.2);
}

.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--uh-radius) var(--uh-radius) 0 0;
  aspect-ratio: 4/3;
  background: #f5f7fc;
}

.product-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover .product-card-img-wrap img {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--uh-coral);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  z-index: 2;
}

.product-badge.bulk { background: var(--uh-primary); }
.product-badge.new  { background: #22c55e; }

.product-wishlist-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  color: #999;
  transition: all .25s var(--uh-transition);
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.product-wishlist-btn:hover,
.product-wishlist-btn.active {
  background: #fff;
  color: var(--uh-coral);
  transform: scale(1.15);
}

.product-card .card-body {
  padding: 14px 16px 16px;
  position: relative;
  z-index: 1;
}

.product-card .product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.product-card .product-price-old {
  font-size: 0.8rem;
  color: #aaa;
  text-decoration: line-through;
  margin-left: 6px;
}

.product-card .product-rating {
  font-size: 0.72rem;
  color: #f59e0b;
}

.product-card .add-cart-btn {
  background: var(--uh-gradient);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 16px;
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
  transition: all .25s var(--uh-transition);
  box-shadow: 0 4px 12px rgba(0,119,182,0.35);
}

.product-card .add-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,119,182,0.45);
}

/* ============================================================
   CATEGORY CARDS — 3D Perspective
   ============================================================ */
.category-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform .3s var(--uh-transition);
}

.category-pill:hover { transform: translateY(-6px); }

.category-pill .cat-icon-wrap {
  width: 72px; height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: var(--uh-shadow-md), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all .3s var(--uh-transition);
  position: relative;
  overflow: hidden;
}

.category-pill .cat-icon-wrap::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  transition: left .6s;
}

.category-pill:hover .cat-icon-wrap::after { left: 150%; }

.category-pill .cat-icon-wrap.c1 { background: linear-gradient(135deg,#667eea,#764ba2); }
.category-pill .cat-icon-wrap.c2 { background: linear-gradient(135deg,#f093fb,#f5576c); }
.category-pill .cat-icon-wrap.c3 { background: linear-gradient(135deg,#4facfe,#00f2fe); }
.category-pill .cat-icon-wrap.c4 { background: linear-gradient(135deg,#43e97b,#38f9d7); }
.category-pill .cat-icon-wrap.c5 { background: linear-gradient(135deg,#fa709a,#fee140); }
.category-pill .cat-icon-wrap.c6 { background: linear-gradient(135deg,#a18cd1,#fbc2eb); }

.category-pill .cat-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

/* ============================================================
   3D FEATURE CARDS (USP / Benefits row)
   ============================================================ */
.feature-card {
  background: #fff;
  border-radius: var(--uh-radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--uh-shadow-sm);
  transition: all .35s var(--uh-transition);
  border: 1px solid rgba(0,119,182,0.07);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--uh-gradient2);
  transform: scaleX(0);
  transition: transform .3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--uh-shadow-lg);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg,rgba(0,119,182,0.1),rgba(0,180,216,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--uh-primary);
  margin: 0 auto 14px;
  transition: all .3s var(--uh-transition);
}

.feature-card:hover .feature-icon {
  background: var(--uh-gradient);
  color: #fff;
  transform: rotate(-5deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(0,119,182,0.4);
}

/* ============================================================
   BULK ORDER CTA SECTION
   ============================================================ */
.bulk-cta {
  background: var(--uh-gradient);
  border-radius: var(--uh-radius-xl);
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.bulk-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.12) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
}

.bulk-cta .counter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: var(--uh-gradient);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  padding: 10px 24px;
  transition: all .25s var(--uh-transition);
  box-shadow: 0 4px 15px rgba(0,119,182,0.35);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0,119,182,0.45);
  background: linear-gradient(135deg, #0091d4 0%, #0077b6 100%);
  border: none;
}

.btn-outline-primary {
  color: var(--uh-primary);
  border: 2px solid var(--uh-primary);
  border-radius: 50px;
  font-weight: 600;
  padding: 9px 22px;
  transition: all .25s var(--uh-transition);
}

.btn-outline-primary:hover {
  background: var(--uh-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--uh-shadow-md);
}

.btn-light-glass {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  border-radius: 50px;
  font-weight: 600;
  padding: 10px 24px;
  transition: all .25s;
}

.btn-light-glass:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   SEARCH / FILTER BAR
   ============================================================ */
.filter-bar {
  background: #fff;
  border-radius: var(--uh-radius);
  padding: 16px 20px;
  box-shadow: var(--uh-shadow-sm);
  margin-bottom: 20px;
  border: 1px solid rgba(0,119,182,0.06);
}

/* ============================================================
   PRICE TAG / BADGES
   ============================================================ */
.price-tag {
  background: linear-gradient(135deg,#0077b6,#00b4d8);
  color: #fff;
  border-radius: 8px 8px 8px 0;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  position: relative;
}

.price-tag::before {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  border: 3px solid transparent;
  border-top-color: #005f8a;
  border-right-color: #005f8a;
}

/* ============================================================
   CARDS — Glass Variant
   ============================================================ */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--uh-radius);
  box-shadow: var(--uh-shadow-sm);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: #fff;
  border-radius: var(--uh-radius);
  padding: 24px;
  box-shadow: var(--uh-shadow-sm);
  border: 1px solid rgba(0,119,182,0.06);
  transition: all .3s var(--uh-transition);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px; left: 20px;
  font-size: 5rem;
  color: rgba(0,180,216,0.15);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--uh-shadow-md);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-control, .form-select {
  border-radius: var(--uh-radius-sm);
  border: 1.5px solid #e5e7eb;
  padding: 10px 14px;
  font-size: 0.9rem;
  transition: all .2s;
  background: #fafbfc;
}

.form-control:focus, .form-select:focus {
  border-color: var(--uh-accent);
  box-shadow: 0 0 0 4px rgba(0,180,216,0.12);
  background: #fff;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination .page-link {
  border-radius: 50px !important;
  margin: 0 3px;
  border: none;
  color: var(--uh-primary);
  font-weight: 600;
  padding: 6px 14px;
  transition: all .2s;
}

.pagination .page-item.active .page-link {
  background: var(--uh-gradient);
  color: #fff;
  box-shadow: var(--uh-shadow-sm);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-item a { color: var(--uh-primary); text-decoration: none; font-weight: 500; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item + .breadcrumb-item::before { color: #bbb; }

/* ============================================================
   SIZE / COLOR SELECTOR
   ============================================================ */
.size-btn {
  min-width: 40px;
  height: 40px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--uh-transition);
}

.size-btn:hover, .size-btn.active {
  border-color: var(--uh-primary);
  background: var(--uh-primary);
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,119,182,0.3);
}

.color-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all .2s var(--uh-transition);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.color-btn.active, .color-btn:hover {
  border-color: var(--uh-primary);
  transform: scale(1.15);
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-gallery-thumb {
  width: 70px; height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  cursor: pointer;
  transition: all .2s;
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
  border-color: var(--uh-primary);
  transform: scale(1.05);
}

/* ============================================================
   CART
   ============================================================ */
.cart-item {
  background: #fff;
  border-radius: var(--uh-radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--uh-shadow-sm);
  transition: all .2s;
}

.cart-item:hover { box-shadow: var(--uh-shadow-md); }

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 2px solid #e5e7eb;
  border-radius: 50px;
  overflow: hidden;
}

.qty-control button {
  background: none;
  border: none;
  width: 32px; height: 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--uh-primary);
  transition: all .2s;
}

.qty-control button:hover { background: rgba(0,119,182,0.08); }

.qty-control input {
  width: 40px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================================
   ORDER TIMELINE
   ============================================================ */
.order-timeline { position: relative; padding-left: 28px; }

.order-timeline::before {
  content: '';
  position: absolute;
  left: 9px; top: 4px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--uh-primary), #e5e7eb);
}

.timeline-item { position: relative; padding-bottom: 20px; }

.timeline-dot {
  position: absolute;
  left: -24px; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--uh-primary);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--uh-primary);
}

.timeline-item.done .timeline-dot { background: #22c55e; box-shadow: 0 0 0 2px #22c55e; }

/* ============================================================
   FOOTER — Dark Modern
   ============================================================ */
footer {
  background: linear-gradient(180deg, #0d1b2a 0%, #03045e 100%);
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--uh-gradient2);
}

footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color .2s;
}

footer a:hover { color: var(--uh-accent) !important; }

.footer-social-btn {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7) !important;
  font-size: 1rem;
  transition: all .25s var(--uh-transition);
}

.footer-social-btn:hover {
  background: var(--uh-accent);
  border-color: var(--uh-accent);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,180,216,0.4);
}

.footer-newsletter input {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px 0 0 50px;
  color: #fff;
  padding: 10px 16px;
  font-size: 0.85rem;
}

.footer-newsletter input:focus {
  outline: none;
  background: rgba(255,255,255,0.14);
  border-color: var(--uh-accent);
  box-shadow: none;
}

.footer-newsletter button {
  border-radius: 0 50px 50px 0;
  background: var(--uh-gradient2);
  border: none;
  padding: 10px 20px;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: filter .2s;
}

.footer-newsletter button:hover { filter: brightness(1.15); }

/* ============================================================
   PWA — BOTTOM NAV BAR (mobile only)
   ============================================================ */
.pwa-bottom-nav {
  display: none;
}

@media (max-width: 991.98px) {
  .pwa-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 2000;
    background: rgba(3,4,94,0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,180,216,0.25);
    padding: 8px 0 calc(8px + var(--safe-bottom));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -8px 32px rgba(3,4,94,0.3);
  }

  .pwa-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 4px 12px;
    border-radius: 12px;
    transition: all .25s var(--uh-transition);
    position: relative;
    min-width: 56px;
  }

  .pwa-nav-item .pwa-icon {
    font-size: 1.35rem;
    transition: transform .3s var(--uh-transition);
  }

  .pwa-nav-item:hover,
  .pwa-nav-item.active {
    color: #fff;
  }

  .pwa-nav-item.active .pwa-icon {
    transform: scale(1.15) translateY(-2px);
  }

  /* Active indicator pill */
  .pwa-nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px; left: 50%; transform: translateX(-50%);
    width: 28px; height: 3px;
    background: var(--uh-accent);
    border-radius: 0 0 3px 3px;
  }

  /* Center cart FAB */
  .pwa-nav-item.pwa-cart-fab {
    background: var(--uh-gradient2);
    border-radius: 18px;
    color: #fff;
    padding: 6px 14px;
    margin-top: -16px;
    box-shadow: 0 8px 24px rgba(0,180,216,0.5);
    border: 3px solid rgba(3,4,94,0.98);
  }

  .pwa-nav-item.pwa-cart-fab .pwa-icon {
    font-size: 1.5rem;
  }

  .pwa-nav-item.pwa-cart-fab:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0,180,216,0.6);
    background: linear-gradient(135deg,#00caf5,#0091d4);
  }

  .pwa-badge {
    position: absolute;
    top: 0px; right: 6px;
    background: var(--uh-coral);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(3,4,94,0.98);
  }
}

/* ============================================================
   PWA — INSTALL BANNER
   ============================================================ */
.pwa-install-banner {
  display: none;
  position: fixed;
  bottom: calc(70px + var(--safe-bottom));
  left: 12px; right: 12px;
  background: rgba(3,4,94,0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: 16px;
  padding: 14px 16px;
  z-index: 1999;
  animation: slideUp .4s var(--uh-transition);
  box-shadow: 0 -4px 32px rgba(3,4,94,0.4);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 992px) {
  .pwa-install-banner {
    bottom: 20px; left: auto; right: 20px;
    max-width: 340px;
    border-radius: 16px;
  }
}

/* ============================================================
   ACCOUNT SIDEBAR
   ============================================================ */
.account-nav .list-group-item {
  border-radius: 12px !important;
  margin-bottom: 4px;
  border: none;
  font-weight: 500;
  color: #555;
  padding: 10px 16px;
  transition: all .2s;
  background: transparent;
}

.account-nav .list-group-item:hover {
  background: rgba(0,119,182,0.07);
  color: var(--uh-primary);
  transform: translateX(4px);
}

.account-nav .list-group-item.active {
  background: var(--uh-gradient);
  color: #fff;
  box-shadow: var(--uh-shadow-sm);
  transform: translateX(4px);
}

/* ============================================================
   LOADING / SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-load 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-load {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   ANIMATIONS — Entrance
   ============================================================ */
.fade-in-up {
  animation: fadeInUp .6s var(--uh-transition) both;
}

.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.10s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.20s; }
.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.fade-in-up:nth-child(6) { animation-delay: 0.30s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Intersection observer trigger */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s var(--uh-transition); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   MOBILE UTILITY
   ============================================================ */
@media (max-width: 767.98px) {
  .section-header h2 { font-size: 1.5rem; }
  .hero-title { font-size: 2rem; }
  .hero-section { min-height: 400px; }
  .product-card { margin-bottom: 8px; }
  .feature-card { padding: 18px 14px; }

  /* Floating action button on mobile product pages */
  .mobile-add-cart-bar {
    position: fixed;
    bottom: calc(70px + var(--safe-bottom) + 8px);
    left: 12px; right: 12px;
    z-index: 1500;
    animation: slideUp .3s var(--uh-transition);
  }
}

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.text-gradient {
  background: var(--uh-gradient2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary { background: var(--uh-gradient) !important; }

.shadow-3d { box-shadow: var(--uh-shadow-3d) !important; }

.rounded-2xl { border-radius: var(--uh-radius-xl) !important; }
.rounded-xl  { border-radius: var(--uh-radius) !important; }

.hover-lift { transition: transform .3s var(--uh-transition), box-shadow .3s; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--uh-shadow-md); }

/* ============================================================
   DARK SECTION BACKGROUNDS
   ============================================================ */
.section-dark {
  background: linear-gradient(135deg, #0d1b2a 0%, #03045e 100%);
  color: #fff;
}

.section-light { background: #f5f7fc; }

.section-wave {
  position: relative;
}

.section-wave::before {
  content: '';
  position: absolute;
  top: -40px; left: 0; right: 0;
  height: 80px;
  background: inherit;
  clip-path: ellipse(55% 100% at 50% 0%);
}

/* ============================================================
   SECTION TITLE (alias for section-header, used in home view)
   ============================================================ */
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--uh-dark);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.section-title p { color: #666; font-size: 0.95rem; max-width: 520px; margin: 0 auto; }

/* ============================================================
   BUTTONS — 3D / Hero Variants
   ============================================================ */
.btn-3d {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--uh-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 2px 0 rgba(0,0,0,0.1);
  transition: all .25s var(--uh-transition);
  position: relative;
  top: 0;
}

.btn-3d:hover {
  top: -3px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.22), 0 2px 0 rgba(0,0,0,0.1);
  color: var(--uh-dark);
}

.btn-3d-outline {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 26px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.5);
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: all .25s var(--uh-transition);
}

.btn-3d-outline:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.8);
  color: #fff;
  transform: translateY(-2px);
}

.btn-3d-sm {
  display: inline-flex;
  align-items: center;
  background: var(--uh-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 18px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,119,182,0.35);
  transition: all .25s var(--uh-transition);
}

.btn-3d-sm:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,119,182,0.45);
}

/* ============================================================
   CATEGORY PILL — simple text strip (active-pill variant)
   ============================================================ */
.active-pill {
  background: var(--uh-gradient) !important;
  color: #fff !important;
  border-color: transparent !important;
}

/* ============================================================
   PRODUCT CARD — new semantic class aliases
   ============================================================ */
.product-card-body {
  padding: 14px 16px 10px;
  position: relative;
  z-index: 1;
}

.product-card-footer {
  padding: 0 16px 14px;
  position: relative;
  z-index: 1;
}

.product-category {
  font-size: 0.72rem;
  color: var(--uh-accent);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-title {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title a {
  color: #1a1a2e;
  text-decoration: none;
}

.product-title a:hover { color: var(--uh-primary); }

.price-current {
  font-size: 1rem;
  font-weight: 700;
  color: var(--uh-primary);
}

.price-old {
  font-size: 0.78rem;
  color: #aaa;
  text-decoration: line-through;
  margin-left: 5px;
}

.badge-sale    { background: var(--uh-coral); }
.badge-featured { background: var(--uh-primary); }

/* ============================================================
   CATEGORY CARD — 3D hover card
   ============================================================ */
.category-card-3d {
  background: #fff;
  border-radius: var(--uh-radius);
  box-shadow: var(--uh-shadow-sm);
  transition: all .3s var(--uh-transition);
  border: 1px solid rgba(0,119,182,0.06);
}

.category-card-3d:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: var(--uh-shadow-md);
  border-color: rgba(0,180,216,0.2);
}
