:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --success: #16a34a;
  --danger: #dc2626;
  --text: #1f2937;
  --text-soft: #4b5563;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f3f4f6;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.2s;
}

button:hover {
  transform: translateY(-1px);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

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

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.top-strip {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-soft);
}

.top-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  flex-wrap: wrap;
  gap: 8px;
}

.top-strip-left,
.top-strip-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-strip-left i,
.top-strip-right i {
  color: var(--primary);
  margin-right: 6px;
  font-size: 11px;
}

.top-strip-right a:hover {
  color: var(--primary);
}

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-image {
  height: 50px;
  width: auto;
  border-radius: 12px;
  object-fit: contain;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.logo-text strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.logo-text small {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: stretch;
  max-width: 560px;
  height: 44px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
}

.search-box input {
  flex: 1;
  border: none;
  padding: 0 14px;
  font-size: 13.5px;
  background: var(--bg);
  min-width: 0;
}

.search-box select {
  border: none;
  border-left: 1px solid var(--border);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--bg-alt);
  cursor: pointer;
}

.search-box button {
  width: 56px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  border-radius: 0;
}

.search-box button:hover {
  background: var(--primary-dark);
  transform: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.header-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
  font-size: 12.5px;
}

.header-btn:hover {
  background: var(--bg-alt);
  transform: none;
}

.header-btn i {
  font-size: 22px;
  color: var(--primary);
}

.header-btn div {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.header-btn span {
  color: var(--text-muted);
  font-size: 11.5px;
}

.header-btn strong {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}

.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
  border: 2px solid white;
}

.main-nav {
  background: var(--primary);
  color: white;
  position: sticky;
  top: 80px;
  z-index: 49;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 44px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius);
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: white;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.2s;
}

.nav-list a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.nav-list i {
  font-size: 13px;
}

/* Dropdown Menu Styles */
.nav-item.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: white;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.2s;
  cursor: pointer;
}

.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.nav-item.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 100;
  border: 1px solid var(--border);
}

.nav-item.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  border-radius: 0;
}

.dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--primary);
  padding-left: 20px;
}

.dropdown-menu i {
  color: var(--primary);
  font-size: 14px;
  width: 18px;
  text-align: center;
}

#app {
  min-height: calc(100vh - 160px);
  padding-bottom: 40px;
}

.hero-banner {
  margin: 20px 0 28px;
  display: block;
}

.hero-sidebar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hero-sidebar h4 {
  padding: 14px 16px;
  background: var(--primary);
  color: white;
  font-size: 13.5px;
  font-weight: 600;
}

.hero-sidebar ul {
  padding: 6px;
}

.hero-sidebar li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-soft);
}

.hero-sidebar li a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

.hero-sidebar i {
  width: 18px;
  color: var(--primary);
  font-size: 13px;
}

.hero-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  min-height: 450px;
  background:
    linear-gradient(100deg, rgba(15, 23, 42, 0.82) 0%, rgba(30, 58, 138, 0.72) 45%, rgba(15, 23, 42, 0.45) 100%),
    url("../anh/1.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  width: 100%;
}

.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(249, 115, 22, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 85% 78%, rgba(37, 99, 235, 0.18) 0%, transparent 45%);
  pointer-events: none;
}

.hero-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.hero-deco.dots {
  top: 18px;
  right: 20px;
  width: 82px;
  height: 82px;
  background-image: radial-gradient(rgba(255,255,255,0.35) 1.4px, transparent 1.6px);
  background-size: 11px 11px;
  opacity: 0.5;
}

.hero-deco.circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  bottom: -38px;
  right: -24px;
}

.hero-deco.circle.small {
  width: 92px;
  height: 92px;
  bottom: 22px;
  right: 26px;
  border-color: rgba(249, 115, 22, 0.3);
}

.hero-main-inner {
  width: 100%;
  max-width: 680px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  padding: 40px 60px;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.hero-copy {
  color: white;
}

.hero-copy .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
  letter-spacing: 0.3px;
  position: relative;
  overflow: hidden;
}

.hero-copy .tag::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: shine 2.4s infinite;
}

@keyframes shine {
  0% { left: -80%; }
  60% { left: 120%; }
  100% { left: 120%; }
}

.hero-copy h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 10px;
  text-shadow: 0 3px 14px rgba(15, 23, 42, 0.5);
  letter-spacing: -0.3px;
}

.hero-copy .hero-desc {
  font-size: 14px;
  opacity: 0.96;
  margin-bottom: 14px;
  line-height: 1.55;
  max-width: 420px;
}

.hero-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-list {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px 18px;
}

.hero-list h3 {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fed7aa;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

.hero-list h3 i {
  color: var(--accent);
}

.hero-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.hero-list li {
  font-size: 12.5px;
  line-height: 1.35;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.hero-list li i {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
  font-size: 11px;
}

.hero-list.check li i {
  color: #4ade80;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

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

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

.btn-white:hover {
  background: var(--bg-alt);
}

.btn-block {
  width: 100%;
}

.hero-img {
  display: none;
}

.hero-side-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.promo-card {
  background: linear-gradient(135deg, var(--accent), #fb923c);
  color: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.promo-card-with-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 140px;
  position: relative;
}

.promo-card-with-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.promo-card-overlay {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 16px;
  background: transparent;
  border-radius: var(--radius);
}

.promo-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 6px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-card strong {
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-card:nth-child(2) {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.promo-card span {
  font-size: 12px;
  opacity: 0.9;
  font-weight: 500;
}

.promo-card a {
  color: white;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Cooperation Card Styles */
.promo-card.cooperation-card {
  background: url('anh/hop-tac.png') no-repeat center center !important;
  background-size: cover !important;
  min-height: 180px;
  justify-content: space-between;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.promo-card.cooperation-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  z-index: 1;
}

.promo-card.cooperation-card > * {
  position: relative;
  z-index: 2;
}

.cooperation-subtitle {
  font-size: 14px;
  opacity: 1;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  margin-bottom: 10px;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.cooperation-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  flex-grow: 1;
  display: flex;
  align-items: center;
  color: white;
}

.cooperation-cta {
  font-size: 15px;
  font-weight: 700;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  padding-bottom: 6px;
  color: white;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.cooperation-cta:hover {
  border-bottom-color: white;
  padding-bottom: 2px;
}

.section {
  margin-bottom: 36px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
}

.section-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.section-header h2 i {
  color: var(--accent);
}

.section-header a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
}

.section-header a:hover {
  color: var(--accent);
}

.featured-flash {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: var(--radius-lg);
  padding: 4px 10px;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}

.category-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}

.category-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.category-card i {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin: 0 auto 12px;
}

.category-card:nth-child(even) i {
  background: linear-gradient(135deg, var(--accent), #fb923c);
}

.category-card span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.badge-sale {
  background: var(--danger);
  color: white;
}

.badge-hot {
  background: var(--accent);
  color: white;
}

.badge-new {
  background: var(--success);
  color: white;
}

.product-thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  position: relative;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

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

.product-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  z-index: 2;
  cursor: pointer;
  transition: all 0.2s;
}

.product-wish:hover {
  color: var(--danger);
  transform: scale(1.1);
}

.product-info {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

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

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
}

.product-rating .stars {
  color: #f59e0b;
  font-size: 11px;
  letter-spacing: -1px;
}

.product-rating span {
  color: var(--text-muted);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.product-tag {
  padding: 3px 7px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
}

.product-price {
  margin-top: auto;
  margin-bottom: 12px;
}

.price-current {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.price-old {
  color: var(--text-muted);
  font-size: 12.5px;
  text-decoration: line-through;
  margin-left: 6px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn-buy {
  background: var(--primary);
  color: white;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
}

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

.btn-cart {
  width: 36px;
  background: var(--bg-alt);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  display: grid;
  place-items: center;
}

.btn-cart:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
}

.feature-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
}

.feature-item i {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-item:nth-child(even) i {
  background: linear-gradient(135deg, var(--accent), #fb923c);
}

.feature-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
  color: var(--text);
}

.feature-item span {
  font-size: 12.5px;
  color: var(--text-muted);
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  margin-top: 20px;
}

.filter-sidebar {
  position: sticky;
  top: 136px;
  align-self: start;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.filter-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group {
  margin-bottom: 18px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="number"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  background: var(--bg);
}

.price-slider-wrap {
  padding: 8px 4px 16px;
}

.price-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 12px;
}

.price-display .price-sep {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
}

.price-slider {
  position: relative;
  height: 5px;
  margin: 0 8px;
}

.price-slider .slider-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--border);
  border-radius: 999px;
}

.price-slider .slider-range {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--primary);
  border-radius: 999px;
}

.price-slider input[type="range"] {
  position: absolute;
  top: 0;
  left: -8px;
  right: -8px;
  width: calc(100% + 16px);
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
  padding: 0;
  border: 0;
}

.price-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  pointer-events: auto;
  margin-top: -6px;
}

.price-slider input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
  cursor: pointer;
  pointer-events: auto;
}

.price-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  background: transparent;
}

.price-slider input[type="range"]::-moz-range-track {
  height: 5px;
  background: transparent;
}

.filter-list {
  display: grid;
  gap: 7px;
}

.filter-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  color: var(--text-soft);
  margin-bottom: 0;
  cursor: pointer;
}

.filter-list input {
  width: auto;
  accent-color: var(--primary);
}

.btn-clear {
  width: 100%;
  background: var(--bg-alt);
  color: var(--text-soft);
  border: 1px solid var(--border);
  padding: 9px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
}

.btn-clear:hover {
  background: var(--border);
  color: var(--text);
}

.catalog {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.catalog-head {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.catalog-info strong {
  color: var(--primary);
  font-size: 15px;
}

.catalog-info span {
  color: var(--text-muted);
  font-size: 13px;
  margin-left: 6px;
}

.catalog-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-sort label {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
}

.catalog-sort select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--bg);
  cursor: pointer;
}

.view-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.view-toggle button {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--bg);
}

.view-toggle button.active {
  background: var(--primary);
  color: white;
}

.view-toggle button:hover {
  transform: none;
}

.no-products {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 24px;
  text-align: center;
}

.no-products i {
  font-size: 56px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.no-products h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.no-products p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 20px;
}

.breadcrumb {
  padding: 14px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.detail-gallery {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.detail-main-img {
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}

.detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.detail-thumb {
  aspect-ratio: 1 / 1;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
}

.detail-thumb:hover,
.detail-thumb.active {
  border-color: var(--primary);
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.detail-info .product-tags {
  margin-bottom: 10px;
}

.detail-info h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.detail-rating .stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: -1px;
  margin-right: 4px;
}

.detail-rating strong {
  color: var(--text-soft);
  font-weight: 600;
}

.detail-price-box {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 18px;
}

.detail-price-box .price-current {
  font-size: 28px;
}

.detail-price-box .price-old {
  font-size: 14px;
  margin-left: 10px;
}

.price-discount {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 8px;
  background: var(--danger);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}

.option-block {
  margin-bottom: 18px;
}

.option-block > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-item {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  color: var(--text-soft);
  background: var(--bg);
}

.option-item:hover {
  border-color: var(--primary-light);
}

.option-item.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #eff6ff;
}

.quantity-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.quantity-block > label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  min-width: 70px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.qty-control button {
  width: 38px;
  height: 38px;
  background: var(--bg-alt);
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 600;
}

.qty-control button:hover {
  background: var(--primary);
  color: white;
  transform: none;
}

.qty-control input {
  width: 54px;
  height: 38px;
  border: none;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.stock-info {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-add-cart {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 13px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
}

.btn-add-cart:hover {
  background: #eff6ff;
}

.btn-checkout {
  background: var(--accent);
  color: white;
  padding: 13px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.25);
}

.btn-checkout:hover {
  background: var(--accent-dark);
}

.btn-wishlist {
  background: white;
  color: var(--text);
  border: 2px solid var(--border);
  padding: 13px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-wishlist:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-wishlist i {
  margin-right: 6px;
}

.btn-wishlist i.fa-solid {
  color: #dc2626;
}

.detail-policies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.policy-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.policy-item i {
  color: var(--primary);
  margin-top: 2px;
  font-size: 13px;
  flex-shrink: 0;
}

.detail-tabs {
  margin-top: 30px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.detail-section-title {
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  margin: 0;
}

.tab-content {
  padding: 24px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}

.spec-table tr td:first-child {
  color: var(--text-muted);
  width: 180px;
  background: var(--bg-alt);
  font-weight: 500;
}

.spec-table tr td:last-child {
  color: var(--text);
  font-weight: 500;
}

.spec-table tr:last-child td {
  border-bottom: none;
}

.desc-text p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.desc-text h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--text);
}

.related-products {
  margin-top: 30px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  margin-top: 20px;
}

.cart-list {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cart-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-head h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-head h1 i {
  color: var(--accent);
}

.cart-head a {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cart-item-info h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  line-height: 1.4;
}

.cart-item-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cart-item-info .cart-price-current {
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.cart-item-info .cart-price-old {
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: line-through;
  margin-left: 6px;
}

.cart-qty {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

.cart-remove {
  width: 36px;
  height: 36px;
  color: var(--text-muted);
  border-radius: var(--radius);
  font-size: 14px;
  display: grid;
  place-items: center;
}

.cart-remove:hover {
  background: #fef2f2;
  color: var(--danger);
  transform: none;
}

.empty-cart {
  padding: 60px 24px;
  text-align: center;
}

.empty-cart i {
  font-size: 72px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.empty-cart h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.empty-cart p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 14px;
}

.cart-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 136px;
  align-self: start;
}

.cart-summary h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-summary h2 i {
  color: var(--accent);
}

.coupon-box {
  margin-bottom: 18px;
}

.coupon-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.coupon-row input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
}

.coupon-row button {
  padding: 10px 16px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
}

.coupon-row button:hover {
  background: var(--primary-dark);
}

.summary-rows {
  display: grid;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}

.summary-row span:first-child {
  color: var(--text-soft);
}

.summary-row span:last-child {
  color: var(--text);
  font-weight: 600;
}

.summary-row.discount span:last-child {
  color: var(--success);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.summary-total span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.summary-total strong {
  font-size: 22px;
  color: var(--accent);
  font-weight: 700;
}

.checkout-form {
  display: grid;
  gap: 11px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.checkout-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  background: var(--bg);
}

.checkout-form textarea {
  min-height: 60px;
  resize: vertical;
}

.main-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 40px;
  padding: 40px 0 28px;
}

.footer-col:last-child {
  justify-self: end;
  min-width: 320px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 36px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-col p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.footer-col ul li a::before {
  content: "›";
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.contact-list li {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 11px !important;
  line-height: 1.6;
}

.contact-list li::before {
  display: none !important;
}

.contact-list li i {
  color: var(--primary);
  margin-top: 3px;
  width: 16px;
  flex-shrink: 0;
  font-size: 13px;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 15px;
  transition: all 0.2s;
}

.socials a:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-bottom {
  background: var(--primary);
  color: white;
  padding: 14px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom span {
  font-size: 12.5px;
  opacity: 0.95;
}

.payments {
  display: flex;
  gap: 12px;
  font-size: 24px;
  opacity: 0.95;
}

.toast-zone {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 10px;
  z-index: 999;
}

.toast {
  min-width: 280px;
  max-width: 360px;
  padding: 14px 18px;
  background: white;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.25s, transform 0.25s;
}

.toast.success {
  border-left-color: var(--success);
}

.toast.error {
  border-left-color: var(--danger);
}

.toast i {
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.toast.success i {
  color: var(--success);
}

.toast.error i {
  color: var(--danger);
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.hl {
  color: var(--accent);
  font-weight: 700;
}

.policy-layout {
  padding: 18px 0 36px;
}

.policy-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.policy-head {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  padding: 22px 28px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.policy-head > i {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 26px;
  flex-shrink: 0;
}

.policy-head h1 {
  font-size: 22px;
  margin: 0 0 4px;
  font-weight: 700;
}

.policy-head p {
  margin: 0;
  opacity: 0.92;
  font-size: 13.5px;
}

.policy-grid {
  padding: 24px 28px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.policy-col {
  display: grid;
  gap: 18px;
}

.policy-box {
  background: #fafbff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.policy-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  font-size: 18px;
}

.policy-box h2 {
  font-size: 15.5px;
  margin: 0 0 10px;
  color: var(--text);
  font-weight: 700;
}

.policy-box ul {
  padding-left: 20px;
  margin: 0;
}

.policy-box li {
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 6px;
  color: var(--text-soft);
}

.policy-box li ul {
  margin-top: 6px;
}

.policy-box p {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.qr-policy {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 60%);
  border-color: #fed7aa;
}

.qr-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin: 12px 0 14px;
  align-items: center;
}

.qr-img {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  width: 180px;
  height: 180px;
  position: relative;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.qr-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.qr-tag {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.qr-info {
  display: grid;
  gap: 7px;
}

.bank-row {
  font-size: 13.5px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bank-row i {
  color: var(--primary);
  width: 16px;
  text-align: center;
  font-size: 13px;
}

.bank-row strong {
  color: var(--text);
}

.bank-row code {
  font-size: 12.5px;
  padding: 3px 8px;
  background: white;
  border: 1px dashed var(--border);
  border-radius: 6px;
  color: var(--accent);
  font-weight: 600;
}

.qr-note {
  margin: 4px 0 0 !important;
  font-size: 12.5px !important;
  color: var(--text-muted) !important;
}

.qr-note code {
  font-size: 12px;
  padding: 2px 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--accent-dark);
}

.qr-actions {
  display: flex;
  justify-content: flex-start;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s;
}

.contact-card:hover {
  border-color: var(--primary);
  background: #eff6ff;
  color: var(--primary);
  transform: translateY(-1px);
}

.contact-card i {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 14px;
}

.disclaimer {
  margin-top: 14px !important;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  color: #92400e !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
}

.disclaimer i {
  color: #d97706;
  margin-right: 4px;
}

.deposit-card {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 70%);
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 14px 12px;
  margin: 10px 0 16px;
}

.deposit-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.deposit-head > div {
  flex: 1;
  min-width: 0;
}

.qr-mini-wrap {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  margin-bottom: 10px;
  align-items: center;
}

.qr-mini-img {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px;
  width: 96px;
  height: 96px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.qr-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.qr-mini-info code {
  margin-top: 4px !important;
}

.deposit-note {
  margin: 0;
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.6;
}

.deposit-note i {
  margin-right: 4px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12.5px;
  border-radius: 8px;
  gap: 6px;
}

.btn-ghost {
  background: #f8fafc;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: #eef2ff;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  background: #ef4444;
  color: white;
  border-color: #ef4444;
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  transform: translateY(-1px);
}

.btn-block {
  display: flex;
  width: 100%;
  justify-content: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.5;
  margin: 2px 3px 2px 0;
}

.pill-badge.muted {
  background: #f1f5f9;
  color: #475569;
}

.muted {
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 400;
}

@media (max-width: 1180px) {
  .category-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-side-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .top-strip .container {
    height: auto;
    padding: 8px 16px;
    justify-content: center;
  }
  .top-strip-left,
  .top-strip-right {
    justify-content: center;
  }
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 16px;
    gap: 14px;
  }
  .search-box {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .main-nav {
    top: auto;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 10px;
    align-items: stretch;
    gap: 2px;
  }
  .nav-list.open {
    display: flex;
  }
  .nav-list a {
    width: 100%;
    padding: 11px 14px;
  }
  .hero-main {
    min-height: 360px;
  }
  .hero-main-inner {
    max-width: 520px;
    grid-template-columns: 1fr;
    padding: 24px 24px;
  }
  .hero-lists {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .hero-side-card {
    grid-template-columns: 1fr;
  }
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
  .policy-grid {
    grid-template-columns: 1fr;
    padding: 20px 20px 24px;
    gap: 16px;
  }
  .qr-wrap {
    grid-template-columns: 1fr;
  }
  .policy-head {
    padding: 20px 22px;
  }
}

@media (max-width: 640px) {
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .header-btn div {
    display: none;
  }
  .hero-main {
    min-height: 380px;
  }
  .hero-main-inner {
    grid-template-columns: 1fr;
    max-width: none;
    padding: 30px 24px 28px;
    gap: 16px;
    text-align: left;
  }
  .hero-copy h1 {
    font-size: 24px;
  }
  .hero-copy .hero-desc {
    margin-bottom: 12px;
  }
  .hero-actions {
    justify-content: flex-start;
  }
  .hero-lists {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-side-card {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .category-card {
    padding: 14px 8px;
  }
  .category-card i {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-info {
    padding: 10px;
  }
  .price-current {
    font-size: 15px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 0;
  }
  .cart-item {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
  }
  .cart-item img {
    width: 72px;
    height: 72px;
  }
  .cart-qty,
  .cart-total,
  .cart-remove {
    grid-column: span 2;
    margin-left: auto;
  }
  .detail-actions {
    grid-template-columns: 1fr;
  }
  
  .btn-wishlist {
    order: -1;
  }
  .detail-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
  .detail-policies {
    grid-template-columns: 1fr;
  }
  .policy-head {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .policy-grid {
    padding: 18px 14px 22px;
    gap: 14px;
  }
  .policy-box {
    padding: 16px 14px;
  }
  .policy-head h1 {
    font-size: 19px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .qr-img {
    width: 160px;
    height: 160px;
  }
  .qr-mini-wrap {
    grid-template-columns: 1fr;
  }
  .qr-mini-img {
    width: 112px;
    height: 112px;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

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

.btn-google {
  background: white;
  color: #333;
  border: 1px solid var(--border);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-google:hover {
  background: #f8f9fa;
  border-color: #ccc;
}

.btn-google i {
  font-size: 18px;
}

.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  padding: 0 12px;
}

.modal-footer {
  margin-top: 20px;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.modal-footer p {
  color: var(--text-muted);
  font-size: 13px;
}

.modal-footer a {
  color: var(--primary);
  font-weight: 600;
}

.modal-footer a:hover {
  text-decoration: underline;
}

/* Login Button Styles */
.login-btn {
  position: relative;
}

.login-btn.logged-in strong {
  color: var(--success);
}

/* User Dropdown Menu */
.user-menu-wrapper {
  position: relative;
  z-index: 1000;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 280px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  margin-top: 8px;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.user-avatar {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.user-info {
  flex: 1;
  overflow: hidden;
}

.user-name {
  display: block;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-menu {
  padding: 8px 0;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s;
  font-size: 14px;
}

.dropdown-item:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.dropdown-item i {
  width: 18px;
  text-align: center;
  color: var(--text-muted);
}

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

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.dropdown-logout {
  color: var(--danger);
}

.dropdown-logout:hover {
  background: #fef2f2;
  color: var(--danger);
}

.dropdown-logout i {
  color: var(--danger);
}

.dropdown-logout:hover i {
  color: var(--danger);
}

/* Profile Page Styles */
.profile-layout {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px 0;
}

.profile-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.profile-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: white;
}

.profile-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.3);
  background: var(--bg-alt);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 32px;
  height: 32px;
  background: var(--primary-dark);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid white;
  transition: all 0.2s;
}

.avatar-upload-btn:hover {
  background: var(--primary);
  transform: scale(1.1);
}

.profile-info h2 {
  margin: 0 0 5px 0;
  font-size: 24px;
  font-weight: 700;
}

.profile-email {
  margin: 0;
  opacity: 0.9;
  font-size: 14px;
}

.profile-section {
  padding: 25px;
  border-bottom: 1px solid var(--border);
}

.profile-section:last-child {
  border-bottom: none;
}

.profile-section h3 {
  margin: 0 0 20px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group input.readonly-field {
  background: var(--bg-soft);
  color: var(--text-muted);
  cursor: not-allowed;
}

.input-with-status {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-status input {
  flex: 1;
  padding-right: 120px;
}

.verification-status {
  position: absolute;
  right: 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius);
}

.verification-status.verified {
  color: var(--success);
  background: rgba(34, 197, 94, 0.1);
}

.verification-status.unverified {
  color: var(--warning);
  background: rgba(251, 191, 36, 0.1);
}

.form-actions {
  margin-top: 10px;
}

.security-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--bg-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Orders Page Styles */
.orders-layout {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 0;
}

.orders-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px;
}

.orders-card h2 {
  margin: 0 0 25px 0;
  font-size: 24px;
  font-weight: 600;
}

.no-orders {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.no-orders i {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

.no-orders h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  color: var(--text);
}

.no-orders p {
  margin: 0 0 20px 0;
}

/* Admin Page Styles */
.admin-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 24px;
  margin: 20px 0;
}

.admin-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  height: fit-content;
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: all 0.2s;
  font-weight: 500;
}

.admin-nav-item:hover {
  background: var(--bg-soft);
  color: var(--primary);
}

.admin-nav-item.active {
  background: var(--primary);
  color: white;
}

button.admin-nav-item {
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  font: inherit;
  outline: none;
}

.admin-layout table tbody tr:hover {
  background: #fafbfc;
}

.admin-layout table th {
  font-size: 12px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.admin-content {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.admin-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.admin-product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
}

.admin-product-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.admin-product-thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.admin-product-info {
  padding: 12px;
}

.admin-product-info h4 {
  margin: 0 0 8px 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-product-price {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.admin-product-actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger {
  background: var(--danger);
  color: white;
  border: none;
}

.btn-danger:hover {
  background: #dc2626;
}

/* Admin Modal Styles */
.admin-modal {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 20px;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-form label {
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-form textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.rich-editor {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rich-editor:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 10px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.tb-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 14px;
}
.tb-btn:hover {
  background: #fff;
  border-color: var(--border);
  color: var(--primary);
  transform: none;
}
.tb-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.tb-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}
.editor-content {
  min-height: 200px;
  padding: 14px 16px;
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #111111;
  background: #fff;
  outline: none;
  overflow-y: auto;
  max-height: 420px;
}
.editor-content:empty::before {
  content: attr(data-placeholder);
  color: var(--text-muted);
  pointer-events: none;
}
.editor-content,
.editor-content * {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #111111 !important;
  background: transparent !important;
}
.editor-content p { margin: 0 0 10px; }
.editor-content p:last-child { margin-bottom: 0; }
.editor-content ul,
.editor-content ol { margin: 0 0 10px 24px; padding: 0; }
.editor-content li { margin-bottom: 4px; }
.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4 {
  margin: 14px 0 8px;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
}
.editor-content h1 { font-size: 26px; }
.editor-content h2 { font-size: 22px; }
.editor-content h3 { font-size: 18px; }
.editor-content h4 { font-size: 16px; }

.admin-description {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px dashed var(--border);
}
.admin-description,
.admin-description * {
  font-family: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  color: #111111 !important;
}
.admin-description p {
  margin: 0 0 12px;
  line-height: 1.8;
}
.admin-description ul,
.admin-description ol {
  margin: 0 0 12px 24px;
  padding: 0;
}
.admin-description li {
  margin-bottom: 6px;
  line-height: 1.7;
}
.admin-description h1,
.admin-description h2,
.admin-description h3,
.admin-description h4 {
  margin: 18px 0 10px;
  font-weight: 700;
  line-height: 1.3;
}
.admin-description h1 { font-size: 26px; }
.admin-description h2 { font-size: 22px; }
.admin-description h3 { font-size: 18px; }
.admin-description h4 { font-size: 16px; }

.image-preview-container,
.video-preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.preview-item {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-preview {
  width: 200px;
  height: 150px;
}

.remove-preview {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.2s;
}

.remove-preview:hover {
  background: var(--danger);
}

.admin-form .form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    order: 2;
  }
  
  .admin-content {
    order: 1;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .admin-modal {
    max-width: 95%;
  }
}
