﻿:root {
  --font-body: "Poppins", "Segoe UI", Tahoma, sans-serif;
  --font-display: "Poppins", "Segoe UI", Tahoma, sans-serif;
  --primary: #1a1a2e;
  --accent: #e94560;
  --accent-strong: #d73953;
  --text: #1f2a37;
  --text2: #6b7280;
  --bg: #f4f6fb;
  --bg2: #eef2ff;
  --surface: #ffffff;
  --border: #e5e7eb;
  --header-h: 72px;
  --sidebar-w: 300px;
  --sidebar-w-collapsed: 84px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.desktop-sidebar-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.desktop-sidebar-toggle:hover {
  border-color: #f9c4ce;
  background: #fff6f8;
}

.desktop-sidebar-toggle span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
}

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

.logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1;
  color: var(--primary);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.logo-text strong {
  color: var(--accent);
}

.nav-links {
  margin-left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  text-decoration: none;
  color: var(--text2);
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
  padding: 8px 12px;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: #fff1f4;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-wrap {
  position: relative;
  width: min(360px, 46vw);
}

.search-input {
  width: 100%;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0 40px 0 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
  border-color: #f5a8b7;
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.14);
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text2);
  font-size: 13px;
}

.cart-btn,
.admin-login-btn,
.hamburger {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.cart-btn:hover,
.admin-login-btn:hover,
.hamburger:hover {
  border-color: #f9c4ce;
  color: var(--accent);
  background: #fff6f8;
}

.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
}

.cart-badge.pop {
  animation: badgePop 0.35s ease;
}

@keyframes badgePop {
  0% { transform: scale(1); }
  35% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 20px) 18px 24px;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 18px;
  transition: grid-template-columns 0.25s ease;
}

.layout.sidebar-collapsed {
  grid-template-columns: var(--sidebar-w-collapsed) minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 14px);
  max-height: calc(100vh - var(--header-h) - 26px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: padding 0.25s ease;
}

.layout.sidebar-collapsed .sidebar {
  padding: 10px;
}

.layout.sidebar-collapsed .sidebar-title,
.layout.sidebar-collapsed .cat-count,
.layout.sidebar-collapsed .price-labels,
.layout.sidebar-collapsed .sort-select,
.layout.sidebar-collapsed .sidebar-cart,
.layout.sidebar-collapsed .sidebar-total,
.layout.sidebar-collapsed .sidebar-section .range-slider {
  display: none;
}

.layout.sidebar-collapsed .sidebar-section {
  margin-bottom: 10px;
}

.layout.sidebar-collapsed .cat-btn {
  padding: 10px 8px;
  justify-content: center;
  font-size: 11px;
}

.sidebar-section {
  margin-bottom: 18px;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.category-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.cat-btn {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text2);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}

.cat-btn:hover,
.cat-btn.active {
  border-color: #ffc8d2;
  background: #fff5f7;
  color: var(--accent);
}

.cat-btn.sub-cat {
  margin-left: 12px;
  width: calc(100% - 12px);
  font-size: 12px;
}

.cat-count {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.price-range {
  display: grid;
  gap: 8px;
}

.range-slider {
  width: 100%;
  accent-color: var(--accent);
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text2);
}

.sort-select,
.content-select {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  height: 38px;
  padding: 0 12px;
  color: var(--text);
  outline: none;
}

.sort-select:focus,
.content-select:focus {
  border-color: #f5a8b7;
}

.sidebar-cart {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.sidebar-cart li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--text2);
}

.empty-cart-msg {
  color: var(--text2);
  font-size: 12px;
}

.sidebar-total {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.content {
  min-width: 0;
}

.hero-banner {
  margin-bottom: 16px;
}

.hero-banner-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(120deg, color-mix(in oklab, var(--banner-accent, #e94560) 18%, #ffffff), #ffffff);
  border: 1px solid #f0d5db;
  box-shadow: var(--shadow-sm);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.64), transparent 45%);
}

.hero-banner-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.hero-banner-content {
  display: grid;
  gap: 10px;
}

.hero-banner-badge {
  width: max-content;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--banner-accent, #e94560);
  border-radius: 999px;
  padding: 5px 10px;
  letter-spacing: 0.5px;
}

.hero-banner-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.3vw, 36px);
  line-height: 1.2;
  color: var(--primary);
}

.hero-banner-subtitle {
  margin: 0;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.7;
}

.hero-banner-offer {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.hero-banner-offer strong {
  color: var(--accent);
  font-size: 18px;
}

.hero-banner-offer span {
  color: var(--text2);
  font-size: 12px;
}

.hero-banner-btn {
  display: inline-flex;
  width: max-content;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.2s;
}

.hero-banner-btn:hover {
  background: var(--accent);
}

.hero-banner-media {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-media img {
  width: min(100%, 420px);
  max-height: 240px;
  object-fit: contain;
}

.hero-banner-controls {
  position: absolute;
  right: 16px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 6px 8px;
  backdrop-filter: blur(4px);
}

.hero-nav {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-dots {
  display: inline-flex;
  gap: 6px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
}

.hero-dot.active {
  background: var(--accent);
}

.content-header {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  color: var(--primary);
  font-size: clamp(21px, 1.7vw, 29px);
}

.content-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.product-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  border-radius: 999px;
  background: #eef2ff;
  padding: 7px 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 8px;
  letter-spacing: 0.3px;
}

.card-badge.new {
  background: #2563eb;
}

.card-badge.hot {
  background: #f59e0b;
}

.card-img-wrap {
  height: 190px;
  background: linear-gradient(145deg, #f8f9fd, #eef2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 66px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-media-icon {
  font-size: 52px;
  color: #94a3b8;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px;
}

.card-category {
  color: var(--text2);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.card-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  min-height: 44px;
  margin-bottom: 6px;
}

.card-stars {
  font-size: 12px;
  color: #f59e0b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.card-stars span {
  color: var(--text2);
  font-size: 11px;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.card-price {
  font-size: 20px;
  line-height: 1;
  font-family: var(--font-display);
  color: var(--accent);
}

.card-old-price {
  font-size: 12px;
  color: var(--text2);
  text-decoration: line-through;
}

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

.add-btn,
.buy-now-btn {
  height: 36px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.add-btn {
  background: #fff4f7;
  color: var(--accent);
  border-color: #ffd4dc;
}

.add-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.add-btn.added {
  background: #e7f8ee;
  border-color: #bae5cc;
  color: #0f8f43;
}

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

.buy-now-btn:hover {
  background: var(--accent);
}

.add-btn:disabled,
.buy-now-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.product-pagination {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-btn {
  min-width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
  border-color: #ffd0d9;
  background: #fff4f7;
  color: var(--accent);
}

.page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.floating-cart {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1250;
}

.floating-btn {
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
}

.float-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.float-total {
  font-size: 14px;
  font-weight: 700;
}

.float-count {
  font-size: 12px;
  opacity: 0.85;
}

.drawer-overlay,
.modal-overlay,
.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.drawer-overlay.open,
.modal-overlay.open,
.success-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100vh;
  background: #fff;
  z-index: 1300;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.18);
}

.cart-drawer.open {
  transform: translateX(0);
}

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

.drawer-header h3 {
  margin: 0;
  font-size: 19px;
  color: var(--primary);
}

.close-drawer {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.drawer-items {
  margin: 0;
  padding: 10px;
  list-style: none;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.drawer-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px;
}

.drawer-item-emoji {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #f4f7ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #64748b;
}

.drawer-item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.28;
}

.drawer-item-price {
  font-size: 12px;
  color: var(--text2);
}

.qty-ctrl {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qty-btn,
.remove-btn {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.qty-num {
  font-size: 13px;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}

.drawer-item-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.drawer-item-total {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.drawer-footer {
  border-top: 1px solid var(--border);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.drawer-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text2);
}

.drawer-total-row.grand {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.checkout-btn {
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

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

.modal-overlay {
  z-index: 1350;
}

.modal {
  width: min(760px, calc(100vw - 24px));
  margin: 5vh auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px;
  position: relative;
}

.modal-title {
  margin: 0 0 14px;
  color: var(--primary);
  font-family: var(--font-display);
}

.modal-step.hidden {
  display: none;
}

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

.form-group {
  display: grid;
  gap: 5px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text2);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  outline: none;
}

.form-group textarea {
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #f5a8b7;
}

.modal-next-btn,
.modal-back-btn,
.modal-place-btn {
  margin-top: 12px;
  border: none;
  border-radius: 10px;
  height: 42px;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
}

.modal-next-btn,
.modal-place-btn {
  background: var(--primary);
  color: #fff;
}

.modal-next-btn:hover,
.modal-place-btn:hover {
  background: var(--accent);
}

.modal-back-btn {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text2);
}

.step2-btns {
  display: flex;
  gap: 8px;
}

.step2-btns button {
  flex: 1;
}

.modal-close-x {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay-option {
  position: relative;
}

.pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.pay-option input:checked + .pay-card {
  border-color: #ffb9c6;
  background: #fff4f7;
}

.pay-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.pay-cod { background: #2563eb; }
.pay-bkash { background: #ec4899; }
.pay-nagad { background: #f97316; }
.pay-rocket { background: #7c3aed; }

.pay-card strong {
  display: block;
  font-size: 13px;
}

.pay-card small {
  font-size: 11px;
  color: var(--text2);
}

.order-summary-box {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: #fbfcff;
  display: grid;
  gap: 7px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text2);
}

.sum-row:last-child {
  font-weight: 700;
  color: var(--text);
}

.success-overlay {
  z-index: 1400;
  display: grid;
  align-items: center;
  justify-items: center;
}

.success-modal {
  width: min(520px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 20px;
}

.success-animation {
  display: flex;
  justify-content: center;
}

.success-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e6f9ee;
  color: #0f8f43;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.success-title {
  margin: 12px 0 6px;
  text-align: center;
  color: var(--primary);
}

.success-sub,
.success-note {
  margin: 0;
  text-align: center;
  color: var(--text2);
  font-size: 13px;
}

.order-id-box {
  margin: 12px 0;
  text-align: center;
  border: 1px dashed #fdc3ce;
  background: #fff5f7;
  color: var(--accent);
  border-radius: 10px;
  padding: 10px;
}

.success-details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.det-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 6px;
}

.det-row:last-child {
  margin-bottom: 0;
  font-weight: 700;
  color: var(--text);
}

.success-btn {
  margin-top: 12px;
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

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

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  z-index: 1450;
}

.footer {
  margin-top: 30px;
  background: #0f172a;
  color: #e2e8f0;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}

.footer-logo {
  font-size: 24px;
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.footer-logo strong {
  color: #fb7185;
}

.footer-desc {
  margin: 0;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.7;
  max-width: 520px;
}

.footer-socials {
  margin-top: 14px;
  display: flex;
  gap: 8px;
}

.social-link {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #e2e8f0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-link:hover {
  color: #fff;
  border-color: #fb7185;
  background: rgba(251, 113, 133, 0.15);
}

.footer-right {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.footer-col h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #94a3b8;
}

.footer-col a {
  color: #94a3b8;
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .search-wrap {
    width: min(320px, 52vw);
  }

  .layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .layout.sidebar-collapsed {
    grid-template-columns: 74px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .desktop-sidebar-toggle {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .layout,
  .layout.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(var(--header-h) + 10px);
    max-height: calc(100vh - var(--header-h) - 22px);
    z-index: 1230;
    transform: translateX(-110%);
    transition: transform 0.24s ease;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .search-wrap {
    width: min(360px, 58vw);
  }

  .hero-banner-inner {
    grid-template-columns: 1fr;
  }

  .hero-banner-media {
    min-height: 140px;
  }

  .content-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }

  .logo-text {
    font-size: 21px;
  }

  .search-wrap {
    display: none;
  }

  .content-tools {
    width: 100%;
  }

  .content-select {
    flex: 1;
    min-width: 150px;
  }

  .product-grid {
    gap: 10px;
  }

  .card-img-wrap {
    height: 150px;
    font-size: 48px;
  }

  .card-name {
    min-height: 40px;
    font-size: 14px;
  }

  .card-price {
    font-size: 17px;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .floating-cart {
    right: 12px;
    left: 12px;
    bottom: 12px;
  }

  .floating-btn {
    width: 100%;
    justify-content: center;
  }

  .form-grid,
  .payment-methods {
    grid-template-columns: 1fr;
  }

  .footer-right {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .content-select {
    min-width: 100%;
  }
}





/* Sidebar natural restore: sidebar-only override */
@media (min-width: 901px) {
  .layout.sidebar-collapsed {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  }

  .sidebar {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #c7cbd4 transparent;
  }

  .sidebar::-webkit-scrollbar {
    width: 8px;
  }

  .sidebar::-webkit-scrollbar-track {
    background: transparent;
  }

  .sidebar::-webkit-scrollbar-thumb {
    background: #c7cbd4;
    border-radius: 999px;
  }

  .layout.sidebar-collapsed .sidebar {
    padding: 0;
  }

  .layout.sidebar-collapsed .sidebar-title,
  .layout.sidebar-collapsed .cat-count,
  .layout.sidebar-collapsed .price-labels,
  .layout.sidebar-collapsed .sort-select,
  .layout.sidebar-collapsed .sidebar-cart,
  .layout.sidebar-collapsed .sidebar-total,
  .layout.sidebar-collapsed .sidebar-section .range-slider {
    display: revert;
  }

  .layout.sidebar-collapsed .sidebar-section {
    margin-bottom: 18px;
  }

  .layout.sidebar-collapsed .cat-btn {
    padding: 4px 0;
    justify-content: flex-start;
    font-size: 14px;
  }

  .category-list {
    gap: 4px;
  }

  .cat-btn {
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 0;
    justify-content: flex-start;
  }

  .cat-btn:hover,
  .cat-btn.active {
    border-color: transparent;
    background: transparent;
    color: var(--text);
  }

  .cat-btn.sub-cat {
    margin-left: 14px;
    width: calc(100% - 14px);
    font-size: 13px;
  }

  .cat-count {
    background: transparent;
    border-radius: 0;
    padding: 0;
    font-size: 12px;
    font-weight: 500;
  }
}

/* Natural restore: white background + banner natural */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --bg2: #ffffff;
}

html,
body {
  background: #ffffff;
}

.layout,
.content,
.footer,
.footer-inner {
  background: #ffffff;
}

.hero-banner-stage {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hero-banner-overlay {
  display: none;
}

/* ===== Requested UI Upgrade: Sidebar + Floating Cart + Bootstrap-like Modal ===== */
.sidebar-title {
  font-size: 14px;
  font-weight: 700;
}

.sidebar .category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.sidebar .cat-main-item {
  margin-bottom: 8px;
}

.sidebar .cat-btn.main-cat {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.sidebar .cat-main-label {
  font-weight: 700;
}

.sidebar .cat-main-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sidebar .cat-arrow {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: #334155;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.sidebar .subcat-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease, opacity 0.2s ease;
}

.sidebar .subcat-list.open {
  max-height: 460px;
  opacity: 1;
}

.sidebar .cat-btn.sub-cat {
  margin-top: 4px;
  margin-left: 14px;
  width: calc(100% - 14px);
  font-size: 14px;
  font-weight: 600;
  border-left: 2px solid #dbe4ff;
  padding-left: 10px;
}

.sidebar .cat-btn.sub-cat .cat-count {
  opacity: 0.9;
}

.sidebar .cat-btn.main-cat.active,
.sidebar .cat-btn.sub-cat.active {
  font-weight: 700;
}

/* Floating cart fixed right center in circular style */
.floating-cart {
  top: 50%;
  right: 18px;
  left: auto;
  bottom: auto;
  transform: translateY(-50%);
}

.floating-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 0;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}

.floating-btn .float-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

.floating-btn .float-total {
  display: none;
}

.floating-btn .float-count {
  position: absolute;
  right: -4px;
  bottom: -2px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Bootstrap-like modal and popup style */
.modal-overlay,
.success-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}

.modal {
  width: min(760px, 100%);
  margin: 0;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  background: #fff;
  padding: 1rem 1rem 1.25rem;
}

.modal-title {
  color: #212529;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.form-group label {
  color: #495057;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  color: #212529;
  background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

.modal-next-btn,
.modal-place-btn {
  background: #0d6efd;
  border: 1px solid #0d6efd;
  color: #fff;
  border-radius: 0.375rem;
}

.modal-next-btn:hover,
.modal-place-btn:hover {
  background: #0b5ed7;
  border-color: #0a58ca;
}

.modal-back-btn {
  background: #6c757d;
  border: 1px solid #6c757d;
  color: #fff;
  border-radius: 0.375rem;
}

.modal-back-btn:hover {
  background: #5c636a;
  border-color: #565e64;
}

.pay-card {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  background: #fff;
}

.pay-option input:checked + .pay-card {
  border-color: #86b7fe;
  background: #e7f1ff;
}

.order-summary-box,
.success-details {
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  background: #f8f9fa;
}

.modal-close-x,
.close-drawer {
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
}

.success-modal {
  width: min(560px, 100%);
  margin: 0;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
  background: #fff;
}

.success-circle {
  background: #d1e7dd;
  color: #0f5132;
}

.success-btn {
  background: #198754;
  border: 1px solid #198754;
  border-radius: 0.375rem;
}

.success-btn:hover {
  background: #157347;
  border-color: #146c43;
}

.toast {
  border-radius: 0.375rem;
  background: #212529;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

@media (max-width: 900px) {
  .floating-cart {
    top: auto;
    right: 14px;
    bottom: 16px;
    transform: none;
  }

  .floating-btn {
    width: 58px;
    height: 58px;
  }

  .floating-btn .float-icon {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 768px) {
  .modal {
    width: 100%;
    padding: 0.9rem;
  }

  .payment-methods,
  .form-grid,
  .step2-btns {
    grid-template-columns: 1fr;
  }

  .step2-btns {
    display: grid;
  }
}

/* ===== Final Cleanup: Sidebar / Product List / Modal ===== */
.sidebar {
  padding-right: 4px;
}

.sidebar .cat-main-item {
  margin-bottom: 10px;
}

.sidebar .cat-btn {
  border-radius: 12px;
  padding: 10px 12px;
  line-height: 1.2;
}

.sidebar .cat-btn.main-cat {
  font-size: 15.5px;
  font-weight: 800;
}

.sidebar .cat-main-left,
.sidebar .cat-sub-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar .cat-main-label,
.sidebar .cat-sub-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar .cat-sub-label {
  font-size: 14px;
  font-weight: 600;
}

.sidebar .cat-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  background: var(--icon-bg, #eef2ff);
  color: var(--icon-fg, #334155);
}

.sidebar .cat-icon i {
  font-size: 13px;
}

.sidebar .cat-btn.sub-cat {
  margin-left: 16px;
  width: calc(100% - 16px);
  padding: 9px 10px;
  border-left: 0;
  border-radius: 10px;
  background: #f8fafc;
}

.sidebar .cat-btn.sub-cat.active {
  background: #eff6ff;
}

.sidebar .cat-main-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sidebar .cat-count {
  min-width: 22px;
  text-align: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.sidebar .cat-arrow {
  background: #e2e8f0;
}

/* Product list alignment and cleaner card rows */
.product-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.product-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.card-img-wrap {
  height: 182px;
}

.card-body {
  padding: 12px;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 7px;
}

.card-category {
  margin-bottom: 0;
}

.card-name {
  min-height: 42px;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-stars,
.card-price-row {
  margin-bottom: 0;
}

.card-actions {
  margin-top: 4px;
}

.add-btn,
.buy-now-btn {
  min-height: 38px;
}

/* Bootstrap-like modal polish */
.modal {
  border-radius: 0.6rem;
  padding: 1rem;
}

.modal-step {
  position: relative;
}

.modal-title {
  padding-bottom: 0.6rem;
  border-bottom: 1px solid #dee2e6;
}

.form-grid {
  gap: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
  min-height: 42px;
}

.form-group textarea {
  min-height: 84px;
}

.modal-next-btn,
.modal-back-btn,
.modal-place-btn {
  min-height: 42px;
  padding: 0.5rem 1rem;
}

.step2-btns {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-methods {
  margin-top: 6px;
}

.pay-card {
  min-height: 66px;
}

.order-summary-box {
  margin-top: 14px;
}

.success-modal {
  padding: 1.25rem;
}

.success-title {
  font-size: 1.5rem;
}

.success-btn {
  min-height: 42px;
}

@media (max-width: 900px) {
  .sidebar .cat-btn.main-cat {
    font-size: 15px;
  }

  .sidebar .cat-btn.sub-cat {
    margin-left: 12px;
    width: calc(100% - 12px);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .step2-btns {
    grid-template-columns: 1fr;
  }
}

/* ===== Requested Tuning: Smaller Sidebar + No Sidebar Icons + Better Footer ===== */
:root {
  --sidebar-w: 262px;
  --sidebar-w-collapsed: 72px;
}

.sidebar {
  max-width: 262px;
}

.layout {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

.layout.sidebar-collapsed {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

.sidebar .cat-btn.main-cat {
  font-size: 15px;
  font-weight: 800;
  padding: 10px 10px;
}

.sidebar .cat-btn.sub-cat {
  margin-left: 12px;
  width: calc(100% - 12px);
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
}

.sidebar .cat-main-label,
.sidebar .cat-sub-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.sidebar .cat-count {
  min-width: 22px;
  text-align: center;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}

.footer {
  background: #10273f;
  color: #f1f5f9;
}

.footer-desc,
.footer-col ul,
.footer-bottom,
.footer-col a {
  color: #dbe7f5;
}

.footer-col h4,
.footer-logo,
.footer-col a:hover,
.footer-bottom span {
  color: #ffffff;
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 1080px) {
  .layout,
  .layout.sidebar-collapsed {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .sidebar {
    max-width: none;
  }
}


/* ===== Footer Contrast Fix (Top + Bottom) ===== */
.footer {
  background: #0f2a44 !important;
  color: #f8fbff !important;
}

.footer-inner {
  background: #0f2a44 !important;
}

.footer-desc,
.footer-col ul,
.footer-col li,
.footer-col a {
  color: #dce9f8 !important;
}

.footer-col h4,
.footer-logo,
.footer-logo strong,
.footer-col a:hover {
  color: #ffffff !important;
}

.footer-bottom {
  background: #0a1f33 !important;
  color: #e6f0fb !important;
  border-top: 1px solid rgba(255, 255, 255, 0.22) !important;
}

.footer-bottom span {
  color: #e6f0fb !important;
}

.footer .social-link {
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

.footer .social-link:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
}

/* ===== Divider between Sidebar and Content (as marked) ===== */
@media (min-width: 901px) {
  .content {
    border-left: 1px solid #d7dbe3;
    padding-left: 14px;
  }
}

@media (max-width: 900px) {
  .content {
    border-left: 0;
    padding-left: 0;
  }
}

/* ===== Requested Compact & Color Tuning ===== */
:root {
  --header-h: 64px !important;
}

.header-inner {
  padding: 0 14px !important;
  gap: 10px !important;
}

.logo-text {
  font-size: 22px;
}

.search-input {
  height: 36px !important;
}

.cart-btn,
.admin-login-btn,
.hamburger,
.desktop-sidebar-toggle {
  width: 36px !important;
  height: 36px !important;
}

.header-actions {
  gap: 8px !important;
}

/* Distinct header icon colors */
.desktop-sidebar-toggle span:nth-child(1) { background: #0ea5e9 !important; }
.desktop-sidebar-toggle span:nth-child(2) { background: #f59e0b !important; }
.desktop-sidebar-toggle span:nth-child(3) { background: #22c55e !important; }

.search-icon i { color: #0f766e !important; }
.cart-btn .cart-icon i { color: #2563eb !important; }
.admin-login-btn i { color: #7c3aed !important; }
.hamburger span:nth-child(1) { background: #0ea5e9 !important; }
.hamburger span:nth-child(2) { background: #ef4444 !important; }
.hamburger span:nth-child(3) { background: #22c55e !important; }

/* Sidebar spacing tighter */
.sidebar-section {
  margin-bottom: 10px !important;
}

.category-list {
  gap: 2px !important;
}

.sidebar .cat-main-item {
  margin-bottom: 4px !important;
}

.sidebar .cat-btn.main-cat {
  padding: 7px 8px !important;
  min-height: 32px;
}

.sidebar .subcat-list {
  margin-top: 2px !important;
}

.sidebar .cat-btn.sub-cat {
  margin-top: 2px !important;
  padding: 6px 8px !important;
  min-height: 30px;
}

/* Sidebar unique icon colors using pseudo icons */
.sidebar .cat-main-label::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 8px;
  width: 16px;
  display: inline-block;
  text-align: center;
  content: "\f0ca";
}

.sidebar .cat-main-item:nth-child(1) .cat-main-label::before { content: "\f00a"; color: #0ea5e9; }
.sidebar .cat-main-item:nth-child(2) .cat-main-label::before { content: "\f3cd"; color: #2563eb; }
.sidebar .cat-main-item:nth-child(3) .cat-main-label::before { content: "\f553"; color: #db2777; }
.sidebar .cat-main-item:nth-child(4) .cat-main-label::before { content: "\f015"; color: #16a34a; }
.sidebar .cat-main-item:nth-child(5) .cat-main-label::before { content: "\f5d1"; color: #f59e0b; }
.sidebar .cat-main-item:nth-child(6) .cat-main-label::before { content: "\f06b"; color: #7c3aed; }

.sidebar .cat-sub-label::before {
  content: "\f111";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 7px;
  margin-right: 8px;
  color: #64748b;
  vertical-align: middle;
}

/* Sort dropdown right-side clean alignment */
.sidebar .sort-select {
  width: 100% !important;
  display: block;
  height: 40px;
  border-radius: 10px;
  padding-right: 34px;
  background-position: right 10px center;
}

.content-tools {
  margin-left: auto;
  justify-content: flex-end;
}

/* Pagination should appear under cards at right side */
.product-pagination {
  justify-content: flex-end !important;
  margin-top: 18px !important;
  padding-right: 4px;
}

/* Floating icon distinct color */
.floating-btn .float-icon i {
  color: #22d3ee !important;
}

.floating-btn {
  background: #111827 !important;
}

@media (max-width: 900px) {
  .product-pagination {
    justify-content: center !important;
  }
}



/* ===== Final Natural UI Override (Requested) ===== */
:root {
  --header-h: 60px !important;
}

.header-inner {
  padding: 0 12px !important;
  gap: 8px !important;
}

.search-input {
  height: 34px !important;
}

.header-actions {
  gap: 6px !important;
}

/* Header right icons: no border box */
.header-actions .cart-btn,
.header-actions .admin-login-btn {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 0 !important;
}

.header-actions .cart-btn:hover,
.header-actions .admin-login-btn:hover {
  background: transparent !important;
  transform: none !important;
}

/* Distinct icon colors */
.desktop-sidebar-toggle span:nth-child(1) { background: #0ea5e9 !important; }
.desktop-sidebar-toggle span:nth-child(2) { background: #f59e0b !important; }
.desktop-sidebar-toggle span:nth-child(3) { background: #22c55e !important; }
.search-icon i { color: #0f766e !important; }
.cart-btn .cart-icon i { color: #2563eb !important; }
.admin-login-btn i { color: #7c3aed !important; }

/* Sidebar: natural text style, no card/button look */
.sidebar {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 2px 6px 2px 0 !important;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.sidebar:hover {
  scrollbar-color: #cbd5e1 transparent;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 999px;
}

.sidebar:hover::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

.sidebar-section {
  margin-bottom: 8px !important;
}

.category-list {
  gap: 1px !important;
}

.sidebar .cat-main-item {
  margin-bottom: 2px !important;
}

.sidebar .cat-btn,
.sidebar .cat-btn.main-cat,
.sidebar .cat-btn.sub-cat {
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-height: 0 !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.sidebar .cat-btn.main-cat {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
}

.sidebar .cat-btn.sub-cat {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

.sidebar .subcat-list {
  margin-top: 0 !important;
  margin-left: 14px !important;
}

.sidebar .cat-btn:hover,
.sidebar .cat-btn.active {
  background: transparent !important;
  color: #0f172a !important;
}

.sidebar .cat-count {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

.sidebar .cat-main-label::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 8px;
  width: 16px;
  display: inline-block;
  text-align: center;
}

.sidebar .cat-main-item:nth-child(1) .cat-main-label::before { content: "\f00a"; color: #0ea5e9; }
.sidebar .cat-main-item:nth-child(2) .cat-main-label::before { content: "\f3cd"; color: #2563eb; }
.sidebar .cat-main-item:nth-child(3) .cat-main-label::before { content: "\f553"; color: #db2777; }
.sidebar .cat-main-item:nth-child(4) .cat-main-label::before { content: "\f015"; color: #16a34a; }
.sidebar .cat-main-item:nth-child(5) .cat-main-label::before { content: "\f5d1"; color: #f59e0b; }
.sidebar .cat-main-item:nth-child(6) .cat-main-label::before { content: "\f06b"; color: #7c3aed; }

.sidebar .cat-sub-label::before {
  content: "\f111";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 7px;
  margin-right: 8px;
  color: #64748b;
  vertical-align: middle;
}

/* Banner: light 5-step gradient */
.hero-banner-stage {
  background: linear-gradient(
    120deg,
    #fff7ef 0%,
    #f4f8ff 25%,
    #eefbf3 50%,
    #fff2f8 75%,
    #f0fbff 100%
  ) !important;
  border: 1px solid #e8edf5 !important;
  border-radius: 18px !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
}

/* Floating: keep price visible + updated subtotal */
.floating-cart {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.floating-btn {
  width: 62px !important;
  height: 62px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: #111827 !important;
  position: relative;
}

.floating-btn .float-icon i {
  color: #22d3ee !important;
}

.floating-btn .float-total {
  display: inline-flex !important;
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* Product card text + button smarter natural colors */
.card-category {
  color: #64748b !important;
}

.card-name {
  color: #0f172a !important;
}

.card-price {
  color: #e24663 !important;
}

.card-old-price {
  color: #8b98aa !important;
}

.add-btn {
  background: #f8fafc !important;
  border: 1px solid #d8e0ea !important;
  color: #334155 !important;
}

.add-btn:hover {
  background: #eef2f7 !important;
  color: #1f2937 !important;
}

.buy-now-btn {
  background: #111827 !important;
  color: #ffffff !important;
}

.buy-now-btn:hover {
  background: #1f2937 !important;
}

/* Keep controls aligned right and pagination at marked location */
.content-tools {
  margin-left: auto;
  justify-content: flex-end;
}

.product-pagination {
  justify-content: flex-end !important;
  margin-top: 20px !important;
  padding-right: 4px;
}

@media (max-width: 900px) {
  .floating-cart {
    top: auto;
    bottom: 14px;
    transform: none;
  }

  .floating-btn .float-total {
    display: none !important;
  }

  .product-pagination {
    justify-content: center !important;
  }
}

/* ===== Final Fix: Sidebar Gap + Floating Price Inside + Pagination Visible ===== */
.sidebar-section {
  margin-bottom: 12px !important;
}

.category-list {
  gap: 4px !important;
}

.sidebar .cat-main-item {
  margin-bottom: 4px !important;
}

.sidebar .cat-btn.main-cat {
  font-weight: 600 !important;
  padding: 8px 0 !important;
}

.sidebar .cat-btn.sub-cat {
  font-weight: 500 !important;
  padding: 7px 0 !important;
}

.hero-banner {
  margin-bottom: 22px !important;
}

/* floating icon with price inside */
.floating-btn {
  background: linear-gradient(145deg, #0ea5e9, #2563eb) !important;
  width: 74px !important;
  height: 74px !important;
  border-radius: 50% !important;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.floating-btn .float-icon {
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  font-size: 17px;
}

.floating-btn .float-icon i {
  color: #ffffff !important;
}

.floating-btn .float-total {
  display: block !important;
  position: static !important;
  transform: none !important;
  border: 0 !important;
  background: transparent !important;
  color: #ffffff !important;
  padding: 0 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.1;
  max-width: 62px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-btn .float-count {
  right: -2px !important;
  bottom: -2px !important;
}

/* Pagination must be visible below cards */
.product-pagination {
  min-height: 40px;
}

.page-btn.single {
  opacity: 1 !important;
  pointer-events: none;
}

@media (max-width: 900px) {
  .floating-btn .float-total {
    display: block !important;
    max-width: 56px;
    font-size: 9px !important;
  }
}

/* ===== Latest User Tuning: Sidebar + Floating + Banner + Pagination ===== */
.sidebar-section {
  margin-bottom: 10px !important;
}

.category-list {
  gap: 5px !important;
}

.sidebar .cat-main-item {
  margin-bottom: 5px !important;
}

.sidebar .cat-btn.main-cat {
  padding: 9px 0 !important;
  font-weight: 500 !important;
  color: #334155 !important;
}

.sidebar .cat-btn.sub-cat {
  padding: 8px 0 !important;
  font-weight: 400 !important;
  color: #5b6577 !important;
}

.sidebar .cat-count {
  font-weight: 500 !important;
}

.floating-btn {
  background: linear-gradient(145deg, #0ea5a3, #0f766e) !important;
}

.floating-btn .float-total {
  display: block !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.15;
  max-width: 66px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.hero-banner {
  margin-bottom: 26px !important;
}

.product-pagination {
  display: flex !important;
  align-items: center;
  justify-content: flex-end !important;
  gap: 8px;
  min-height: 44px;
  margin-top: 18px !important;
}

.page-btn.single {
  opacity: 1 !important;
  border-color: #ffd0d9 !important;
  background: #fff4f7 !important;
  color: var(--accent) !important;
}

@media (max-width: 900px) {
  .floating-btn .float-total {
    display: block !important;
    max-width: 56px;
    font-size: 9px !important;
  }
}

/* ===== Latest Modal Upgrade: Smart Header + Full Responsive ===== */
.modal-overlay {
  padding: clamp(10px, 2vw, 18px) !important;
  background: rgba(15, 23, 42, 0.46) !important;
  backdrop-filter: blur(3px);
}

.modal {
  width: min(860px, 100%) !important;
  max-height: calc(100dvh - 20px) !important;
  padding: 0 !important;
  overflow: auto !important;
  border-radius: 16px !important;
  border: 1px solid #d9e2ef !important;
  background: #ffffff !important;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.25) !important;
}

.modal-step {
  position: relative;
  padding: 18px 18px 20px !important;
}

.modal-head {
  margin: -18px -18px 14px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(120deg, #e8f1ff 0%, #eef8ff 35%, #f1fff8 70%, #fff4f9 100%);
  border-bottom: 1px solid #d8e3f3;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.modal-head-content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.modal-head-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0b4da1;
  background: #ffffff;
  border: 1px solid #cfe0f7;
  border-radius: 999px;
}

.modal-title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #0f172a !important;
  font-size: clamp(22px, 2.5vw, 31px);
  line-height: 1.2;
}

.modal-sub {
  margin: 0;
  color: #475569;
  font-size: 13px;
}

.modal-close-x {
  position: static !important;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #c8d6ea !important;
  background: #ffffff !important;
  color: #0f172a;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-x:hover {
  background: #f8fbff !important;
  border-color: #aac3e4 !important;
}

.form-grid {
  gap: 12px !important;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
  min-height: 44px;
  border: 1px solid #ccd8e8 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: #0f172a;
  padding: 11px 13px !important;
}

.form-group textarea {
  min-height: 90px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #6ea8ff !important;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.16) !important;
}

.modal-next-btn,
.modal-place-btn,
.modal-back-btn {
  min-height: 44px;
  border-radius: 10px;
  font-weight: 700;
}

.modal-next-btn,
.modal-place-btn {
  background: #2563eb !important;
  border: 1px solid #2563eb !important;
  color: #ffffff !important;
}

.modal-next-btn:hover,
.modal-place-btn:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

.modal-back-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

.modal-back-btn:hover {
  background: #f8fafc !important;
  border-color: #b8c4d3 !important;
}

.payment-methods {
  margin-top: 6px;
  gap: 10px;
}

.pay-card {
  border-radius: 12px !important;
  border: 1px solid #d5deea !important;
}

.pay-option input:checked + .pay-card {
  border-color: #6ea8ff !important;
  background: #eef5ff !important;
}

.order-summary-box {
  margin-top: 14px;
  border-radius: 12px !important;
  border: 1px solid #d8e2ef !important;
  background: #f8fbff !important;
}

.step2-btns {
  margin-top: 12px;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 768px) {
  .modal {
    max-height: calc(100dvh - 12px) !important;
    border-radius: 14px !important;
  }

  .modal-step {
    padding: 14px 14px 16px !important;
  }

  .modal-head {
    margin: -14px -14px 12px;
    padding: 12px 14px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
  }

  .modal-title {
    font-size: 23px;
  }

  .modal-sub {
    font-size: 12px;
  }

  .form-grid,
  .payment-methods,
  .step2-btns {
    grid-template-columns: 1fr !important;
  }

  .modal-next-btn,
  .modal-back-btn,
  .modal-place-btn {
    width: 100%;
  }
}

/* ===== Latest Sidebar-Only Natural Color & Typography Tuning ===== */
.sidebar {
  color: #334155 !important;
}

.sidebar .sidebar-title {
  color: #0f172a !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}

.sidebar .cat-btn.main-cat {
  color: #334155 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  line-height: 1.35;
}

.sidebar .cat-btn.sub-cat {
  color: #64748b !important;
  font-weight: 400 !important;
  font-size: 13.5px !important;
  line-height: 1.35;
}

.sidebar .cat-btn:hover,
.sidebar .cat-btn.active {
  color: #1e293b !important;
}

.sidebar .cat-count {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.sidebar .cat-main-label::before {
  opacity: 0.9;
}

.sidebar .cat-sub-label::before {
  opacity: 0.75;
}

.sidebar .sort-select {
  color: #334155 !important;
  border-color: #d8e0ea !important;
  background: #ffffff !important;
}

.sidebar .price-labels span {
  color: #64748b !important;
}

.sidebar .sidebar-cart li span:first-child {
  color: #475569 !important;
  font-weight: 500 !important;
}

/* ===== Sidebar Category Text: Force Normal (No Bold) ===== */
.sidebar .cat-btn.main-cat,
.sidebar .cat-btn.main-cat.active,
.sidebar .cat-main-label {
  font-weight: 400 !important;
}

.sidebar .cat-btn.main-cat {
  font-size: 14px !important;
}

/* ===== 2026-03-24 Responsive Stabilization (Index) ===== */
.layout {
  max-width: 1360px !important;
  width: 100%;
  padding-left: 14px !important;
  padding-right: 14px !important;
  gap: 16px !important;
}

.content {
  min-width: 0;
  width: 100%;
}

.content-tools {
  margin-left: auto;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.content-select {
  min-width: 180px;
}

.product-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: 100%;
}

.product-card {
  width: 100%;
  height: 100%;
}

.card-body {
  min-width: 0;
}

.card-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-pagination {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin-top: 18px !important;
  justify-content: flex-end !important;
  width: 100%;
}

/* Mobile sidebar overlay + stable panel */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.44);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1220;
}

body.sidebar-open {
  overflow: hidden;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1280px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .layout,
  .layout.sidebar-collapsed {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .content {
    border-left: 0 !important;
    padding-left: 0 !important;
  }

  .content-header {
    display: grid;
    gap: 10px;
  }

  .content-tools {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .content-select {
    min-width: 0;
    flex: 1 1 180px;
  }

  .sidebar {
    top: var(--header-h) !important;
    left: 0 !important;
    right: auto !important;
    width: min(86vw, 320px) !important;
    max-width: min(86vw, 320px) !important;
    height: calc(100dvh - var(--header-h)) !important;
    max-height: calc(100dvh - var(--header-h)) !important;
    border-radius: 0 14px 14px 0 !important;
    border: 1px solid var(--border) !important;
    border-left: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2) !important;
    padding: 12px !important;
    transform: translateX(-105%) !important;
    z-index: 1230 !important;
  }

  .sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  .sidebar .cat-btn.main-cat,
  .sidebar .cat-main-label {
    font-weight: 400 !important;
  }

  .product-pagination {
    justify-content: center !important;
  }
}

@media (max-width: 620px) {
  .product-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-banner {
    margin-bottom: 16px !important;
  }
}

