:root {
  --primary-color: #0284c7;        /* Sky blue / Ocean vibe */
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --secondary-color: #f97316;      /* Orange highlight for CTA */
  --secondary-hover: #ea580c;
  --accent-color: #10b981;         /* Green badge */
  --dark-color: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --border-radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
  --shadow-hover: 0 12px 24px -4px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  margin: 0;
  padding: 0;
}

/* TOPBAR */
.user-topbar {
  background-color: #0f172a;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-topbar a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
}

.user-topbar a:hover {
  color: #ffffff;
}

.user-topbar .topbar-divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background-color: #334155;
  margin: 0 10px;
  vertical-align: middle;
}

/* MAIN HEADER */
.user-header {
  background-color: #ffffff;
  padding: 1.25rem 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 0.725rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* SEARCH BAR */
.header-search {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.header-search .input-group {
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
  transition: var(--transition);
}

.header-search .input-group:focus-within {
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.25);
}

.header-search input {
  border: none;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  outline: none;
}

.header-search .btn-search {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 0 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.header-search .btn-search:hover {
  background: var(--primary-hover);
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

.action-item:hover {
  color: var(--primary-color);
}

.action-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #334155;
  position: relative;
  transition: var(--transition);
}

.action-item:hover .action-icon-box {
  background: var(--primary-light);
  color: var(--primary-color);
}

.action-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--secondary-color);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.action-text small {
  display: block;
  font-size: 0.725rem;
  color: var(--text-muted);
  line-height: 1;
}

.action-text span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

/* NAVBAR */
.user-navbar {
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 2px solid #0284c7;
  padding: 0;
}

.category-dropdown-btn {
  background: var(--primary-color);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  border-radius: 0;
  letter-spacing: 0.02em;
}

.category-dropdown-btn:hover {
  background: var(--primary-hover);
}

.user-nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  padding: 0.85rem 1.1rem !important;
  transition: var(--transition);
  position: relative;
}

.user-nav-link:hover,
.user-nav-link.active {
  color: var(--primary-color);
}

.user-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1.1rem;
  right: 1.1rem;
  height: 2px;
  background-color: var(--primary-color);
}

/* FEATURE BOX (Cam kết) */
.features-bar {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 1.5rem 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-top: -30px;
  position: relative;
  z-index: 10;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.feature-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* PRODUCT CARD */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.product-thumb {
  position: relative;
  width: 100%;
  padding-top: 85%;
  background: #f8fafc;
  overflow: hidden;
}

.product-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.06);
}

.product-badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 0.725rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  z-index: 2;
}

.product-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-name {
  font-size: 0.75rem;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-title {
  font-size: 0.925rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: 8px;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

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

.product-price-box {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.product-price-current {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ef4444;
}

.product-btn-add {
  background: #f1f5f9;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  padding: 0.55rem;
  font-weight: 600;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  transition: var(--transition);
}

.product-card:hover .product-btn-add {
  background: var(--primary-color);
  color: #ffffff;
}

/* FOOTER */
.user-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: 3.5rem;
  margin-top: 4rem;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background-color: var(--primary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.825rem;
  margin-top: 3rem;
}
