:root {
  --primary: #0b9f96;
  --primary-dark: #07877f;
  --header-bg: #ffffff;
  --ink: #111827;
  --muted: #667085;
  --border: #e5e7eb;
  --soft: #f7f8f8;
  --white: #ffffff;
  --danger: #ef476f;
  --warning: #f59e0b;
  --success: #12b76a;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--ink);
}

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

a {
  color: var(--primary-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

input[type='checkbox'],
input[type='radio'],
input[type='range'] {
  accent-color: var(--primary);
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2rem;
}

/* ---------- Header (topbar) ---------- */

.topbar {
  height: 68px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 5.5%;
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 30;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-size: 19px;
  color: inherit;
  flex-shrink: 0;
}
.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 16px;
  flex-shrink: 0;
}

.search {
  flex: 1;
  max-width: 490px;
  position: relative;
}
.search form {
  display: block;
}
.search input {
  width: 100%;
  height: 40px;
  border: 0;
  background: var(--soft);
  border-radius: 24px;
  padding: 0 44px 0 20px;
  outline: none;
  color: var(--ink);
}
.search button {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

nav.site-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
nav.site-nav a {
  color: #222;
  text-decoration: none;
  font-size: 14px;
}
nav.site-nav a.active {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 8px;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-shrink: 0;
}
.icon-btn {
  background: none;
  border: 0;
  padding: 3px;
  position: relative;
  display: flex;
  color: inherit;
}
.icon-btn svg {
  width: 21px;
  height: 21px;
}
.cart-badge {
  position: absolute;
  right: -7px;
  top: -7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 4px;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px 18px;
  position: sticky;
  top: 68px;
  z-index: 29;
}
.mobile-search {
  position: relative;
  margin-bottom: 10px;
}
.mobile-search input {
  width: 100%;
  height: 40px;
  border: 0;
  background: var(--soft);
  border-radius: 24px;
  padding: 0 44px 0 20px;
  outline: none;
  color: var(--ink);
}
.mobile-search button {
  position: absolute;
  right: 6px;
  top: 6px;
  width: 28px;
  height: 28px;
  border: 0;
  background: none;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 4px;
  border-bottom: 1px solid var(--soft);
}
.mobile-nav a:last-child {
  border-bottom: 0;
}
.mobile-nav a.active {
  color: var(--primary-dark);
}

/* ---------- Generic components (used across all pages) ---------- */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  text-decoration: none;
}

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

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover {
  opacity: 0.9;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

form.inline {
  display: inline;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.alert-error {
  background: #fdecea;
  color: var(--danger);
  border: 1px solid #f5c6c3;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.price {
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  text-transform: capitalize;
}

.badge-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stat-trend {
  font-size: 11px;
}
.stat-trend.up {
  color: var(--success);
}
.stat-trend.warn {
  color: var(--warning);
}
.stat-trend.danger {
  color: var(--danger);
}

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

.qty-input {
  width: 4rem;
}

.thumb-sm {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: var(--soft);
  display: block;
}

.product-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.product-gallery-main {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--soft);
  display: block;
}

.product-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  max-width: 420px;
}
.product-gallery-thumbs img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.rating {
  font-size: 12px;
}
.stars {
  color: var(--warning);
  letter-spacing: 1px;
}
.rating-count {
  color: var(--muted);
  margin-left: 4px;
}
.old-price {
  text-decoration: line-through;
  color: #98a2b3;
  font-size: 12px;
}
.discount {
  color: var(--danger);
  background: #fff0f3;
  border-radius: 20px;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 700;
}

/* ---------- Shop: hero ---------- */

.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 13px;
}
.breadcrumbs span {
  margin: 0 8px;
  color: #aaa;
}

.hero {
  min-height: 148px;
  background: linear-gradient(90deg, #f7f7f6 0%, #f3f2ef 55%, #e7e2da 100%);
  background-size: cover;
  background-position: center;
  padding: 28px 32px 24px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.hero:after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 34%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.2) 35%, rgba(120, 100, 80, 0.12) 100%);
}
.hero h1 {
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}
.hero p {
  margin: 0;
  color: #586174;
  max-width: 530px;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

/* ---------- Shop: page layout ---------- */

.page {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
  }
  .filters {
    display: none;
  }
  .filters.open {
    display: block;
  }
  .mobile-filter {
    display: flex !important;
  }
  .topbar {
    padding: 0 20px;
    gap: 15px;
  }
  .search {
    display: none;
  }
  nav.site-nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .logo {
    min-width: 0;
    gap: 8px;
  }
  .logo-text {
    display: none;
  }
  .mobile-menu.open {
    display: flex;
  }
}

/* ---------- Shop: filters ---------- */

.filters {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 18px 8px;
  height: max-content;
  position: sticky;
  top: 88px;
  background: var(--white);
}
.filter-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  font-size: 17px;
  font-weight: 750;
}
.clear {
  border: 0;
  background: none;
  color: var(--primary-dark);
  font-size: 12px;
  cursor: pointer;
}
.filter-section {
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.filter-section:last-child {
  border-bottom: 0;
}
.filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 13px;
}
.filter-heading span {
  font-size: 18px;
  color: #68717e;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
  font-size: 13px;
  color: #344054;
  cursor: pointer;
}
.check-row input {
  width: 16px;
  height: 16px;
}
.count {
  margin-left: auto;
  color: #8b93a0;
  font-size: 12px;
}
.range {
  padding: 4px 3px;
}
.range input[type='range'] {
  width: 100%;
}
.range-values {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.switch-input {
  position: absolute;
  opacity: 0;
  width: 38px;
  height: 22px;
  margin: 0;
  cursor: pointer;
}
.switch {
  display: inline-block;
  width: 38px;
  height: 22px;
  background: #d8dee3;
  border-radius: 20px;
  padding: 3px;
  position: relative;
  pointer-events: none;
}
.switch:after {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.switch-input:checked + .switch {
  background: var(--primary);
}
.switch-input:checked + .switch:after {
  transform: translateX(16px);
}

.mobile-filter {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  height: 40px;
  padding: 0 13px;
  align-items: center;
  gap: 7px;
}

/* ---------- Shop: toolbar ---------- */

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 15px;
  flex-wrap: wrap;
}
.product-count {
  font-size: 16px;
  font-weight: 750;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.toolbar-right select {
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 0 12px;
  color: #344054;
  outline: none;
}
.view-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.view-toggle a {
  height: 38px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--ink);
}
.view-toggle a:hover {
  text-decoration: none;
}
.view-toggle a.active {
  background: var(--primary);
  color: #fff;
}

/* ---------- Shop: product grid & cards ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-grid.list-view {
  grid-template-columns: 1fr;
}
.product-grid.list-view .product-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.product-grid.list-view .image-wrap {
  width: 180px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
}
.product-grid.list-view .card-body {
  flex: 1;
}
.product-grid.list-view .bottom-row .cart-btn {
  width: auto;
}
@media (max-width: 560px) {
  .product-grid.list-view .product-card {
    flex-direction: column;
  }
  .product-grid.list-view .image-wrap {
    width: 100%;
  }
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: block;
  margin: 0;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}
.product-card.out {
  opacity: 0.7;
}

.image-wrap {
  aspect-ratio: 1 / 0.92;
  background: #f3f4f4;
  position: relative;
  overflow: hidden;
}
.image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge-product {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 7px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.badge-product.new {
  background: var(--primary);
}
.badge-product.sale {
  background: var(--danger);
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 4px 0;
}
.product-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--soft);
  color: var(--muted);
  border: 1px solid var(--border);
}
.wish {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
}
.wish.active {
  color: var(--danger);
}
.wish svg {
  width: 17px;
}

.card-body {
  padding: 12px 12px 13px;
}
.brand {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.name {
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 5px;
}
.name a {
  color: inherit;
}
.name a:hover {
  color: var(--primary-dark);
}
.desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  height: 31px;
  overflow: hidden;
  margin-bottom: 8px;
}
.product-card .rating {
  margin-bottom: 9px;
  white-space: nowrap;
}
.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.price-row .price {
  font-size: 17px;
}
.bottom-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.cart-btn {
  border: 0;
  background: #101820;
  color: #fff;
  border-radius: 8px;
  height: 38px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  width: 100%;
  cursor: pointer;
}
.cart-btn:hover {
  background: #222d35;
  text-decoration: none;
  color: #fff;
}
.cart-btn svg {
  width: 15px;
}
.product-card.out .cart-btn {
  background: #e4e7ec;
  color: var(--muted);
  cursor: not-allowed;
}
.product-card.out .cart-btn:hover {
  background: #e4e7ec;
}

/* ---------- Pagination ---------- */

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 30px;
}
.pagination a, .pagination span {
  min-width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  color: #344054;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination a:hover {
  background: #f5f6f7;
  text-decoration: none;
}
.pagination a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination a.disabled {
  color: #d0d5dd;
  pointer-events: none;
}

/* ---------- Product detail page ---------- */

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.85fr);
  gap: 44px;
  align-items: start;
  margin-bottom: 50px;
}
@media (max-width: 1050px) {
  .product-layout {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}
@media (max-width: 800px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
}

.gallery {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 15px;
}
@media (max-width: 800px) {
  .gallery {
    grid-template-columns: 65px minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .main-image {
    grid-column: 1;
  }
  .thumbs {
    order: 2;
    flex-direction: row !important;
    overflow-x: auto;
  }
}

.thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.thumb {
  width: 78px;
  height: 78px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  background: var(--soft);
  flex-shrink: 0;
}
.thumb.active {
  border: 2px solid var(--primary);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-image {
  grid-column: 2;
  aspect-ratio: 1 / 0.96;
  border-radius: 10px;
  overflow: hidden;
  background: var(--soft);
  position: relative;
}
.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sale-badge {
  position: absolute;
  left: 17px;
  top: 17px;
  background: var(--danger);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 8px;
}
.image-wishlist {
  position: absolute;
  right: 17px;
  top: 17px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
}
.image-wishlist.active {
  color: var(--danger);
}
.image-wishlist svg {
  width: 20px;
}

.product-info {
  padding-top: 3px;
}
.product-info .brand {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  margin-bottom: 7px;
}
.product-info h1 {
  font-size: 35px;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 10px;
}
.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 13px;
}
.rating-row .stars {
  font-size: 17px;
}
.rating-link {
  color: #475467;
}
.sold {
  color: #98a2b3;
  border-left: 1px solid var(--border);
  padding-left: 10px;
}
.product-info .price-row {
  margin-bottom: 14px;
}
.product-info .price {
  font-size: 29px;
  font-weight: 850;
}
.price-note {
  font-size: 12px;
  color: var(--muted);
  margin-right: 2px;
}
.description {
  color: #596476;
  line-height: 1.65;
  font-size: 14px;
  max-width: 610px;
  margin: 0 0 22px;
}
.option-label {
  font-size: 13px;
  font-weight: 750;
  margin-bottom: 11px;
}
.option-label select {
  max-width: 320px;
}
.purchase-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.quantity {
  height: 48px;
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.quantity button {
  width: 43px;
  border: 0;
  background: #fff;
  font-size: 20px;
  color: #344054;
}
.quantity input {
  width: 44px;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  outline: none;
  -moz-appearance: textfield;
}
.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stock {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 8px;
  font-size: 12px;
}
.stock strong {
  color: var(--primary-dark);
}
.stock span {
  color: #98a2b3;
}
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
@media (max-width: 560px) {
  .actions {
    grid-template-columns: 1fr;
  }
}
.add-cart, .buy-now {
  height: 50px;
  border-radius: 8px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  cursor: pointer;
}
.add-cart {
  border: 0;
  background: var(--primary);
  color: #fff;
}
.add-cart:hover {
  background: var(--primary-dark);
  text-decoration: none;
  color: #fff;
}
.buy-now {
  border: 1px solid var(--primary);
  background: #fff;
  color: var(--ink);
}
.buy-now:hover {
  text-decoration: none;
  background: var(--soft);
}
.actions svg {
  width: 19px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
@media (max-width: 800px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}
.service {
  display: flex;
  gap: 10px;
  font-size: 12px;
}
.service svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.service strong {
  display: block;
  font-size: 12px;
  margin-bottom: 3px;
}
.service span {
  color: #98a2b3;
  font-size: 11px;
}

.quote-btn {
  width: 100%;
  margin-bottom: 24px;
}
.quote-dialog {
  border: 0;
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
}
.quote-dialog::backdrop {
  background: rgba(16, 24, 40, 0.45);
}
.quote-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.quote-dialog-head h2 {
  margin: 0;
  font-size: 20px;
}
.quote-dialog-close {
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
}
.quote-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Details tabs */
.details {
  margin-top: 50px;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  padding: 0 22px;
  overflow-x: auto;
}
.tab {
  border: 0;
  background: #fff;
  padding: 19px 22px;
  color: #667085;
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}
.tab.active {
  color: var(--primary-dark);
}
.tab.active:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
}
.tab-content {
  padding: 27px 28px;
}
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}
.description-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
}
@media (max-width: 800px) {
  .description-layout {
    grid-template-columns: 1fr;
  }
}
.tab-content h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
.tab-content p {
  color: #667085;
  font-size: 13px;
  line-height: 1.7;
}
.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.feature-list li {
  margin: 12px 0;
  color: #475467;
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e3f6f4;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  flex: none;
}
.detail-image {
  border-radius: 9px;
  overflow: hidden;
  background: var(--soft);
  min-height: 280px;
}
.detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spec-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}
.spec-table td:first-child {
  color: #667085;
  width: 35%;
}
.review {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.review:last-child {
  border-bottom: 0;
}
.review-head {
  display: flex;
  justify-content: space-between;
}
.review-name {
  font-weight: 700;
  font-size: 13px;
}
.review-date {
  font-size: 11px;
  color: #98a2b3;
}

/* Related products */
.related {
  margin-top: 44px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.section-head h2 {
  font-size: 24px;
  margin: 0;
}
.view-all {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
}
@media (max-width: 1050px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
}
.related-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.related-image {
  height: 210px;
  background: var(--soft);
  position: relative;
}
.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-body {
  padding: 11px 12px 13px;
}
.related-name {
  font-size: 14px;
  font-weight: 750;
  margin: 5px 0;
}
.related-name a {
  color: inherit;
}
.related-desc {
  font-size: 11px;
  color: #667085;
  margin-bottom: 7px;
}
.related-price {
  font-size: 16px;
  font-weight: 800;
}
.related-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 9px;
}
.mini-cart {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.mini-cart svg {
  width: 17px;
}

/* Footer benefits */
.benefits {
  border-top: 1px solid var(--border);
  margin: 55px calc(-1 * 2rem) -2rem;
  padding: 30px 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  background: var(--soft);
}
@media (max-width: 800px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .benefits {
    grid-template-columns: 1fr;
  }
}
.benefit {
  display: flex;
  gap: 13px;
}
.benefit svg {
  width: 30px;
  height: 30px;
  flex: none;
  color: var(--primary-dark);
}
.benefit strong {
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}
.benefit span {
  font-size: 11px;
  color: #98a2b3;
}

/* Toast */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--ink);
  color: #fff;
  padding: 13px 18px;
  border-radius: 9px;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(100px);
  opacity: 0;
  transition: 0.25s;
  z-index: 100;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Cart page ---------- */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.7fr);
  gap: 30px;
  align-items: start;
}
@media (max-width: 1050px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static !important;
  }
}

.cart-box {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
}

.cart-header {
  display: grid;
  grid-template-columns: 1fr 110px 145px 110px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 750;
  color: #667085;
}
.cart-header div:not(:first-child) {
  text-align: center;
}
@media (max-width: 700px) {
  .cart-header {
    display: none;
  }
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr 110px 145px 110px;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.cart-item:last-child {
  border-bottom: 0;
}
@media (max-width: 700px) {
  .cart-item {
    grid-template-columns: 1fr 95px 95px;
    padding: 16px 14px;
  }
  .cart-item .product {
    grid-column: 1 / -1;
  }
  .cart-item .item-total {
    grid-column: 3;
  }
}

.product {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.product-image {
  width: 90px;
  height: 90px;
  border-radius: 9px;
  background: var(--soft);
  overflow: hidden;
  flex: none;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  min-width: 0;
}
.product-brand {
  font-size: 10px;
  color: var(--primary-dark);
  font-weight: 750;
  margin-bottom: 4px;
}
.product-name {
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 5px;
}
.product-name a {
  color: inherit;
}
.product-meta {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.product-link {
  font-size: 11px;
  color: #667085;
  text-decoration: underline;
  margin-top: 8px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.product-link:hover {
  color: var(--danger);
}

.unit-price {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.cart-item .quantity {
  height: 38px;
  width: 112px;
  margin: auto;
}
.cart-item .quantity button {
  width: 35px;
  font-size: 18px;
}
.cart-item .quantity input {
  width: 42px;
  font-size: 13px;
}

.item-total {
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.cart-footer {
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.continue {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}
.update {
  height: 40px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 7px;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.summary {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  padding: 21px;
  position: sticky;
  top: 90px;
}
.summary h2 {
  font-size: 18px;
  margin: 0 0 20px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  margin: 13px 0;
  font-size: 13px;
  color: #475467;
}
.summary-line.total {
  border-top: 1px solid var(--border);
  padding-top: 17px;
  margin-top: 18px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}
.checkout {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 750;
  margin-top: 17px;
  cursor: pointer;
}
.checkout:hover {
  background: var(--primary-dark);
}

.empty {
  text-align: center;
  padding: 70px 20px;
  border: 1px solid var(--border);
  border-radius: 11px;
}
.empty .emoji {
  font-size: 45px;
}
.empty h2 {
  margin: 0 0 7px;
}
.empty p {
  color: var(--muted);
  font-size: 13px;
}
.empty a {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary-dark);
  font-weight: 700;
}

/* ---------- Checkout page ---------- */

.progress-wrap {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  margin-bottom: 2rem;
}
.progress {
  display: flex;
  align-items: center;
  justify-content: center;
}
.progress-step {
  display: flex;
  align-items: center;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 650;
}
.progress-step .circle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #d0d5dd;
  margin-right: 8px;
  font-size: 10px;
}
.progress-step.active {
  color: var(--primary-dark);
}
.progress-step.active .circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.progress-line {
  width: 80px;
  height: 1px;
  background: #d0d5dd;
  margin: 0 15px;
}
.progress-line.active {
  background: var(--primary);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.65fr);
  gap: 32px;
  align-items: start;
}
@media (max-width: 1000px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-layout .summary {
    position: static !important;
  }
}

.section {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  padding: 22px;
  margin-bottom: 17px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.section-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f6f4;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}
.section-title h2 {
  font-size: 17px;
  margin: 0;
}
.section-subtitle {
  font-size: 11px;
  color: var(--muted);
  margin: -12px 0 18px 38px;
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 560px) {
  .delivery-options, .payment-methods {
    grid-template-columns: 1fr;
  }
}
.delivery-card {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 15px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
}
.delivery-card.selected {
  border: 2px solid var(--primary);
  background: #f3fbfa;
  padding: 14px;
}
.delivery-radio {
  width: 18px;
  height: 18px;
  border: 1px solid #c5cbd3;
  border-radius: 50%;
  margin-top: 2px;
  flex: none;
}
.delivery-card.selected .delivery-radio {
  border: 5px solid var(--primary);
}
.delivery-icon {
  width: 27px;
  height: 27px;
  color: #344054;
  flex: none;
}
.delivery-card strong {
  font-size: 13px;
  display: block;
  margin-bottom: 3px;
}
.delivery-card span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.delivery-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 11px;
  font-weight: 700;
  color: #344054;
}
.field label span {
  color: #98a2b3;
  font-weight: 400;
}
.field input, .field select, .field textarea {
  width: 100%;
  height: 42px;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  padding: 0 12px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-family: inherit;
}
.field textarea {
  height: 75px;
  padding-top: 11px;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(11, 159, 150, 0.08);
}

.pickup-list {
  display: grid;
  gap: 9px;
}
.pickup {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.pickup {
  cursor: pointer;
}
.pickup-radio {
  width: 17px;
  height: 17px;
  border: 2px solid var(--border);
  border-radius: 50%;
  margin-top: 2px;
  flex: none;
}
.pickup.selected .pickup-radio {
  border: 5px solid var(--primary);
}
.pickup strong {
  font-size: 12px;
  display: block;
  margin-bottom: 3px;
}
.pickup span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  white-space: pre-line;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 17px;
}
.payment-method {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 10px;
  text-align: center;
  cursor: pointer;
  position: relative;
}
.payment-method.selected {
  border: 2px solid var(--primary);
  background: #f3fbfa;
  padding: 12px 9px;
}
.payment-method.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.payment-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-logo {
  height: 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  font-size: 14px;
  margin-bottom: 4px;
}
.payment-method span {
  font-size: 10px;
  color: var(--muted);
}
.payment-method .check {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  display: none;
  place-items: center;
}
.payment-method.selected .check {
  display: grid;
}
.payment-soon {
  position: absolute;
  left: 7px;
  top: 7px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 8px;
  font-weight: 700;
  color: var(--muted);
}

.checkout-summary .summary-product {
  display: flex;
  gap: 11px;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 15px;
}
.summary-image {
  width: 61px;
  height: 61px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--soft);
  position: relative;
  flex: none;
}
.summary-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.summary-qty {
  position: absolute;
  right: -5px;
  top: -5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--muted);
  color: #fff;
  font-size: 9px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.summary-product-info {
  flex: 1;
  min-width: 0;
}
.summary-product-info strong {
  display: block;
  font-size: 11px;
  margin-bottom: 3px;
}
.summary-product-info span {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.summary-product-price {
  font-size: 11px;
  font-weight: 750;
  flex: none;
}
.place-order {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  margin-top: 17px;
  cursor: pointer;
}
.place-order:hover {
  background: var(--primary-dark);
}
.place-order:disabled {
  background: #d0d5dd;
  cursor: not-allowed;
}
.secure {
  text-align: center;
  color: #98a2b3;
  font-size: 9px;
  line-height: 1.5;
  margin-top: 12px;
}
.edit-cart {
  display: block;
  text-align: center;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  margin-top: 14px;
}

/* ---------- My Orders page ---------- */

.account-layout {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
@media (max-width: 1000px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-nav {
    position: static !important;
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 6px;
    overflow-x: auto;
  }
  .account-user {
    display: none;
  }
  .account-link {
    width: auto;
    white-space: nowrap;
    padding: 0 13px;
  }
}

.account-nav {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px;
  background: #fff;
  position: sticky;
  top: 90px;
}
.account-user {
  padding: 15px 13px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #dff3f1;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: none;
}
.account-user strong {
  font-size: 13px;
  display: block;
}
.account-user span {
  font-size: 11px;
  color: var(--muted);
}
.account-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 43px;
  border: 0;
  background: #fff;
  border-radius: 7px;
  padding: 0 11px;
  text-align: left;
  color: #475467;
  font-size: 12px;
  cursor: pointer;
}
.account-link svg {
  width: 17px;
}
.account-link.active {
  background: #e8f6f4;
  color: var(--primary-dark);
  font-weight: 750;
}
.account-link:hover:not(.active) {
  background: var(--soft);
  text-decoration: none;
}

.orders-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.orders-top h2 {
  font-size: 22px;
  margin: 0 0 5px;
}
.orders-top p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.search-orders {
  height: 40px;
  width: 245px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 13px;
  outline: none;
  font-size: 12px;
}

.order-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: 25px;
  margin-bottom: 18px;
  overflow-x: auto;
}
.order-tab {
  border: 0;
  background: #fff;
  color: var(--muted);
  padding: 0 2px 13px;
  font-size: 12px;
  font-weight: 650;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
}
.order-tab.active {
  color: var(--primary-dark);
}
.order-tab.active:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--primary);
}

.order-card {
  border: 1px solid var(--border);
  border-radius: 11px;
  margin-bottom: 16px;
  overflow: hidden;
  background: #fff;
}
.order-header {
  background: var(--soft);
  border-bottom: 1px solid var(--border);
  padding: 14px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.order-meta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.meta-item label {
  display: block;
  font-size: 9px;
  color: #98a2b3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}
.meta-item strong {
  font-size: 12px;
}
.status {
  font-size: 10px;
  font-weight: 750;
  padding: 6px 9px;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: capitalize;
}
.status.delivered {
  background: #e8f6f4;
  color: #07877f;
}
.status.shipped {
  background: #eef4ff;
  color: #2563eb;
}
.status.processing {
  background: #fff7e6;
  color: #b45309;
}
.status.cancelled {
  background: #fff0f3;
  color: #d92d52;
}

.order-body {
  padding: 17px;
}
.order-card .product-row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.order-card .product-row:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.order-card .product-image {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background: var(--soft);
  overflow: hidden;
}
.order-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.order-card .product-info strong {
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}
.order-card .product-info span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  line-height: 1.5;
}
.order-card .product-price {
  text-align: right;
  font-size: 13px;
  font-weight: 750;
}
.order-footer {
  padding: 14px 17px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.order-total {
  font-size: 12px;
  color: var(--muted);
}
.order-total strong {
  font-size: 15px;
  color: var(--ink);
  margin-left: 6px;
}
.order-actions {
  display: flex;
  gap: 8px;
}
.order-actions .btn {
  height: 37px;
  padding: 0 13px;
  font-size: 11px;
}

/* Real progress tracker on the order detail page, driven by actual order.status */
.track-line {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 25px 0 35px;
}
.track-line:before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 10px;
  height: 3px;
  background: #dcefeb;
}
.track-step {
  position: relative;
  text-align: center;
  width: 25%;
  font-size: 10px;
  color: #98a2b3;
}
.track-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcefeb;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  color: #07877f;
  font-size: 11px;
  font-weight: 800;
  position: relative;
}
.track-step.done {
  color: #344054;
}
.track-step.done .track-dot {
  background: var(--primary);
  color: #fff;
}
.track-step.cancelled .track-dot {
  background: var(--danger);
  color: #fff;
}

/* ---------- Merchant admin app shell ---------- */

.admin-app {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 250px;
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 22px 14px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  overflow-y: auto;
}
.admin-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.admin-logo-mark {
  width: 38px;
  height: 38px;
  border: 2px solid var(--primary);
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 800;
  font-size: 19px;
  flex: none;
}
.admin-logo strong {
  font-size: 15px;
  display: block;
  line-height: 1.2;
}
.admin-logo small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.admin-nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #98a2b3;
  padding: 12px 12px 6px;
}
.admin-nav a,
.admin-nav button.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  margin: 2px 0;
  border: 0;
  background: none;
  border-radius: 9px;
  color: #475467;
  text-decoration: none;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.admin-nav a:hover,
.admin-nav button.admin-nav-link:hover {
  background: var(--soft);
  text-decoration: none;
}
.admin-nav a.active {
  background: #e8f8f6;
  color: var(--primary-dark);
  font-weight: 700;
}
.admin-nav .admin-icon {
  width: 19px;
  text-align: center;
  font-size: 15px;
  flex: none;
}
.admin-nav .admin-nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  border-radius: 20px;
  font-size: 10px;
  padding: 2px 7px;
}
.admin-store-card {
  position: absolute;
  bottom: 18px;
  left: 14px;
  right: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
  overflow: hidden;
}
.admin-store-card .admin-avatar {
  width: 34px;
  height: 34px;
  background: #dff5f2;
  color: var(--primary-dark);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  float: left;
  margin-right: 9px;
  font-size: 13px;
}
.admin-store-card b {
  font-size: 13px;
}
.admin-store-card span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.admin-main {
  margin-left: 250px;
  flex: 1;
  min-width: 0;
}
.admin-topbar {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 16px;
}
.admin-search-wrap {
  position: relative;
  flex: 1;
  max-width: 330px;
}
.admin-search-wrap span {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
}
.admin-search {
  width: 100%;
  background: #f7f8f9;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 14px 10px 38px;
  outline: none;
}
.admin-search:focus {
  border-color: #b7e5e1;
  background: #fff;
}
.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.admin-top-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 9px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #475467;
  text-decoration: none;
  position: relative;
  font-size: 15px;
}
.admin-top-btn:hover {
  background: var(--soft);
  text-decoration: none;
}
.admin-top-btn .admin-nav-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--danger);
  color: #fff;
  border-radius: 20px;
  font-size: 9px;
  padding: 1px 5px;
}
.admin-profile {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 4px;
}
.admin-profile .admin-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #dff5f2;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 13px;
  flex: none;
}
.admin-profile b {
  font-size: 12px;
  display: block;
}
.admin-profile small {
  color: var(--muted);
  display: block;
  font-size: 11px;
}
.admin-profile form button {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  text-decoration: underline;
}

.admin-content {
  padding: 28px 30px 45px;
  max-width: 1600px;
  margin: auto;
}
.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.admin-page-head h1 {
  font-size: 24px;
  margin: 0 0 5px;
}
.admin-page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Brings the older generic .card/.form-group/table components (still used by Categories,
   Filters, Coupons, Payments, Store Settings) in line with the denser admin visual language
   established by the Orders/Products pages, without touching how those components look
   on the customer-facing storefront (which never renders inside .admin-content). */
.admin-content .card {
  margin-bottom: 20px;
}
.admin-content .card h2,
.admin-content .card h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
}
.admin-content .card h2:not(:first-child),
.admin-content .card h3:not(:first-child) {
  margin-top: 20px;
}
.admin-content .card p.muted {
  font-size: 12px;
}
.admin-content .form-group label {
  font-size: 12px;
  margin-bottom: 5px;
}
.admin-content .form-group input,
.admin-content .form-group select,
.admin-content .form-group textarea {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
}
.admin-content table th {
  background: #fafafa;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #667085;
  font-weight: 700;
}
.admin-content table td {
  font-size: 12px;
}
.admin-welcome {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 22px;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-welcome h1 {
  font-size: 24px;
  margin: 0 0 5px;
}
.admin-welcome p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.admin-date-select {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 9px;
  padding: 10px 13px;
  color: #344054;
  outline: none;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.admin-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.admin-kpi {
  padding: 18px;
}
.admin-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.admin-kpi-icon {
  width: 37px;
  height: 37px;
  border-radius: 9px;
  background: #e8f8f6;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  flex: none;
}
.admin-kpi h2 {
  font-size: 25px;
  margin: 13px 0 8px;
}
.admin-trend {
  font-size: 11px;
}
.admin-trend.up {
  color: var(--success);
}
.admin-trend.down {
  color: var(--danger);
}

.admin-grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  gap: 20px;
  margin-bottom: 20px;
}
.admin-panel {
  padding: 20px;
}
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 12px;
}
.admin-panel-head h3 {
  margin: 0;
  font-size: 16px;
}
.admin-panel-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.admin-link {
  color: var(--primary-dark);
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.admin-chart {
  height: 260px;
  position: relative;
  padding: 10px 0 0 40px;
}
.admin-ylabels {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #98a2b3;
  font-size: 10px;
}
.admin-gridlines {
  position: absolute;
  left: 42px;
  right: 0;
  top: 8px;
  bottom: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.admin-gridlines span {
  border-top: 1px dashed #eaecf0;
  width: 100%;
}
.admin-bars {
  height: 210px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 9px;
  position: relative;
  z-index: 2;
}
.admin-bar-group {
  height: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.admin-bar {
  width: 42%;
  max-width: 34px;
  border-radius: 4px 4px 0 0;
  background: var(--primary);
  min-height: 2px;
}
.admin-xlabel {
  font-size: 10px;
  color: #98a2b3;
  position: absolute;
  bottom: 8px;
  transform: translateX(-50%);
}

.admin-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.admin-order {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f1f2;
}
.admin-order:last-child {
  border-bottom: 0;
}
.admin-order-img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #eee;
  flex: none;
}
.admin-order-main {
  min-width: 0;
  flex: 1;
}
.admin-order-main b {
  font-size: 12px;
}
.admin-order-main span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.admin-order-price {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}
.admin-status {
  font-size: 9px;
  border-radius: 20px;
  padding: 3px 7px;
  display: inline-block;
  margin-top: 5px;
  text-transform: capitalize;
}
.admin-status.processing {
  background: #fff4d6;
  color: #b54708;
}
.admin-status.shipped {
  background: #e8f3ff;
  color: #175cd3;
}
.admin-status.delivered {
  background: #e8f8f0;
  color: #067647;
}
.admin-status.cancelled {
  background: #fff0f3;
  color: #d92d52;
}

.admin-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 20px;
}
.admin-product-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f1f2;
}
.admin-product-row:last-child {
  border: 0;
}
.admin-product-row img {
  width: 43px;
  height: 43px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  background: #eee;
}
.admin-product-info {
  flex: 1;
  min-width: 0;
}
.admin-product-info b {
  font-size: 12px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-product-info span {
  font-size: 10px;
  color: var(--muted);
}
.admin-qty {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  flex: none;
}

.admin-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.admin-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f8f7;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 700;
}
.admin-category .admin-category-info {
  flex: 1;
}
.admin-category b {
  font-size: 12px;
}
.admin-category span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.admin-category strong {
  font-size: 12px;
}

.admin-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 13px;
}
.admin-mini {
  background: #fafafa;
  border: 1px solid #f0f1f2;
  padding: 12px;
  border-radius: 9px;
}
.admin-mini span {
  font-size: 10px;
  color: var(--muted);
}
.admin-mini b {
  display: block;
  font-size: 16px;
  margin-top: 4px;
}
.admin-mini small {
  font-size: 10px;
}

.admin-health {
  margin-top: 18px;
  padding: 13px;
  background: #e8f8f6;
  border-radius: 10px;
}
.admin-health b {
  font-size: 12px;
}
.admin-health p {
  font-size: 11px;
  color: #475467;
  margin: 5px 0 0;
}

.admin-toolbar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-right: auto;
  flex-wrap: wrap;
}
.admin-tab {
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
}
.admin-tab:hover {
  text-decoration: none;
  background: var(--soft);
}
.admin-tab.active {
  background: #e8f8f6;
  color: var(--primary-dark);
  font-weight: 700;
}
.admin-filter-input,
.admin-filter-select {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12px;
  color: #475467;
}
.admin-filter-input {
  width: 210px;
}

.admin-table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  overflow: auto;
}
.admin-table-wrap table {
  min-width: 920px;
}
.admin-table-wrap th {
  background: #fafafa;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.admin-product-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 230px;
}
.admin-product-cell img,
.admin-product-cell .admin-thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #eee;
  flex: none;
}
.admin-product-cell b {
  font-size: 12px;
  display: block;
}
.admin-product-cell small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.admin-row-actions {
  display: flex;
  gap: 5px;
}
.admin-action-btn {
  width: 29px;
  height: 29px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 7px;
  cursor: pointer;
  color: #475467;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
}
.admin-action-btn:hover {
  border-color: #b7e5e1;
  color: var(--primary-dark);
  text-decoration: none;
}
.admin-action-btn.danger {
  color: var(--danger);
  border-color: #f5c6c3;
  font-size: 12px;
}
.admin-action-btn.danger:hover {
  background: #fdecea;
  border-color: var(--danger);
  color: var(--danger);
}

.admin-footer-row {
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-pagination {
  display: flex;
  gap: 5px;
}
.admin-page-btn {
  border: 1px solid var(--border);
  background: #fff;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  cursor: pointer;
  color: #475467;
  text-decoration: none;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
}
.admin-page-btn:hover {
  text-decoration: none;
  border-color: #b7e5e1;
}
.admin-page-btn.current {
  background: #e8f8f6;
  border-color: #b7e5e1;
  color: var(--primary-dark);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .admin-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-grid-main {
    grid-template-columns: 1fr;
  }
  .admin-bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 780px) {
  .admin-sidebar {
    width: 68px;
    padding: 18px 9px;
  }
  .admin-logo {
    padding: 0 5px 20px;
  }
  .admin-logo strong,
  .admin-logo small,
  .admin-nav-label,
  .admin-nav a span:not(.admin-icon),
  .admin-nav button.admin-nav-link span:not(.admin-icon),
  .admin-store-card {
    display: none;
  }
  .admin-nav a,
  .admin-nav button.admin-nav-link {
    justify-content: center;
    padding: 12px;
  }
  .admin-main {
    margin-left: 68px;
  }
  .admin-topbar {
    padding: 0 15px;
  }
  .admin-profile span:last-child {
    display: none;
  }
  .admin-content {
    padding: 20px 15px;
  }
  .admin-bottom-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .admin-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .admin-grid-main {
    gap: 12px;
  }
  .admin-panel {
    padding: 15px;
  }
}

/* ---------- Merchant admin: order detail ---------- */

.admin-status-row {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.admin-status-row select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  background: #fff;
}

.admin-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: 20px;
}
.admin-detail-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.admin-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 19px;
}
.admin-detail-card h2 {
  font-size: 15px;
  margin: 0;
}
.admin-detail-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 10px;
}
.admin-detail-card-head p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 0;
}

.admin-detail-item {
  display: grid;
  grid-template-columns: 58px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f0f1f2;
}
.admin-detail-item:last-child {
  border-bottom: 0;
}
.admin-detail-item img,
.admin-detail-item .admin-thumb-placeholder {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
  background: #eee;
}
.admin-detail-item-info b {
  font-size: 12px;
}
.admin-detail-item-info small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.admin-detail-item-price {
  text-align: right;
  font-size: 12px;
  font-weight: 700;
}
.admin-detail-item-price small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px;
}
.admin-detail-item-total {
  width: 85px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
}

.admin-totals {
  border-top: 1px solid var(--border);
  margin-top: 2px;
  padding-top: 12px;
}
.admin-total-line {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 5px 0;
  color: #475467;
}
.admin-total-line.grand {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 13px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.admin-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.admin-info-box {
  border: 1px solid #f0f1f2;
  border-radius: 9px;
  padding: 12px;
}
.admin-info-box label {
  display: block;
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.admin-info-box b {
  font-size: 11px;
}

.admin-timeline {
  position: relative;
  padding-left: 26px;
}
.admin-timeline:before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 10px;
  width: 1px;
  background: #d0d5dd;
}
.admin-timeline-event {
  position: relative;
  padding-bottom: 19px;
}
.admin-timeline-event:last-child {
  padding-bottom: 0;
}
.admin-timeline-event:before {
  content: '';
  position: absolute;
  left: -23px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--primary);
  z-index: 1;
}
.admin-timeline-event b {
  font-size: 11px;
}
.admin-timeline-event span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.admin-note-box {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px;
  font-size: 10px;
  color: #475467;
  line-height: 1.5;
}
.admin-note-box strong {
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
}

.admin-customer-card {
  display: flex;
  gap: 11px;
  align-items: center;
}
.admin-customer-card .admin-avatar {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #dff5f2;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex: none;
}
.admin-customer-card b {
  font-size: 12px;
}
.admin-customer-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.admin-customer-actions {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}
.admin-customer-actions a,
.admin-customer-actions button {
  flex: 1;
  text-align: center;
}

.admin-payment-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.admin-mini-history-line {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  padding: 7px 0;
}
.admin-mini-history-line + .admin-mini-history-line {
  border-top: 1px solid #f0f1f2;
}

@media (max-width: 1050px) {
  .admin-detail-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 780px) {
  .admin-detail-item {
    grid-template-columns: 50px 1fr auto;
  }
  .admin-detail-item-price {
    display: none;
  }
  .admin-info-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Merchant admin: customer detail ---------- */

.admin-profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-big-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dff5f2;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 19px;
  font-weight: 800;
  flex: none;
}
.admin-profile-info {
  flex: 1;
  min-width: 180px;
}
.admin-profile-info h2 {
  margin: 0;
  font-size: 17px;
}
.admin-profile-info p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.admin-customer-id {
  color: #98a2b3;
  font-size: 10px;
  margin-top: 4px;
}
.admin-tag {
  display: inline-block;
  background: #e8f8f6;
  color: var(--primary-dark);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
}

.admin-customer-order-row {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 0.8fr 0.8fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #f0f1f2;
}
.admin-customer-order-row:last-child {
  border-bottom: 0;
}
.admin-customer-order-row .order-id b {
  font-size: 11px;
}
.admin-customer-order-row .order-id small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 3px;
}
.admin-order-thumbs {
  display: flex;
  align-items: center;
  gap: 7px;
}
.admin-order-thumbs img {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
}
.admin-order-thumbs span {
  font-size: 10px;
  color: #475467;
}

.admin-spend-segment {
  height: 8px;
  background: #eef0f2;
  border-radius: 10px;
  overflow: hidden;
  margin: 8px 0 14px;
}
.admin-spend-segment i {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 10px;
}

@media (max-width: 780px) {
  .admin-customer-order-row {
    grid-template-columns: 1fr 1.5fr auto;
  }
  .admin-customer-order-row > :nth-child(3) {
    display: none;
  }
}

/* ---------- Customer order detail ---------- */

.od-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin: 8px 0 26px;
}
.od-head h1 {
  font-size: 26px;
  margin: 0 0 6px;
}
.od-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.od-right {
  text-align: right;
}
.od-status {
  background: #fff4d6;
  color: #b54708;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: capitalize;
  display: inline-block;
}
.od-status.shipped {
  background: #e8f3ff;
  color: #175cd3;
}
.od-status.delivered {
  background: #e8f8f0;
  color: #067647;
}
.od-status.cancelled {
  background: #fff0f3;
  color: #d92d52;
}
.od-payment-pill {
  background: #fff4d6;
  color: #b54708;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 9px;
  font-weight: 700;
  display: inline-block;
  margin-left: 6px;
}
.od-date {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}

.od-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 30px;
}
.od-step {
  text-align: center;
  position: relative;
}
.od-step:after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
}
.od-step:last-child:after {
  display: none;
}
.od-step.done:after {
  background: var(--primary);
}
.od-step-circle {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  margin: auto auto 7px;
  border-radius: 50%;
  border: 2px solid #d0d5dd;
  background: #fff;
  color: #98a2b3;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.od-step.done .od-step-circle,
.od-step.current .od-step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.od-step.current .od-step-circle {
  box-shadow: 0 0 0 5px #dff5f2;
}
.od-step-label {
  font-size: 10px;
  color: var(--muted);
}
.od-step.done .od-step-label,
.od-step.current .od-step-label {
  color: var(--ink);
  font-weight: 700;
}

.od-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  gap: 22px;
}
.od-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.od-card-sub {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 16px;
}
.od-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f1f2;
  align-items: center;
}
.od-item:last-child {
  border-bottom: 0;
}
.od-item img,
.od-item .od-item-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--soft);
}
.od-item b {
  font-size: 12px;
}
.od-item span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.od-item-price {
  text-align: right;
  font-weight: 700;
  font-size: 12px;
}
.od-item-price small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
.od-totals {
  border-top: 1px solid var(--border);
  padding-top: 12px;
}
.od-line {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 11px;
  color: #475467;
}
.od-line.total {
  border-top: 1px solid var(--border);
  margin-top: 7px;
  padding-top: 13px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
}

.od-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.od-info-box {
  background: #fafafa;
  border: 1px solid #f0f1f2;
  border-radius: 9px;
  padding: 13px;
}
.od-info-box label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 6px;
}
.od-info-box b {
  font-size: 11px;
}
.od-info-box span {
  display: block;
  font-size: 10px;
  color: #475467;
  line-height: 1.55;
  margin-top: 3px;
}

.od-payment-row {
  display: flex;
  gap: 11px;
  align-items: center;
}
.od-payment-icon {
  width: 38px;
  height: 32px;
  border-radius: 7px;
  background: #101828;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 800;
  flex: none;
}
.od-payment-row b {
  font-size: 11px;
}
.od-payment-row span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.od-timeline {
  position: relative;
  padding-left: 25px;
}
.od-timeline:before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #d0d5dd;
}
.od-event {
  position: relative;
  padding-bottom: 19px;
}
.od-event:last-child {
  padding-bottom: 0;
}
.od-event:before {
  content: '';
  position: absolute;
  left: -23px;
  top: 3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d0d5dd;
}
.od-event.done:before,
.od-event.current:before {
  background: var(--primary);
  border-color: var(--primary);
}
.od-event.cancelled:before {
  background: var(--danger);
  border-color: var(--danger);
}
.od-event.current:before {
  box-shadow: 0 0 0 4px #dff5f2;
}
.od-event b {
  font-size: 11px;
}
.od-event span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.od-help {
  background: #f0faf9;
  border: 1px solid #cdeeea;
  border-radius: 10px;
  padding: 14px;
  font-size: 10px;
  color: #475467;
  line-height: 1.5;
}
.od-help b {
  display: block;
  color: var(--ink);
  font-size: 11px;
  margin-bottom: 4px;
}

@media (max-width: 800px) {
  .od-head {
    display: block;
  }
  .od-right {
    text-align: left;
    margin-top: 13px;
  }
  .od-grid {
    grid-template-columns: 1fr;
  }
  .od-info-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .od-item {
    grid-template-columns: 52px 1fr auto;
  }
  .od-item img,
  .od-item .od-item-placeholder {
    width: 52px;
    height: 52px;
  }
}

/* ---------- Contact page ---------- */

.contact-locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0 48px;
}
.contact-location-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}
.contact-location-top {
  margin-bottom: 16px;
}
.contact-location-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #e8f8f6;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.contact-location-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}
.contact-location-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.contact-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 14px;
}
.contact-hours {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
  margin-bottom: 48px;
}
.contact-eyebrow {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.contact-copy h2 {
  font-size: 28px;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
.contact-copy > p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 24px;
}
.contact-info-list {
  display: grid;
  gap: 15px;
}
.contact-info-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0f9f8;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 15px;
}
.contact-info-item strong {
  font-size: 14px;
  display: block;
  margin-bottom: 2px;
}
.contact-info-item span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.contact-form-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}
.contact-form-card h3 {
  font-size: 20px;
  margin: 0 0 6px;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-field-full {
  grid-column: 1 / -1;
}
.contact-form-note {
  font-size: 11px;
  color: #98a2b3;
  margin: 10px 0 0;
  line-height: 1.5;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-field-full {
    grid-column: auto;
  }
}
