:root {
  --primary: #0f172a;
  --primary-hover: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --bg-body: #ffffff;
  --bg-surface: #f8fafc;
  --border-color: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 8px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Announcement */
.announcement-bar {
  background-color: var(--primary);
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 8px 0;
}

.announcement-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand-logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
}

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

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 16px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s;
}

.search-input:focus {
  border-color: var(--accent);
  background-color: #fff;
}

.search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.badge-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

.category-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 10px 0;
  overflow-x: auto;
}

.category-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.category-link:hover, .category-link.active {
  color: var(--accent);
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  padding: 72px 0;
}

.hero-box {
  max-width: 620px;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
}

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

.btn-dark {
  background-color: var(--primary);
  color: #fff;
}

.btn-dark:hover {
  background-color: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.8rem;
}

.btn-block {
  width: 100%;
}

/* Section Common */
.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Category Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

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

/* Product Cards */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.prod-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
  position: relative;
}

.prod-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.prod-img-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: var(--bg-surface);
  overflow: hidden;
  position: relative;
}

.prod-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.prod-card:hover .prod-img {
  transform: scale(1.04);
}

.badge-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.prod-details {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.prod-cat {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.prod-name {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 4px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prod-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.prod-price {
  font-size: 1.2rem;
  font-weight: 800;
}

.prod-sale-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.prod-card-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Card Container */
.card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.88rem;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

/* Footer */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 56px 0 24px;
  margin-top: 60px;
}

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

.footer-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.footer-list a:hover {
  color: #fff;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 2rem; }
  .header-search { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* Cart & Checkout Layout */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.data-table th {
  padding: 14px 16px;
  background: var(--bg-surface);
  border-bottom: 2px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  font-size: 0.9rem;
}
.data-table tr:hover td {
  background: rgba(248, 250, 252, 0.7);
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border-color);
  background: #f1f5f9;
}
.cart-item-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-item-title {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
}
.cart-item-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.qty-control-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-surface);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-control-btn:hover {
  background: #e2e8f0;
}
.qty-control-input {
  width: 44px;
  height: 32px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  text-align: center;
  font-weight: 600;
  font-size: 0.88rem;
  outline: none;
}

.summary-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.summary-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.summary-row.total {
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  margin-top: 14px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

/* Badge System */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fee2e2; color: #b91c1c; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-neutral { background: #f1f5f9; color: #475569; }

/* Alert Boxes */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.alert-info { background: #f0f9ff; border: 1px solid #bae6fd; color: #075985; }

/* Stepper Component */
.stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 30px 0;
}
.stepper::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}
.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  background: #fff;
  padding: 0 10px;
}
.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.step-item.active .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.step-item.completed .step-circle {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}
.step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.step-item.active .step-label {
  color: var(--text-main);
  font-weight: 700;
}

