:root {
  --ft-navy: #0b1f4d;
  --ft-blue: #1d4ed8;
  --ft-blue-light: #3b82f6;
  --ft-sky: #38bdf8;
  --ft-gold: #f59e0b;
  --ft-ink: #0f172a;
  --ft-gray: #64748b;
  --ft-bg: #f6f8fc;
  --radius: 10px;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--ft-ink);
  background: #fff;
}

h1, h2, h3, h4, h5, h6, .brand-title, .fw-nav .nav-link {
  font-family: 'Montserrat', sans-serif;
}

/* Topbar */
.topbar {
  background: var(--ft-navy);
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 6px 0;
}
.topbar-item i { color: var(--ft-sky); margin-right: 6px; }

/* Header */
.main-header { box-shadow: 0 2px 12px rgba(11,31,77,0.08); z-index: 1030; }
.brand-mark {
  background: linear-gradient(135deg, var(--ft-navy), var(--ft-blue-light));
  color: #fff;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 10px;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-title { font-weight: 800; color: var(--ft-navy); font-size: 1.05rem; letter-spacing: 0.5px; }
.brand-sub { font-size: 0.62rem; color: var(--ft-gray); letter-spacing: 1.5px; font-weight: 600; }

.fw-nav .nav-link { font-weight: 600; color: var(--ft-ink); padding: 0.6rem 1rem; font-size: 0.92rem; }
.fw-nav .nav-link:hover { color: var(--ft-blue); }

.search-form { position: relative; }
.search-form .form-control { border-radius: 20px 0 0 20px; width: 200px; border-color: #dbe3ef; }
.btn-search { background: var(--ft-navy); color: #fff; border-radius: 0 20px 20px 0; }

.cart-link { font-size: 1.4rem; color: var(--ft-navy); position: relative; }
.account-link { font-size: 1.4rem; color: var(--ft-navy); }
.account-link:hover { color: var(--ft-blue); }
.cart-badge {
  position: absolute; top: -8px; right: -10px;
  background: var(--ft-gold); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* Hero */
.hero {
  background: linear-gradient(120deg, var(--ft-navy) 0%, var(--ft-blue) 100%);
  color: #fff;
  padding: 70px 0;
  overflow: hidden;
  position: relative;
}
.hero h1 { font-weight: 800; font-size: 2.6rem; }
.hero p { color: #dbe6ff; font-size: 1.05rem; }
.hero .badge-gold {
  background: var(--ft-gold); color: #1e293b; font-weight: 700;
  padding: 6px 14px; border-radius: 20px; font-size: 0.78rem; letter-spacing: 0.5px;
}
.btn-gold { background: var(--ft-gold); border-color: var(--ft-gold); color: #1e293b; font-weight: 700; }
.btn-gold:hover { background: #d97f06; border-color: #d97f06; color: #1e293b; }
.btn-navy { background: var(--ft-navy); border-color: var(--ft-navy); color: #fff; font-weight: 600; }
.btn-navy:hover { background: var(--ft-blue); border-color: var(--ft-blue); color: #fff; }
.btn-outline-navy { border-color: var(--ft-navy); color: var(--ft-navy); font-weight: 600; }
.btn-outline-navy:hover { background: var(--ft-navy); color: #fff; }

/* Section titles */
.section-title { font-weight: 800; color: var(--ft-navy); }
.section-sub { color: var(--ft-gray); }
.section-eyebrow { color: var(--ft-blue); font-weight: 700; letter-spacing: 1.5px; font-size: 0.78rem; text-transform: uppercase; }

/* Category cards */
.category-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: block;
  height: 180px;
  box-shadow: 0 4px 16px rgba(11,31,77,0.08);
  transition: transform 0.2s ease;
}
.category-card:hover { transform: translateY(-4px); }
.category-card img { width: 100%; height: 100%; object-fit: cover; }
.category-card .cat-label {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(11,31,77,0.85), transparent);
  color: #fff; padding: 14px; font-weight: 700; font-family: 'Montserrat', sans-serif;
}

/* Product cards */
.product-card {
  border: 1px solid #eaeef5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  height: 100%;
}
.product-card:hover { box-shadow: 0 10px 24px rgba(11,31,77,0.12); transform: translateY(-3px); }
.product-img-wrap { background: var(--ft-bg); display: flex; align-items: center; justify-content: center; height: 220px; overflow: hidden; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-body { padding: 1rem; }
.product-title { font-weight: 600; font-size: 0.95rem; color: var(--ft-ink); min-height: 44px; }
.product-title a { color: inherit; text-decoration: none; }
.product-title a:hover { color: var(--ft-blue); }
.product-cat { color: var(--ft-gray); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.price-now { color: var(--ft-navy); font-weight: 800; font-size: 1.05rem; }
.price-old { color: #94a3b8; text-decoration: line-through; font-size: 0.85rem; }
.badge-featured { background: var(--ft-gold); color: #1e293b; font-weight: 700; font-size: 0.68rem; }
.badge-sale { background: #dc2626; color: #fff; font-weight: 700; font-size: 0.68rem; }
.badge-stock { background: #16a34a; color: #fff; font-weight: 600; font-size: 0.68rem; }
.badge-outstock { background: #94a3b8; color: #fff; font-weight: 600; font-size: 0.68rem; }

/* Feature strip */
.feature-strip { background: var(--ft-bg); border-top: 1px solid #eaeef5; border-bottom: 1px solid #eaeef5; }
.feature-item i { font-size: 1.8rem; color: var(--ft-blue); }
.feature-item h6 { font-weight: 700; margin-top: 8px; margin-bottom: 2px; color: var(--ft-navy); }
.feature-item p { color: var(--ft-gray); font-size: 0.82rem; margin: 0; }

/* Footer */
.site-footer { background: var(--ft-navy); color: #cbd5e1; padding: 60px 0 0; }
.footer-heading { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: 0.95rem; }
.footer-text { color: #a9bbdb; font-size: 0.88rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; font-size: 0.86rem; color: #a9bbdb; }
.footer-links a { color: #a9bbdb; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-divider { border-color: rgba(255,255,255,0.12); }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: #fff; margin-right: 8px; text-decoration: none;
}
.social-links a:hover { background: var(--ft-blue); }
.payment-badges { display: flex; gap: 8px; }
.pay-badge { background: rgba(255,255,255,0.08); padding: 6px 12px; border-radius: 6px; font-size: 0.78rem; color: #dbe6ff; }

/* Breadcrumb */
.ft-breadcrumb { background: var(--ft-bg); padding: 14px 0; border-bottom: 1px solid #eaeef5; }
.ft-breadcrumb a { color: var(--ft-gray); text-decoration: none; font-size: 0.85rem; }
.ft-breadcrumb .active { color: var(--ft-navy); font-weight: 600; }

/* Filters sidebar */
.filter-card { border: 1px solid #eaeef5; border-radius: var(--radius); padding: 1.2rem; }
.filter-card h6 { font-weight: 700; color: var(--ft-navy); margin-bottom: 12px; }
.filter-cat-link { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ft-ink); text-decoration: none; font-size: 0.9rem; }
.filter-cat-link:hover, .filter-cat-link.active { color: var(--ft-blue); font-weight: 600; }

/* Product detail */
.product-gallery-main { background: var(--ft-bg); border-radius: var(--radius); overflow: hidden; }
.product-gallery-main img { width: 100%; }
.qty-input { max-width: 110px; }

/* Cart */
.cart-table th { font-size: 0.8rem; text-transform: uppercase; color: var(--ft-gray); font-weight: 700; border-bottom: 2px solid #eaeef5; }
.cart-item-img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; background: var(--ft-bg); }
.summary-card { background: var(--ft-bg); border-radius: var(--radius); padding: 1.5rem; }

/* Checkout payment options */
.pay-option {
  border: 2px solid #eaeef5; border-radius: var(--radius); padding: 1rem 1.2rem;
  cursor: pointer; transition: all 0.15s ease; display: flex; align-items: center; gap: 12px;
}
.pay-option input { margin: 0; }
.pay-option.active, .pay-option:has(input:checked) { border-color: var(--ft-blue); background: #eff6ff; }
.pay-option i { font-size: 1.6rem; color: var(--ft-navy); }

/* Steps */
.checkout-steps { display: flex; gap: 6px; align-items: center; margin-bottom: 1.5rem; }
.checkout-steps .step { font-size: 0.8rem; font-weight: 700; color: var(--ft-gray); display: flex; align-items: center; gap: 6px; }
.checkout-steps .step.active { color: var(--ft-blue); }
.checkout-steps .step .num { width: 22px; height: 22px; border-radius: 50%; background: #e2e8f0; color: #64748b; display: flex; align-items: center; justify-content: center; font-size: 0.72rem; }
.checkout-steps .step.active .num { background: var(--ft-blue); color: #fff; }
.checkout-steps .sep { flex: 1; height: 2px; background: #e2e8f0; }

/* Admin */
.admin-sidebar { background: var(--ft-navy); min-height: 100vh; color: #cbd5e1; }
.admin-sidebar a { color: #cbd5e1; text-decoration: none; display: flex; align-items: center; gap: 10px; padding: 10px 18px; font-size: 0.9rem; font-weight: 500; border-radius: 8px; margin: 2px 10px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.1); color: #fff; }
.stat-card { border-radius: var(--radius); padding: 1.3rem; color: #fff; }

@media (max-width: 767px) {
  .hero h1 { font-size: 1.8rem; }
}

/* Floating action buttons */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1040;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  text-decoration: none;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1040;
  background: var(--ft-navy);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.scroll-top-btn.show { display: flex; }
.scroll-top-btn:hover { background: var(--ft-blue); transform: translateY(-2px); }

@media (max-width: 575px) {
  .whatsapp-float { width: 50px; height: 50px; font-size: 1.5rem; bottom: 16px; left: 16px; }
  .scroll-top-btn { width: 42px; height: 42px; font-size: 1.05rem; bottom: 16px; right: 16px; }
}
